/* =========================================================
   InnovaDev Solutions — Sistema visual
   Manual de Marca 2026 · dark-first
   ========================================================= */

:root {
  /* --- Paleta oficial (Manual de Marca) --- */
  --noche: #171E3B;
  --azul: #2F58CD;
  --lavanda: #6878E4;
  --cian: #74CAEC;
  --amarillo: #F7F189;
  --destello: #FAFCEA;
  --candela: #FA922A;
  --blanco: #FFFFFF;
  --negro: #000000;

  /* --- Derivados de Noche (profundidad de UI, no color nuevo de marca) --- */
  --noche-900: #0D1225;
  --noche-800: #121830;
  --noche-700: #1D2749;
  --noche-600: #26325A;

  /* --- Texto --- */
  --texto: #E9EDF7;
  --texto-suave: rgba(233, 237, 247, 0.66);
  --texto-tenue: rgba(233, 237, 247, 0.55);
  --tinta: #171E3B;
  --tinta-suave: rgba(23, 30, 59, 0.72);

  /* --- Líneas y superficies --- */
  --linea: rgba(255, 255, 255, 0.10);
  --linea-fuerte: rgba(255, 255, 255, 0.18);
  --linea-oscura: rgba(23, 30, 59, 0.12);
  --superficie: rgba(255, 255, 255, 0.03);

  /* --- Forma --- */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* --- Ritmo --- */
  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);

  /* --- Tipografía --- */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.2vw, 5.5rem);

  /* --- Movimiento --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--texto);
  background: var(--noche);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--cian);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 50%; top: -100px;
  transform: translateX(-50%);
  background: var(--cian); color: var(--noche);
  padding: 0.7rem 1.2rem; border-radius: var(--r-sm);
  font-weight: 700; z-index: 999;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 1rem; }

/* ------------------------------ Layout ------------------------------ */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--light {
  background: var(--destello);
  color: var(--tinta);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.section-head h2 {
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-block: 0.7rem 1rem;
}
.section-sub { color: inherit; opacity: 0.72; font-size: var(--step-0); max-width: 58ch; }

/* ------------------------------ Tipografía ------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cian);
}
.eyebrow--dark { color: var(--azul); }

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cian);
  box-shadow: 0 0 0 4px rgba(116, 202, 236, 0.14);
}
.dot--dark { background: var(--azul); box-shadow: 0 0 0 4px rgba(47, 88, 205, 0.12); }

/* ------------------------------ Botones ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cian);
  color: var(--noche);
  box-shadow: 0 10px 30px -12px rgba(116, 202, 236, 0.55);
}
.btn--primary:hover { background: #8DD6F2; box-shadow: 0 16px 38px -12px rgba(116, 202, 236, 0.7); }

.btn--ghost {
  border-color: var(--linea-fuerte);
  color: var(--texto);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--cian); color: var(--cian); }

.btn--dark {
  background: var(--noche);
  color: var(--destello);
}
.btn--dark:hover { background: var(--noche-700); }

.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.8rem; }
.btn--full { width: 100%; }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.15rem;
  transition: background-color 0.35s var(--ease), padding 0.35s var(--ease),
              border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(13, 18, 37, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--linea);
  padding-block: 0.7rem;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand img { width: clamp(140px, 16vw, 180px); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav > a {
  font-size: 0.86rem; font-weight: 600;
  color: var(--texto-suave);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.2s var(--ease);
}
.nav > a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--cian);
  transition: width 0.25s var(--ease);
}
.nav > a:hover { color: var(--blanco); }
.nav > a:hover::after { width: 100%; }
.nav-cta { color: var(--noche) !important; }
.nav-cta::after { display: none; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.burger span {
  display: block; width: 20px; height: 2px;
  background: var(--blanco); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(8.5rem, 16vh, 11rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(104, 120, 228, 0.22), transparent 62%),
    radial-gradient(760px 420px at 92% 6%, rgba(116, 202, 236, 0.14), transparent 60%),
    var(--noche);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 30%, black 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 10%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-title {
  font-size: var(--step-4);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.038em;
  margin-block: 1.35rem 1.6rem;
  max-width: 17ch;
}
.hero-title .accent {
  display: block;
  background: linear-gradient(100deg, var(--cian) 0%, var(--lavanda) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: var(--texto-suave);
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: 52ch;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  margin-block: 2.2rem 2.4rem;
}

.trust-chips {
  display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--linea);
}
.trust-chips li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600;
  color: var(--texto-suave);
}
.trust-chips svg {
  width: 17px; height: 17px;
  stroke: var(--cian); stroke-width: 1.7;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.hero-art {
  position: relative;
  animation: float 9s ease-in-out infinite;
}
.hero-art svg { width: 100%; height: auto; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ------------------------------ Manifiesto ------------------------------ */
.manifesto {
  background: var(--destello);
  color: var(--tinta);
  padding-block: clamp(2.6rem, 5vw, 3.8rem);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
}
.manifesto-item { position: relative; padding-left: 1.9rem; }
.quote-mark {
  position: absolute; left: 0; top: -0.55rem;
  font-size: 2.6rem; line-height: 1;
  color: var(--azul); opacity: 0.35;
  font-weight: 900;
}
.manifesto-item p {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

/* ------------------------------ Servicios ------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card {
  position: relative;
  padding: 1.9rem 1.7rem 1.6rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
              background 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: -1px -1px auto -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cian), var(--lavanda), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--linea-fuerte);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.card:hover::before { opacity: 1; }

.card-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cian);
  opacity: 0.8;
}
.card h3 {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-block: 0.75rem 0.65rem;
}
.card p { color: var(--texto-suave); font-size: 0.92rem; line-height: 1.6; }
.card .price {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--linea);
  color: var(--texto);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.card .price span { color: var(--texto-tenue); font-weight: 600; font-size: 0.78rem; }
.card .price .per { color: var(--texto-tenue); font-weight: 600; font-size: 0.78rem; }

/* ------------------------------ Planes ------------------------------ */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2rem 1.8rem;
  border: 1px solid var(--linea-oscura);
  border-radius: var(--r-lg);
  background: var(--blanco);
  box-shadow: 0 20px 50px -34px rgba(23, 30, 59, 0.5);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(23, 30, 59, 0.55); }

.plan--featured {
  border: 2px solid var(--azul);
  box-shadow: 0 26px 60px -30px rgba(47, 88, 205, 0.45);
}
.plan-badge {
  position: absolute; top: -12px; left: 1.8rem;
  background: var(--azul);
  color: var(--blanco);
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: var(--r-pill);
}

.plan h3 {
  font-size: 1.22rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--tinta);
}
.plan-kicker {
  font-size: 0.8rem; font-weight: 600;
  color: var(--tinta-suave);
  margin-top: 0.3rem;
}
.plan-price {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--tinta);
  margin-block: 1.1rem 1.3rem;
}

