/* ==========================================================================
   styles.css — ESTILOS DEL DIAGNÓSTICO DE CIERRE · 5 DIRECCIONES
   ==========================================================================
   Índice:
     1. Variables de marca (colores, tipografía)  ← EDITA AQUÍ PARA CAMBIAR LA MARCA
     2. Reset y base
     3. Barra superior y cabecera
     4. Portada (y 4b. planes, paquetes y cierre)
     5. Preguntas y opciones
     6. Formulario
     7. Resultado (y 7b. página legal)
     8. WhatsApp flotante y utilidades
     9. Responsive y accesibilidad
   ========================================================================== */


/* 1. VARIABLES DE MARCA ------------------------------------------------------
   Colores tomados del logotipo original de 5 Direcciones:
     Gris carbón  #343539  (emblema y "direccion")
     Verde azulado #176e75 (emblema y "es")
     Café grisáceo #5a504e (el "5" del wordmark)
   Y del sitio web www.5direcciones.com.co:
     Turquesa     #0f9ba6  (color de tema de la web; se usa como ACENTO brillante)
   Nota de accesibilidad: el texto blanco sobre #0f9ba6 no tiene contraste suficiente,
   por eso los botones usan el verde azulado oscuro #176e75 y el turquesa va en detalles.
   Cambiar un color aquí lo cambia en toda la página. */
:root {
  /* Marca */
  --c-dark:        #343539;
  --c-dark-deep:   #26272b;
  --c-teal:        #176e75;
  --c-teal-hover:  #11585e;
  --c-cyan:        #0f9ba6;   /* turquesa de la web: acentos, progreso, iconos */
  --c-teal-soft:   #e5f4f5;   /* fondo suave de selección */
  --c-brown:       #5a504e;

  /* Neutros */
  --c-bg:          #f7f8f8;
  --c-surface:     #ffffff;
  --c-ink:         #26272b;
  --c-muted:       #6a6d74;
  --c-border:      #e1e4e7;

  /* Estados del resultado (semáforo) */
  --c-ok:          #0f9ba6;
  --c-warn:        #b7791f;
  --c-bad:         #b42318;
  --c-crit:        #8f1d14;

  /* Tipografía */
  --f-title: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-text:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Forma */
  --radius: 14px;
  --shadow: 0 10px 28px -12px rgba(23, 110, 117, .45);
}


