/* ====================================================================
   CONEXIÓN EJECUTIVA — HOJA DE ESTILOS PRINCIPAL
   Stack: CSS3 Nativo, Variables Custom, Mobile-First
   Rendimiento: Solo transform y opacity para animaciones (Cero Reflow)
   Lighthouse Target: 90+
   ==================================================================== */

/* --------------------------------------------------------------------
   1. VARIABLES DE DISEÑO & CONFIGURACIÓN (:root)
   -------------------------------------------------------------------- */
:root {
  /* Paleta Corporativa Obligatoria */
  --color-primary:       #0B2545; /* Azul marino principal */
  --color-secondary:     #13599C; /* Azul medio */
  --color-detail:        #8DA9C4; /* Azul claro para bordes y acentos */
  --color-accent:        #F59E0B; /* Ámbar para llamadas a la acción (CTA) */
  --color-accent-hover:  #D97706; /* Ámbar oscuro en hover */
  --color-bg:            #F5F7FA; /* Fondo neutro claro */
  --color-white:         #FFFFFF; /* Blanco puro */
  
  /* Textos y Neutrales */
  --color-text:          #1E293B; /* Texto principal de alta legibilidad */
  --color-text-muted:    #64748B; /* Texto secundario */
  --color-border:        #E2E8F0; /* Bordes suaves */
  --color-border-focus:  #13599C;
  --color-success:       #059669;
  --color-error:         #DC2626;

  /* Tipografías Oficiales */
  --font-heading:        'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciados y Radios */
  --radius-sm:           6px;
  --radius-card:         12px;
  --radius-lg:           16px;
  --radius-pill:         50px;

  /* Sombras Suaves */
  --shadow-sm:           0 2px 6px rgba(11, 37, 69, 0.05);
  --shadow-card:         0 8px 24px -4px rgba(11, 37, 69, 0.08);
  --shadow-hover:        0 18px 36px -6px rgba(11, 37, 69, 0.16);
  --shadow-amber:        0 8px 25px -4px rgba(245, 158, 11, 0.38);

  /* Tiempos de Animación (300ms a 800ms) */
  --anim-fast:           300ms;
  --anim-mid:            500ms;
  --anim-slow:           750ms;
  --ease-smooth:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:         cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Contenedores y Alturas */
  --max-width:           1200px;
  --header-height:       84px;
  --header-scrolled-h:   70px;
}

/* --------------------------------------------------------------------
   2. RESET Y BASES ACCESIBLES
   -------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--anim-fast) var(--ease-smooth);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Contenedor responsivo centrado */
.site-container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --------------------------------------------------------------------
   3. BARRA DE PROGRESO DE LECTURA (3px ÁMBAR)
   -------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent) 0%, #FBBF24 100%);
  z-index: 99999;
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------
   4. BOTÓN FLOTANTE DE WHATSAPP CON PULSO SUAVE CADA 4S
   -------------------------------------------------------------------- */
.whatsapp-float-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
}

.btn-whatsapp-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: transform var(--anim-fast) var(--ease-smooth);
  animation: pulseWhatsApp 4s infinite ease-in-out;
}

.btn-whatsapp-pulse:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity var(--anim-fast) var(--ease-smooth), transform var(--anim-fast) var(--ease-smooth);
}

.btn-whatsapp-pulse:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulseWhatsApp {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }
  15% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  25% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }
}

/* --------------------------------------------------------------------
   5. BOTONES Y LLAMADAS A LA ACCIÓN (EFECTO SHIMMER EN HOVER)
   -------------------------------------------------------------------- */
.btn-cta-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-amber);
  position: relative;
  overflow: hidden;
  transition: transform var(--anim-fast) var(--ease-bounce), box-shadow var(--anim-fast) var(--ease-smooth), background-color var(--anim-fast) var(--ease-smooth);
  white-space: nowrap;
}

/* Efecto brillo (shimmer) que cruza el botón en hover */
.btn-cta-amber::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-22deg);
  transition: none;
}

.btn-cta-amber:hover {
  background-color: #FBBF24;
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.btn-cta-amber:hover::after {
  left: 150%;
  transition: left 0.75s ease-in-out;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: all var(--anim-fast) var(--ease-smooth);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: scale(1.03) translateY(-2px);
}

/* --------------------------------------------------------------------
   6. HEADER FIJO Y MENÚ RESPONSIVO CON SUBMENÚ
   -------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9990;
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
  transition: height var(--anim-fast) var(--ease-smooth), background-color var(--anim-fast) var(--ease-smooth), box-shadow var(--anim-fast) var(--ease-smooth);
}

.site-header.scrolled {
  height: var(--header-scrolled-h);
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: height var(--anim-fast) var(--ease-smooth);
}

.site-header.scrolled .header-logo-img {
  height: 38px;
}

/* Navegación Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: color var(--anim-fast), background-color var(--anim-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-secondary);
  background: rgba(19, 89, 156, 0.06);
}

/* Desplegable de Servicios */
.has-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--anim-fast);
}