.plan ul { display: grid; gap: 0.55rem; margin-bottom: 1.6rem; }
.plan li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  color: var(--tinta-suave);
  line-height: 1.5;
}
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--azul);
  opacity: 0.85;
}
.plan .btn { margin-top: auto; }

.financing {
  margin-top: 2.2rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--r-md);
  background: rgba(47, 88, 205, 0.07);
  border: 1px solid rgba(47, 88, 205, 0.16);
  font-size: 0.9rem;
  color: var(--tinta-suave);
  max-width: 88ch;
}
.financing strong { color: var(--tinta); }
.financing .fine {
  display: block; margin-top: 0.5rem;
  font-size: 0.76rem; opacity: 0.75;
}

/* ------------------------------ Caso ------------------------------ */
.case {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}

.case-quote {
  border-left: 3px solid var(--cian);
  padding-left: clamp(1.2rem, 2.5vw, 2rem);
}
.case-quote p {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--texto);
}
.case-quote footer { margin-top: 1.5rem; display: grid; gap: 0.25rem; }
.case-quote strong { font-size: 0.95rem; color: var(--cian); }
.case-quote span { font-size: 0.82rem; color: var(--texto-tenue); }

.case-body p { color: var(--texto-suave); font-size: 0.98rem; }

.case-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-block: 1.8rem;
  padding-block: 1.4rem;
  border-block: 1px solid var(--linea);
}
.case-metrics li { display: grid; gap: 0.15rem; }
.case-metrics strong {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 900; letter-spacing: -0.03em;
  color: var(--amarillo);
}
.case-metrics span { font-size: 0.76rem; color: var(--texto-tenue); }

