/* ==========================================================================
   TU PERMISO .pe — STYLES
   Paleta oficial (brand):
   - Azul primario:   #4560FF
   - Azul claro:      #7690FF
   - Lima:            #D1F43D
   - Blanco:          #FFFFFF
   Derivados (para profundidad y UI):
   - Azul oscuro:     #1F2FB8 → #15208A → #0A1054
   - Texto:           #0F1B3D (dark) · #6A7395 (mute)
   - Fondo claro:     #F4F5FA
   ========================================================================== */

:root {
  /* Colores base */
  --blue-50:  #EEF2FF;
  --blue-100: #DCE3FF;
  --blue-200: #B8C5FF;
  --blue-300: #7690FF;   /* Azul claro de la paleta */
  --blue-500: #4560FF;   /* Azul primario de la paleta */
  --blue-600: #3349E6;
  --blue-700: #1F2FB8;
  --blue-800: #15208A;
  --blue-900: #0A1054;

  --lime-300: #DEFC5E;
  --lime-400: #D1F43D;   /* Lima de la paleta */
  --lime-500: #BCE029;

  --ink:    #0F1B3D;
  --ink-2:  #1B2855;
  --mute:   #6A7395;
  --mute-2: #94A0BD;
  --line:   #E2E7F5;
  --bg:     #FFFFFF;
  --bg-soft:#F4F5FA;

  /* Sombras */
  --sh-card:   0 6px 24px -8px rgba(15, 27, 61, .08), 0 2px 6px rgba(15, 27, 61, .04);
  --sh-card-h: 0 18px 40px -12px rgba(69, 96, 255, .22), 0 6px 14px rgba(15, 27, 61, .08);
  --sh-stats:  0 24px 60px -20px rgba(15, 27, 61, .18), 0 8px 22px -10px rgba(15, 27, 61, .10);
  --sh-btn:    0 10px 24px -10px rgba(209, 244, 61, .55);

  /* Gradientes */
  --grad-hero:
    linear-gradient(110deg, #15208A 0%, #3349E6 38%, #4560FF 60%, #5C75FF 78%, #7690FF 100%);
  --grad-why:
    radial-gradient(70% 80% at 100% 50%, rgba(118, 144, 255, .25) 0%, transparent 60%),
    linear-gradient(180deg, #3349E6 0%, #1F2FB8 50%, #0A1054 100%);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container: 1180px;
  --gutter:    24px;
}

/* ============================ RESET ============================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

/* ============================ ANTI-ZOOM (iOS / Android) ============================
   iOS Safari hace auto-zoom al enfocar inputs con font-size < 16px.
   Forzamos 16px en todos los campos y deshabilitamos pinch/double-tap zoom.
   ================================================================================== */
input, textarea, select, button {
  font-size: 16px;
  font-family: inherit;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
textarea,
select {
  font-size: 16px !important;
  max-width: 100%;
}
a, button, [role="button"] { touch-action: manipulation; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0; }
svg { display: block; }
.ic { width: 20px; height: 20px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.t-white { color: #fff; }
.t-lime  { color: var(--lime-400); }

/* ============================ PILLS ============================ */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.pill-outline {
  color: var(--lime-400);
  border: 1.5px solid rgba(209, 244, 61, .55);
  background: rgba(209, 244, 61, .04);
  font-size: 11.5px;
  padding: 9px 18px;
}
.pill-outline .pill-dot { opacity: .8; padding: 0 2px; }
.pill-lime {
  color: var(--ink);
  background: var(--lime-400);
  border: 1.5px solid var(--lime-500);
  box-shadow: 0 4px 14px -6px rgba(188, 224, 41, .6);
}

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-lg { padding: 16px 26px; font-size: 15.5px; border-radius: 14px; }
.btn-primary {
  background: var(--lime-400);
  color: var(--ink);
  box-shadow: var(--sh-btn);
  border: 1.5px solid var(--lime-500);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--lime-300); box-shadow: 0 18px 36px -14px rgba(209, 244, 61, .8); }
.btn-primary::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-ghost .play-circ {
  width: 26px; height: 26px; border-radius: 999px;
  background: #fff; color: var(--blue-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-ghost .play-circ svg { width: 12px; height: 12px; margin-left: 2px; }

.btn-nav { padding: 12px 18px; font-size: 14px; }
.btn-center { display: inline-flex; margin: 38px auto 0; }

/* Icono WhatsApp dentro de botones (contactar / orientación) */
.btn-wa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  color: inherit;
  transition: transform .35s cubic-bezier(.2,.65,.3,1);
  flex-shrink: 0;
}
.btn-wa-badge svg { width: 100%; height: 100%; }
.btn:hover .btn-wa-badge { transform: rotate(-8deg) scale(1.1); }
.btn-lg .btn-wa-badge { width: 22px; height: 22px; }

/* ============================ HEADER ============================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 14px 0;
  transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
  background: transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 19, 60, .92);
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .35);
}

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; z-index: 60; position: relative; flex-shrink: 0; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-text {
  position: relative;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #fff;
  display: inline-flex; align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.brand-text .brand-tu { color: #fff; }
.brand-text .brand-permiso { color: #fff; position: relative; }
/* La "E" en TU PERMISO con acento lima en burbuja */
.brand-text .brand-permiso::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 8px; height: 4px;
  background: var(--lime-400);
  border-radius: 2px;
  transform: translateY(-50%);
  display: none; /* placeholder por si se quiere acento */
}
.brand-text .brand-tld {
  background: var(--lime-400);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  margin-left: 2px;
  letter-spacing: 0.04em;
  transform: translateY(6px);
  box-shadow: 0 4px 10px -3px rgba(209, 244, 61, .5);
}

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: rgba(255,255,255,.92);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  transition: color .2s ease;
}
.nav-link::after {
  content:""; position:absolute; left:0; right:0; bottom:-6px;
  height: 2px; background: var(--lime-400);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover { color: var(--lime-400); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  z-index: 60;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  padding: 130px 0 170px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(110deg,
      rgba(21, 32, 138, .90) 0%,
      rgba(51, 73, 230, .82) 38%,
      rgba(69, 96, 255, .72) 60%,
      rgba(92, 117, 255, .68) 78%,
      rgba(118, 144, 255, .62) 100%),
    url("assets/home-bg.webp") center center / cover no-repeat;
  overflow: hidden;
}

/* Skyline borroso: edificios al fondo derecha (vidrios de oficina) */
.hero-skyline {
  position: absolute;
  right: 0; top: 0;
  width: 65%; height: 60%;
  background:
    /* ventanas verticales (líneas más densas) */
    repeating-linear-gradient(
      90deg,
      transparent 0 28px,
      rgba(170, 200, 255, .12) 28px 29px,
      transparent 29px 56px,
      rgba(190, 220, 255, .08) 56px 57px
    ),
    /* pisos horizontales */
    repeating-linear-gradient(
      0deg,
      transparent 0 50px,
      rgba(200, 220, 255, .10) 50px 51px
    ),
    /* iluminación lateral fondo */
    linear-gradient(110deg, transparent 20%, rgba(180, 215, 255, .18) 100%);
  filter: blur(1px);
  opacity: .9;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 20%, rgba(0,0,0,.5) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, rgba(0,0,0,.5) 70%, transparent 100%);
}

/* Suelo en perspectiva (grid del piso del laboratorio) */
.hero-floor {
  position: absolute;
  left: -20%; right: -20%;
  bottom: -2%; height: 65%;
  background:
    linear-gradient(90deg, rgba(200, 220, 255, .55) 1.5px, transparent 1.5px) 0 0 / 110px 100%,
    linear-gradient(0deg,  rgba(200, 220, 255, .55) 1.5px, transparent 1.5px) 0 0 / 100% 90px;
  transform: perspective(620px) rotateX(66deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.85) 20%, rgba(0,0,0,.4) 60%, transparent 95%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.85) 20%, rgba(0,0,0,.4) 60%, transparent 95%);
  opacity: 1;
  pointer-events: none;
}
/* segunda capa del piso con líneas más sutiles para profundidad */
.hero-floor::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(69, 96, 255, .35) 0%, transparent 60%);
  mix-blend-mode: overlay;
}

