/* =============================================================
   ALESTY GLOBAL — styles.css (v2)
   Estilos generales + DESKTOP / LAPTOP
   -------------------------------------------------------------
   ÍNDICE:
   [01] VARIABLES Y RESET
   [02] TIPOGRAFÍA Y UTILIDADES BASE
   [03] BOTONES
   [04] HEADER / NAV
   [05] HERO
   [06] CINTA AZUL (FEATURE BAR)
   [07] NOSOTROS / STAT CARDS
   [08] SERVICIOS
   [09] ¿POR QUÉ ELEGIRNOS?
   [10] ESENCIA + UNIDADES
   [11] ALIADOS
   [12] CONTACTO (form + info + mapa + bandeja teléfono)
   [13] FOOTER
   [14] WHATSAPP FLOTANTE
   [15] REVEAL ANIMATIONS
   [16] BREAKPOINTS DE TABLET (no-mobile)
   ============================================================= */


/* =============================================================
   [01] VARIABLES Y RESET
   ============================================================= */
:root{
  /* --- Colores de marca --- */
  --blue-900:#072551;
  --blue-800:#0b3470;
  --blue-700:#0e4a99;
  --blue-500:#1675cf;
  --blue-400:#3aa6f2;
  --blue-50: #eaf3ff;

  /* --- Neutrales --- */
  --ink:    #0b1728;
  --ink-2:  #1d2a3d;
  --muted:  #5f6d7e;
  --line:   #e2e8f1;
  --soft:   #f4f8fd;
  --white:  #ffffff;
  --black:  #0a0e15;

  /* --- Sombras y radios --- */
  --shadow-sm: 0 6px 18px rgba(11,52,112,.08);
  --shadow:    0 18px 44px rgba(11,52,112,.12);
  --shadow-lg: 0 28px 68px rgba(11,52,112,.18);
  --radius:    22px;
  --radius-lg: 28px;
  --header:    78px;

  /* --- Escala tipográfica --- */
  --fs-xs:   .82rem;
  --fs-sm:   .92rem;
  --fs-base: 1rem;
  --fs-md:   1.05rem;
  --fs-lg:   1.18rem;
  --fs-xl:   1.4rem;
  --fs-h3:   clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-h2:   clamp(1.85rem, 3.6vw, 2.85rem);
  --fs-h1:   clamp(2.2rem, 5.2vw, 4rem);
}

*,
*::before,
*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }


/* =============================================================
   [02] TIPOGRAFÍA Y UTILIDADES BASE
   ============================================================= */
body{
  margin:0;
  font-family:"Inter","Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }

h1,h2,h3,h4,h5{
  font-family:"Plus Jakarta Sans","Inter",sans-serif;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0;
}

p{ margin: 0 0 .9em; }

.container{
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.center{ text-align:center; }
.center .eyebrow{ margin-inline:auto; }
.center p{ max-width:680px; margin: 14px auto 0; color: var(--muted); }

.eyebrow,
.tag{
  display:inline-flex; align-items:center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blue-50);
  border: 1px solid #c8defb;
  color: var(--blue-800);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow.light{
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color:#bcdcff;
}

.section{ padding: 100px 0; }


/* =============================================================
   [03] BOTONES — efecto suave izquierda → derecha
   ============================================================= */
.btn{
  position:relative;
  isolation:isolate;
  display:inline-flex; align-items:center; justify-content:center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .02em;
  border: 2px solid var(--blue-800);
  cursor:pointer;
  overflow:hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .35s cubic-bezier(.2,.8,.2,1),
              color .35s ease;
}
.btn::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, var(--blue-500) 0%, var(--blue-800) 100%);
  transform: translateX(-101%);
  transition: transform .55s cubic-bezier(.7,0,.2,1);
  z-index:-1;
}
.btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(22,117,207,.28);
}
.btn:hover::before{ transform: translateX(0); }