.nav-dropdown-btn:hover {
  color: var(--color-secondary);
}

.dropdown-arrow-icon {
  transition: transform var(--anim-fast) var(--ease-smooth);
}

.has-dropdown:hover .dropdown-arrow-icon,
.has-dropdown.open .dropdown-arrow-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 36px rgba(11, 37, 69, 0.15);
  border: 1px solid var(--color-border);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--anim-fast) var(--ease-smooth), transform var(--anim-fast) var(--ease-smooth), visibility var(--anim-fast);
  z-index: 1000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background-color var(--anim-fast), color var(--anim-fast), padding-left var(--anim-fast);
}

.dropdown-link:hover, .dropdown-link:focus {
  background-color: rgba(19, 89, 156, 0.08);
  color: var(--color-secondary);
  padding-left: 24px;
}

/* Acciones en Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link-secondary {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-secondary);
  padding: 8px 12px;
  transition: color var(--anim-fast);
}

.nav-link-secondary:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.btn-cta-header {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.nav-mobile-actions {
  display: none;
}

/* Botón Hamburguesa */
.nav-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  z-index: 10001;
}

.hamburger-bar,
.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--anim-fast) var(--ease-smooth), opacity var(--anim-fast);
}

/* Animación a X al abrirse */
.nav-hamburger-btn.active .hamburger-bar:nth-child(1),
.nav-hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-hamburger-btn.active .hamburger-bar:nth-child(2),
.nav-hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger-btn.active .hamburger-bar:nth-child(3),
.nav-hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------
   7. HERO SECTION (MIN 90VH, FONDO ANIMADO, PARTICULAS, H1 ESCALONADO)
   -------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 90vh;
  padding-top: calc(var(--header-height) + 18px);
  padding-bottom: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, #0A1B33 100%);
  background-size: 200% 200%;
  animation: heroGradientShift 14s ease infinite;
  color: var(--color-white);
  overflow: hidden;
}

@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Canvas de tsParticles slim */
.tsparticles-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Formas geométricas y burbujas flotantes en rotación continua */
.floating-shapes-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.shape-geo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px solid rgba(2, 164, 242, 0.32);
  background: radial-gradient(circle at 35% 35%, rgba(2, 164, 242, 0.22) 0%, rgba(19, 89, 156, 0.08) 55%, transparent 100%);
  box-shadow: 0 0 35px rgba(2, 164, 242, 0.18), inset 0 0 20px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px);
  will-change: transform;
}

/* Burbuja 1: Grande superior derecha, órbita circular amplia continua */
.shape-circle-1 {
  width: 440px;
  height: 440px;
  top: -70px;
  right: -90px;
  animation: bubbleOrbit1 16s linear infinite;
}

/* Burbuja 2: Media inferior izquierda, giro 360 y trayectoria continua */
.shape-hexagon-1 {
  width: 320px;
  height: 320px;
  bottom: 30px;
  left: -70px;
  border-radius: 46%;
  animation: bubbleOrbit2 19s linear infinite;
}

/* Burbuja 3: Pequeña centro-izquierda con rotación y desplazamiento dinámico */
.shape-circle-2 {
  width: 170px;
  height: 170px;
  top: 36%;
  left: 10%;
  animation: bubbleSpinLoop1 11s ease-in-out infinite;
}

/* Burbuja 4: Esfera detrás del mapa con rotación orbital continua */
.shape-bubble-3 {
  width: 240px;
  height: 240px;
  top: 10%;
  right: 24%;
  animation: bubbleSpinLoop2 14s linear infinite;
  border-color: rgba(56, 189, 248, 0.38);
}

/* Burbuja 5: Esfera pequeña con acento cálido dando vueltas en el centro inferior */
.shape-bubble-4 {
  width: 120px;
  height: 120px;
  bottom: 8%;
  left: 42%;
  animation: bubbleOrbit3 10s linear infinite;
  border-color: rgba(245, 158, 11, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.2) 0%, rgba(2, 164, 242, 0.06) 60%, transparent 100%);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.16), inset 0 0 15px rgba(255, 255, 255, 0.12);
}

/* Burbuja 6: Esfera superior izquierda con giro continuo */
.shape-bubble-5 {
  width: 150px;
  height: 150px;
  top: 6%;
  left: 4%;
  animation: bubbleSpinLoop1 13s ease-in-out infinite reverse;
}