/* 2. RESET Y BASE ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
}
body.theme-christmas {
  --c-dark: #27382f;
  --c-dark-deep: #202a25;
  --c-teal: #18563f;
  --c-teal-hover: #124431;
  --c-cyan: #9b3d49;
  --c-teal-soft: #edf3ea;
  --c-bg: #fbfaf6;
  --c-border: #e7e2d8;
  --c-ok: #28714e;
  --c-warn: #a36d25;
  --c-bad: #a33d49;
  --c-crit: #7f2635;
  --c-holiday-gold: #d2a84e;
  --c-holiday-red: #a33d49;
  --c-holiday-pine: #18563f;
  background-color: var(--c-bg);
  background-image:
    radial-gradient(circle at 14px 12px, rgba(210, 168, 78, .08) 1px, transparent 1.7px),
    radial-gradient(circle at 32px 32px, rgba(163, 61, 73, .04) 1px, transparent 1.7px);
  background-size: 88px 88px, 120px 120px;
}
h1, h2, h3 { font-family: var(--f-title); margin: 0; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 20px; }
main.container { padding-bottom: 96px; outline: none; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--c-teal); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }


/* 3. BARRA SUPERIOR Y CABECERA ---------------------------------------------- */
.topbar {
  background: var(--c-dark);
  color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 14px;
  padding: 12px 16px;
  font-family: var(--f-title); font-weight: 600; font-size: 16px;
}
body.theme-christmas .topbar {
  position: relative; overflow: hidden;
  background: linear-gradient(110deg, #174b39, #253d32);
  padding-bottom: 15px;
}
body.theme-christmas .topbar::after {
  content: ""; position: absolute; inset: auto 0 0; height: 5px; pointer-events: none;
  background:
    radial-gradient(circle at 8px 2px, #f3cf75 0 2px, transparent 2.8px) 0 0 / 28px 5px repeat-x,
    radial-gradient(circle at 22px 4px, #d36a69 0 2px, transparent 2.8px) 0 0 / 28px 5px repeat-x;
}
.topbar__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-cyan);                 /* punto "en vivo" */
  box-shadow: 0 0 0 0 rgba(15, 155, 166, .6);
  animation: pulso 1.8s infinite;
}
body.theme-christmas .topbar__dot {
  background: var(--c-holiday-gold);
  animation-name: pulso-navidad;
}
.topbar__days {
  background: var(--c-teal); border-radius: 8px;
  padding: 1px 10px; margin: 0 2px; font-size: 20px;
}
body.theme-christmas .topbar__days { background: var(--c-holiday-red); }
.topbar__clock {
  background: rgba(255, 255, 255, .08); border-radius: 10px;
  padding: 4px 12px; font-variant-numeric: tabular-nums;
}
.topbar__clock b { font-weight: 700; }
.topbar__clock small { font-size: 12px; opacity: .7; margin: 0 6px 0 3px; font-family: var(--f-text); }
.topbar__clock small:last-child { margin-right: 0; }

@keyframes pulso {
  70%  { box-shadow: 0 0 0 9px rgba(15, 155, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 155, 166, 0); }
}
@keyframes pulso-navidad {
  70%  { box-shadow: 0 0 0 9px rgba(210, 168, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(210, 168, 78, 0); }
}

.header { position: relative; background: var(--c-bg); border-bottom: 2px solid var(--c-border); }
body.theme-christmas .header { border-bottom-color: var(--c-holiday-gold); }
.header__row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo img { height: 30px; width: auto; }
.header__status { font-size: 15px; font-weight: 500; color: var(--c-muted); }
.header__actions { display: flex; align-items: center; gap: 20px; }
.header__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--c-teal); border-radius: 999px;
  background: var(--c-teal); color: #fff; text-decoration: none; white-space: nowrap;
  font-size: 14px; font-weight: 700;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.header__cta:hover { background: var(--c-teal-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.header__cta svg { transition: transform .2s ease; }
.header__cta:hover svg { transform: translate(2px, -2px); }

/* Barra de progreso: va pegada al borde inferior de la cabecera */
.progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; }
.progress__bar {
  height: 100%; width: 0;
  background: var(--c-cyan);
  transition: width .35s ease;
}
body.theme-christmas .progress__bar { background: var(--c-holiday-gold); }


/* 4. PORTADA ------------------------------------------------------------------ */
.view { padding-top: 40px; animation: entrar .35s ease both; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-teal); color: #fff;
  border-radius: 999px; padding: 9px 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.badge__dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
body.theme-christmas .badge__dot { background: var(--c-holiday-gold); }

.hero__title {
  margin-top: 26px;
  font-size: clamp(34px, 6.2vw, 56px);
  font-weight: 700;
}
.hero__title em { font-style: normal; color: var(--c-cyan); }
.hero__lead {
  margin-top: 26px; max-width: 760px;
  font-size: clamp(17px, 2.4vw, 22px); line-height: 1.55; color: #3d4047;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 12px; text-decoration: none;
  padding: 18px 32px; font-family: var(--f-title); font-size: 18px; font-weight: 600;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .option:focus-visible, .link-btn:focus-visible, .header__cta:focus-visible, input:focus-visible {
  outline: 3px solid rgba(15, 155, 166, .4); outline-offset: 2px;
}
.btn--primary { background: var(--c-teal); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--c-teal-hover); }
.btn--accent  { background: var(--c-teal); color: #fff; box-shadow: var(--shadow); }
.btn--accent:hover { background: var(--c-teal-hover); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 0; margin: 18px 0 0; font-size: 15px; color: var(--c-muted);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 18px; padding: 20px;
}
.card__icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: var(--c-teal-soft); color: var(--c-cyan);
}
.card__title { margin-top: 18px; font-size: 18px; font-weight: 600; }
.card__text { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--c-muted); }
body.theme-christmas .card__icon { background: #f5eee1; color: var(--c-holiday-red); }


/* 4b. ACCIONES DE PORTADA, PLANES, PAQUETES Y CIERRE -------------------------- */
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn--ghost { background: transparent; color: var(--c-teal); border: 2px solid var(--c-teal); box-shadow: none; }
.btn--ghost:hover { background: var(--c-teal-soft); }
.btn--block { width: 100%; }

.offer { margin-top: 84px; text-align: center; }
.offer__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--c-teal); }
.offer__title { margin-top: 14px; font-size: clamp(30px, 5.4vw, 48px); font-weight: 700; color: var(--c-dark); text-wrap: balance; }
.offer__title--sm { font-size: clamp(26px, 4.4vw, 36px); }
.offer__lead { margin: 16px auto 0; max-width: 640px; font-size: 18px; color: var(--c-muted); }
.offer__note { margin-top: 22px; font-size: 14px; color: var(--c-muted); }