.case-links { display: flex; gap: 0.65rem; flex-wrap: wrap; }

/* ------------------------------ Proceso ------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  position: relative;
}
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  content: "";
  position: absolute; top: 9px; left: 0; right: 0;
  height: 1px; background: var(--linea-oscura);
}
.step::after {
  content: "";
  position: absolute; top: 3px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--azul);
  box-shadow: 0 0 0 4px rgba(47, 88, 205, 0.13);
}
.step:last-child::before { right: 40%; }

.step-num {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.14em; color: var(--azul);
}
.step h3 {
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em;
  margin-block: 0.55rem 0.45rem;
}
.step p { font-size: 0.88rem; color: var(--tinta-suave); }

/* ------------------------------ Niveles ------------------------------ */
.table-wrap {
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.025);
}
.levels { width: 100%; border-collapse: collapse; min-width: 680px; }
.levels th, .levels td {
  text-align: left;
  padding: 1rem 1.15rem;
  font-size: 0.86rem;
}
.levels thead th {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cian);
  border-bottom: 1px solid var(--linea-fuerte);
}
.levels tbody tr + tr { border-top: 1px solid var(--linea); }
.levels tbody th { font-weight: 700; color: var(--texto); white-space: nowrap; }
.levels tbody td { color: var(--texto-suave); }
.levels tbody td:nth-child(4) { color: var(--texto-tenue); }

.notes {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.note {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--superficie);
}
.note h3 {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cian); margin-bottom: 0.55rem;
}
.note p { font-size: 0.88rem; color: var(--texto-suave); }
.note strong { color: var(--texto); }

/* ------------------------------ Contacto ------------------------------ */
.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-copy h2 {
  font-size: var(--step-3);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -0.03em;
  margin-block: 0.7rem 0.9rem;
}

.contact-list {
  display: grid; gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--linea-oscura);
}
.contact-list li { display: grid; gap: 0.15rem; }
.contact-list .label {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--azul);
}
.contact-list a, .contact-list span:not(.label) {
  font-size: 1.02rem; font-weight: 600; color: var(--tinta);
}
.contact-list a:hover { color: var(--azul); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--blanco);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -36px rgba(23, 30, 59, 0.45);
}
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--tinta-suave);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--linea-oscura);
  border-radius: var(--r-sm);
  background: #F7F8FC;
  font-size: 0.92rem;
  color: var(--tinta);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--azul);
  background: var(--blanco);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 88, 205, 0.13);
}
.field textarea { resize: vertical; }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}
.check input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--azul); }
.check label {
  text-transform: none; letter-spacing: 0;
  font-weight: 500; font-size: 0.8rem;
  color: var(--tinta-suave); line-height: 1.5;
}
.check a { color: var(--azul); text-decoration: underline; text-underline-offset: 2px; }

.form-status {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--azul);
  min-height: 1.2em;
}
.form-status.is-error { color: #B42318; }

/* ------------------------------ Footer ------------------------------ */
.site-footer {
  background: var(--noche-900);
  border-top: 1px solid var(--linea);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand img { width: clamp(160px, 18vw, 200px); height: auto; margin-bottom: 1.1rem; }
.slogan {
  font-size: 0.9rem; font-weight: 600;
  color: var(--cian);
  margin-bottom: 1rem;
}
.footer-legal-name {
  font-size: 0.72rem; line-height: 1.7;
  color: var(--texto-tenue);
}

.footer-col { display: grid; gap: 0.7rem; align-content: start; }
.footer-col h3 {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--texto-tenue);
  margin-bottom: 0.3rem;
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--texto-suave);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--cian); }

.socials { display: flex; gap: 0.45rem; margin-top: 0.6rem; }
.socials a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--linea-fuerte);
  border-radius: 50%;
  font-size: 0.68rem; font-weight: 800;
  color: var(--texto-suave);
}
.socials a:hover { border-color: var(--cian); color: var(--cian); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--linea);
  font-size: 0.74rem;
  color: var(--texto-tenue);
}

