/* ===========================================================
   GOCAV CONSULTORES — Presentación comercial
   Producto presentado: MIRO CONTIGO
   Sistema de diseño basado en el manual de marca GOCAV
   =========================================================== */

@import url('https://fonts.cdnfonts.com/css/open-sauce-one');

/* ---------- Design tokens (marca GOCAV) ---------- */
:root {
  /* Paleta corporativa */
  --ink:        #000000;   /* Negro Absoluto  — texto/autoridad */
  --carbon:     #545454;   /* Gris Carbono    — texto secundario */
  --alabaster:  #F6F4F1;   /* Blanco Alabastro— fondo premium */
  --navy:       #0D2B45;   /* Azul Profundo   — datos, líneas, iconos */
  --cyan:       #00E5FF;   /* Cian Neón       — CTAs (con moderación) */

  /* Derivados para contraste en oscuro */
  --ink-1:      #0A0C0F;
  --ink-2:      #14181D;
  --line-dark:  rgba(246,244,241,0.14);
  --text-on-dark:      #F6F4F1;
  --text-on-dark-soft: #C7CCD2;   /* gris claro legible sobre negro */

  /* Derivados para contraste en claro */
  --line-light: rgba(0,0,0,0.10);
  --text-on-light:      #000000;
  --text-on-light-soft: #545454;

  /* Tipografía */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Open Sauce One', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --maxw: 980px;

  /* Easing (ease-out expo, sin rebote) */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-scale semántica */
  --z-nav: 40;
  --z-overlay: 60;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  font-family: var(--font-body);
  color: var(--text-on-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Altura estable en móvil (evita saltos por la barra del navegador) */
@supports (height: 100svh) {
  html, body { height: 100svh; }
}

/* =========================================================
   INTRO GOCAV (estelas + logo)
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: #000;
  display: grid; place-items: center;
  opacity: 1;
  transition: opacity 0.9s var(--ease);
}
.intro.is-hidden { opacity: 0; pointer-events: none; }
.intro__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__logo {
  position: relative; z-index: 2;
  height: clamp(54px, 11vh, 104px); width: auto;
  opacity: 0; transform: scale(0.94);
  filter: drop-shadow(0 0 14px rgba(0,0,0,0.85));
  animation: introLogoIn 1.4s var(--ease) 0.5s forwards;
}
@keyframes introLogoIn {
  0%   { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}
.intro__hint {
  position: absolute; z-index: 3;
  bottom: 92px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  opacity: 0;
  animation: introLogoIn 1.2s var(--ease) 1.6s forwards, hintPulse 2.6s ease-in-out 2.8s infinite;
}
@keyframes hintPulse { 0%,100%{ opacity:0.45 } 50%{ opacity:0.85 } }

.intro__skip {
  position: absolute; z-index: 3;
  bottom: 26px; right: 26px;
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.intro__skip:hover { background: rgba(255,255,255,0.1); color: #fff; }

.slide__inner { position: relative; z-index: 1; }

/* Estela mini junto al título (slide 8) */
.s-head--withfx {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  justify-content: space-between;
}
.s-head-txt { flex: 1; min-width: 0; }
.fx-mini {
  flex-shrink: 0;
  width: clamp(110px, 16vw, 168px);
  height: clamp(110px, 16vw, 168px);
  border-radius: 16px;
  pointer-events: none;
}
@media (max-width: 720px) { .fx-mini { display: none; } }

/* Estela de fondo sutil (slide 9) */
.fx-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .intro__logo { animation: none; opacity: 1; transform: none; }
  .intro__hint { animation: none; opacity: 0.6; transform: none; }
}

/* ---------- Swiper ---------- */
.mainSwiper { width: 100%; height: 100%; }

.slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: clamp(28px, 6vh, 80px) clamp(22px, 6vw, 96px);
}

.slide__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: auto;
}

/* Temas de slide */
.slide--light { background: var(--alabaster); color: var(--text-on-light); }
.slide--dark  { background: var(--ink);       color: var(--text-on-dark); }

/* ---------- Tipografía base ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.7rem, 1.4vw, 0.82rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.slide--light .eyebrow { color: var(--navy); }

p.lead {
  font-size: clamp(1.02rem, 2.1vw, 1.3rem);
  line-height: 1.55;
  max-width: 64ch;
}
.slide--dark p.lead  { color: var(--text-on-dark-soft); }
.slide--light p.lead { color: var(--text-on-light-soft); }

/* =========================================================
   SLIDE 1 — HERO
   ========================================================= */
.slide--hero {
  background: var(--alabaster);
  color: var(--text-on-light);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 70%);
  opacity: 0.7;
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__logo {
  height: clamp(40px, 6.5vh, 64px);
  width: auto;
  margin-bottom: clamp(30px, 6vh, 60px);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) 0.05s forwards;
}