/* Glows / orbes de luz */
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55;
  pointer-events: none;
}
.hero-glow-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(180, 210, 255, .55), transparent 70%);
  top: -160px; right: -80px;
  animation: float1 9s ease-in-out infinite;
}
.hero-glow-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(50, 100, 255, .45), transparent 70%);
  bottom: -140px; left: -120px;
  animation: float2 11s ease-in-out infinite;
}
.hero-glow-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(120, 200, 255, .35), transparent 70%);
  top: 40%; right: 25%;
  animation: float1 14s ease-in-out infinite reverse;
}

/* Vignette */
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 70% at 30% 50%, transparent 30%, rgba(6, 15, 54, .35) 80%),
    linear-gradient(180deg, rgba(6, 15, 54, .12) 0%, transparent 30%, transparent 70%, rgba(6, 15, 54, .25) 100%);
  pointer-events: none;
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,40px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-30px)} }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 52px;
  position: relative;
  z-index: 2;
}
/* Bloque de texto + botón agrupados (uniforme) */
.hero-copy {
  flex: 1.1 1 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
}
.hero-ctas   { margin-top: 32px; }
.hero-visual { flex: 1 1 0; }

.hero-title {
  font-size: clamp(46px, 6.1vw, 82px);
  font-weight: 800;
  line-height: 1.08;
  margin: 26px 0 22px;
  letter-spacing: -0.03em;
}
.hero-title span { display: block; }
.hero-title .t-lime {
  background: linear-gradient(135deg, #DEFC5E 0%, #D1F43D 50%, #BCE029 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Evita que el recorte del degradado corte la cola de la "g" en móvil */
  padding-bottom: .1em;
}
.hero-sub {
  color: rgba(255,255,255,.86);
  font-size: 19px;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  min-height: 620px;
}
.hero-img {
  width: 100%;
  max-width: 600px;
  object-fit: contain;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .35));
  animation: heroFloat 6s ease-in-out infinite;
}
/* ===== Personaje 3D como protagonista del hero ===== */
.hero-character {
  position: relative;
  z-index: 3;
  display: flex; justify-content: center;
  will-change: transform;
}
/* El resplandor sigue la SILUETA de la asesora (drop-shadow usa el canal alfa,
   no la caja) y late suavemente; el flotar le da movimiento. */
