/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (ANA V SAS v3)
   ========================================================================== */

:root {
  /* Brand Colors */
  --ana-brand-primary: #1F4E8C;    /* Azul Principal */
  --ana-brand-navy: #0D2B55;       /* Azul Marino */
  --ana-brand-light: #4A86C5;      /* Azul Claro */
  --ana-brand-soft: #7FABD6;       /* Azul Suave */
  --ana-brand-ice: #D7E6F7;        /* Azul Hielo */

  /* Neutrals */
  --ana-white: #FFFFFF;
  --ana-neutral-50: #F8FAFC;
  --ana-neutral-100: #E9EDF2;
  --ana-neutral-200: #E2E8F0;
  --ana-neutral-400: #B7BDC5;
  --ana-neutral-700: #475569;

  /* Text */
  --ana-text-primary: #0D2B55;
  --ana-text-secondary: #475569;
  --ana-text-light: #E2E8F0;

  /* UI/Functional */
  --ana-success: #16A34A;
  --ana-danger: #DC2626;
  --ana-whatsapp: #25D366;
  --ana-whatsapp-hover: #128C7E;
  --ana-border: #E9EDF2;
  --ana-radius-sm: 8px;
  --ana-radius-md: 12px;
  --ana-radius-lg: 16px;

  /* Shadows */
  --ana-shadow-card: 0 4px 20px rgba(13, 43, 85, 0.05);
  --ana-shadow-hover: 0 15px 35px rgba(13, 43, 85, 0.12);
  --ana-shadow-header: 0 4px 30px rgba(13, 43, 85, 0.03);

  /* Typography */
  --ana-font-primary: "Montserrat", Arial, sans-serif;
  --ana-font-slogan: "Dancing Script", cursive;

  /* Type scale (fluid) */
  --fs-display: clamp(2.15rem, 5.2vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 3.4vw, 2.4rem);
  --fs-h3: clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-lead: clamp(1rem, 1.6vw, 1.2rem);
  --fs-body: 1rem;
  --fs-eyebrow: 0.78rem;

  /* Focus */
  --ana-focus: 0 0 0 3px rgba(31, 78, 140, 0.35);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--ana-font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ana-text-secondary);
  background-color: var(--ana-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.overflow-hidden { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ana-font-primary);
  color: var(--ana-text-primary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

ul { list-style: none; }

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

/* Global visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--ana-brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ana-brand-primary);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  transition: background-color 0.5s ease;
}

.section__header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px auto;
}

.section__title {
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section__title--light { color: var(--ana-white); }

.section__subtitle {
  font-size: var(--fs-lead);
  color: var(--ana-text-secondary);
}

.section__subtitle--light { color: var(--ana-text-light); }

/* ==========================================================================
   EYEBROW (label system)
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ana-brand-primary);
  margin-bottom: 16px;
  position: relative;
  padding-left: 34px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 2px;
  background-color: var(--ana-brand-primary);
  transform: translateY(-50%);
}

.eyebrow--light {
  color: var(--ana-brand-soft);
}
.eyebrow--light::before {
  background-color: var(--ana-brand-soft);
}

/* Centered eyebrow inside centered section headers */
.section__header .eyebrow {
  padding-left: 0;
}
.section__header .eyebrow::before {
  position: static;
  display: block;
  margin: 0 auto 12px auto;
  transform: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--ana-font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--ana-radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
  min-height: 48px;
  text-align: center;
}

.btn--primary {
  background-color: var(--ana-brand-primary);
  color: var(--ana-white);
}
.btn--primary:hover {
  background-color: var(--ana-brand-navy);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--ana-white);
  color: var(--ana-white);
}
.btn--outline:hover {
  background-color: var(--ana-white);
  color: var(--ana-brand-navy);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 15px 34px;
  font-size: 1.02rem;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 70px;
  border-bottom: 1px solid var(--ana-neutral-100);
  box-shadow: var(--ana-shadow-header);
}

.header__container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(24px, 4.5vw, 80px); /* alinea el logo con el texto del hero */
}