/* ------------------------------ Reveal ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; justify-self: center; order: -1; margin-bottom: 1rem; }
  .hero-title { max-width: 20ch; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan--featured { order: -1; }

  .case { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .step:last-child::before { right: 0; }
  .step:nth-child(2)::before { right: 45%; }

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

@media (max-width: 780px) {
  .burger { display: grid; }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    padding: 5.5rem var(--gutter) 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: rgba(13, 18, 37, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--linea);
    transform: translateY(-102%);
    transition: transform 0.4s var(--ease);
    max-height: 100dvh;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav > a {
    font-size: 1.05rem;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--linea);
  }
  .nav > a::after { display: none; }
  .nav-cta { margin-top: 1rem; text-align: center; justify-content: center; }

  .manifesto-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::before { right: 70% !important; }
  .case-metrics { gap: 0.9rem; }
  .notes { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-title { max-width: none; }
}

/* ------------------------------ Accesibilidad ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-art { animation: none; }
}

@media print {
  .site-header, .hero-art, .form, .socials { display: none; }
  body { color: #000; background: #fff; }
}

/* =========================================================
   Componentes de páginas internas
   ========================================================= */

/* ------------------------------ Page hero */
.page-hero {
  position: relative;
  padding-block: clamp(7.5rem, 14vh, 10rem) clamp(2.6rem, 5vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 10% -20%, rgba(104, 120, 228, 0.20), transparent 62%),
    radial-gradient(600px 360px at 95% 0%, rgba(116, 202, 236, 0.12), transparent 60%),
    var(--noche);
  border-bottom: 1px solid var(--linea);
}
.page-title {
  font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-block: 1rem 1.1rem;
  max-width: 20ch;
}
.page-lead {
  color: var(--texto-suave);
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: 62ch;
}
.page-hero .hero-actions { margin-block: 1.9rem 0; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  font-size: 0.76rem;
  color: var(--texto-tenue);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--texto-tenue); }
.breadcrumb a:hover { color: var(--cian); }

.page-hero--thanks { padding-block: clamp(9rem, 18vh, 12rem) clamp(5rem, 10vw, 8rem); }

/* ------------------------------ Split y prosa */
.split {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.prose { max-width: 70ch; }
.prose h2 {
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-block: 2.4rem 0.9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--texto-suave); margin-bottom: 1rem; }
.prose .lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--texto);
}
.prose a { color: var(--cian); text-decoration: underline; text-underline-offset: 3px; }
.prose--legal { max-width: 76ch; }

.section--light .prose p { color: var(--tinta-suave); }
.section--light .prose .lead { color: var(--tinta); }

/* Lista con checks */
.ticks { display: grid; gap: 0.7rem; margin-block: 0.4rem 1.4rem; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--texto-suave);
  font-size: 0.95rem;
  line-height: 1.55;
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--cian);
  border-bottom: 2px solid var(--cian);
  transform: rotate(-45deg);
}
.ticks--sm li { font-size: 0.88rem; }
.ticks--muted li { color: var(--texto-tenue); }
.ticks--muted li::before { border-color: var(--texto-tenue); }
.section--light .ticks li { color: var(--tinta-suave); }
.section--light .ticks li::before { border-color: var(--azul); }

/* Lista numerada */
.numbered { display: grid; gap: 0.9rem; counter-reset: n; margin-bottom: 1.4rem; }
.numbered li {
  position: relative;
  padding-left: 2.6rem;
  color: var(--texto-suave);
  font-size: 0.95rem;
  counter-increment: n;
}
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: 0.05em;
  font-size: 0.78rem; font-weight: 800;
  color: var(--cian);
  border: 1px solid var(--linea-fuerte);
  border-radius: 50%;
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
}
.numbered strong { color: var(--texto); }

/* ------------------------------ Caja de precio */
.price-box {
  position: sticky; top: 6.5rem;
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}
.price-box-label {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--cian);
}
.price-box-value {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-block: 0.55rem 0.4rem;
}
.price-box-note { font-size: 0.8rem; color: var(--texto-tenue); line-height: 1.55; }
.price-box .btn { margin-top: 1.2rem; }
.price-box .btn + .btn { margin-top: 0.6rem; }
.price-box-foot {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--linea);
  font-size: 0.74rem; color: var(--texto-tenue);
}
.price-box--form { position: static; }
.price-box--form .form {
  margin-top: 1.2rem;
  padding: 1.2rem 0 0;
  box-shadow: none;
  background: transparent;
  grid-template-columns: 1fr;
}
.price-box--form .field input,
.price-box--form .field select,
.price-box--form .field textarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--linea-fuerte);
  color: var(--texto);
}
.price-box--form .field label { color: var(--texto-tenue); }
.price-box--form .check label { color: var(--texto-tenue); }
.price-box--form .check a { color: var(--cian); }