/* Trayectorias y giros de 360° para que las burbujas estén dando vueltas continuamente */
@keyframes bubbleOrbit1 {
  0% {
    transform: rotate(0deg) translateX(48px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(48px) rotate(-360deg);
  }
}

@keyframes bubbleOrbit2 {
  0% {
    transform: rotate(360deg) translateX(55px) rotate(-360deg);
  }
  100% {
    transform: rotate(0deg) translateX(55px) rotate(0deg);
  }
}

@keyframes bubbleOrbit3 {
  0% {
    transform: rotate(0deg) translateY(40px) rotate(0deg);
  }
  50% {
    transform: rotate(180deg) translateY(60px) rotate(-180deg);
  }
  100% {
    transform: rotate(360deg) translateY(40px) rotate(-360deg);
  }
}

@keyframes bubbleSpinLoop1 {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(32px, -28px) rotate(90deg) scale(1.08);
  }
  50% {
    transform: translate(50px, 18px) rotate(180deg) scale(0.94);
  }
  75% {
    transform: translate(18px, 36px) rotate(270deg) scale(1.06);
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
  }
}

@keyframes bubbleSpinLoop2 {
  0% {
    transform: rotate(0deg) translate(42px, 22px) rotate(0deg);
  }
  50% {
    transform: rotate(180deg) translate(-35px, -20px) rotate(-180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) translate(42px, 22px) rotate(-360deg);
  }
}

.hero-inner-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}

/* H1 animado palabra por palabra alineado a la izquierda */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-align: left;
}

.word-split {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: heroWordFadeUp 0.65s var(--ease-smooth) forwards;
}

.word-split:nth-child(1) { animation-delay: 0.1s; }
.word-split:nth-child(2) { animation-delay: 0.17s; }
.word-split:nth-child(3) { animation-delay: 0.24s; }
.word-split:nth-child(4) { animation-delay: 0.31s; }
.word-split:nth-child(5) { animation-delay: 0.38s; }
.word-split:nth-child(6) { animation-delay: 0.45s; }

@keyframes heroWordFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #E2E8F0;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 0 36px 0;
  font-weight: 400;
  text-align: left;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn-hero-primary {
  padding: 15px 34px;
  font-size: 1.05rem;
}

.btn-icon {
  transition: transform var(--anim-fast);
}

.btn-hero-primary:hover .btn-icon {
  transform: translateX(4px);
}

.hero-link-employment {
  color: var(--color-detail);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  transition: color var(--anim-fast), transform var(--anim-fast);
}

.hero-link-employment:hover {
  color: var(--color-white);
  transform: translateX(3px);
}

/* 3 Mini-argumentos */
.hero-mini-arguments {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 14px 28px;
  background: rgba(11, 37, 69, 0.45);
  border: 1px solid rgba(141, 169, 196, 0.2);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.mini-arg-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-arg-icon {
  display: flex;
  align-items: center;
  color: var(--color-accent);
}

.mini-arg-text {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-white);
}

/* Indicador de scroll (flecha que rebota) */
.hero-scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-detail);
  margin-top: 10px;
  transition: color var(--anim-fast);
}

.hero-scroll-indicator:hover {
  color: var(--color-white);
}

.scroll-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scroll-arrow {
  animation: bounceArrow 2s infinite ease-in-out;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* Separador curvo SVG */
.hero-curve-separator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 3;
}

.hero-curve-separator svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------
   8. ESTRUCTURA GENERAL DE SECCIONES
   -------------------------------------------------------------------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
}

.text-center {
  text-align: center;
}

.section-tagline {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------
   9. VENTAJAS COMPETITIVAS (3 TARJETAS)
   -------------------------------------------------------------------- */
.section-ventajas {
  background-color: var(--color-bg);
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ventaja-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform var(--anim-fast) var(--ease-smooth), box-shadow var(--anim-fast) var(--ease-smooth);
}

.ventaja-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-detail);
}

.ventaja-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(19, 89, 156, 0.08);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform var(--anim-fast) var(--ease-bounce), background-color var(--anim-fast);
}

.ventaja-card:hover .ventaja-icon-wrapper {
  transform: scale(1.1) rotate(4deg);
  background: rgba(19, 89, 156, 0.14);
}

.ventaja-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.ventaja-card-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------
   10. SERVICIOS (5 TARJETAS, BORDE SUPERIOR EXPANDIBLE & AOS)
   -------------------------------------------------------------------- */
.section-services {
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* La tarjeta 4 y 5 se acomodan armoniosamente */
.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
  grid-column: span 1;
}