.header__logo {
  position: relative;
  width: 190px;
  height: 56px;
  display: block;
  justify-self: start;
}

.header__cta { justify-self: end; }

.logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.logo--light { opacity: 1; }
.logo--dark  { opacity: 0; }
.header--scrolled .logo--light { opacity: 0; }
.header--scrolled .logo--dark  { opacity: 1; }

.header__nav { display: flex; align-items: center; justify-content: center; }

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ana-white);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--ana-brand-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.header__nav-link:hover { color: var(--ana-brand-soft); }
.header__nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header--scrolled .header__nav-link { color: var(--ana-text-primary); }
.header--scrolled .header__nav-link:hover { color: var(--ana-brand-primary); }

.header__nav-btn {
  padding: 9px 20px;
  font-size: 0.88rem;
  min-height: 40px;
  border-radius: var(--ana-radius-sm);
  color: var(--ana-white);
}
.header__nav-btn:hover { color: var(--ana-white); }

/* Hamburger */
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 105;
}

.header__toggle-bar {
  width: 100%;
  height: 2px;
  background-color: var(--ana-white);
  transition: all 0.3s ease;
}

.header--scrolled .header__toggle-bar { background-color: var(--ana-brand-navy); }

.header__toggle--active .header__toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--ana-brand-navy);
}
.header__toggle--active .header__toggle-bar:nth-child(2) { opacity: 0; }
.header__toggle--active .header__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--ana-brand-navy);
}

/* Mobile menu overlay */
.header__mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 101;
  box-shadow: -10px 0 30px rgba(13, 43, 85, 0.08);
  display: flex;
  flex-direction: column;
  padding: 100px 40px 40px 40px;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header__mobile-menu--open { right: 0; }

.header__mobile-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.header__mobile-link {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ana-text-primary);
  display: block;
}
.header__mobile-link.btn {
  text-align: center;
  color: var(--ana-white);
  margin-top: 10px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ana-white);
}

.hero-bg {
  position: absolute;
  inset: 0 0 -16% 0;              /* overflow solo abajo, para parallax sin cortar el cielo */
  background-size: cover;
  background-position: center top; /* ancla arriba: se conserva cielo/avión, se recorta agua abajo */
  will-change: transform;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 43, 85, 0.9) 0%,
    rgba(13, 43, 85, 0.72) 32%,
    rgba(13, 43, 85, 0.4) 60%,
    rgba(13, 43, 85, 0.12) 100%
  );
  z-index: 2;
}

/* Signature "línea de coordinación": vertical rule on the hero */
.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 7rem;
  padding-bottom: 4rem;
  width: 100%;
  max-width: none;                          /* ocupa todo el ancho; el texto se ancla a la izquierda */
  margin: 0;
  padding-left: clamp(24px, 4.5vw, 80px);   /* texto más pegado a la izquierda */
  padding-right: 24px;
}

.hero-text {
  max-width: 660px;
}

.hero-eyebrow { color: var(--ana-brand-soft); }