.hero-character img {
  display: block;
  width: auto; height: auto;
  max-width: 100%;
  max-height: 760px;
  animation: heroFloat 6s ease-in-out infinite, charGlow 4.5s ease-in-out infinite;
  will-change: filter, transform;
}
@keyframes charGlow {
  0%, 100% {
    filter:
      drop-shadow(0 0 12px rgba(216, 250, 94, .85))
      drop-shadow(0 0 30px rgba(209, 244, 61, .55))
      drop-shadow(0 0 60px rgba(130, 170, 255, .45))
      drop-shadow(0 28px 40px rgba(0, 0, 0, .45));
  }
  50% {
    filter:
      drop-shadow(0 0 20px rgba(216, 250, 94, 1))
      drop-shadow(0 0 46px rgba(209, 244, 61, .8))
      drop-shadow(0 0 84px rgba(130, 170, 255, .65))
      drop-shadow(0 28px 40px rgba(0, 0, 0, .45));
  }
}
/* Imagen duplicada que solo aparece en móvil, entre el subtítulo y los botones */
.hero-visual-mobile { display: none; }
@media (min-width: 1101px) {
  .hero-inner { gap: 64px; }
  .hero-copy { flex: 1.15 1 0; }
  .hero-visual { flex: 1 1 0; }
}
@keyframes heroFloat {
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 28px;
  background: rgba(10, 28, 84, .45);
  border: 1.5px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  max-width: 620px;
  z-index: 3;
  margin-top: 10px;
}
.feat { color: #fff; }
.feat-ic {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(209, 244, 61, .08);
  border: 1px solid rgba(209, 244, 61, .35);
  color: var(--lime-400);
  align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.feat-ic svg { width: 18px; height: 18px; }
.feat-tt { font-size: 15px; line-height: 1.25; font-weight: 700; }
.feat-tt strong { font-weight: 800; }
.feat-sub { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }
.feat-logos {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; flex-wrap: wrap;
}
.feat-logos img {
  height: 22px; width: auto;
  background: #fff;
  padding: 3px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* ============================ STATS ============================ */
.stats-band {
  background: var(--bg-soft);
  padding-bottom: 60px;
  position: relative;
  margin-top: -60px;
  z-index: 4;
}
.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 36px;
  box-shadow: var(--sh-stats);
  position: relative;
}
.stat {
  display: flex; align-items: center; gap: 16px;
  min-width: 0;
}
.stat + .stat { position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.stat-ic {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-500);
  display: inline-flex; align-items: center; justify-content: center;
}
.stat-ic svg { width: 24px; height: 24px; }
.stat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.stat-label { font-size: 13.5px; color: var(--mute); line-height: 1.35; }

/* ============================ SECTION HEAD ============================ */
.section-head { text-align: center; margin-bottom: 44px; }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-top: 18px;
  letter-spacing: -0.015em;
}
.section-sub { color: var(--mute); margin-top: 12px; font-size: 15.5px; }
.section-lead {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  line-height: 1.4;
}
.section-head .section-lead + .section-sub { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ============================ SERVICES ============================ */
.services { padding: 70px 0 80px; background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 0 26px 56px;
  box-shadow: var(--sh-card);
  border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.svc-card::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(69, 96, 255, .04), transparent 50%);
  opacity: 0; transition: opacity .35s ease;
  z-index: 0;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-card-h); border-color: rgba(69, 96, 255, .25); }