.hero__eyebrow {
  margin-bottom: clamp(14px, 2.4vh, 22px);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) 0.18s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 7.5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.012em;
  max-width: 16ch;
  margin-bottom: clamp(18px, 3vh, 30px);
  text-wrap: balance;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.85s var(--ease) 0.3s forwards;
}
.hero__title .accent {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.06em;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  font-weight: 400;
  color: var(--text-on-light-soft);
  max-width: 56ch;
  line-height: 1.5;
  margin-bottom: clamp(34px, 6vh, 56px);
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.85s var(--ease) 0.42s forwards;
}
.hero__subtitle strong { color: var(--ink); font-weight: 700; }

/* CTA principal: fondo cian + texto negro (contraste alto, on-brand) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  border: none;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(0,229,255,0.5); }
.btn-cta .arrow { font-size: 1.15rem; animation: nudge 1.8s ease-in-out infinite; }

.hero__cta {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.85s var(--ease) 0.54s forwards;
}

@keyframes rise  { to { opacity: 1; transform: translateY(0); } }
@keyframes nudge { 0%,100%{transform:translateX(0)} 50%{transform:translateX(5px)} }

/* =========================================================
   UI GLOBAL — progreso, contador, navegación
   ========================================================= */
.top-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: var(--z-nav);
  background: rgba(127,127,127,0.18);
}
#progressBar {
  display: block; height: 100%; width: 0%;
  background: var(--cyan);
  transition: width 0.55s var(--ease);
}

.slide-counter {
  position: fixed; top: 15px; right: 20px; z-index: var(--z-nav);
  font-family: var(--font-body);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em;
  color: rgba(0,0,0,0.42);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transition: color 0.4s var(--ease);
}

.nav-arrow { color: var(--cyan); --swiper-navigation-size: 24px; }
.nav-arrow::after { font-weight: 700; }
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled { opacity: 0; }

.swiper-pagination-bullet { background: var(--carbon); opacity: 0.35; }
.swiper-pagination-bullet-active { background: var(--cyan); opacity: 1; }

@media (max-width: 768px) {
  .nav-arrow { display: none; }
  .hero__inner { align-items: flex-start; }
}

/* =========================================================
   COMPONENTES DE SLIDE DE CONTENIDO
   ========================================================= */

/* Encabezado de slide */
.s-head { margin-bottom: clamp(20px, 4vh, 38px); }
.s-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: clamp(14px, 2.2vh, 20px);
}
.s-eyebrow .s-num {
  font-variant-numeric: tabular-nums;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.slide--light .s-eyebrow { color: var(--navy); }
.slide--light .s-eyebrow .s-num { background: var(--ink); color: var(--alabaster); }
.slide--dark  .s-eyebrow { color: var(--cyan); }
.slide--dark  .s-eyebrow .s-num { background: var(--cyan); color: var(--ink); }

.s-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0.012em;
  max-width: 20ch;
  text-wrap: balance;
}
.slide--light .s-title { color: var(--ink); }
.slide--dark  .s-title { color: var(--text-on-dark); }
.s-title .accent {
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.05em;
}