.hero-title {
  font-size: var(--fs-display);
  font-weight: 800;
  color: var(--ana-white);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero-title__line {
  display: block;
  overflow: hidden;
}

.hero-subtitle {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.25rem;
  line-height: 1.65;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ==========================================================================
   EL PROBLEMA
   ========================================================================== */

.problema { background-color: var(--ana-neutral-100); padding: 0; }

.problema__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.card {
  background-color: var(--ana-white);
  border-radius: var(--ana-radius-lg);
  border: 1px solid var(--ana-neutral-100);
  box-shadow: var(--ana-shadow-card);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.card--pain {
  padding: 32px;
  opacity: 0;
  transform: translateY(30px);
}
.card--pain:hover {
  transform: translateY(-8px);
  box-shadow: var(--ana-shadow-hover);
  border-color: var(--ana-brand-ice);
}

.card__icon-wrapper {
  width: 56px;
  height: 56px;
  background-color: var(--ana-brand-ice);
  color: var(--ana-brand-primary);
  border-radius: var(--ana-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.card--pain:hover .card__icon-wrapper {
  background-color: var(--ana-brand-primary);
  color: var(--ana-white);
  transform: scale(1.05);
}

.card__icon { width: 28px; height: 28px; }

.card__title {
  font-size: var(--fs-h3);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 0.92rem;
  color: var(--ana-text-secondary);
}

.problema__footer {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.problema__footer-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--ana-text-primary);
}

/* ---- Globo terráqueo de puntos: scrollytelling China → Colombia ---- */

.globo-stage {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 80px 0 20px;
  overflow: hidden;
}

.globo-head {
  text-align: center;
  flex-shrink: 0;
}
.globo-head .section__title { margin-bottom: 10px; }

.globo-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}

#globo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Etiquetas geográficas (posicionadas por JS siguiendo la proyección) */
.globo-label {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ana-brand-navy);
  text-shadow:
    0 0 6px var(--ana-neutral-100),
    0 0 14px var(--ana-neutral-100);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}
.globo-label__flag {
  width: 34px;
  height: 22px;
  border-radius: 3px;
  box-shadow: 0 1px 5px rgba(13, 43, 85, 0.28);
  flex-shrink: 0;
}

/* Ping: onda expansiva sobre el punto */
.globo-ping {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  pointer-events: none;
  will-change: transform;
}
.globo-ping span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--ana-brand-primary);
  animation: globoPing 2.2s ease-out infinite;
}
.globo-ping span:nth-child(2) { animation-delay: 1.1s; }

@keyframes globoPing {
  0%   { transform: scale(0.6); opacity: 0.85; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* Tarjetas de etapa: protagonistas — grandes, al centro lateral, con foco */
.globo-card {
  position: absolute;
  width: min(400px, 33vw);
  background: var(--ana-white);
  border: 1px solid var(--ana-neutral-100);
  border-radius: var(--ana-radius-lg);
  box-shadow: 0 24px 60px rgba(13, 43, 85, 0.20);
  padding: 30px 32px;
  opacity: 0;
  overflow: hidden;
}
.globo-card--l { left: 4%;  top: calc(50% - 120px); }
.globo-card--r { right: 4%; top: calc(50% - 120px); }

/* numeral fantasma: jerarquía + sensación de secuencia */
.globo-card__num {
  position: absolute;
  top: 6px;
  right: 14px;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ana-brand-ice);
  letter-spacing: -0.04em;
  pointer-events: none;
}

.globo-card__step {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ana-brand-primary);
  margin-bottom: 12px;
  position: relative;
  padding-right: 84px; /* respeta el espacio del numeral fantasma */
}
.globo-card__q {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ana-text-primary);
  line-height: 1.45;
  margin-bottom: 16px;
  position: relative;
}
.globo-card__chip {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ana-brand-primary);
  background: var(--ana-brand-ice);
  padding: 5px 13px;
  border-radius: 999px;
}

/* Línea conectora que crece desde la tarjeta hacia el globo */
.globo-card__link {
  position: absolute;
  top: 50%;
  width: 74px;
  height: 2px;
  background: linear-gradient(90deg, var(--ana-brand-primary), rgba(31, 78, 140, 0));
}
.globo-card__link--r { left: 100%; transform-origin: left center; }
.globo-card__link--l {
  right: 100%;
  transform-origin: right center;
  background: linear-gradient(270deg, var(--ana-brand-primary), rgba(31, 78, 140, 0));
}

.problema__footer {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding-top: 8px;
  padding-bottom: 48px;
}