/* Invitación a explorar la facturación antes de los planes */
.plans-intro {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(180px, .75fr) 1.6fr; align-items: center; gap: 28px;
  margin-top: 76px; padding: 28px 40px; border: 1px solid #d5e9e9; border-radius: 28px;
  background: linear-gradient(115deg, #eaf6f6 0%, #fff 76%); text-align: left;
  animation: entrar .55s ease both;
}
body.theme-christmas .plans-intro {
  border-color: #e5d7b8;
  background: linear-gradient(115deg, #f7f0e2 0%, #eef4ea 58%, #fff 100%);
}
body.theme-christmas .plans-intro::after {
  content: "\2726"; position: absolute; top: 14px; right: 22px;
  color: var(--c-holiday-gold); font-size: 25px; line-height: 1;
  animation: brillo-navidad 2.8s ease-in-out infinite;
}
@keyframes brillo-navidad {
  50% { opacity: .48; transform: scale(.82) rotate(18deg); }
}
.plans-intro__art {
  width: 100%; max-width: 190px; height: auto; object-fit: contain; object-position: center bottom;
  justify-self: center; align-self: end;
}
.plans-intro__title { margin-top: 10px; font-size: clamp(24px, 3.8vw, 34px); font-weight: 700; color: var(--c-dark); text-wrap: balance; }
.plans-intro__text { margin-top: 12px; max-width: 560px; color: var(--c-muted); font-size: 16px; }
.plans-intro__link { margin-top: 20px; padding: 14px 22px; font-size: 16px; }
.plans-intro__link svg { transition: transform .2s ease; }
.plans-intro__link:hover svg { transform: translateY(4px); }

/* Tarjetas de planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; align-items: stretch; text-align: left; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 26px; padding: 28px 24px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.plan--pop { border: 2px solid var(--c-teal); box-shadow: 0 24px 48px -24px rgba(23, 110, 117, .45); }
@media (hover: hover) {
  .plan:hover { transform: translateY(-5px); box-shadow: 0 22px 42px -24px rgba(23, 110, 117, .5); }
}
body.theme-christmas .plan--pop {
  border-color: var(--c-holiday-gold);
  box-shadow: 0 24px 48px -24px rgba(166, 120, 42, .48);
}
.plans--arrival .plan { animation: plan-arrival .68s cubic-bezier(.2, .8, .2, 1) both; }
.plans--arrival .plan:nth-child(2) { animation-delay: .1s; }
.plans--arrival .plan:nth-child(3) { animation-delay: .2s; }
@keyframes plan-arrival {
  0% { opacity: .65; transform: translateY(14px) scale(.98); }
  70% { opacity: 1; transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: none; }
}
.plan__badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--c-teal); color: #fff; border-radius: 999px; padding: 6px 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
}
body.theme-christmas .plan__badge { background: var(--c-holiday-red); }
.plan__name { font-size: 21px; font-weight: 600; }
.plan__desc { margin-top: 10px; font-size: 15px; color: var(--c-muted); min-height: 4.8em; }
.plan__price { margin-top: 22px; text-align: center; font-family: var(--f-title); font-weight: 700; font-size: 44px; line-height: 1; color: var(--c-dark); letter-spacing: -.03em; }
.plan--pop .plan__price { color: var(--c-teal); }
.plan__price small { font-size: 22px; vertical-align: .55em; margin-right: 2px; }
.plan__term { margin-top: 12px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--c-muted); }
.plan .checks { margin-top: 24px; flex: 1; }
.plan .btn { margin-top: 24px; width: 100%; padding: 15px 20px; font-size: 16px; border: 1px solid var(--c-border); background: #fff; color: var(--c-ink); box-shadow: none; }
.plan .btn:hover { border-color: var(--c-teal); color: var(--c-teal); }
.plan--pop .btn { background: var(--c-teal); border-color: var(--c-teal); color: #fff; box-shadow: var(--shadow); }
.plan--pop .btn:hover { background: var(--c-teal-hover); color: #fff; }

/* Lista con ícono de chulo (planes y paquetes) */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; text-align: left; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; color: #34363c; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--c-cyan);
  background: no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9ba6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}

/* Paquetes y precios */
.pack {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-top: 40px; text-align: left;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 30px; padding: 40px;
}
body.theme-christmas .pack { border-color: #e5dcc8; }
.pack__info, .pack__buy { min-width: 0; }
.pack__name { font-size: clamp(26px, 4vw, 38px); font-weight: 600; color: var(--c-dark); }
.pack__desc { margin: 16px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--c-border); font-size: 17px; color: var(--c-muted); }
.pack__buy { display: grid; gap: 16px; align-content: start; }
.pack__buy .field label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); }
.select {
  width: 100%; height: 56px; padding: 0 48px 0 20px; border: 1px solid var(--c-border); border-radius: 999px;
  background: #fff no-repeat right 20px center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176e75' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  -webkit-appearance: none; appearance: none; font-size: 17px; font-weight: 500; color: var(--c-ink);
}
.select:focus-visible { outline: 3px solid rgba(15, 155, 166, .4); outline-offset: 2px; }
.pack__price { padding-top: 16px; border-top: 1px solid var(--c-border); }
.pack__price-label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); }
.pack__price-value { display: block; margin-top: 6px; font-family: var(--f-title); font-size: 46px; line-height: 1.05; letter-spacing: -.02em; color: var(--c-teal); font-variant-numeric: tabular-nums; }
.pack__price-value--quote { font-size: 28px; }