/* ------------------------------ Datos verificables */
.facts { display: grid; gap: 0.85rem; margin-top: 0.4rem; }
.facts li { display: grid; gap: 0.1rem; font-size: 0.82rem; }
.facts span {
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--texto-tenue);
}
.facts strong { font-weight: 600; color: var(--texto); line-height: 1.45; }
.facts--inline { gap: 1.2rem; }
.facts--inline strong { font-size: 0.92rem; }

/* ------------------------------ Pilares */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-block: 1rem 1.6rem; }
.pillar {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--superficie);
}
.pillar h3 { font-size: 0.9rem; font-weight: 800; margin-bottom: 0.3rem; }
.pillar p { font-size: 0.82rem; color: var(--texto-tenue); margin: 0; }

/* ------------------------------ FAQ */
.faq { display: grid; gap: 0.6rem; max-width: 72ch; }
.faq-item {
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--superficie);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem; line-height: 1;
  color: var(--cian);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary { color: var(--cian); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.2rem; }
.faq-body p { font-size: 0.9rem; color: var(--texto-suave); margin: 0; }

/* ------------------------------ Callout */
.callout {
  margin-top: 2.2rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--r-md);
  border: 1px dashed var(--linea-fuerte);
  background: rgba(116, 202, 236, 0.04);
}
.callout h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.45rem; }
.callout p { font-size: 0.92rem; color: var(--texto-suave); margin-bottom: 1rem; max-width: 66ch; }
.callout--pending { border-style: solid; border-color: rgba(250, 146, 42, 0.35); background: rgba(250, 146, 42, 0.06); }

/* ------------------------------ Casos */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.case-card {
  display: block;
  padding: 1.9rem 1.8rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.case-card:hover { border-color: var(--cian); transform: translateY(-4px); }
.case-tag {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cian);
}
.case-card h2 {
  font-size: var(--step-2);
  font-weight: 800; letter-spacing: -0.025em;
  margin-block: 0.6rem 0.7rem;
}
.case-card p { color: var(--texto-suave); font-size: 0.92rem; }
.case-cta { display: inline-block; margin-top: 1.1rem; font-weight: 700; font-size: 0.85rem; color: var(--cian); }

.case-aside { display: grid; gap: 1rem; position: sticky; top: 6.5rem; }
.case-aside .price-box { position: static; }

.pull-quote {
  margin-top: 2rem;
  padding: 1.4rem 0 1.4rem 1.4rem;
  border-left: 3px solid var(--cian);
}
.pull-quote p {
  font-size: var(--step-1);
  font-weight: 600; line-height: 1.45;
  color: var(--texto); letter-spacing: -0.015em;
}
.pull-quote footer { margin-top: 0.7rem; font-size: 0.78rem; color: var(--texto-tenue); }

/* ------------------------------ CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--noche-900) 0%, var(--noche-700) 55%, #202B52 100%);
  border-top: 1px solid var(--linea);
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
}
.cta-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1.8rem;
}
.cta-inner h2 {
  font-size: var(--step-2);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15; max-width: 26ch;
}
.cta-inner p {
  color: var(--texto-suave);
  font-size: 0.92rem;
  max-width: 52ch;
  margin-top: 0.6rem;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ------------------------------ Tablas adicionales */
.nowrap { white-space: nowrap; }
.table-wrap--light { border-color: var(--linea-oscura); background: var(--blanco); }
.table-wrap--light .levels thead th { color: var(--azul); border-bottom-color: var(--linea-oscura); }
.table-wrap--light .levels tbody tr + tr { border-top-color: var(--linea-oscura); }
.table-wrap--light .levels tbody th { color: var(--tinta); }
.table-wrap--light .levels tbody td { color: var(--tinta-suave); }
.table-link { color: var(--azul); font-weight: 700; font-size: 0.82rem; }
.table-link:hover { text-decoration: underline; }
.fine-print { margin-top: 1rem; font-size: 0.76rem; color: var(--tinta-suave); max-width: 76ch; }