.service-card {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 38px 30px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--anim-fast) var(--ease-smooth), box-shadow var(--anim-fast) var(--ease-smooth), border-color var(--anim-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-secondary);
}

/* Borde superior de color que se expande en hover */
.service-top-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  transition: width 0.4s var(--ease-smooth);
}

.service-card:hover .service-top-border {
  width: 100%;
}

.service-badge-popular {
  position: absolute;
  top: 14px;
  right: 18px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--anim-fast) var(--ease-bounce), color var(--anim-fast);
}

.service-card:hover .service-icon-box {
  transform: scale(1.12);
  color: var(--color-primary);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.service-title a:hover {
  color: var(--color-secondary);
}

.service-description-short {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-values-block {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 37, 69, 0.08);
  margin-bottom: 24px;
}

.service-values-heading {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.service-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-check-list li {
  font-size: 0.86rem;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-icon {
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
}

.service-btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-secondary);
  transition: transform var(--anim-fast), color var(--anim-fast);
}

.service-btn-detail:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------
   10.B SEGUIMIENTO CORPORATIVO (PORTAL DIGITAL EN TIEMPO REAL)
   -------------------------------------------------------------------- */
.section-tracking {
  background-color: var(--color-white);
  padding: 96px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.tracking-header {
  max-width: 720px;
  margin: 0 auto 36px;
}

.tracking-title-gradient {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.tracking-title-gradient span {
  font-weight: 800;
  color: #004EAA;
}

.tracking-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Barra de Pestañas tipo Píldora */
.tracking-tabs-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 54px;
}

.tracking-tabs-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #F1F5F9;
  border-radius: 9999px;
  border: 1px solid #CBD5E1;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tracking-tab-btn {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  padding: 10px 24px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.tracking-tab-btn:hover {
  color: #004EAA;
  background: rgba(0, 78, 170, 0.08);
}

.tracking-tab-btn.active {
  background: #004EAA !important;
  color: #FFFFFF !important;
  border-color: #004EAA !important;
  box-shadow: 0 4px 14px rgba(0, 78, 170, 0.35);
}

/* Indicador visual de 5 segundos */
.tracking-timer-bar {
  width: 180px;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  margin-top: 14px;
  overflow: hidden;
}

.tracking-timer-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  transition: width 0.1s linear;
}

/* Paneles de Contenido */
.tracking-content-wrapper {
  position: relative;
  min-height: 380px;
}

.tracking-panel {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.tracking-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tracking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Mockup de Laptop */
.tracking-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tracking-mockup-frame {
  position: relative;
  width: 100%;
  max-width: 550px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transition: transform var(--anim-fast) var(--ease-smooth);
}

.tracking-mockup-frame:hover {
  transform: translateY(-6px);
}

.tracking-laptop-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 35px rgba(11, 37, 69, 0.16));
}

/* Columna de Texto */
.tracking-info-col {
  display: flex;
  flex-direction: column;
}

.panel-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.18;
  margin-bottom: 18px;
}

.panel-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.panel-subheading-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.panel-accent-dash {
  color: #004EAA;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
}

.panel-subheading-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #004EAA;
}

.panel-checks-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-checks-list li {
  list-style: none !important;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--color-text);
  line-height: 1.5;
}

.panel-check-icon {
  color: #004EAA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------
   11. CÓMO TRABAJAMOS (LÍNEA DE TIEMPO INTERACTIVA SCROLLTRIGGER)
   -------------------------------------------------------------------- */
.section-timeline {
  background-color: var(--color-bg);
  overflow: hidden;
}

.timeline-interactive-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Línea de fondo horizontal en Desktop */
.timeline-track {
  position: absolute;
  top: 76px;
  left: 5%;
  width: 90%;
  height: 4px;
  background: var(--color-border);
  z-index: 1;
  border-radius: 2px;
}

.timeline-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.timeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.timeline-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-circle-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid var(--color-border);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--anim-mid) var(--ease-smooth);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}