/* Layout dos columnas (texto + visual) */
.s-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.s-cols--text { grid-template-columns: minmax(0, 1fr); max-width: 64ch; }
@media (max-width: 820px) {
  .s-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* Lista de features con icono */
.feat-list { list-style: none; display: flex; flex-direction: column; gap: clamp(16px, 2.6vh, 24px); margin-top: clamp(18px, 3vh, 28px); }
.feat {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.feat-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  flex-shrink: 0;
}
.slide--light .feat-ico { background: #fff; border: 1px solid var(--line-light); color: var(--navy); }
.slide--dark  .feat-ico { background: rgba(255,255,255,0.06); border: 1px solid var(--line-dark); color: var(--cyan); }
.feat-ico svg { width: 22px; height: 22px; }
.feat-txt h3 {
  font-family: var(--font-body);
  font-size: 1.05rem; font-weight: 700; line-height: 1.3;
  margin-bottom: 3px;
}
.feat-txt p { font-size: 0.96rem; line-height: 1.5; }
.slide--light .feat-txt h3 { color: var(--ink); }
.slide--light .feat-txt p  { color: var(--text-on-light-soft); }
.slide--dark  .feat-txt h3 { color: var(--text-on-dark); }
.slide--dark  .feat-txt p  { color: var(--text-on-dark-soft); }

/* Marco de navegador (screenshots desktop) */
.mock {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.4);
}
.slide--dark .mock { border-color: var(--line-dark); box-shadow: 0 24px 60px -28px rgba(0,0,0,0.8); }
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: var(--alabaster);
  border-bottom: 1px solid var(--line-light);
}
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cfcdc7; }
.mock-shot {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, #f0eee9 0 10px, #f6f4f1 10px 20px);
  color: var(--carbon);
}
.mock-shot img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.mock-empty { text-align: center; padding: 24px; }
.mock-empty svg { width: 40px; height: 40px; color: #b9b6ae; margin-bottom: 10px; }
.mock-empty p { font-size: 0.85rem; color: #9c998f; letter-spacing: 0.02em; }

/* Marco de teléfono (screenshots móvil) */
.mock-phone {
  width: clamp(220px, 70%, 280px);
  margin: 0 auto;
  border-radius: 34px;
  padding: 12px;
  background: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}
.mock-phone-screen {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: repeating-linear-gradient(45deg, #1a1a1a 0 10px, #202020 10px 20px);
  display: grid; place-items: center;
}
.mock-phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.mock-phone .mock-empty svg { color: #555; }
.mock-phone .mock-empty p { color: #777; }

/* Diagrama de roles (estructura territorial) */
.roles { display: flex; flex-direction: column; gap: 12px; margin-top: clamp(18px, 3vh, 26px); }
.role-tier {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.role-tier-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); min-width: 92px;
}
.role-chip {
  font-size: 0.86rem; font-weight: 600;
  padding: 9px 15px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line-light); color: var(--ink);
}
.role-chip--lead { background: var(--ink); color: var(--alabaster); border-color: var(--ink); }
.role-chip--cyan { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }

/* Texto destacado / cita de cierre */
.s-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.0;
  letter-spacing: 0.012em;
  max-width: 18ch;
  text-wrap: balance;
}
.s-note { font-size: 0.92rem; margin-top: 14px; }
.slide--dark .s-note { color: var(--text-on-dark-soft); }
.slide--light .s-note { color: var(--text-on-light-soft); }

/* Nota "en desarrollo activo" (slide 11) */
.dev-note {
  margin-top: clamp(22px, 4vh, 34px);
  max-width: 52ch;
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
}
.dev-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,229,255,0.10);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 12px;
}
.dev-badge svg { width: 14px; height: 14px; }
.dev-note p { font-size: 0.98rem; line-height: 1.55; color: var(--text-on-dark-soft); }

/* CTA secundario sobre fondo oscuro */
.btn-cta--ghost {
  background: transparent; color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-cta--ghost:hover { background: var(--cyan); color: var(--ink); }

/* =========================================================
   MÓDULOS "Y MUCHO MÁS" + MODAL
   ========================================================= */
.cm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(16px, 2.6vh, 24px);
}
@media (max-width: 640px) { .cm-grid { grid-template-columns: 1fr; } }

.cm-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line-light);
  color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cm-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(0,0,0,0.32);
}
.cm-ico {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--alabaster);
  color: var(--navy);
}
.cm-ico svg { width: 21px; height: 21px; }
.cm-name { font-size: 1.08rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.cm-feats { font-size: 0.86rem; line-height: 1.45; color: var(--text-on-light-soft); }
.cm-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 2px;
  font-size: 0.8rem; font-weight: 600; color: var(--navy);
}
.cm-more svg { width: 14px; height: 14px; }

.cm-card--extra {
  flex-direction: row; align-items: center; gap: 14px;
  margin-top: 14px; width: 100%;
}
.cm-card--extra .cm-extra-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cm-card--extra .cm-more { margin: 0; }
.cm-badge {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); background: rgba(13,43,69,0.10);
  padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px;
}

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  display: none;
  align-items: center; justify-content: center;
  padding: 22px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,12,15,0.62);
  animation: fadeIn 0.25s var(--ease);
}
.modal__card {
  position: relative;
  width: 100%; max-width: 440px;
  max-height: 86svh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--alabaster);
  border-radius: 18px;
  padding: 30px 28px 26px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6);
  animation: popIn 0.3s var(--ease);
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px; border: none; cursor: pointer;
  background: transparent; color: var(--carbon);
  transition: background 0.2s var(--ease);
}
.modal__close:hover { background: rgba(0,0,0,0.06); }
.modal__close svg { width: 20px; height: 20px; }
.modal__ico {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--ink); color: var(--cyan);
  margin-bottom: 16px;
}
.modal__ico svg { width: 26px; height: 26px; }
.modal__title {
  font-family: var(--font-display);
  font-weight: 400; letter-spacing: 0.01em;
  font-size: 1.9rem; line-height: 1; color: var(--ink);
  margin-bottom: 12px;
}
.modal__desc { font-size: 1rem; line-height: 1.55; color: var(--text-on-light-soft); margin-bottom: 14px; }
.modal__list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.modal__list li {
  position: relative; padding-left: 18px;
  font-size: 0.92rem; line-height: 1.45; color: var(--text-on-light-soft);
}
.modal__list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
}
.modal__list strong { color: var(--ink); font-weight: 700; }
.modal__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--navy);
  background: rgba(13,43,69,0.08);
  padding: 8px 12px; border-radius: 999px;
}
.modal__tag svg { width: 15px; height: 15px; }