/* Fallback estático (mobile / reduced motion): globo quieto + tarjetas apiladas */
@media (max-width: 899px) {
  .globo-stage {
    height: auto;
    min-height: 0;
    padding: 80px 0 12px;
  }
  .globo-wrap {
    flex: none;
    height: 74vw;
    max-height: 420px;
  }
  .globo-card {
    position: static;
    width: auto;
    opacity: 1;
    margin: 0 24px 14px;
  }
  .globo-card__link { display: none; }
  .globo-label { font-size: 0.72rem; }
}

.globo--static .globo-card { opacity: 1 !important; transform: none !important; }
.globo--static .globo-ping { display: none; }

/* ==========================================================================
   QUÉ COORDINAMOS — grúa que baja el contenedor + tarjetas de servicio
   ========================================================================== */

.que-coordinamos {
  background-color: var(--ana-white);
  padding-top: 48px;
}

/* Escena de la grúa: el contenedor baja con el scroll dentro de la misma sección */
.grua-stage {
  position: relative;
  z-index: 1;
}

.grua-head {
  margin-bottom: 8px; /* la polea queda pegada al subtítulo */
}

/* El contenedor emerge por DEBAJO del texto: clip en el tope de la escena,
   suavizado con un degradado blanco para que no se vea un corte duro.
   El padding/margin inferior da aire a la sombra sin empujar las tarjetas. */
.grua-scene {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-bottom: 80px;
  margin-bottom: -80px;
}
.grua-scene::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(180deg, var(--ana-white) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.grua-rig {
  --grua-w: clamp(320px, 52vw, 700px);
  width: var(--grua-w);
  margin: 0 auto;
  will-change: transform;
}

/* Pivote de balanceo: el punto de la polea (arriba, al centro) */
.grua-pendulo {
  transform-origin: 50% 0;
  will-change: transform;
}

.grua-contenedor {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 0; /* vaivén idle de "colgando" */
  filter: drop-shadow(0 30px 34px rgba(13, 43, 85, 0.28));
}

/* Tarjetas de servicio: las 4 montadas sobre la base del contenedor.
   Rompe el ancho del container (1200) para que las 4 no queden angostas. */
.servicios {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin-top: -128px;
}

.servicios__fila {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .servicios__fila { grid-template-columns: repeat(2, 1fr); }
}

.servicio {
  background: var(--ana-white);
  border: 1px solid var(--ana-border);
  border-radius: var(--ana-radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(13, 43, 85, 0.10);
  display: flex;
  flex-direction: column;
}
.servicio:hover {
  box-shadow: var(--ana-shadow-hover);
  border-color: var(--ana-brand-primary);
}

.servicio__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ana-brand-ice);
}
.servicio__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Velo azul marino para cohesionar las fotos con la marca */
.servicio__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 43, 85, 0.08) 0%, rgba(13, 43, 85, 0.32) 100%);
}

.servicio__num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ana-brand-navy);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 999px;
}

.servicio__body { padding: 24px 26px 30px; }

.servicio__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ana-text-primary);
  margin-bottom: 10px;
}

.servicio__text {
  font-size: 0.95rem;
  color: var(--ana-text-secondary);
  line-height: 1.65;
}

.que-coordinamos__footer {
  text-align: center;
  margin-top: 56px;
}

@media (max-width: 899px) {
  .grua-rig { --grua-w: min(86vw, 540px); }
  .servicios { margin-top: clamp(-128px, -16vw, -48px); }
}