/* Estado activo cuando la línea llega al nodo */
.timeline-step-node.active .step-circle-badge {
  border-color: var(--color-accent);
  background: var(--color-primary);
  color: var(--color-accent);
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.step-card-content {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  width: 100%;
  transition: transform var(--anim-fast), box-shadow var(--anim-fast);
}

.timeline-step-node.active .step-card-content {
  border-color: var(--color-detail);
  box-shadow: var(--shadow-card);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------
   12. CIFRAS DE CONFIANZA (FONDO AZUL MARINO, CONTADORES GSAP)
   -------------------------------------------------------------------- */
.section-stats {
  background: var(--color-primary);
  color: var(--color-white);
  background-image: radial-gradient(circle at 50% 0%, rgba(19, 89, 156, 0.4) 0%, transparent 70%);
}

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

.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(141, 169, 196, 0.2);
  border-radius: var(--radius-card);
  padding: 36px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform var(--anim-fast) var(--ease-smooth), border-color var(--anim-fast);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 8px;
}

.stat-counter {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.stat-symbol {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-white);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.88rem;
  color: #CBD5E1;
  line-height: 1.5;
  font-weight: 500;
}

/* --------------------------------------------------------------------
   13. CLIENTES Y TESTIMONIOS (MARQUEE + SWIPER)
   -------------------------------------------------------------------- */
.section-social-proof {
  background-color: var(--color-white);
}

/* Cinta continua (Marquee) */
.marquee-clients-container {
  overflow: hidden;
  width: 100%;
  margin-bottom: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: relative;
}

.marquee-clients-container::before,
.marquee-clients-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-clients-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg), transparent);
}

.marquee-clients-container::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg), transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter var(--anim-fast), opacity var(--anim-fast), transform var(--anim-fast);
}

.marquee-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.06);
}

.client-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.client-placeholder {
  padding: 10px 20px;
  background: rgba(11, 37, 69, 0.05);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-detail);
}

.placeholder-logo-text {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.08em;
}

/* Carrusel Swiper */
.testimonials-swiper-wrapper {
  max-width: 880px;
  margin: 0 auto;
}

.testimonial-card-item {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 48px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1.3rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.testimonial-quote {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.testimonial-author-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.author-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-details {
  text-align: left;
}

.author-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-primary);
}

.author-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Personalización controles Swiper */
.swiper-button-prev,
.swiper-button-next {
  color: var(--color-secondary);
  width: 40px;
  height: 40px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.3rem;
  font-weight: 800;
}

.swiper-pagination-bullet-active {
  background: var(--color-accent);
  width: 22px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------
   14. PREGUNTAS FRECUENTES (ACORDEÓN ACCESIBLE Y ANIMADO)
   -------------------------------------------------------------------- */
.section-faq {
  background-color: var(--color-bg);
}

.faq-accordion-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--anim-fast), box-shadow var(--anim-fast);
}

.faq-item.active {
  border-color: var(--color-detail);
  box-shadow: var(--shadow-card);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
  transition: color var(--anim-fast);
}

.faq-question-btn:hover {
  color: var(--color-secondary);
}

.faq-chevron-icon {
  flex-shrink: 0;
  color: var(--color-secondary);
  transition: transform 0.35s var(--ease-smooth);
}

.faq-item.active .faq-chevron-icon {
  transform: rotate(180deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}

.faq-answer-inner {
  padding: 0 26px 24px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------
   15. FORMULARIO DE CONTACTO CON ETIQUETAS FLOTANTES
   -------------------------------------------------------------------- */
.section-contact {
  background: linear-gradient(180deg, var(--color-bg) 0%, #E9EEF5 100%);
}

.contact-box-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  background: var(--color-white);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.contact-info-panel {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0F325E 100%);
  color: var(--color-white);
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
}

.contact-info-panel .section-tagline {
  color: var(--color-accent);
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.contact-subtext {
  font-size: 0.98rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 40px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-circle {
  color: #25D366;
}

.detail-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-detail);
  margin-bottom: 4px;
}

.contact-link {
  font-size: 0.98rem;
  color: var(--color-white);
  font-weight: 600;
}

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

.detail-sep {
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.4);
}

.btn-whatsapp-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
  transition: transform var(--anim-fast);
}

.btn-whatsapp-inline:hover {
  transform: translateY(-2px);
  background: #22BF5B;
}

/* Panel del Formulario */
.contact-form-panel {
  padding: 56px 44px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Etiquetas flotantes en CSS nativo */
.floating-form-group {
  position: relative;
  width: 100%;
}

.floating-input {
  width: 100%;
  padding: 18px 16px 8px;
  font-size: 0.95rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--anim-fast), background-color var(--anim-fast), box-shadow var(--anim-fast);
}

.floating-input:focus {
  border-color: var(--color-secondary);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(19, 89, 156, 0.15);
}

.floating-input.input-error {
  border-color: var(--color-error);
  background-color: #FEF2F2;
}

.floating-label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: transform var(--anim-fast) var(--ease-smooth), font-size var(--anim-fast) var(--ease-smooth), color var(--anim-fast);
  transform-origin: left top;
}

/* Cuando tiene focus o valor escrito */
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  transform: translateY(-8px) scale(0.78);
  color: var(--color-secondary);
  font-weight: 600;
}

.floating-textarea {
  min-height: 90px;
  resize: vertical;
}