.svc-card:hover::before { opacity: 1; }
.svc-card:hover .svc-ic { transform: rotate(-6deg) scale(1.05); }
.svc-card:hover .svc-media img { transform: scale(1.07); }
.svc-card:hover .svc-arrow { background: var(--lime-300); transform: translateX(4px); box-shadow: 0 10px 22px -8px rgba(209, 244, 61, .85); }
.svc-card:hover .svc-arrow .svc-ar { transform: translateX(2px); }

/* Banner de imagen (a sangre completa en la parte superior) */
.svc-media {
  position: relative;
  margin: 0 -26px 0;
  height: 184px;
  overflow: hidden;
}
.svc-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .55s ease;
}
.svc-media::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(10,16,84,0) 40%, rgba(10,16,84,.28) 100%);
}
.svc-title, .svc-text, .svc-arrow { position: relative; z-index: 1; }

.svc-ic {
  position: relative;
  z-index: 2;
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--blue-500);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: -32px;
  margin-bottom: 16px;
  border: 4px solid #fff;
  box-shadow: 0 10px 22px -8px rgba(69, 96, 255, .65);
  transition: transform .35s ease;
}
.svc-ic svg { width: 28px; height: 28px; }
.svc-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.svc-text { color: var(--mute); font-size: 14.5px; line-height: 1.55; }
.svc-arrow {
  position: absolute;
  right: 22px; bottom: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lime-400);
  color: var(--ink);
  border: 1.5px solid var(--lime-500);
  transition: transform .35s ease, background .35s ease, box-shadow .35s ease, border-color .35s ease;
  box-shadow: 0 6px 14px -6px rgba(209, 244, 61, .7);
  cursor: pointer;
}
.svc-arrow:hover { background: var(--lime-300); transform: translateX(4px); box-shadow: 0 10px 22px -8px rgba(209, 244, 61, .85); }
.svc-arrow .svc-wa { width: 16px; height: 16px; }
.svc-arrow .svc-ar { width: 14px; height: 14px; transition: transform .35s ease; }