.btn.primary{ background: var(--blue-800); color: #fff; }
.btn.secondary{ background: #fff; color: var(--blue-800); }
.btn.secondary:hover{ color:#fff; border-color: var(--blue-500); }
.btn.full{ width:100%; }
.btn svg{ width:18px; height:18px; }


/* =============================================================
   [04] HEADER / NAV
   ============================================================= */
.header{
  position: fixed; inset: 0 0 auto;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap{
  height: var(--header);
  display:flex; align-items:center; justify-content:space-between;
}
.brand img{ width: 140px; }

.nav{
  display:flex; align-items:center; gap: 28px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: #2c3a4f;
}
.nav a{ position:relative; padding: 6px 0; }
.nav a:not(.nav-cta)::after{
  content:""; position:absolute; left:0; bottom:-4px;
  width:0; height:2px;
  background: var(--blue-500);
  transition: width .3s ease;
}
.nav a:not(.nav-cta):hover::after{ width:100%; }

/* >>> CORRECCIÓN v2: botón Contacto más ancho <<< */
.nav-cta{
  padding: 14px 28px !important;
  border-radius: 12px !important;
  background: var(--blue-800) !important;
  color: #fff !important;
  letter-spacing: .03em;
  display: inline-block !important;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.nav-cta:hover{
  background: var(--blue-500);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22,117,207,.3);
}
.nav-cta::after{ display:none !important; }

.menu{
  display:none;
  background:none; border:0;
  width: 42px; height: 42px;
  cursor:pointer;
}
.menu span{
  display:block; height: 2px; width: 26px;
  background: var(--blue-800);
  margin: 6px auto;
  transition: .3s;
}


/* =============================================================
   [05] HERO
   ============================================================= */
.hero{
  position: relative;
  padding-top: var(--header);
  min-height: 100vh;
  background: linear-gradient(110deg, #eef7ff 0%, #fff 52%, #edf7ff 100%);
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset: var(--header) 0 80px;
  background-image:
    linear-gradient(rgba(11,52,112,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,52,112,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 72%);
}
.hero-grid{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items:center;
  padding: 70px 0 130px;
}

.hero-copy h1{
  margin: 22px 0 18px;
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -.04em;
}
.hero-copy h1 span{ color: var(--blue-500); }
.hero-copy p{
  color: var(--muted);
  font-size: var(--fs-md);
  max-width: 520px;
}
.actions{
  display:flex; gap: 14px; flex-wrap:wrap;
  margin-top: 28px;
}

/* HERO photo: solo imagen */
.hero-photo{
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo img{
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}


/* =============================================================
   [06] CINTA AZUL (FEATURE BAR)
   ============================================================= */
.feature-bar{
  position: absolute; left:0; right:0; bottom:0;
  z-index: 2;
  background: linear-gradient(90deg, var(--blue-800), #0f5da8);
  color:#fff;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
}
.feature-item{
  display:flex; align-items:center; justify-content:center;
  gap: 12px;
  padding: 20px 14px;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-right: 1px solid rgba(255,255,255,.12);
  line-height: 1;
}
.feature-item:last-child{ border-right: 0; }
.feature-item i{
  display:inline-flex;
  align-items:center; justify-content:center;
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.feature-item i svg{
  width: 22px; height: 22px;
  display:block;
}
.feature-item span{
  display:inline-flex; align-items:center;
  line-height: 1;
}


/* =============================================================
   [07] NOSOTROS / STAT CARDS
   ============================================================= */
.about-grid{
  display:grid;
  grid-template-columns: 1fr .95fr;
  gap: 70px;
  align-items:center;
}
.section-copy h2{
  font-size: var(--fs-h2);
  font-weight: 800;
  margin: 18px 0 14px;
}
.section-copy p{
  color: var(--muted);
  font-size: var(--fs-md);
}

.stats-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card{
  position:relative;
  min-height: 200px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  overflow:hidden;
}
.stat-card i{
  display:inline-flex;
  width: 38px; height: 38px;
  align-items:center; justify-content:center;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
}
.stat-card i svg{ width: 22px; height: 22px; }

.stat-card strong{
  display:block;
  font-family:"Plus Jakarta Sans", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.05;
  margin: 16px 0 6px;
  letter-spacing: -.03em;
}
.stat-card span{
  display:block;
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.stat-card.blue{
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  color: #fff;
  border-color: transparent;
}

/* >>> CORRECCIÓN v2: línea blanca SOLO sobre el fondo azul, sin "asomar" del card <<<
   Antes: la barra usaba border-radius arriba y se veía un sutil tono azul detrás.
   Ahora: la barra está a 0 (top:0), va a todo el ancho, sin border-radius (porque
   .stat-card ya tiene overflow:hidden). Queda 100% blanca y nítida. */
.stat-card.blue::before{
  content:"";
  position:absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: #ffffff;
  border-radius: 0;          /* <- CLAVE: sin radius para que no asome el azul */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  z-index: 3;                /* sobre el degradado */
}
.stat-card.blue:hover::before{ transform: scaleX(1); }

.stat-card.white{
  background: #fff;
  color: var(--ink);
}
.stat-card.white i{
  background: var(--blue-50);
  color: var(--blue-800);
}
.stat-card.white::before{
  content:"";
  position:absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--blue-500);
  border-radius: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  z-index: 3;
}
.stat-card.white:hover::before{ transform: scaleX(1); }

.stat-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}


/* =============================================================
   [08] SERVICIOS — v3 (estilo catálogo limpio, premium)
   -------------------------------------------------------------
   - Fondo oscuro elegante (paleta de marca)
   - Cards con imagen rectangular grande + texto debajo + línea
   - Sin overlays, sin iconos flotando
   - Hover: zoom suave en imagen + levitación de la card
   - Imágenes centradas profesionalmente (object-fit: cover + center)
   ============================================================= */
.services-v3{
  position: relative;
  padding: 110px 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(58,166,242,.14), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(22,117,207,.14), transparent 48%),
    linear-gradient(135deg, #082554 0%, #0a376f 50%, #0a2f65 100%);
  color: #fff;
  overflow: hidden;
}

/* Patrón sutil en el fondo */
.services-v3::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.services-v3 .container{ position: relative; z-index: 1; }

/* ---- HEADER de la sección ---- */
.services-v3-head{
  text-align: center;
  margin-bottom: 72px;
}
.services-v3-eyebrow{
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #bcdcff;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.services-v3-head h2{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  color: #fff;
}
.services-v3-head p{
  margin: 0 auto;
  max-width: 600px;
  color: #cfe2fa;
  font-size: 1.05rem;
}

/* ---- GRID del catálogo ---- */
.services-v3-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ---- CARD individual ---- */
.srv-card{
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1),
              box-shadow .5s cubic-bezier(.2,.8,.2,1),
              border-color .4s ease;
  cursor: default;
}
.srv-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 28px 60px rgba(0,0,0,.45),
              0 0 0 1px rgba(58,166,242,.25);
  border-color: rgba(58,166,242,.35);
}

/* ---- IMAGEN del servicio ---- */
.srv-card-img{
  position: relative;
  width: 100%;
  /* Rectangular: 4:3 (ligeramente más alto que cuadrado) */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0e4a99 0%, #1675cf 100%);
}
.srv-card-img img{
  width: 100%;
  height: 100%;
  /* CENTRADO PROFESIONAL: cualquier tamaño de imagen se adapta y se centra */
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform .8s cubic-bezier(.2,.8,.2,1),
              filter .5s ease;
  filter: saturate(1) brightness(1);
}

/* HOVER: zoom suave en la imagen */
.srv-card:hover .srv-card-img img{
  transform: scale(1.08);
  filter: saturate(1.08) brightness(1.04);
}

/* Borde inferior degradado sutil entre imagen y texto */
.srv-card-img::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50px;
  background: linear-gradient(180deg, transparent, rgba(7,37,81,.18));
  pointer-events: none;
}

/* ---- TEXTO debajo ---- */
.srv-card-text{
  padding: 26px 22px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.srv-card-text h3{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -.01em;
  transition: color .35s ease;
}
.srv-card:hover .srv-card-text h3{ color: #7ec1ff; }

/* ---- LÍNEA decorativa debajo del texto ---- */
.srv-card-line{
  display: block;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  border-radius: 999px;
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}
.srv-card:hover .srv-card-line{
  width: 70px;
}


/* =============================================================
   [09] ¿POR QUÉ ELEGIRNOS?  — efectos siempre activos
   ============================================================= */
.why-section{ background: #fbfdff; }

/* >>> CORRECCIÓN v2: separación entre eyebrow y título <<< */
.why-head .eyebrow{ margin-bottom: 28px; }
.why-head h2{ margin-top: 6px; }

.why-grid{
  position:relative;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 90px;
  padding: 60px 0 0;
}

/* >>> CORRECCIÓN v2: línea de progreso justo en el CENTRO VERTICAL del card <<<
   Las cards miden ~280px desde el padding-top de why-grid. El centro vertical
   del card está aprox en y=200px, que coincide con el centro del título y
   contenido. Movemos la línea ahí. */
.why-progress{
  position:absolute;
  top: 200px;            /* <- centro de la mitad del card */
  left: 6%; right: 6%;
  height: 3px;
  background: rgba(11,52,112,.12);
  border-radius: 999px;
  overflow:hidden;
  z-index: 0;
}
.why-progress-fill{
  position:absolute; inset:0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-800));
  border-radius: 999px;
  transition: width 1.6s cubic-bezier(.2,.8,.2,1);
}
.why-grid.in-view .why-progress-fill{ width: 100%; }

.why-card{
  position:relative;
  text-align:center;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 22px 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  z-index:1;
  opacity: 0;
  transform: translateY(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .5s ease, box-shadow .5s ease;
}
.why-grid.in-view .why-card{
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s ease;
}
.why-grid.in-view .why-card[data-step="1"]{ transition-delay:.1s; }
.why-grid.in-view .why-card[data-step="2"]{ transition-delay:.3s; }
.why-grid.in-view .why-card[data-step="3"]{ transition-delay:.5s; }
.why-grid.in-view .why-card[data-step="4"]{ transition-delay:.7s; }

.why-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

/* Numerito flotante arriba */
.why-step{
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family:"Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  color:#fff;
  background: var(--blue-800);
  padding: 7px 16px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 6px 14px rgba(11,52,112,.25);
}

/* >>> CORRECCIÓN v2: icono central + efectos SIEMPRE activos <<< */
.why-icon{
  position:relative;
  width: 84px; height: 84px;
  margin: 8px auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, var(--blue-50));
  border: 2px solid var(--blue-50);
  display:grid; place-items:center;
  color: var(--blue-500);
  z-index: 1;
  animation: whyIconFloat 3.5s ease-in-out infinite;
}
.why-icon svg{
  width: 32px; height: 32px;
  position: relative;
  z-index: 2;
  animation: whyIconBob 2.8s ease-in-out infinite;
}

/* Anillo punteado giratorio (siempre activo) */
.why-icon-ring{
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed var(--blue-400);
  opacity: .55;
  animation: whyRingSpin 14s linear infinite;
  pointer-events: none;
}

/* Pulso expansivo (siempre activo) */
.why-icon-pulse{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(22,117,207,.25);
  z-index: 0;
  animation: whyPulse 2.4s ease-out infinite;
  pointer-events: none;
}

/* Cards alternan delays para que los pulsos no salgan al unísono */
.why-card[data-step="1"] .why-icon-pulse{ animation-delay: 0s; }
.why-card[data-step="2"] .why-icon-pulse{ animation-delay: .6s; }
.why-card[data-step="3"] .why-icon-pulse{ animation-delay: 1.2s; }
.why-card[data-step="4"] .why-icon-pulse{ animation-delay: 1.8s; }

.why-card[data-step="1"] .why-icon{ animation-delay: 0s; }
.why-card[data-step="2"] .why-icon{ animation-delay: .3s; }
.why-card[data-step="3"] .why-icon{ animation-delay: .6s; }
.why-card[data-step="4"] .why-icon{ animation-delay: .9s; }

.why-card:hover .why-icon{
  border-color: var(--blue-500);
  background: linear-gradient(135deg, var(--blue-50), #d6e9ff);
  transform: scale(1.06);
}

@keyframes whyIconFloat{
  0%, 100%{ transform: translateY(0); }
  50%    { transform: translateY(-4px); }
}
@keyframes whyIconBob{
  0%, 100%{ transform: scale(1); }
  50%    { transform: scale(1.08); }
}
@keyframes whyRingSpin{
  to{ transform: rotate(360deg); }
}
@keyframes whyPulse{
  0%   { transform: scale(.9); opacity: .55; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.why-card h3{
  font-size: var(--fs-lg);
  font-weight: 700;
  margin: 0 0 10px;
}
.why-card p{
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0;
}


/* =============================================================
   [10] ESENCIA + UNIDADES
   ============================================================= */
.split-section{ background: var(--soft); }

.split-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.essence,
.units{
  display:flex;
  flex-direction: column;
}

.block-head{
  min-height: 130px;
  display:flex; flex-direction:column; justify-content:flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.block-head h2{
  font-size: var(--fs-h2);
  font-weight: 800;
}

details{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
details[open]{ box-shadow: var(--shadow); }
summary{
  cursor:pointer;
  font-weight: 700;
  color: var(--blue-800);
  font-size: var(--fs-md);
  list-style:none;
  position:relative;
  padding-right: 30px;
}
summary::-webkit-details-marker{ display:none; }
summary::after{
  content:"+";
  position:absolute; right:0; top:50%;
  transform: translateY(-50%);
  font-size: 1.6rem; line-height: 1;
  color: var(--blue-500);
  transition: transform .3s ease;
}
details[open] summary::after{ content:"–"; }

details p{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.unit-collage{
  flex: 1;
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 380px;
}
.unit-img{
  border-radius: 18px;
  overflow:hidden;
  background: linear-gradient(135deg, #eaf5ff, #b9daf6);
  display:grid; place-items:center;
  color: var(--blue-800);
  font-weight: 700;
  font-size: var(--fs-sm);
  position:relative;
  box-shadow: var(--shadow-sm);
  transition: transform .4s ease, box-shadow .4s ease;
}
.unit-img:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.unit-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.unit-large       { grid-row: 1 / span 2; }
.unit-small-top   { grid-row: 1; grid-column: 2; }
.unit-small-bottom{ grid-row: 2; grid-column: 2; }


/* =============================================================
   [11] ALIADOS  (13 logos en grid)
   ============================================================= */
.allies-section{ background: #fff; }

.allies-grid{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;     /* <- antes: center. Ahora todo se pega arriba */
}

/* La columna izquierda se queda como bloque compacto pegado arriba */
.allies-grid .section-copy{
  position: sticky;       /* opcional: el texto sigue al hacer scroll */
  top: 100px;             /* distancia desde arriba (header de 78px + margen) */
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Título de aliados: tamaño contenido y line-height ajustado */
.allies-grid .section-copy h2{
  font-size: clamp(1.6rem, 2.4vw, 1.2rem);
  line-height: 1.2;
  max-width: 70%;
  margin-bottom: 35px;
}

/* Párrafo de aliados: texto más compacto y justificado */
.allies-grid .section-copy p{
  font-size: .95rem;
  line-height: 1.65;
  max-width: 100%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* >>> v2: 13 logos → grid de 4 columnas, distribuye limpio (4-4-4-1) <<< */
.logo-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.logo-box{
  background: #fff;
  border: 4px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  min-height: 110px;
  display:grid; place-items:center;
  color: var(--blue-800);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  padding: 12px;
}
.logo-box img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter .3s ease;
}
.logo-box:hover{
  transform: translateY(-12px);
  box-shadow: var(--shadow);
  border-color: var(--blue-500);
}
.logo-box:hover img{ filter: grayscale(0%); }


/* =============================================================
   [12] CONTACTO — form + info + bandeja teléfono + mapa
   ============================================================= */
.contact{
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

/* >>> CORRECCIÓN v2: header del contacto — eyebrow separado, párrafo a la izquierda y justificado <<< */
.contact-head{
  margin-bottom: 14px;
  text-align: left;     /* el párrafo va a la izquierda */
}
.contact-head .eyebrow{ margin-bottom: 28px; }
.contact-head h2{
  font-size: var(--fs-h2);
  font-weight: 800;
  margin: 6px 0 16px;
  text-align: left;
}
.contact-head p{
  max-width: 720px;
  color: var(--muted);
  text-align: justify;
  text-justify: inter-word;
  margin: 0;
}

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 40px;
}

/* ----- Formulario ----- */
.contact-form{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  display:flex; flex-direction:column;
  gap: 16px;
}
.form-head h3{
  font-size: var(--fs-xl);
  font-weight: 800;
  margin: 0 0 6px;
}
.form-head p{
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.field{ display:flex; flex-direction:column; gap: 6px; }
.field label{
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #2c3a4f;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: #f9fbfe;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea{ resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(22,117,207,.12);
  background: #fff;
}
.form-note{
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ----- Info derecha ----- */
.contact-info{
  display:flex; flex-direction:column;
  gap: 18px;
}

.info-block{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.info-block h3{
  font-size: var(--fs-xl);
  font-weight: 800;
  margin: 0 0 4px;
}
.info-sub{
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0 0 18px;
}

/* ----- Iconos de redes sociales ----- */
.social-list{
  list-style:none;
  margin:0; padding:0;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.social-list li{
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-link{
  position:relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1/1;
  max-height: 70px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--blue-800);
  transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.social-link i{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 1;
}
.social-link svg{
  width: 24px;
  height: 24px;
  display: block;
}
.social-link:hover{
  transform: translateY(-3px);
  background: var(--blue-800);
  color: #fff;
  box-shadow: 0 12px 24px rgba(11,52,112,.22);
}
.social-link[data-tip="WhatsApp"]:hover{ background:#25d366; }
.social-link[data-tip="Facebook"]:hover{ background:#1877f2; }
.social-link[data-tip="TikTok"]:hover{ background:#010101; }
.social-link[data-tip="Correo"]:hover{ background: #0b3470; }
.social-link[data-tip="Teléfono"]:hover{ background: var(--blue-500); }

/* Tooltip del nombre */
.social-tip{
  position:absolute;
  bottom: calc(100% + 8px);
  left:50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color:#fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events:none;
  transition: opacity .25s ease, transform .25s ease;
}
.social-tip::after{
  content:"";
  position:absolute;
  top: 100%; left:50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.social-link:hover .social-tip{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ----- Bandeja del número (al hacer clic en teléfono) ----- */
.phone-display{
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--blue-50);
  border: 1px solid #c8defb;
  color: var(--blue-800);
  font-weight: 700;
  animation: phoneIn .3s ease both;
}
.phone-display[hidden]{ display: none; }
.phone-display i{
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  color: var(--blue-500);
}
.phone-display i svg{ width: 20px; height: 20px; }
.phone-number{
  flex: 1;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.phone-copy,
.phone-close{
  background: #fff;
  border: 1px solid #c8defb;
  color: var(--blue-800);
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.phone-close{ padding: 6px 10px; font-size: 1.1rem; line-height: 1; }
.phone-copy:hover,
.phone-close:hover{
  background: var(--blue-500);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}
.phone-copy.copied{
  background: #25d366;
  color: #fff;
  border-color: transparent;
}
@keyframes phoneIn{
  from{ opacity: 0; transform: translateY(-6px); }
  to  { opacity: 1; transform: none; }
}

/* ----- Bloque de dirección ----- */
.address-block{
  display:flex; align-items:center;
  gap: 16px;
}
.addr-icon{
  flex-shrink:0;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-800);
  display:grid; place-items:center;
}
.addr-icon svg{ width: 22px; height: 22px; }
.address-block h4{
  font-size: var(--fs-md);
  font-weight: 700;
  margin: 0 0 2px;
}
.address-block p{
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ----- Mapa ----- */
/* >>> CORRECCIÓN v2: el mapa crece para que el .contact-info termine a la
   misma altura que el formulario. flex:1 lo estira al espacio sobrante. <<< */
.map-card{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  flex: 1;
  min-height: 320px;
}
.map-card iframe{
  width:100%; height:100%;
  border: 0;
  display:block;
}


/* =============================================================
   [13] FOOTER
   ============================================================= */
.footer{
  background: var(--black);
  color: #c9d1de;
  padding: 70px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand img{
  width: 190px;
  margin-bottom: 22px;
  filter: brightness(0) invert(1);
  display: block;
  transition: opacity .3s ease, transform .3s ease;
}
.footer-brand img:hover{
  opacity: .85;
  transform: translateY(-2px);
}
.footer-brand p{
  color:#9aa6b8;
  font-size: var(--fs-sm);
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h5{
  color:#fff;
  font-size: var(--fs-md);
  font-weight: 700;
  margin: 6px 0 18px;
  letter-spacing: -.01em;
}
.footer-col ul{
  list-style:none;
  margin:0; padding:0;
  display:flex; flex-direction:column;
  gap: 11px;
}
.footer-col a{
  display:inline-flex; align-items:center;
  gap: 10px;
  color:#9aa6b8;
  font-size: var(--fs-sm);
  transition: color .25s ease, transform .25s ease;
}
.footer-col a:hover{
  color: var(--blue-400);
  transform: translateX(2px);
}
.footer-col a svg{
  width: 16px; height: 16px;
  flex-shrink: 0;
}

.footer-social{
  display:flex; gap: 10px;
  margin-top: 18px;
}
.footer-social a{
  display:grid; place-items:center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color:#cdd5e2;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.footer-social a:hover{
  background: var(--blue-500);
  color: #fff;
  transform: translateY(-3px);
}
.footer-social svg{ width: 18px; height: 18px; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  background: #06090f;
  padding: 18px 0;
}
.footer-bottom-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px;
  font-size: var(--fs-xs);
  color:#7c8699;
}
.footer-meta{ margin: 0; }
.footer-bottom p{ margin: 0; }


/* =============================================================
   [14] WHATSAPP FLOTANTE
   ============================================================= */

/* >>> CORRECCIÓN v2: bottom más bajo (28px → más anivelado al borde inferior) <<< */
.whatsapp-fab{
  position: fixed;
  right: 26px;
  bottom: 26px;        /* <- antes 24px; ajustado para que quede pegado al borde */
  z-index: 80;
  display:inline-flex; align-items:center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #1faa54 100%);
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: 0 16px 38px rgba(37,211,102,.4);
  transition: transform .3s ease, box-shadow .3s ease, padding .3s ease;
}
/* Wrapper del icono: caja fija para centrarlo perfecto */
.whatsapp-fab i{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 0;
  flex-shrink: 0;
}

/* SVG del icono: bloque sin baseline para que no flote arriba */
.whatsapp-fab svg{
  width: 22px;
  height: 22px;
  display: block;
}
.whatsapp-fab:hover{
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 48px rgba(37,211,102,.55);
}

.wa-pulse{
  position:absolute;
  inset:0;
  border-radius:999px;
  background: rgba(37,211,102,.5);
  animation: waPulse 2.4s ease-out infinite;
  z-index:-1;
}
@keyframes waPulse{
  0%   { transform: scale(.95); opacity:.7; }
  70%  { transform: scale(1.25); opacity:0; }
  100% { transform: scale(1.25); opacity:0; }
}

.whatsapp-fab.compact{
  padding: 0;
  width: 60px; height: 60px;
  justify-content:center;
}
.whatsapp-fab.compact .wa-label{ display:none; }


/* =============================================================
   [15] REVEAL ANIMATIONS
   ============================================================= */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1),
              transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal.show{ opacity: 1; transform: none; }


/* =============================================================
   [16] BREAKPOINTS DE TABLET (laptops chicas y tablets)
   ============================================================= */
@media (max-width: 1100px){
  .footer-grid{ grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
  .services-v3-grid{ grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .logo-grid{ grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px){
  .footer-grid{
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .services-v3-grid{ grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .why-grid{
    grid-template-columns: repeat(2, 1fr);
    margin-top: 60px;
    padding-top: 60px;
  }
  .why-progress{ display:none; }
  .logo-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px){
  :root{ --header: 68px; }

  .menu{ display:block; }

  .nav{
    position: fixed;
    top: var(--header); left: 14px; right: 14px;
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;
  }
  .nav.open{ opacity: 1; pointer-events: auto; transform: none; }
  .nav a{ padding: 14px 16px; font-size: var(--fs-md); }
  .nav-cta{ text-align:center; margin-top: 8px; padding: 13px 24px; }

  .menu.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  .menu.active span:nth-child(2){ opacity: 0; }
  .menu.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

  .hero-grid{
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 130px;
  }

  .about-grid,
  .allies-grid,
  .split-grid,
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-bar{ grid-template-columns: 1fr 1fr 1fr; }
  .feature-bar .feature-item:nth-child(4){ border-right: 0; }

  .section{ padding: 30px 0; }

  .block-head{ min-height: auto; margin-bottom: 18px; }

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

  .map-card{ min-height: 280px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    transition-duration:.001ms !important;
  }
}