@media (max-width: 600px) {
  .servicios__fila { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CÓMO FUNCIONA (PROCESO — PIPELINE VERTICAL SOBRE AZUL OSCURO)
   Lista vertical (texto plano, sin tarjetas): una línea "pipeline" con una
   caja que baja mientras cada paso aparece uno a uno (GSAP), reversible.
   Fondo azul marino, textos claros. Sin pin ni scroll-jacking.
   ========================================================================== */

.como-funciona {
  background: linear-gradient(180deg, #0D2B55 0%, #0A2145 100%);
  padding-top: 56px;
}

.pipeline-stage { position: relative; }

.pipeline {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  padding-top: 8px;
}

/* Línea vertical (columna izquierda) */
.pipeline__track,
.pipeline__fill {
  position: absolute;
  left: 32px;
  top: 0;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
}
.pipeline__track {
  height: 100%;
  background-color: rgba(255, 255, 255, 0.14);
}
.pipeline__fill {
  height: 0;
  opacity: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--ana-brand-soft), var(--ana-brand-light));
}

/* La caja que baja por la línea (marcador de progreso) — va sola, sin chip */
.pipeline__box {
  position: absolute;
  left: 32px;
  top: 0;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 3;
}
.pipeline__box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

/* Solo cuando la anima el JS aparecen la caja y el relleno de la línea */
.pipeline--animated .pipeline__fill,
.pipeline--animated .pipeline__box { opacity: 1; }

/* Lista de pasos */
.pipeline__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}
.pipeline__step {
  position: relative;
  padding-left: 96px;
  padding-bottom: 48px;
}
.pipeline__step:last-child { padding-bottom: 0; }

.pipeline__node {
  position: absolute;
  left: 32px;
  top: 7px;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--ana-brand-soft);
  box-shadow: 0 0 0 5px rgba(127, 171, 214, 0.18);
}

.pipeline__num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ana-brand-soft);
  margin-bottom: 6px;
}
.pipeline__title {
  color: var(--ana-white);
  font-size: 1.18rem;
  line-height: 1.28;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.pipeline__text {
  color: #B9C6DA;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 760px;
}

@media (max-width: 600px) {
  .pipeline__track,
  .pipeline__fill,
  .pipeline__box,
  .pipeline__node { left: 24px; }
  .pipeline__step { padding-left: 72px; padding-bottom: 42px; }
  .pipeline__box { width: 66px; height: 66px; }
  .pipeline__title { font-size: 1.06rem; }
}

.timeline__footer { text-align: center; margin-top: 56px; }
.timeline__footer-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ana-white);
}

/* ==========================================================================
   SECTORES
   ========================================================================== */

.sectores { background-color: var(--ana-white); }

.sectores__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.sectores__sector {
  display: flex;
  gap: 22px;
  background-color: var(--ana-neutral-50);
  padding: 30px;
  border-radius: var(--ana-radius-lg);
  border: 1px solid var(--ana-neutral-100);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}
.sectores__sector:hover {
  transform: translateY(-4px);
  border-color: var(--ana-brand-ice);
  background-color: var(--ana-white);
  box-shadow: var(--ana-shadow-card);
}

.sectores__sector-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--ana-radius-md);
  background-color: var(--ana-brand-ice);
  color: var(--ana-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sectores__sector-icon svg { width: 26px; height: 26px; }

.sectores__sector-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.sectores__sector-text {
  font-size: 0.9rem;
  color: var(--ana-text-secondary);
}

.sectores__footer { text-align: center; }
.sectores__footer-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ana-text-primary);
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   DIFERENCIADORES
   ========================================================================== */

.diferenciadores {
  background-color: var(--ana-neutral-50);
  color: var(--ana-text-primary);
  padding-top: 56px;
  padding-bottom: 64px;
}

.diferenciadores__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.diferenciadores__col {
  text-align: left;
  padding: 32px 28px;
  background: var(--ana-white);
  border: 1px solid var(--ana-border);
  border-radius: var(--ana-radius-lg);
  box-shadow: var(--ana-shadow-card);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}
.diferenciadores__col:hover {
  border-color: rgba(127, 171, 214, 0.5);
  box-shadow: var(--ana-shadow-hover);
  transform: translateY(-4px);
}

/* Stats variant (números con count-up) */
.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.stat__number {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--ana-brand-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.95rem;
  color: var(--ana-text-secondary);
  line-height: 1.5;
  max-width: 200px;
}

.diferenciadores__accent {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ana-brand-soft);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
}
.diferenciadores__accent-plus {
  font-size: 1.6rem;
  margin-left: 2px;
  margin-bottom: 0.35rem;
}