/* Lightbox (clic para ampliar capturas) */
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(8,10,13,0.92);
}
.lightbox.is-open { display: flex; animation: fadeIn 0.2s var(--ease); }
.lightbox img {
  max-width: 96vw; max-height: 90svh;
  border-radius: 12px;
  box-shadow: 0 40px 100px -24px rgba(0,0,0,0.85);
  animation: popIn 0.3s var(--ease);
}
.lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 999px;
  background: rgba(255,255,255,0.06); color: #fff; cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,0.16); }
.lightbox__close svg { width: 22px; height: 22px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn  { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__card { animation: none; }
}

/* =========================================================
   CALCULADORA (slide 14) + CIERRE (slide 15)
   ========================================================= */
.slide--calc .slide__inner { max-width: 720px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.field > span small { color: var(--carbon); font-weight: 500; }
.field input, .field select {
  font-family: var(--font-body);
  font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  padding: 12px 14px; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,43,69,0.12);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23545454' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}

.calc { margin-top: clamp(8px, 2vh, 18px); }
.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px 18px;
  align-items: end;
}
.calc-inputs .btn-cta { height: 46px; }
@media (max-width: 640px) {
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-inputs .btn-cta { width: 100%; justify-content: center; }
}
.calc-hint { margin-top: 14px; font-size: 0.9rem; color: #a32d2d; font-weight: 600; }

.calc-result {
  margin-top: clamp(20px, 4vh, 32px);
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,0.4);
  text-align: center;
  animation: popIn 0.4s var(--ease);
}
.quote-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--carbon); }
.quote-range {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.04;
  color: var(--ink); letter-spacing: 0.01em; margin: 10px 0 14px;
}
.quote-fine { font-size: 0.9rem; line-height: 1.5; color: var(--text-on-light-soft); max-width: 46ch; margin: 0 auto 20px; }

/* Cierre integrado en la cotización (slide 14, última) */
.calc-close {
  margin-top: clamp(26px, 5vh, 42px);
  padding-top: clamp(22px, 4vh, 32px);
  border-top: 1px solid var(--line-light);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.calc-close-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1; color: var(--ink);
}
.calc-logo { height: clamp(34px, 5.5vh, 52px); width: auto; margin-top: 6px; opacity: 0.92; }

/* Aparición suave por slide activo */
.slide .reveal { opacity: 0; transform: translateY(16px); }
.swiper-slide-active .reveal { animation: rise 0.7s var(--ease) forwards; }
.swiper-slide-active .reveal:nth-child(2) { animation-delay: 0.08s; }
.swiper-slide-active .reveal:nth-child(3) { animation-delay: 0.16s; }
.swiper-slide-active .reveal:nth-child(4) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .slide .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   OPTIMIZACIÓN MÓVIL (≤ 560px) — audiencia principal: celular
   ========================================================= */
@media (max-width: 560px) {
  .slide { padding: 56px 20px 64px; }          /* deja aire para contador y paginación */

  /* Títulos ajustados a pantalla angosta */
  .hero__title { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .s-title     { font-size: clamp(1.7rem, 7.5vw, 2.4rem); }
  .s-statement { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero__subtitle, p.lead { font-size: 1.02rem; }

  /* Listas y módulos más compactos */
  .feat-list { gap: 15px; }
  .feat { grid-template-columns: 38px 1fr; gap: 13px; }
  .feat-ico { width: 38px; height: 38px; }

  /* Botones de acción a todo el ancho (toque cómodo) */
  .hero__cta .btn-cta,
  .calc-result .btn-cta,
  .gracias-cta .btn-cta,
  .cierre-cta .btn-cta,
  .form-foot .btn-cta { width: 100%; justify-content: center; }
  .gracias-cta, .cierre-cta { width: 100%; }

  /* Pop-up ocupa casi toda la pantalla */
  .modal { padding: 14px; }
  .modal__card { padding: 26px 20px 22px; }

  /* Diagrama de roles: etiqueta arriba de los chips */
  .role-tier { align-items: flex-start; }
  .role-tier-label { min-width: 100%; margin-bottom: 2px; }
}

/* Pantallas muy chicas (≤ 380px) */
@media (max-width: 380px) {
  .hero__title { font-size: 2rem; }
  .s-title, .s-statement { font-size: 1.55rem; }
  .quote-range { font-size: 1.9rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__logo, .hero__eyebrow, .hero__title, .hero__subtitle, .hero__cta {
    opacity: 1 !important; transform: none !important;
  }
}