.floating-select {
  padding-top: 14px;
  padding-bottom: 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748B'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field-error-msg {
  display: none;
  font-size: 0.78rem;
  color: var(--color-error);
  margin-top: 4px;
  font-weight: 500;
}

.field-error-msg.visible {
  display: block;
}

/* Casilla de verificación */
.checkbox-form-group {
  margin-top: 4px;
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.custom-checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--color-detail);
  background: var(--color-white);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--anim-fast);
}

.custom-checkbox-label input:checked ~ .checkbox-box {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

.custom-checkbox-label a {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: underline;
}

.btn-form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

/* Spinner de carga */
.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(11, 37, 69, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-form-submit.loading .btn-text {
  display: none;
}

.btn-form-submit.loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Banner de confirmación */
.form-status-banner {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status-banner.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-status-banner.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* --------------------------------------------------------------------
   16. FOOTER (FONDO AZUL MARINO, 4 COLUMNAS)
   -------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary);
  color: #94A3B8;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(141, 169, 196, 0.15);
}

.footer-columns-grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 60px;
  width: 100%;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-top: 14px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 8px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2.5px;
  background: var(--color-accent);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: #CBD5E1;
  transition: color var(--anim-fast), transform var(--anim-fast);
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: #CBD5E1;
  line-height: 1.6;
}

.footer-contact-block a {
  color: var(--color-white);
  font-weight: 600;
}