.diferenciadores__accent--icon {
  width: 56px;
  height: 56px;
  border-radius: var(--ana-radius-md);
  background-color: rgba(127, 171, 214, 0.15);
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.diferenciadores__accent--icon svg { width: 28px; height: 28px; }

.diferenciadores__col-title {
  font-size: 1.15rem;
  color: var(--ana-white);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.diferenciadores__col-text {
  font-size: 0.9rem;
  color: var(--ana-text-light);
  line-height: 1.55;
}

.diferenciadores__footer {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.diferenciadores__footer-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ana-brand-primary);
  font-style: italic;
}

/* ==========================================================================
   FORMULARIO DE CALIFICACIÓN
   ========================================================================== */

.formulario {
  background-color: var(--ana-white);
  color: var(--ana-text-primary);
}

.formulario__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.formulario__intro { position: sticky; top: 110px; }

.formulario__intro .section__title { margin-bottom: 18px; }

.formulario__filter {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(31, 78, 140, 0.07), rgba(74, 134, 197, 0.03));
  border: 1px solid var(--ana-brand-ice);
  border-radius: var(--ana-radius-md);
}
.formulario__filter-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ana-brand-primary);
  color: var(--ana-white);
  box-shadow: 0 4px 12px rgba(31, 78, 140, 0.35);
}
.formulario__filter-icon svg { width: 20px; height: 20px; }
.formulario__filter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ana-brand-primary);
  margin-bottom: 4px;
}
.formulario__filter-text {
  font-size: 0.88rem;
  color: var(--ana-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.formulario__alt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ana-neutral-100);
}
.formulario__alt-text {
  font-size: 0.9rem;
  color: var(--ana-text-secondary);
  margin-bottom: 10px;
}
.formulario__alt-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--ana-brand-primary);
}
.formulario__alt-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ana-whatsapp);
}
.formulario__alt-link:hover { color: var(--ana-brand-navy); }

.formulario__form {
  background-color: var(--ana-white);
  border: 1px solid var(--ana-border);
  border-radius: var(--ana-radius-lg);
  padding: 40px;
  box-shadow: var(--ana-shadow-hover);
}

.formulario__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formulario__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ana-text-primary);
  margin-bottom: 7px;
}
.field__req { color: var(--ana-brand-primary); }

.field input,
.field select,
.field textarea {
  font-family: var(--ana-font-primary);
  font-size: 0.95rem;
  color: var(--ana-text-primary);
  padding: 12px 14px;
  border: 1.5px solid var(--ana-neutral-200);
  border-radius: var(--ana-radius-sm);
  background-color: var(--ana-neutral-50);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  min-height: 46px;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ana-neutral-400); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ana-brand-primary);
  background-color: var(--ana-white);
  box-shadow: var(--ana-focus);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--ana-danger);
}

.formulario__submit { width: 100%; }

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.2em;
  text-align: center;
}
.form-status--success { color: var(--ana-success); }
.form-status--error { color: var(--ana-danger); }

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */

.preguntas { background-color: var(--ana-neutral-50); }

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

.faq__item {
  background-color: var(--ana-white);
  border: 1px solid var(--ana-neutral-100);
  border-radius: var(--ana-radius-md);
  padding: 4px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq__item[open] {
  border-color: var(--ana-brand-ice);
  box-shadow: var(--ana-shadow-card);
}

.faq__question {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ana-text-primary);
  padding: 20px 40px 20px 0;
  position: relative;
  letter-spacing: -0.01em;
}
.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ana-brand-primary);
  border-bottom: 2px solid var(--ana-brand-primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}