/* Llamado a la acción final */
.final {
  margin-top: 84px; padding: 64px 28px; border-radius: 30px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, #11585e 0%, #0d3a3f 45%, var(--c-dark-deep) 100%);
}
body.theme-christmas .final {
  background: radial-gradient(ellipse at 50% 0%, #286246 0%, #194433 46%, #232d27 100%);
}
.final__title { font-size: clamp(30px, 5.2vw, 46px); font-weight: 700; text-wrap: balance; }
.final__text { margin: 18px auto 0; max-width: 640px; font-size: 18px; color: #cfd9db; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.btn--light { background: #fff; color: var(--c-dark); box-shadow: none; }
.btn--light:hover { background: var(--c-teal-soft); }
.btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.final__link { display: inline-block; margin-top: 26px; font-size: 16px; font-weight: 600; color: #cfd9db; text-decoration: underline; text-underline-offset: 4px; }
.final__link:hover { color: #fff; }


/* 5. PREGUNTAS Y OPCIONES ----------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-brown);
}
.eyebrow__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-cyan); }

.q__title { margin-top: 24px; font-size: clamp(26px, 4.4vw, 38px); font-weight: 600; outline: none; }
.q__help  { margin-top: 12px; font-size: 18px; color: var(--c-muted); max-width: 760px; }

.options { display: grid; gap: 12px; margin-top: 28px; }
.option {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px;
  padding: 18px 20px; font-size: 18px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.option:hover { border-color: var(--c-teal); }
.option__key {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--c-border); border-radius: 9px;
  font-size: 14px; font-weight: 700; color: var(--c-muted); background: #fff;
}
.option[aria-checked="true"] { border-color: var(--c-teal); background: var(--c-teal-soft); }
.option[aria-checked="true"] .option__key { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }

.q__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; }
.q__tip { font-size: 14px; color: #9a9da4; }
.link-btn {
  background: none; border: 0; padding: 6px 2px;
  font-size: 16px; font-weight: 600; color: var(--c-muted);
}
.link-btn:hover { color: var(--c-teal); }


/* 6. FORMULARIO --------------------------------------------------------------- */
.form {
  margin-top: 28px; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: 22px; padding: 28px;
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.field input {
  width: 100%; height: 64px; padding: 0 18px;
  border: 1px solid var(--c-border); border-radius: 14px; background: #fff; font-size: 18px;
}
.field input::placeholder { color: #a0a3a9; }
.field input[aria-invalid="true"] { border-color: var(--c-bad); }
.field__error { display: block; min-height: 0; margin-top: 6px; font-size: 13px; color: var(--c-bad); }
.field__error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* anti-spam */

.consent { display: flex; gap: 12px; margin-top: 22px; font-size: 14px; color: var(--c-muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-teal); }
.consent a { color: var(--c-teal); }
.form .btn { margin-top: 24px; }
.form__status { margin-top: 16px; font-size: 14px; color: var(--c-bad); }


/* 7. RESULTADO ---------------------------------------------------------------- */
.score { display: flex; align-items: center; gap: 28px; margin-top: 24px; }
.score__ring { position: relative; flex: none; width: 168px; height: 168px; }
.score__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score__track, .score__value { fill: none; stroke-width: 11; }
.score__track { stroke: var(--c-border); }
.score__value {
  stroke: var(--nivel, var(--c-teal)); stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;     /* 2·π·52 */
  transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1);
}
.score__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score__num strong { font-family: var(--f-title); font-size: 52px; line-height: 1; }
.score__num small  { color: var(--c-muted); font-size: 14px; }
.score__text .q__title { margin-top: 12px; }

.pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--nivel, var(--c-teal));
}

.section-title { margin-top: 44px; font-size: 22px; font-weight: 600; }
.bars { display: grid; gap: 14px; margin-top: 16px; }
.bar__row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.bar__track { height: 10px; margin-top: 6px; border-radius: 99px; background: var(--c-border); overflow: hidden; }
.bar__fill  { height: 100%; width: 0; border-radius: 99px; background: var(--c-teal); transition: width .9s ease; }
.bar__fill[data-nivel="warn"] { background: var(--c-warn); }
.bar__fill[data-nivel="bad"]  { background: var(--c-bad); }

.block { margin-top: 32px; }
.block__title { font-size: 20px; font-weight: 600; }
.block__intro { margin-top: 4px; font-size: 15px; color: var(--c-muted); }
.block ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.block li {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-teal); border-radius: 12px; padding: 14px 16px;
}
.block li strong { display: block; font-size: 16px; }
.block li span { display: block; margin-top: 3px; font-size: 15px; color: var(--c-muted); }
.block--ahorro  li { border-left-color: var(--c-warn); }
.block--sancion li { border-left-color: var(--c-bad); }
.block__ok { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--c-teal-soft); color: var(--c-teal-hover); font-size: 15px; }

.cta-box {
  margin-top: 44px; padding: 32px 28px; border-radius: 22px;
  background: var(--c-dark); color: #fff; text-align: center;
}
.cta-box__title { font-size: 26px; font-weight: 600; }
.cta-box p { margin: 10px auto 22px; max-width: 520px; color: #d4d6da; }
.link-btn--light { display: block; margin: 18px auto 0; color: #b9bcc2; }
.link-btn--light:hover { color: #fff; }
.disclaimer { margin-top: 24px; font-size: 13px; color: var(--c-muted); }
.result-actions { margin-top: 36px; text-align: center; }
.result-actions__help { margin-top: 8px; color: var(--c-muted); font-size: 13px; }


/* 7b. PÁGINA LEGAL (politica-de-privacidad.html) ----------------------------- */
.legal { padding-top: 40px; max-width: 800px; }
.legal__title { font-size: clamp(28px, 5vw, 42px); font-weight: 700; }
.legal__meta { margin-top: 8px; color: var(--c-muted); font-size: 14px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: #34363c; }
.legal p { margin-top: 14px; }
.legal h2 { margin-top: 34px; font-size: 21px; font-weight: 600; color: var(--c-dark); }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a:not(.btn) { color: var(--c-teal); }
.legal__back { margin-top: 40px; }

/* 7c. CONSENTIMIENTO DE MEDICIÓN --------------------------------------------- */
.privacy-controls {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  margin-top: 28px; margin-bottom: 110px; font-size: 14px;
}
.privacy-controls a, .privacy-banner a { color: var(--c-teal); }
.privacy-banner {
  position: fixed; z-index: 60; left: 16px; right: 100px; bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 22px; border: 1px solid var(--c-border); border-radius: 16px;
  background: #fff; box-shadow: 0 12px 36px rgba(0, 0, 0, .2);
}
.privacy-banner[hidden], #privacy-settings[hidden] { display: none; }
.privacy-banner__copy h2 { font-size: 17px; }
.privacy-banner__copy p { margin-top: 4px; color: var(--c-muted); font-size: 14px; line-height: 1.45; }
.privacy-banner__copy a { display: inline-block; margin-top: 5px; font-size: 13px; }
.privacy-banner__actions { display: flex; flex-shrink: 0; gap: 10px; }
.privacy-banner__actions .btn { padding: 11px 16px; font-size: 14px; }

/* 8. WHATSAPP FLOTANTE ---------------------------------------------------------- */
.wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 50%; background: var(--c-teal); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .15s ease, background .2s ease;
}
.wa:hover { transform: scale(1.06); background: var(--c-teal-hover); }


/* 9. RESPONSIVE Y ACCESIBILIDAD -------------------------------------------------- */
@media (max-width: 760px) {
  .topbar { font-size: 14px; }
  .topbar__dot { display: none; }
  .cards, .plans { grid-template-columns: 1fr; }
  .plans-intro { grid-template-columns: 150px 1fr; gap: 18px; margin-top: 60px; padding: 22px; }
  .plans-intro__art { max-width: 145px; }
  .plans { gap: 30px; }
  .plan__desc { min-height: 0; }
  .pack { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
  .offer { margin-top: 64px; }
  .final { padding: 44px 20px; }
  .final__actions .btn { width: 100%; }
  .form__grid { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .score { flex-direction: column; align-items: flex-start; }
  .q__tip { display: none; }       /* en móvil no hay teclado físico */
  .btn { width: 100%; }
  .wa { right: 16px; bottom: 16px; }
  .privacy-controls { margin-bottom: 100px; }
  .privacy-banner { left: 12px; right: 12px; bottom: 92px; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .privacy-banner__actions .btn { flex: 1; width: auto; }
}

@media (max-width: 520px) {
  .header__row {
    height: auto; min-height: 76px; flex-wrap: wrap; gap: 8px;
    padding-top: 12px; padding-bottom: 12px;
  }
  .header__actions { flex: 1 0 100%; justify-content: space-between; gap: 12px; }
  .header__status { font-size: 13px; }
  .header__cta { padding: 8px 13px; font-size: 13px; }
}

@media (max-width: 480px) {
  .plans-intro { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .plans-intro__art { max-width: 125px; }
  .plans-intro__text { margin-left: auto; margin-right: auto; }
}

/* Respeta a quien pide menos animaciones en su sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@page { margin: 16mm; }

@media print {
  body { background: #fff !important; color: #26272b; }
  .skip-link, .topbar, .header__actions, .progress, .privacy-controls,
  .privacy-banner, .wa, .result-actions, .cta-box,
  .view:not(#view-resultado) { display: none !important; }
  .header { border: 0; background: #fff; }
  .header__row { max-width: none; height: auto; padding: 0; justify-content: flex-start; }
  .header__logo img { height: 28px; }
  main.container { max-width: none; padding: 0; }
  #view-resultado { display: block !important; padding-top: 20px; animation: none; }
  .score, .block, .bar__row { break-inside: avoid; }
  .score__ring, .score__value, .bar__track, .bar__fill, .block li, .block__ok {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .score__value, .bar__fill { transition: none; }
}