/* ============================ WHY ============================ */
.why { position: relative; color: #fff; padding: 80px 0 90px; overflow: hidden; isolation: isolate; }
.why-bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--grad-why);
  overflow: hidden;
}
.why-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 40%, transparent 90%);
  opacity: .6;
}
.why-glow {
  position: absolute; right: -120px; top: 20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(120, 160, 255, .35), transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}
.why-stars { position: absolute; inset: 0; pointer-events: none; }
.why-stars .star {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(180, 200, 255, .6);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%,100% { opacity: .3; transform: scale(.8); }
  50%     { opacity: 1;  transform: scale(1.4); }
}

.why-top {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 100px;
}
.why-top-text { text-align: left; }
.pill-why {
  border-color: rgba(209, 244, 61, .55);
  color: var(--lime-400);
  margin-bottom: 18px;
}
.why-top-title {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.why-top-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-top-card {
  background: rgba(10, 28, 84, .35);
  border: 1.5px solid rgba(140, 175, 255, .25);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
  text-align: center;
  position: relative;
}
.why-top-card:hover {
  transform: translateY(-4px);
  background: rgba(10, 28, 84, .55);
  border-color: rgba(209, 244, 61, .45);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .4);
}
.why-top-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(120, 160, 255, .35), rgba(69, 96, 255, .55));
  color: var(--lime-400);
  margin: 0 auto 14px;
  border: 1.5px solid rgba(160, 190, 255, .35);
  box-shadow: 0 0 18px rgba(120, 170, 255, .35);
}
.why-top-ic svg { width: 22px; height: 22px; }
.why-top-card h4 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.why-top-card .why-top-body { color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.5; }
.why-top-card p { color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.5; }