.faq__item[open] .faq__question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq__answer {
  padding: 0 0 22px 0;
  color: var(--ana-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: var(--ana-brand-navy);
  color: var(--ana-white);
  padding: 90px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container { display: flex; flex-direction: column; }

.footer__main {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px auto;
}
.footer__title {
  color: var(--ana-white);
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.footer__subtitle {
  color: var(--ana-text-light);
  font-size: var(--fs-lead);
  margin-bottom: 36px;
}

.footer__info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  justify-content: center;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 0.95rem;
  color: var(--ana-text-light);
}
.footer__link { color: var(--ana-text-light); transition: color 0.2s ease; }
.footer__link:hover { color: var(--ana-brand-soft); }
.footer__logo-img { max-height: 140px; width: auto; }
.footer__description {
  font-size: 0.9rem;
  color: var(--ana-text-light);
  line-height: 1.6;
}

.footer__info-title {
  font-size: 1rem;
  color: var(--ana-white);
  margin-bottom: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ana-text-light);
}
.footer__contact-link:hover { color: var(--ana-brand-soft); }
.footer__contact-icon { width: 20px; height: 20px; flex-shrink: 0; }

.footer__copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ana-neutral-400);
}

/* ==========================================================================
   STICKY FLOATING WHATSAPP CTA
   ========================================================================== */

.sticky-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  visibility: hidden;
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.sticky-cta__desktop {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--ana-whatsapp);
  color: var(--ana-white);
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sticky-cta__desktop:hover {
  background-color: var(--ana-whatsapp-hover);
  color: var(--ana-white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.sticky-cta__whatsapp-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.sticky-cta__mobile { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .problema__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .diferenciadores__grid { grid-template-columns: repeat(2, 1fr); }
  .formulario__layout { grid-template-columns: 1fr; gap: 36px; }
  .formulario__intro { position: static; }
  .footer__info { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
    padding-bottom: 60px;
  }

  .section { padding: 70px 0; }
  .section__header { margin-bottom: 44px; }

  .header { height: 70px; }
  .header__container { display: flex; justify-content: space-between; }
  .header__logo { width: 160px; height: 48px; }
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__toggle { display: flex; }

  .hero-text { padding-left: 20px; }

  /* En mobile centramos el encuadre (se ve el barco) y reforzamos el overlay */
  .hero-bg { background-position: center; }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(13, 43, 85, 0.86) 0%,
      rgba(13, 43, 85, 0.7) 45%,
      rgba(13, 43, 85, 0.78) 100%
    );
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .btn { width: 100%; }

  .problema__grid,
  .sectores__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .diferenciadores__grid { grid-template-columns: 1fr; gap: 16px; }

  .formulario__form { padding: 28px; }
  .formulario__grid { grid-template-columns: 1fr; }

  .footer__info { grid-template-columns: 1fr; gap: 40px; }
  .footer__copyright {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer__copy-restriction { text-align: center; }

  /* Mobile sticky CTA */
  .sticky-cta { bottom: 0; right: 0; width: 100%; }
  .sticky-cta__desktop { display: none; }
  .sticky-cta__mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--ana-whatsapp);
    color: var(--ana-white);
    padding: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 -4px 15px rgba(13, 43, 85, 0.15);
    width: 100%;
  }
  .sticky-cta__mobile:hover { background-color: var(--ana-whatsapp-hover); color: var(--ana-white); }
}

@media (max-width: 480px) {
  .diferenciadores__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }

  .hero-bg { transform: none !important; inset: 0 !important; }

  .hero-title__line,
  .hero-subtitle,
  .hero-actions,
  .card--pain,
  .servicio,
  .sectores__sector,
  .diferenciadores__col,
  .sticky-cta__desktop {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .footer__cta { animation: none !important; }

  /* Globo estático: tarjetas apiladas, sin pings */
  .globo-stage { height: auto !important; }
  .globo-wrap { flex: none; height: 60vh; }
  .globo-ping span { animation: none !important; }
  .globo-card {
    position: static !important;
    width: auto !important;
    opacity: 1 !important;
    transform: none !important;
    margin: 0 24px 14px;
  }
  .globo-card__link { display: none !important; }
}