.footer-contact-block a:hover {
  color: var(--color-accent);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(141, 169, 196, 0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748B;
}

.footer-legend {
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------
   17. REGLAS ACCESIBILIDAD Y REDUCED MOTION (OBLIGATORIO)
   -------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn-whatsapp-pulse {
    animation: none !important;
  }

  .hero-section {
    animation: none !important;
    background-position: 0 0 !important;
  }

  .word-split {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .marquee-track {
    animation: none !important;
    transform: none !important;
  }

  .tsparticles-canvas-container {
    display: none !important;
  }

  .shape-geo {
    animation: none !important;
  }

  .scroll-arrow {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------
   18. RESPONSIVE DESIGN (MOBILE-FIRST A 1440PX)
   -------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ventajas-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-box-grid {
    grid-template-columns: 1fr;
  }

  .tracking-grid {
    gap: 36px;
  }

  .timeline-track {
    display: none;
  }

  .timeline-steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  /* Seguimiento Corporativo Móvil */
  .tracking-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .panel-subheading-block {
    justify-content: flex-start;
  }

  .tracking-tabs-nav {
    border-radius: var(--radius-card);
    width: 100%;
    gap: 6px;
  }

  .tracking-tab-btn {
    padding: 8px 16px;
    font-size: 0.88rem;
  }

  /* Menú Móvil Desplegable */
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-white);
    padding: 30px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--anim-fast) var(--ease-smooth);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link, .nav-dropdown-btn {
    font-size: 1.1rem;
    padding: 12px 0;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .header-actions .nav-link-secondary,
  .header-actions .btn-cta-header {
    display: none;
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
  }

  .nav-mobile-actions .btn-cta-amber {
    width: 100%;
  }

  .nav-hamburger-btn {
    display: flex;
  }

  /* Hero Mobile */
  .hero-section {
    min-height: 85vh;
    padding-top: calc(var(--header-height) + 15px);
    padding-bottom: 45px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary, .btn-outline-white {
    width: 100%;
  }

  .hero-mini-arguments {
    flex-direction: column;
    gap: 14px;
    border-radius: var(--radius-card);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .timeline-steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stats-counter-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .form-row-dual {
    grid-template-columns: 1fr;
  }

  .contact-info-panel, .contact-form-panel {
    padding: 36px 24px;
  }

  .footer-columns-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}


/* ====================================================================
   HERO SPLIT GRID & INTERACTIVE TECHNOLOGICAL MEXICO MAP
   ==================================================================== */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(2, 164, 242, 0.12);
  border: 1px solid rgba(2, 164, 242, 0.35);
  border-radius: var(--radius-pill);
  color: #38BDF8;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.badge-pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
  animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}

.hero-map-col {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
}

.mexico-tech-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 740px;
  aspect-ratio: 860 / 560;
  background: radial-gradient(ellipse at 50% 50%, rgba(19, 89, 156, 0.28) 0%, rgba(11, 37, 69, 0.6) 65%, transparent 100%);
  border: 1px solid rgba(2, 164, 242, 0.22);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: visible;
  padding: 12px;
}

.mexico-svg-canvas {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Estados de la República */
.mexico-state-path {
  transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.mexico-state-path:hover {
  fill: rgba(2, 164, 242, 0.38) !important;
  stroke: #38BDF8 !important;
  stroke-width: 1.8px !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

/* Líneas de Red Interciudades */
.network-link-line {
  stroke: rgba(2, 164, 242, 0.4);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  animation: netFlowDash 20s linear infinite;
}

@keyframes netFlowDash {
  to { stroke-dashoffset: -100; }
}



/* Nodos de Ciudades */
.city-node-group {
  cursor: pointer;
  transition: transform 0.25s ease;
}

.city-node-group:hover {
  transform: scale(1.25);
}

.city-pulse-ring {
  fill: none;
  stroke: #02A4F2;
  stroke-width: 1.5;
  animation: cityPulse 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  transform-origin: center;
}

@keyframes cityPulse {
  0% { r: 4; opacity: 1; }
  100% { r: 18; opacity: 0; }
}

.city-outer-circle {
  fill: rgba(11, 37, 69, 0.85);
  stroke: #02A4F2;
  stroke-width: 1.5;
  transition: all 0.25s ease;
}

.city-core-dot {
  fill: #38BDF8;
  transition: all 0.25s ease;
}

.city-node-group:hover .city-core-dot,
.city-node-group.active-node .city-core-dot {
  fill: var(--color-accent);
}

.city-node-group:hover .city-outer-circle,
.city-node-group.active-node .city-outer-circle {
  stroke: var(--color-accent);
  stroke-width: 2.2;
}

.city-node-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  fill: #E2E8F0;
  letter-spacing: 0.04em;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  transition: fill 0.25s ease;
}

.city-node-group:hover .city-node-label,
.city-node-group.active-node .city-node-label {
  fill: #FFFFFF;
}

/* Tarjetas Flotantes de Servicios */
.map-floating-card {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  background: rgba(11, 37, 69, 0.86);
  border: 1px solid rgba(141, 169, 196, 0.35);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  max-width: 245px;
}

.map-floating-card:hover {
  transform: translateY(-5px) scale(1.04) !important;
  border-color: #02A4F2;
  box-shadow: 0 16px 32px rgba(2, 164, 242, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background: rgba(15, 45, 82, 0.94);
}

.map-card-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  flex-shrink: 0;
}

.map-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(2, 164, 242, 0.14);
  color: #38BDF8;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.map-floating-card:hover .map-card-icon-wrap {
  background: #02A4F2;
  color: #FFFFFF;
}

.map-card-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.map-card-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.map-card-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
}

.map-card-city {
  font-size: 0.72rem;
  color: #94A3B8;
  line-height: 1.2;
}

/* Posicionamiento de Tarjetas */
.card-pos-tr {
  top: 3%;
  right: -2%;
}

.card-pos-tl {
  top: 8%;
  left: -3%;
}

.card-pos-mr {
  top: 40%;
  right: -5%;
}

.card-pos-bl {
  bottom: 4%;
  left: -1%;
}

.card-pos-br {
  bottom: 2%;
  right: 5%;
}

.card-pos-tr.floating-active {
  animation: floatCard1 5.5s ease-in-out infinite alternate;
}

.card-pos-tl.floating-active {
  animation: floatCard2 6s ease-in-out infinite alternate;
}

.card-pos-mr.floating-active {
  animation: floatCard3 5s ease-in-out infinite alternate;
}

.card-pos-bl.floating-active {
  animation: floatCard1 6.2s ease-in-out infinite alternate;
}

.card-pos-br.floating-active {
  animation: floatCard2 5.8s ease-in-out infinite alternate;
}

@keyframes floatCard1 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

@keyframes floatCard2 {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

@keyframes floatCard3 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* ====================================================================
   MODALIDADES H3 DENTRO DE TARJETAS DE SERVICIOS
   ==================================================================== */
.service-modalities-block {
  margin: 14px 0;
  padding: 10px 12px;
  background: rgba(19, 89, 156, 0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-secondary);
}

.service-modalities-heading {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

.service-modalities-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.service-modality-badge {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  padding: 2px 0;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-modality-badge::before {
  content: '▸';
  color: var(--color-accent);
  font-weight: bold;
}

/* ====================================================================
   RESPONSIVE PARA HERO SPLIT Y MAPA INTERACTIVO
   ==================================================================== */
@media (max-width: 1200px) {
  .hero-split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .map-floating-card {
    padding: 7px 10px;
    max-width: 210px;
  }
  .map-card-title {
    font-size: 0.8rem;
  }
}

@media (max-width: 992px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-content-col {
    align-items: flex-start;
    text-align: left;
  }
  .hero-map-col {
    margin-top: 0;
  }
  .mexico-tech-map-wrapper {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .card-pos-tl, .card-pos-tr, .card-pos-mr, .card-pos-bl, .card-pos-br {
    position: static;
    animation: none !important;
    max-width: 100%;
    width: 100%;
  }
  .mexico-tech-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    aspect-ratio: auto;
    padding: 16px;
  }
  .mexico-svg-canvas {
    aspect-ratio: 860 / 560;
  }
}


/* Contorno perimetral punteado con animación que recorre el perímetro de la República Mexicana */
.mexico-perimeter-animated-trace {
  fill: none;
  stroke: #02A4F2;
  stroke-width: 2.4px;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(2, 164, 242, 0.85));
  animation: perimeterTraceFlow 18s linear infinite;
  pointer-events: none;
}

@keyframes perimeterTraceFlow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -500;
  }
}

/* ====================================================================
   CENTRO DE DESCARGAS DE COTIZACIONES EN PDF
   ==================================================================== */
.section-downloads {
  background: #F8FAFC;
  padding: 80px 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.downloads-pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

@media (max-width: 992px) {
  .downloads-pdf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .downloads-pdf-grid {
    grid-template-columns: 1fr;
  }
}

.download-pdf-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(11, 37, 69, 0.04);
}

.download-pdf-card:hover {
  transform: translateY(-6px);
  border-color: #004EAA;
  box-shadow: 0 16px 32px rgba(0, 78, 170, 0.12);
}

.download-card-highlight {
  border-color: #02A4F2;
  box-shadow: 0 8px 24px rgba(2, 164, 242, 0.1);
}

.pdf-card-badge {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #004EAA;
  background: #EFF6FF;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 78, 170, 0.15);
}

.popular-badge {
  color: #B45309;
  background: #FEF3C7;
  border-color: rgba(245, 158, 11, 0.3);
}

.pdf-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 78, 170, 0.08) 0%, rgba(2, 164, 242, 0.15) 100%);
  color: #004EAA;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.25s ease;
}