.notes--three { grid-template-columns: repeat(3, 1fr); }
.note--dark { background: var(--blanco); border-color: var(--linea-oscura); }
.note--dark h3 { color: var(--azul); }
.note--dark p { color: var(--tinta-suave); }

/* ------------------------------ Nav activa y tarjetas enlazadas */
.nav > a.is-active { color: var(--blanco); }
.nav > a.is-active::after { width: 100%; }
.card-link { display: block; }
.card-link::after {
  content: "";
  position: absolute; inset: 0;
}

/* ------------------------------ Responsive interno */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .price-box, .case-aside { position: static; }
  .case-grid { grid-template-columns: 1fr; }
  .notes--three { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 780px) {
  .pillars { grid-template-columns: 1fr; }
  .page-title { max-width: none; }
}

/* ------------------------------ Casos en progreso */
.case-card--wip {
  border-style: dashed;
  background: transparent;
  cursor: default;
}
.case-card--wip:hover { transform: none; border-color: var(--linea-fuerte); }
.case-tag--wip { color: var(--amarillo); }
.case-meta {
  display: inline-block; margin-top: 1.1rem;
  font-size: 0.76rem; color: var(--texto-tenue);
}
.case-grid { grid-template-columns: repeat(2, 1fr); }
.case-card--wip h2 { font-size: var(--step-1); }

/* ------------------------------ Precio promocional */
.plan-promo {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blanco);
  background: var(--candela);
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-pill);
  vertical-align: middle;
}

/* ------------------------------ Métricas sobre fondo claro */
.case-metrics--light { border-block-color: var(--linea-oscura); max-width: 640px; }
.case-metrics--light strong { color: var(--azul); }
.case-metrics--light span { color: var(--tinta-suave); }

/* =========================================================
   Animaciones e interacción
   ========================================================= */

/* --- Transiciones de página (MPA, sin SPA) --- */
@view-transition { navigation: auto; }

/* --- Entrada del hero, escalonada --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-copy > * { animation: fadeUp 0.9s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.34s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.44s; }
.hero-art { animation: float 9s ease-in-out infinite, fadeIn 1.4s var(--ease) 0.3s both; }

.page-hero .eyebrow,
.page-hero .page-title,
.page-hero .page-lead,
.page-hero .hero-actions { animation: fadeUp 0.8s var(--ease) both; }
.page-hero .page-title { animation-delay: 0.1s; }
.page-hero .page-lead { animation-delay: 0.2s; }
.page-hero .hero-actions { animation-delay: 0.28s; }

/* --- Botones magnéticos (la traslación la pone el JS) --- */
.btn { translate: var(--tx, 0px) var(--ty, 0px); transition: transform 0.25s var(--ease), translate 0.25s var(--ease),
        background-color 0.25s var(--ease), border-color 0.25s var(--ease),
        box-shadow 0.25s var(--ease), color 0.25s var(--ease); }

/* --- Spotlight en tarjetas --- */
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(116, 202, 236, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card-link { position: relative; z-index: 1; }

/* --- Marquee de servicios --- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--linea);
  background: linear-gradient(90deg, var(--noche-900), var(--noche-800) 50%, var(--noche-900));
  padding-block: 1.1rem;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.6rem;
  animation: slide 34s linear infinite;
}
.marquee-track span {
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-tenue);
  white-space: nowrap;
}
.marquee-track span:nth-child(4n + 1) { color: var(--cian); }
.marquee-track i {
  width: 6px; height: 6px;
  background: var(--lavanda);
  transform: rotate(45deg);
  flex: none;
  opacity: 0.7;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =========================================================
   Mapeo Innover (cuestionario)
   ========================================================= */
.container--narrow { width: min(100% - (var(--gutter) * 2), 760px); }

.section--quiz {
  background:
    radial-gradient(700px 420px at 80% -10%, rgba(104, 120, 228, 0.16), transparent 60%),
    radial-gradient(520px 380px at 0% 100%, rgba(116, 202, 236, 0.10), transparent 60%),
    var(--noche);
}

.quiz {
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: 0 40px 90px -60px rgba(116, 202, 236, 0.5);
}

.quiz-head { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.quiz-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-bottom: 0.7rem;
}
.quiz-eyebrow {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cian);
}
.quiz-counter {
  font-size: 0.72rem; font-weight: 700;
  color: var(--texto-tenue);
  font-variant-numeric: tabular-nums;
}
.quiz-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 2px;
  overflow: hidden;
}
.quiz-bar span {
  display: block; height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--cian), var(--lavanda));
  border-radius: 2px;
  transition: width 0.45s var(--ease);
}