.why-feature { text-align: center; }
.why-feature-title {
  color: #fff;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  margin-bottom: 14px;
}
.why-feature-sub {
  color: rgba(255,255,255,.78);
  font-size: 16px;
  margin: 0 auto 42px;
  max-width: 640px;
}
.why-feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.why-card {
  position: relative;
  padding: 36px 26px 30px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.03);
  border: 1.5px solid rgba(140, 175, 255, .25);
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.why-card.glow {
  box-shadow:
    inset 0 0 40px rgba(120, 160, 255, .08),
    0 0 0 1px rgba(120, 160, 255, .15);
}
.why-card.glow::before {
  content:""; position:absolute; inset:-1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(120, 160, 255, .35), transparent 50%, rgba(209, 244, 61, .25));
  z-index: -1;
  opacity: .6;
  filter: blur(2px);
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(209, 244, 61, .55); background: rgba(255,255,255,.06); }
.why-card-ic {
  position: relative;
  width: 86px; height: 86px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(150, 190, 255, .55), rgba(69, 96, 255, .65) 70%);
  color: var(--lime-400);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  border: 2px solid rgba(160, 190, 255, .55);
  box-shadow:
    0 0 0 6px rgba(120, 160, 255, .10),
    0 0 0 14px rgba(120, 160, 255, .06),
    0 0 38px rgba(120, 170, 255, .55),
    inset 0 0 24px rgba(200, 220, 255, .35);
  animation: orbPulse 4s ease-in-out infinite;
}
.why-card-ic::before {
  content: ""; position: absolute; inset: -18px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(120, 170, 255, .25), transparent 65%);
  z-index: -1;
  filter: blur(8px);
}
.why-card-ic svg { width: 34px; height: 34px; }
@keyframes orbPulse {
  0%,100% { box-shadow: 0 0 0 6px rgba(120, 160, 255, .10), 0 0 0 14px rgba(120, 160, 255, .06), 0 0 30px rgba(120, 170, 255, .45), inset 0 0 24px rgba(200, 220, 255, .3); }
  50%     { box-shadow: 0 0 0 8px rgba(120, 160, 255, .14), 0 0 0 18px rgba(120, 160, 255, .08), 0 0 50px rgba(120, 170, 255, .7),  inset 0 0 28px rgba(200, 220, 255, .45); }
}
.why-card h3 { color: #fff; font-size: 18px; font-weight: 800; letter-spacing: 0.03em; margin-bottom: 8px; }
.why-card-tag { color: var(--lime-400); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.why-card-text { color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.6; }

/* Imagen ilustrativa dentro de cada card de "¿Por qué elegirnos?" */
.why-card-media {
  margin: 0 0 22px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(160, 190, 255, .28);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .55);
}
.why-card-media img {
  width: 100%; height: 188px;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.why-card:hover .why-card-media img { transform: scale(1.05); }
.why-card-media.is-contain { background: #fff; }
.why-card-media.is-contain img { object-fit: contain; padding: 12px; }

/* ============================ CLIENTS ============================ */
.clients { padding: 80px 0; background: var(--bg-soft); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.client-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 28px;
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--sh-card-h); }
.client-card img { max-height: 70px; width: auto; object-fit: contain; }

/* ============================ TESTIMONIALS ============================ */
.testimonials {
  position: relative;
  background: linear-gradient(135deg, #3349E6 0%, #4560FF 50%, #1F2FB8 100%);
  color: #fff;
  padding: 70px 0 60px;
  overflow: hidden;
  isolation: isolate;
}
.t-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.t-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .5;
}
.t-glow-1 { width: 400px; height: 400px; background: rgba(120, 160, 255, .4); top: -100px; left: -100px; }
.t-glow-2 { width: 400px; height: 400px; background: rgba(60, 110, 255, .35); bottom: -100px; right: -50px; }

.testi-wrap { position: relative; max-width: 980px; margin: 0 auto; overflow: hidden; }
.testi-track {
  display: flex;
  transition: transform .6s cubic-bezier(.5,.05,.2,1);
  will-change: transform;
}
.testi {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  align-items: center;
  padding: 0 8px;
}
.testi-photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.18);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,.4);
}
.testi-photo img { width: 100%; height: 100%; object-fit: cover; }
.testi-body { position: relative; }
.quote-mark {
  color: var(--lime-400);
  font-size: 56px;
  font-weight: 800;
  line-height: 0;
  font-family: 'Georgia', serif;
  display: inline-block;
  vertical-align: middle;
}
.q-open  { margin-right: 8px; transform: translateY(8px); }
.q-close { margin-left: 8px; transform: translateY(8px); }
.testi-title { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.35; margin-bottom: 16px; }
.testi-text { color: rgba(255,255,255,.85); font-size: 15px; max-width: 580px; margin-bottom: 16px; line-height: 1.6; }
.testi-name { color: #fff; font-weight: 800; font-size: 17px; }
.testi-role { color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

.testi-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 30px;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  transition: background .25s ease, transform .25s ease, width .25s ease;
}
.dot.active { background: var(--lime-400); width: 26px; }

/* ============================ FOUNDER ============================ */
.founder { padding: 80px 0; background: #fff; }
.founder-inner {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 40px;
  align-items: center;
}
.founder-left { text-align: center; }
.founder-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh-card);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-name { font-size: 20px; font-weight: 800; color: var(--blue-500); }
.founder-role { color: var(--mute); font-size: 14px; margin-top: 2px; margin-bottom: 12px; }
.founder-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--blue-500); color: #fff;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 14px -6px rgba(69, 96, 255, .55);
}
.founder-social:hover { transform: translateY(-3px); background: var(--blue-600); box-shadow: 0 10px 20px -8px rgba(69, 96, 255, .7); }
.founder-social svg { width: 20px; height: 20px; }