.download-pdf-card:hover .pdf-icon-wrap {
  background: #004EAA;
  color: #FFFFFF;
}

.pdf-card-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: #0B2545;
  margin-bottom: 10px;
}

.pdf-card-desc {
  font-size: 0.92rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.pdf-card-actions {
  margin-top: auto;
}

.btn-pdf-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  background: #0B2545;
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-pdf-download:hover {
  background: #F59E0B;
  color: #0B2545 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* Acciones en tarjetas de servicios */
.service-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.service-pdf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: #004EAA;
  background: #EFF6FF;
  border: 1px solid rgba(0, 78, 170, 0.2);
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.service-pdf-pill:hover {
  background: #004EAA;
  color: #FFFFFF;
  border-color: #004EAA;
}

.btn-cta-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 13px 26px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-cta-pdf:hover {
  background: #F59E0B;
  color: #0B2545 !important;
  border-color: #F59E0B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}


/* ====================================================================
   OPTIMIZACIONES MÓVILES GLOBALES Y SUBPÁGINAS (RESPONSIVE 320px - 992px)
   ==================================================================== */
@media (max-width: 900px) {
  /* Héroes de páginas de servicio */
  .section-hero {
    padding-top: calc(var(--header-height) + 20px) !important;
    padding-bottom: 50px !important;
  }

  .section-hero div[style*="1.15fr"],
  .section-hero div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    text-align: center;
  }

  .section-hero div[style*="1.15fr"] > div:first-child,
  .section-hero div[style*="grid-template-columns"] > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-hero div[style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    text-align: center;
    width: 100%;
  }

  .section-hero img {
    max-width: 320px !important;
    margin: 0 auto !important;
  }

  /* Secciones duales en subpáginas y páginas corporativas */
  section div[style*="grid-template-columns: 1fr 1fr"],
  section div[style*="grid-template-columns: 1fr 1fr;"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Grids de subpáginas en móviles */
  section div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  section div[style*="grid-template-columns: repeat(4, 1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Listados y tablas de bolsa de trabajo */
  article[style*="2fr 1fr 1fr"], div[style*="2fr 1fr 1fr"], [style*="grid-template-columns: 2fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Tarjetas de contacto y CTA */
  #contacto div[style*="padding: 50px 40px"],
  #contacto div[style*="padding: 60px 40px"] {
    padding: 36px 20px !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 50px 0 !important;
  }

  h1, .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }

  .section-title {
    font-size: 1.65rem !important;
    line-height: 1.3 !important;
  }

  .btn-cta-amber,
  .btn-hero-primary,
  .btn-outline-white {
    width: 100% !important;
    justify-content: center !important;
  }

  .site-header {
    height: 72px;
  }

  .header-logo-img {
    width: 175px !important;
    height: auto !important;
  }
}
