:root {
  --primary: #1C2833;
  /* Azul Oxford/Industrial */
  --accent: #FF6A2A;
  /* Naranja Seguridad */
  --secondary: #7F8C8D;
  /* Gris Asfalto */
  --background: #F2F2F0;
  /* Blanco Hueso Técnico */
  --text-dark: #333333;
}

body {
  background-color: var(--background);
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.PrimaryText {
  color: var(--primary) !important;
}

.SecondaryText {
  color: var(--secondary) !important;
}

.AccentText {
  color: var(--accent) !important;
}

.BackgroundText {
  background-color: var(--background) !important;
}

/* Backgrounds & Utilities */
.bg-primary-custom {
  background-color: var(--primary) !important;
  color: white;
}

.bg-accent {
  background-color: var(--accent) !important;
  color: white;
}

.bg-secondary-custom {
  background-color: var(--secondary) !important;
  color: white;
}

.text-accent {
  color: var(--accent) !important;
}

.text-primary-custom {
  color: var(--primary) !important;
}

.bg-industrial {
  background-color: var(--primary);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  color: #fff;
}

.bg-industrial h1,
.bg-industrial h2,
.bg-industrial h3,
.bg-industrial h4,
.bg-industrial h5,
.bg-industrial h6 {
  color: #fff;
}

/* Buttons */
.btn-accent {
  background-color: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 2px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 28px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-accent:hover {
  background-color: transparent;
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(255, 106, 42, 0.3);
  transform: translateY(-2px);
}

.btn-outline-accent {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 2px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 28px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-outline-accent:hover {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 106, 42, 0.3);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  border-bottom: 3px solid var(--accent);
  padding: 15px 0;
}

.navbar-brand {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-link {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 60px;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 30px;
}

/* Feature Cards (Hero Bottom) */
.feature-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 4px solid var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.feature-img-wrapper {
  height: 180px;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.1);
}

.feature-content {
  padding: 1.5rem;
}

.feature-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 15px;
}

/* Tipos de Capacitación Section */
.type-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
}

.type-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.type-card:hover img {
  transform: scale(1.05);
}

.type-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(28, 40, 51, 0.95) 0%, rgba(28, 40, 51, 0.4) 50%, rgba(28, 40, 51, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white;
  transition: background 0.3s ease;
}

.type-card:hover .type-overlay {
  background: linear-gradient(to top, rgba(255, 106, 42, 0.95) 0%, rgba(255, 106, 42, 0.6) 50%, rgba(28, 40, 51, 0.2) 100%);
}

.type-overlay h3 {
  color: white;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.type-overlay p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.type-card:hover .type-overlay h3 {
  transform: translateY(0);
}

.type-card:hover .type-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* Nosotros Section */
.nosotros-img {
  border: 10px solid #fff;
  box-shadow: 15px 15px 0 var(--accent);
  max-width: 100%;
  height: auto;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.check-list i {
  color: var(--accent);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Course Cards */
.course-card {
  background: #fff;
  border: none;
  border-left: 4px solid var(--secondary);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border-radius: 2px;
}

.course-card:hover {
  border-left-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.course-card-img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.course-card .card-body {
  padding: 1.25rem;
}

.course-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.course-card .card-text {
  font-size: 0.9rem;
  color: var(--secondary);
}

/* Footer */
footer {
  border-top: 5px solid var(--accent);
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  margin-bottom: 8px;
}

.footer-link:hover {
  color: var(--accent);
}

/* WhatsApp LOTO Button & Modal */
.loto-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1050;
  transition: all 0.3s ease;
  border: 3px solid #fff;
  text-decoration: none;
}

.loto-btn:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: #1ebe57;
  color: white;
}

.modal-header.loto-header {
  background-color: var(--accent);
  color: white;
  border-bottom: none;
}

.modal-header.loto-header .modal-title {
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-container {
  background: #f9f9f9;
  border: 2px dashed var(--secondary);
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 15px;
}

.captcha-equation {
  font-size: 2rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

/* Animations setup for GSAP */
.gsap-reveal {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .type-card {
    height: 250px;
    margin-bottom: 20px;
  }

  .nosotros-img {
    margin-top: 30px;
  }
}