.founder-right p { color: var(--mute); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.founder-right .pill { margin-bottom: 16px; }
.founder-lead {
  color: var(--ink) !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.45 !important;
  margin-bottom: 18px !important;
}
.founder-cert {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.founder-cert:hover { transform: translateY(-4px); box-shadow: var(--sh-card-h); }
.founder-cert img { border-radius: 10px; width: 100%; height: auto; }

/* ============================ FAQ ============================ */
.faq { padding: 70px 0 80px; background: var(--bg-soft); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item[open] { border-color: var(--blue-200); box-shadow: var(--sh-card); }
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { width: 18px; height: 18px; color: var(--mute); transition: transform .3s ease; }
.faq-item[open] .chev { transform: rotate(180deg); color: var(--blue-500); }
.faq-body { padding: 0 0 18px; color: var(--mute); font-size: 14.5px; line-height: 1.65; }

/* ============================ CTA FINAL ============================ */
.cta-final {
  padding: 60px 0 70px;
  background: linear-gradient(135deg, #3349E6 0%, #4560FF 60%, #1F2FB8 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content:""; position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-left { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 280px; }
.cta-ic {
  flex: 0 0 auto;
  width: 78px; height: 78px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(120, 160, 255, .55), rgba(69, 96, 255, .55));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid rgba(140, 175, 255, .55);
  box-shadow: 0 0 30px rgba(120, 160, 255, .5), inset 0 0 20px rgba(180, 210, 255, .25);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 30px rgba(120, 160, 255, .4), inset 0 0 20px rgba(180, 210, 255, .25); }
  50%     { box-shadow: 0 0 50px rgba(120, 160, 255, .7), inset 0 0 30px rgba(180, 210, 255, .35); }
}
.cta-ic svg { width: 36px; height: 36px; }
.cta-text h3 { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.cta-text p { color: rgba(255,255,255,.85); font-size: 14.5px; line-height: 1.55; }

/* ============================ FOOTER ============================ */
.site-footer {
  background: linear-gradient(180deg, #15208A 0%, #0A1054 100%);
  color: rgba(255,255,255,.9);
  padding: 36px 0 20px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.footer-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px;
  transition: color .25s ease;
}
.footer-link:hover { color: var(--lime-400); }
.footer-ic {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--lime-400);
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-ic svg { width: 18px; height: 18px; }
.footer-ic-wa { background: #25D366; color: #fff; }
.footer-ic-wa svg { width: 20px; height: 20px; }
.footer-link:hover .footer-ic-wa { background: #1ebe5b; }
.footer-brand .brand-text { color: #fff; }
.footer-logo { height: 34px; width: auto; display: block; }

.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-social { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.75); font-size: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.footer-social a:hover { background: var(--lime-400); color: var(--ink); transform: translateY(-2px); }
.footer-social a svg { width: 16px; height: 16px; }
.copyright { color: rgba(255,255,255,.55); font-size: 13.5px; }

/* ============================ REVEAL ANIMATIONS ============================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.65,.3,1), transform .8s cubic-bezier(.2,.65,.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1100px) {
  /* En móvil: texto, luego la asesora, y el botón "Contactar Ahora" debajo de ella */
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: center;
  }
  .hero-copy { display: contents; }        /* libera a hero-text y hero-ctas como items directos */
  /* flex:none -> cada bloque toma la altura de su contenido (evita que la chica se solape) */
  .hero-text  { order: 1; flex: 0 0 auto; min-width: 0; max-width: 100%; }
  .hero-visual{ order: 2; flex: 0 0 auto; display: flex; min-height: 0; width: 100%; margin: 8px 0 4px; }
  .hero-ctas  { order: 3; flex: 0 0 auto; justify-content: center; margin-top: 10px; }
  /* La pastilla de tags se mantiene en una sola línea (escala el tamaño para no desbordar) */
  .hero-text .pill { flex-wrap: nowrap; justify-content: center; white-space: nowrap; }
  .hero-visual-mobile { display: none; }
  .hero-character img { max-height: 430px; max-width: 100%; }
  .hero { padding: 116px 0 52px; }
  .hero-sub { margin-left: auto; margin-right: auto; }

  .services-grid,
  .why-feature-cards,
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  .why-top { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .why-top-text { text-align: center; }
  .why-top-cards { grid-template-columns: repeat(3, 1fr); }

  .founder-inner { grid-template-columns: 1fr; gap: 30px; }
  .founder-left { max-width: 320px; margin: 0 auto; }
  .founder-cert { max-width: 480px; margin: 0 auto; }

  .testi { grid-template-columns: 120px 1fr; gap: 24px; }
  .testi-photo { width: 120px; height: 120px; }
}

@media (max-width: 820px) {
  .site-header {
    background: rgba(8, 19, 60, .92);
  }
  .nav-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    background: rgba(8, 19, 60, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 90px 28px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
    z-index: 55;
  }
  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s;
  }
  .nav-link {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    padding: 6px 0;
  }
  .nav-link::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .btn-nav { display: none; }
  .brand-logo { height: 30px; }
  .brand-text { font-size: 19px; }
  .brand-text .brand-tld { font-size: 10px; padding: 3px 7px; }

  .stats-card { grid-template-columns: repeat(2, 1fr); padding: 24px; gap: 22px; }
  .stat + .stat::before { display: none; }

  .services-grid,
  .why-feature-cards { grid-template-columns: 1fr; }
  .why-top-cards { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: 116px 0 52px; min-height: auto; }
  .hero-skyline { display: none; }
  .hero-floor { height: 35%; opacity: .35; }

  .testi { grid-template-columns: 1fr; text-align: center; }
  .testi-photo { margin: 0 auto 6px; width: 110px; height: 110px; }
  .testi-text { margin-left: auto; margin-right: auto; }
  .testi-title { font-size: 19px; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-left { flex-direction: column; text-align: center; }

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

  .footer-top { justify-content: center; text-align: center; }
  .footer-link { justify-content: center; }
  .footer-bot { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .hero-title { font-size: clamp(32px, 9vw, 44px); }
  .hero-sub { font-size: 15.5px; }

  /* Tags en una sola línea: el tamaño escala con el ancho para que siempre quepa */
  .hero-text .pill {
    font-size: clamp(6.5px, 2.5vw, 11.5px);
    letter-spacing: 0.03em;
    gap: 3px;
    padding: 8px 12px;
  }
  .hero-text .pill .pill-dot { padding: 0 1px; }
  .btn-lg { padding: 14px 20px; font-size: 14.5px; }

  .section-title { font-size: clamp(24px, 7vw, 32px); }

  .stats-card { padding: 20px; gap: 18px; }
  .stat-num { font-size: 24px; }
  .stat-ic { width: 44px; height: 44px; }
  .stat-ic svg { width: 20px; height: 20px; }

  .testi-title { font-size: 17px; }
  .quote-mark { font-size: 40px; }

  .hero-features { padding: 16px; }
  .feat { display: flex; gap: 14px; align-items: flex-start; }
  .feat-ic { margin-bottom: 0; }

  .why-card { padding: 28px 20px 24px; }
  .why-card-ic { width: 64px; height: 64px; }
  .why-card-ic svg { width: 26px; height: 26px; }

  .cta-text h3 { font-size: 19px; }
  .cta-ic { width: 64px; height: 64px; }
  .cta-ic svg { width: 30px; height: 30px; }

  .footer-link { font-size: 14px; }
  .footer-ic { width: 34px; height: 34px; }
  .copyright { font-size: 12.5px; }
  .brand-text { font-size: 20px; }
}

/* ============================ MOTION REDUCE ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