.quiz-step { animation: fadeUp 0.45s var(--ease) both; }

.quiz-kicker {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--texto-tenue);
  margin-bottom: 0.7rem;
}
.quiz-question {
  font-size: clamp(1.45rem, 1.1rem + 1.7vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.quiz-question:focus { outline: none; }
.quiz-hint {
  font-size: 0.88rem;
  color: var(--texto-tenue);
  margin-bottom: 1.6rem;
  max-width: 54ch;
}

.quiz-options {
  display: grid;
  gap: 0.55rem;
  margin-block: 1.6rem;
}
.quiz-option {
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  text-align: left;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--texto);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.15s var(--ease);
}
.quiz-option:hover {
  border-color: var(--cian);
  background: rgba(116, 202, 236, 0.07);
  transform: translateX(3px);
}
.quiz-option.is-selected {
  border-color: var(--cian);
  background: rgba(116, 202, 236, 0.14);
  color: var(--blanco);
}
.quiz-key {
  display: grid; place-items: center;
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1px solid var(--linea-fuerte);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--texto-tenue);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.quiz-option:hover .quiz-key,
.quiz-option.is-selected .quiz-key {
  color: var(--cian);
  border-color: var(--cian);
}

.quiz-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
}

.quiz-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 1.4rem; }
.quiz-form .field--full { grid-column: 1 / -1; }
.quiz-form input[type="text"],
.quiz-form input[type="email"],
.quiz-form input[type="tel"] {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--texto);
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.quiz-form input:focus {
  border-color: var(--cian);
  outline: none;
  box-shadow: 0 0 0 3px rgba(116, 202, 236, 0.15);
}
.quiz-form .field label { color: var(--texto-tenue); }
.quiz-form .check label { color: var(--texto-tenue); }
.quiz-form .check a { color: var(--cian); }
.quiz-error {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FF9B8A;
  min-height: 1em;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.quiz-error.is-visible { opacity: 1; }

/* --- Resultado --- */
.quiz-result { animation: fadeUp 0.5s var(--ease) both; }
.quiz-result-plan {
  font-size: 1rem;
  color: var(--texto-suave);
  margin-block: 0.4rem 1.4rem;
}
.quiz-result-plan strong { color: var(--cian); font-weight: 800; }

.quiz-why { display: grid; gap: 0.6rem; margin-bottom: 1.6rem; }
.quiz-why li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.9rem;
  color: var(--texto-suave);
  line-height: 1.55;
}
.quiz-why li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--cian);
  border-bottom: 2px solid var(--cian);
  transform: rotate(-45deg);
}

.quiz-summary {
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  padding: 0.4rem 1rem;
  margin-bottom: 1.6rem;
}
.quiz-summary-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  justify-content: space-between;
  padding-block: 0.6rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--linea);
}
.quiz-summary-row:last-child { border-bottom: 0; }
.quiz-summary-row span { color: var(--texto-tenue); }
.quiz-summary-row strong { color: var(--texto); font-weight: 600; text-align: right; }

.quiz-send {
  padding-top: 1.4rem;
  border-top: 1px solid var(--linea);
}
.quiz-send-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.quiz-send-text { font-size: 0.85rem; color: var(--texto-tenue); margin-bottom: 1rem; max-width: 52ch; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.quiz-restart {
  margin-top: 1.1rem;
  background: none; border: 0;
  color: var(--texto-tenue);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.quiz-restart:hover { color: var(--cian); }

.quiz-outro {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--texto-tenue);
}
.quiz-noscript {
  padding: 1rem;
  border: 1px dashed var(--linea-fuerte);
  border-radius: var(--r-md);
  font-size: 0.88rem;
}

@media (max-width: 560px) {
  .quiz-form { grid-template-columns: 1fr; }
  .quiz-option { font-size: 0.9rem; padding: 0.85rem 0.95rem; }
}

/* --- Respeta la preferencia de movimiento reducido --- */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-art, .page-hero .page-title, .page-hero .page-lead,
  .page-hero .hero-actions, .quiz-step, .quiz-result {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee-track { animation: none !important; }
  .btn { translate: 0 0 !important; }
  .card::after { display: none; }
}

/* Etiqueta de opción del mapeo */
.quiz-label { flex: 1; }

/* Estado de envío confirmado en el resultado del mapeo */
.quiz-send.is-sent { border-top-color: rgba(116, 202, 236, 0.4); }
.quiz-send.is-sent .quiz-send-title { color: var(--cian); }

/* =========================================================
   Bloques de imagen pendiente (media slots)
   Marcadores de posición para las fotos que faltan.
   Se reemplazan por <img> cuando el material exista.
   ========================================================= */
.media-slots {
  display: grid;
  gap: 1rem;
  margin-block: 2rem;
}
.media-slots--2 { grid-template-columns: repeat(2, 1fr); }

.media-slot {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 1.5px dashed rgba(116, 202, 236, 0.34);
  border-radius: var(--r-md);
  background:
    radial-gradient(130% 120% at 50% 0%, rgba(104, 120, 228, 0.13), transparent 62%),
    rgba(255, 255, 255, 0.02);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.media-slot--wide { aspect-ratio: 21 / 9; }
.media-slot--square { aspect-ratio: 1 / 1; }
.media-slot--tall { aspect-ratio: 4 / 5; }

.media-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(116, 202, 236, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 202, 236, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 50%, #000 28%, transparent 100%);
  mask-image: radial-gradient(72% 62% at 50% 50%, #000 28%, transparent 100%);
}

.media-slot-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.1rem;
  color: rgba(116, 202, 236, 0.75);
}

.media-slot-title {
  position: relative;
  max-width: 34ch;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--texto);
}

.media-slot-spec {
  position: relative;
  max-width: 46ch;
  font-size: 0.72rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--texto-tenue);
}

.media-slot-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(116, 202, 236, 0.28);
  border-radius: var(--r-pill);
  background: rgba(116, 202, 236, 0.1);
  color: var(--cian);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Variante sobre fondo claro */
.section--light .media-slot {
  border-color: rgba(47, 88, 205, 0.34);
  background:
    radial-gradient(130% 120% at 50% 0%, rgba(104, 120, 228, 0.11), transparent 62%),
    rgba(23, 30, 59, 0.02);
}
.section--light .media-slot::before { opacity: 0.55; }
.section--light .media-slot-title { color: var(--tinta); }
.section--light .media-slot-spec { color: var(--tinta-suave); }
.section--light .media-slot-icon { color: rgba(47, 88, 205, 0.62); }
.section--light .media-slot-tag {
  border-color: rgba(47, 88, 205, 0.26);
  background: rgba(47, 88, 205, 0.08);
  color: var(--azul);
}

@media (max-width: 720px) {
  .media-slots--2 { grid-template-columns: 1fr; }
  /* En móvil el texto manda: se suelta la proporción y se garantiza alto mínimo,
     si no la caja se queda corta y recorta la descripción de la foto. */
  .media-slot,
  .media-slot--wide,
  .media-slot--square,
  .media-slot--tall {
    aspect-ratio: auto;
    min-height: 168px;
    padding: 1.2rem 1rem;
  }
}

/* =========================================================
   Capa de animaciones festivas
   La dibuja assets/js/app.js en un canvas. Nunca recibe clics.
   Por debajo del header (z-index 100) para no tapar el menú.
   ========================================================= */
.festivo-lienzo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  pointer-events: none;
}

.festivo-pill {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  background: rgba(13, 18, 37, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: var(--texto);
  font-size: 0.73rem;
  font-weight: 600;
  animation: festivoIn 0.5s var(--ease) both;
}

@keyframes festivoIn {
  from { opacity: 0; transform: translateY(10px); }
}

.festivo-pill span { white-space: nowrap; }

.festivo-pill button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--texto-suave);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}
.festivo-pill button:hover { background: rgba(255, 255, 255, 0.18); color: var(--texto); }
.festivo-pill button:focus-visible { outline: 2px solid var(--cian); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .festivo-lienzo, .festivo-pill { display: none; }
}
