/* ValEd · estilo compartido (rediseño dic. 2026, referencia de lenguaje: RedSun).
   Paleta de marca intacta: azul #0B3875, verde #00A887, tinta #12233f, papel #f6f8fb.
   El mundo: un horizonte nocturno azul que se ilumina en verde. Banda oscura arriba (barra + portada)
   y al cierre; el cuerpo en papel claro. Tarjetas de doble anillo, botones píldora con brillo,
   titulares grandes que se revelan palabra por palabra. */

@font-face{font-family:"Exo 2";font-weight:500;font-display:swap;src:url(/fuentes/exo-2-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Exo 2";font-weight:600;font-display:swap;src:url(/fuentes/exo-2-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Exo 2";font-weight:700;font-display:swap;src:url(/fuentes/exo-2-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-weight:400;font-display:swap;src:url(/fuentes/source-sans-3-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-weight:600;font-display:swap;src:url(/fuentes/source-sans-3-latin-600-normal.woff2) format("woff2")}

:root {
  color-scheme: light;
  /* Marca */
  --azul: #0B3875;
  --verde: #00A887;
  --tinta: #12233f;
  --tinta-suave: #4a5a73;
  --papel: #f6f8fb;
  --hoja: #ffffff;
  --linea: #dbe2ec;
  --rojo: #c8372d;
  --ambar: #c98a06;
  --gris: #8a96a8;
  /* Noche: la misma tinta y el mismo azul, llevados a oscuro */
  --noche: #07111f;
  --noche-2: #0c1a30;
  --noche-linea: rgba(178, 203, 236, 0.14);
  --luz: #eef3fb;
  --luz-suave: #a7b6cd;
  --verde-luz: #49e3c2;
  --verde-brillo: rgba(0, 168, 135, 0.55);
  /* Tipos */
  --display: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --marca: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --texto: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  /* Ritmo */
  --r-grande: 26px;
  --r: 20px;
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
  --barra-alto: 68px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--barra-alto) + 16px); -webkit-text-size-adjust: 100%; }
body { background: var(--papel); color: var(--tinta); font-family: var(--texto); font-size: 1.0625rem; line-height: 1.6; margin: 0; overflow-x: clip; }
::selection { background: var(--verde); color: #fff; }
input, textarea { caret-color: var(--verde); }
html { scrollbar-color: #9fb0c8 var(--papel); }

.envoltura { max-width: 1140px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--display); color: var(--tinta); line-height: 1.05; text-wrap: balance; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.9rem, 8vw, 6rem); letter-spacing: -0.035em; line-height: 0.97; }
h2 { font-size: clamp(2.4rem, 6.2vw, 5rem); letter-spacing: -0.035em; line-height: 1; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
a { color: var(--azul); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 8px; }

/* ---------- Píldoras (etiquetas) ---------- */
.etiqueta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--marca); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--azul); background: var(--hoja); border: 1px solid var(--linea); border-radius: 999px; padding: 5px 13px 5px 10px; box-shadow: 0 1px 2px rgba(18, 35, 63, 0.06); }
.etiqueta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 3px rgba(0, 168, 135, 0.18); flex: none; }

/* ---------- Botones píldora con brillo ---------- */
.boton { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--marca); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; border-radius: 999px; padding: 15px 24px; border: 1px solid transparent; cursor: pointer; isolation: isolate;
  color: #fff; background: radial-gradient(120% 140% at 50% 120%, #2a6fc4 0%, var(--azul) 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 22px -8px rgba(11, 56, 117, 0.65);
  transition: transform .35s var(--curva), box-shadow .35s var(--curva), background-color .2s; }
.boton::after { content: ""; width: 1em; height: 1em; flex: none; background: currentColor; transition: transform .35s var(--curva);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M10.5 5l5 5-5 5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M10.5 5l5 5-5 5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.boton:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 30px -10px rgba(11, 56, 117, 0.75), 0 0 0 4px rgba(0, 168, 135, 0.12); }
.boton:hover::after { transform: translateX(4px); }
.boton:active { transform: translateY(0); }
.boton.claro { color: var(--azul); background: var(--hoja); border-color: var(--linea); box-shadow: 0 1px 2px rgba(18, 35, 63, 0.06); }
.boton.claro::after { content: none; }
.boton.claro:hover { border-color: #b9c6d8; box-shadow: 0 10px 24px -14px rgba(18, 35, 63, 0.4); }

/* ---------- Franja de oferta ---------- */
.franja { position: relative; z-index: 31; background: #04101f; color: #c9d6ea; text-align: center; font-size: 0.92rem; padding: 9px 16px; border-bottom: 1px solid var(--noche-linea); }
.franja a { color: var(--verde-luz); font-weight: 600; }

/* ---------- Barra de navegación (vidrio nocturno, fija) ---------- */
.barra { position: sticky; top: 0; z-index: 30; background: rgba(7, 17, 31, 0.9); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--noche-linea); }
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--barra-alto); }
.cabecera .marca { display: block; border-radius: 10px; }
.cabecera .marca img { height: 38px; width: auto; display: block; }
.menu { display: flex; gap: 4px; align-items: center; font-family: var(--marca); font-weight: 500; font-size: 0.97rem; }
.menu a { text-decoration: none; color: var(--luz-suave); padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.menu a:hover { color: var(--luz); background: rgba(255, 255, 255, 0.06); }
.menu a { white-space: nowrap; }
.menu a[aria-current="page"] { color: var(--luz); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--noche-linea); }
.cabecera .boton { padding: 11px 18px; font-size: 0.95rem; color: #03261f; background: radial-gradient(120% 150% at 50% 120%, #8ff3dc 0%, #2ccfac 45%, var(--verde) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 26px -6px var(--verde-brillo); }
.cabecera .boton:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 34px -2px rgba(0, 168, 135, 0.7); }
@media (min-width: 861px) and (max-width: 1100px) { .cabecera { gap: 12px; } .menu { gap: 0; font-size: 0.92rem; } .menu a { padding: 8px 8px; } .cabecera .boton { white-space: nowrap; padding: 10px 14px; font-size: 0.9rem; } .cabecera .boton::after { content: none; } }

/* ---------- Banda nocturna: portada ---------- */
.portada { position: relative; isolation: isolate; overflow: clip; display: grid; justify-items: center; text-align: center; gap: 56px; padding: calc(72px + var(--barra-alto)) 24px 0; margin-top: calc(-1 * var(--barra-alto)); color: var(--luz);
  width: 100vw; margin-inline: calc(50% - 50vw); background: var(--noche); }
.portada .texto { display: grid; justify-items: center; gap: 24px; max-width: 58rem; position: relative; z-index: 2; }
.portada h1 { color: var(--luz); }
.portada .etiqueta { color: var(--luz); background: rgba(255, 255, 255, 0.05); border-color: var(--noche-linea); box-shadow: none; }
.portada .bajada { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--luz-suave); max-width: 40em; }
.portada .acciones { justify-content: center; }
.portada .nota { color: #8193ad; }
.portada .boton { color: #03261f; background: radial-gradient(120% 150% at 50% 120%, #8ff3dc 0%, #2ccfac 45%, var(--verde) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 34px -4px var(--verde-brillo); }
.portada .boton:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 46px 0 rgba(0, 168, 135, 0.7); }
.portada .boton.claro { color: var(--luz); background: rgba(255, 255, 255, 0.06); border-color: var(--noche-linea); box-shadow: none; }
.portada .boton.claro:hover { background: rgba(255, 255, 255, 0.1); }
.portada a:not(.boton) { color: var(--verde-luz); }

/* Haces de luz diagonales, muy tenues */
.portada::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 38%, rgba(120, 170, 255, 0.05) 44%, transparent 52%),
    linear-gradient(115deg, transparent 58%, rgba(120, 170, 255, 0.04) 63%, transparent 70%),
    radial-gradient(60% 50% at 50% 0%, rgba(11, 56, 117, 0.55), transparent 70%); }

/* El horizonte: arco que se ilumina en verde, detrás de la pieza de la portada */
.horizonte { position: absolute; z-index: -1; left: 50%; bottom: 0; width: min(1500px, 170vw); aspect-ratio: 1; translate: -50% 0; pointer-events: none;
  margin-bottom: calc(min(1500px, 170vw) * -0.685); }
.horizonte::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, #050c17 86%, #0b2a4f 95%, rgba(0, 168, 135, 0.0) 100%);
  box-shadow: 0 -2px 0 0 rgba(160, 255, 232, 0.85), 0 -10px 40px 2px rgba(0, 168, 135, 0.75), 0 -60px 140px 20px rgba(0, 168, 135, 0.32), 0 -160px 260px 60px rgba(11, 56, 117, 0.55);
  animation: respirar 7s ease-in-out infinite alternate; }
.horizonte::after { content: ""; position: absolute; inset: -2px 18% auto; height: 24%; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(50% 100% at 50% 0%, rgba(73, 227, 194, 0.28), transparent 70%); filter: blur(8px); }
@keyframes respirar { from { opacity: .82; } to { opacity: 1; } }

/* La pieza que sale del horizonte (informe o caso) */
.portada .informe, .portada .caso { position: relative; z-index: 2; width: min(100%, 620px); margin-bottom: 72px; text-align: left;
  transform-origin: 50% 100%; transform: perspective(1400px) rotateX(calc(var(--inclina, 0) * 22deg)) translateY(calc(var(--inclina, 0) * 36px)) scale(calc(1 - var(--inclina, 0) * 0.05)); }

/* ---------- Informe (semáforo) ---------- */
.informe { background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--r); padding: 24px 26px; min-width: 0; margin: 0;
  box-shadow: 0 0 0 7px var(--papel), 0 0 0 8px var(--linea), 0 24px 50px -28px rgba(11, 56, 117, 0.45); }
.informe .cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--linea); }
.informe .dominio { font-family: var(--marca); font-weight: 700; font-size: 1.2rem; color: var(--azul); }
.informe .cab span:last-child { font-family: var(--marca); font-size: 0.74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-suave);
  border: 1px solid var(--linea); border-radius: 999px; padding: 3px 10px; }
.fila { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--linea); font-size: 1rem; }
.fila:last-of-type { border-bottom: 0; }
.estado { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; white-space: nowrap; padding: 4px 11px 4px 9px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent); }
.estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.e-rojo { color: var(--rojo); } .e-ambar { color: #a87304; } .e-gris { color: #66748a; } .e-verde { color: #00866c; }
.informe .pie { margin-top: 14px; font-size: 0.86rem; color: var(--tinta-suave); }

/* Variante nocturna (en la portada) */
.portada .informe { background: linear-gradient(180deg, rgba(20, 38, 66, 0.82), rgba(9, 20, 37, 0.92)); border-color: rgba(178, 203, 236, 0.18); color: var(--luz);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 7px rgba(7, 17, 31, 0.9), 0 0 0 8px var(--noche-linea), inset 0 -1px 0 rgba(73, 227, 194, 0.45), 0 30px 80px -30px rgba(0, 168, 135, 0.45); }
.portada .informe .cab { border-color: var(--noche-linea); }
.portada .informe .dominio { color: var(--luz); }
.portada .informe .cab span:last-child { color: var(--luz-suave); border-color: var(--noche-linea); }
.portada .fila { border-color: var(--noche-linea); color: #d6e0ef; }
.portada .e-rojo { color: #ff8a7d; } .portada .e-ambar { color: #f3bd4a; } .portada .e-verde { color: var(--verde-luz); } .portada .e-gris { color: #9fb0c8; }
.portada .informe .pie { color: #8ea0ba; }

/* ---------- Secciones ---------- */
section.bloque { padding-block: clamp(80px, 11vw, 136px); }
section.bloque + section.bloque { border-top: 1px solid var(--linea); }
.encabezado-bloque { display: grid; justify-items: center; text-align: center; gap: 18px; max-width: 46rem; margin: 0 auto clamp(40px, 6vw, 64px); }
.encabezado-bloque p { color: var(--tinta-suave); font-size: 1.12rem; max-width: 38em; }
.dos-columnas .encabezado-bloque { justify-items: start; text-align: left; margin: 0; }

/* Qué reviso */
.puntos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.punto { position: relative; display: grid; grid-template-columns: 2.8rem 1fr; gap: 6px 16px; align-content: start; padding: 26px 26px 26px 22px; min-width: 0;
  background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--r); }
.punto .n { grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; font-family: var(--marca); font-weight: 700; font-size: 1.15rem;
  color: var(--verde); background: rgba(0, 168, 135, 0.09); box-shadow: inset 0 0 0 1px rgba(0, 168, 135, 0.22); }
.punto p { color: var(--tinta-suave); font-size: 1rem; }

/* Video */
.video-real { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--noche);
  box-shadow: 0 0 0 7px var(--papel), 0 0 0 8px var(--linea), 0 40px 80px -40px rgba(11, 56, 117, 0.55); }
.bloque > .nota { margin-top: 26px; text-align: center; color: var(--tinta-suave); font-size: 0.96rem; }
.nota { font-size: 0.95rem; color: var(--tinta-suave); }

/* ---------- Tarjetas de doble anillo (líneas, planes) ---------- */
.lineas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px; }
.lineas:has(> .linea:nth-child(4)) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.linea, .plan { position: relative; isolation: isolate; display: grid; gap: 16px; align-content: start; min-width: 0; padding: 32px 30px;
  background: linear-gradient(180deg, var(--hoja) 55%, #f3f8fb); border: 1px solid var(--linea); border-radius: var(--r);
  box-shadow: 0 0 0 7px var(--papel), 0 0 0 8px var(--linea), inset 0 -1px 0 rgba(0, 168, 135, 0.28);
  transition: transform .5s var(--curva), box-shadow .5s var(--curva); }
.linea::before, .plan::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--verde), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.linea:hover, .plan:hover { transform: translateY(-4px); box-shadow: 0 0 0 7px var(--papel), 0 0 0 8px #c7d3e3, inset 0 -1px 0 rgba(0, 168, 135, 0.45), 0 34px 60px -34px rgba(11, 56, 117, 0.45); }
.linea:hover::before, .plan:hover::before { opacity: 1; }
.linea .desde { font-family: var(--marca); font-weight: 700; font-size: 1.55rem; color: var(--tinta); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.linea .desde small { font-family: var(--texto); font-size: 0.95rem; font-weight: 600; color: var(--tinta-suave); letter-spacing: 0; display: block; margin-top: 4px; line-height: 1.35; }
.linea ul, .plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 1rem; color: var(--tinta-suave); }
.linea li, .plan li { position: relative; padding-left: 30px; }
.linea li::before, .plan li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 19px; height: 19px; border-radius: 6px; background: var(--verde);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' rx='6' fill='%23000'/%3E%3Cpath d='M5.5 10.4l2.9 2.8 6-6.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Crect width='20' height='20' rx='6' fill='%23fff'/%3E%3Cpath d='M5.5 10.4l2.9 2.8 6-6.4' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Crect width='20' height='20' rx='6' fill='%23fff' mask='url(%23m)'/%3E%3C/svg%3E") center / contain no-repeat; }
.linea .boton { justify-self: start; margin-top: 8px; }

/* Precios */
.precios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 30px; align-items: start; }
.plan .monto { font-family: var(--marca); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3rem); color: var(--tinta); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.plan .monto small { white-space: nowrap; font-family: var(--texto); font-size: 1rem; font-weight: 600; color: var(--tinta-suave); letter-spacing: 0; }
.plan .total { font-size: 0.94rem; color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
/* Plan destacado: una noche dentro del papel */
.plan.destacado { color: var(--luz); border-color: rgba(178, 203, 236, 0.2);
  background: radial-gradient(90% 60% at 100% 100%, rgba(0, 168, 135, 0.38), transparent 60%), linear-gradient(180deg, var(--noche-2), var(--noche));
  box-shadow: 0 0 0 7px var(--papel), 0 0 0 8px #c7d3e3, inset 0 -1px 0 rgba(73, 227, 194, 0.6), 0 40px 70px -36px rgba(0, 168, 135, 0.55); }
.plan.destacado:hover { box-shadow: 0 0 0 7px var(--papel), 0 0 0 8px #b8c7da, inset 0 -1px 0 rgba(73, 227, 194, 0.8), 0 46px 80px -34px rgba(0, 168, 135, 0.7); }
.plan.destacado h3, .plan.destacado .monto { color: var(--luz); }
.plan.destacado .monto small, .plan.destacado .total, .plan.destacado ul { color: var(--luz-suave); }
.plan.destacado li::before { background: var(--verde-luz); }
.plan.destacado strong { color: var(--verde-luz) !important; }
.gratis { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin-top: 44px; padding: 22px 26px;
  background: var(--hoja); border: 1px dashed rgba(0, 168, 135, 0.6); border-radius: var(--r); }
.gratis p { max-width: 40em; }

/* ---------- Pasos ---------- */
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 30px; counter-reset: paso; padding: 0; margin: 0; list-style: none; }
.pasos li { counter-increment: paso; position: relative; display: grid; gap: 8px; align-content: start; padding-top: 22px; min-width: 0; }
.pasos li::before { content: "Paso " counter(paso); font-family: var(--marca); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #00866c; }
.pasos li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--verde), var(--azul) 70%, rgba(11, 56, 117, 0.15)); }
.pasos h3 { font-size: 1.25rem; }
.pasos p { color: var(--tinta-suave); font-size: 1rem; }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 12px; max-width: 50rem; margin-inline: auto; }
.faq details { background: var(--hoja); border: 1px solid var(--linea); border-radius: 16px; padding: 4px 22px; min-width: 0; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: #c2cfe0; box-shadow: 0 18px 40px -30px rgba(11, 56, 117, 0.45); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px;
  font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--tinta); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 168, 135, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 168, 135, 0.3);
  background-image: linear-gradient(var(--verde), var(--verde)), linear-gradient(var(--verde), var(--verde));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat; transition: transform .4s var(--curva), background-size .3s; }
.faq details[open] summary::after { transform: rotate(180deg); background-size: 12px 2px, 2px 0; }
.faq details p { color: var(--tinta-suave); padding-bottom: 18px; max-width: 42em; }

/* ---------- Cierre (banda nocturna con resplandor) ---------- */
.cierre { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 22px;
  margin-block: clamp(48px, 8vw, 96px); padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px); border-radius: var(--r-grande); color: var(--luz);
  background: radial-gradient(70% 90% at 85% 110%, rgba(0, 168, 135, 0.55), transparent 60%), radial-gradient(60% 80% at 0% 0%, rgba(11, 56, 117, 0.7), transparent 60%), var(--noche);
  box-shadow: 0 0 0 7px var(--papel), 0 0 0 8px var(--linea), 0 50px 90px -50px rgba(0, 168, 135, 0.6); }
.cierre h2 { color: var(--luz); max-width: 16em; }
.cierre p { max-width: 40em; color: var(--luz-suave); font-size: 1.12rem; }
.cierre .boton { color: #03261f; background: radial-gradient(120% 150% at 50% 120%, #8ff3dc 0%, #2ccfac 45%, var(--verde) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 34px -4px var(--verde-brillo); }
.cierre .acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cierre .boton.claro { color: var(--luz); background: rgba(255, 255, 255, 0.06); border-color: var(--noche-linea); box-shadow: none; }
.cierre .boton.claro:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Pie ---------- */
footer { position: relative; padding-block: 48px 56px; font-size: 0.94rem; color: var(--luz-suave); display: grid; gap: 8px;
  background: var(--noche); box-shadow: 0 0 0 100vmax var(--noche); clip-path: inset(0 -100vmax); margin-top: clamp(40px, 6vw, 80px); }
footer strong { color: var(--luz); font-family: var(--marca); }
footer a { color: var(--verde-luz); }

/* ---------- App: tabla de módulos ---------- */
.tabla-scroll { overflow-x: auto; border-radius: var(--r); box-shadow: 0 0 0 7px var(--papel), 0 0 0 8px var(--linea); }
.modulos { width: 100%; border-collapse: collapse; background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; font-size: 1rem; }
.modulos th, .modulos td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.modulos tbody tr:last-child td { border-bottom: 0; }
.modulos tbody tr { transition: background-color .25s; }
.modulos tbody tr:hover { background: #f3f8fb; }
.modulos th { font-family: var(--marca); font-weight: 600; font-size: 0.82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-suave); background: var(--papel); }
.modulos td.n { white-space: nowrap; font-family: var(--marca); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tinta); }
.modulos td strong { font-family: var(--display); font-size: 1.1rem; }
.modulos td p { color: var(--tinta-suave); font-size: 0.95rem; margin-top: 4px; }

/* Caso real (en la portada de /app/) */
.caso { display: grid; gap: 12px; padding: 30px 32px; border-radius: var(--r); background: var(--hoja); border: 1px solid var(--linea); }
.caso p { color: var(--tinta-suave); }
.portada .caso { background: linear-gradient(180deg, rgba(20, 38, 66, 0.82), rgba(9, 20, 37, 0.92)); border-color: rgba(178, 203, 236, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 7px rgba(7, 17, 31, 0.9), 0 0 0 8px var(--noche-linea), inset 0 -1px 0 rgba(73, 227, 194, 0.45), 0 30px 80px -30px rgba(0, 168, 135, 0.45); }
.portada .caso h3 { color: var(--luz); font-size: 1.45rem; }
.portada .caso p { color: #b6c4d8; }

/* ---------- Formulario ---------- */
.dos-columnas { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.dos-columnas h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.formulario { position: relative; background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--r); padding: 30px; display: grid; gap: 16px;
  box-shadow: 0 0 0 7px var(--papel), 0 0 0 8px var(--linea), inset 0 -1px 0 rgba(0, 168, 135, 0.35), 0 40px 70px -46px rgba(11, 56, 117, 0.5); }
.formulario label { display: grid; gap: 7px; font-weight: 600; font-size: 0.96rem; color: var(--tinta); }
.formulario input[type=text], .formulario input[type=email], .formulario input[type=url], .formulario input[type=tel], .formulario select, .formulario textarea {
  font: inherit; font-weight: 400; color: var(--tinta); background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .25s, background-color .2s; }
.formulario input:hover, .formulario select:hover, .formulario textarea:hover { border-color: #c2cfe0; }
.formulario input:focus-visible, .formulario select:focus-visible, .formulario textarea:focus-visible { outline: none; background: var(--hoja); border-color: var(--verde); box-shadow: 0 0 0 4px rgba(0, 168, 135, 0.16); }
.formulario ::placeholder { color: #7d8ba1; }
.formulario .casilla { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: 0.94rem; color: var(--tinta-suave); }
.formulario .casilla input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--verde); }
.formulario .dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.formulario button { font: inherit; justify-self: start; margin-top: 4px; }
.formulario button:disabled { opacity: .65; cursor: progress; transform: none; }
.formulario .trampa { position: absolute; left: -9999px; }
.aviso-form { font-size: 0.98rem; padding: 13px 16px; border-radius: 12px; }
.aviso-form.ok { background: #e3f6f1; color: #05624f; }
.aviso-form.error { background: #fbeceb; color: #8f241d; }

/* ---------- Movimiento ----------
   Todo es visible sin JS. El script agrega .anima a <html> y marca lo que entra en pantalla. */
.anima .sube { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--curva), transform .9s var(--curva), filter .9s var(--curva); transition-delay: var(--retraso, 0s); }
.anima .sube.visto { opacity: 1; transform: none; filter: none; }
.anima .pasos li::after { transform: scaleX(0); transition: transform 1.1s var(--curva); transition-delay: var(--retraso, 0s); }
.anima .pasos li.visto::after { transform: scaleX(1); }
.anima .informe .fila { opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--curva), transform .6s var(--curva); transition-delay: var(--retraso, 0s); }
.anima .informe.visto .fila { opacity: 1; transform: none; }
/* Titulares que se encienden palabra por palabra */
.anima .palabras .p { opacity: 0.16; transition: opacity .6s ease, color .6s ease; transition-delay: var(--retraso, 0s); }
.anima .palabras.visto .p { opacity: 1; }
/* Entrada de la portada */
/* "backwards": el estado visible es el de reposo; si la animación no corre, el contenido igual se ve */
.anima .portada .texto > * { animation: entra 1.1s var(--curva) backwards; animation-delay: var(--retraso, 0s); }
.anima .horizonte { animation: amanece 1.8s var(--curva) .25s backwards; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
@keyframes amanece { from { opacity: 0; translate: -50% 12%; } to { opacity: 1; translate: -50% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anima .sube, .anima .informe .fila, .anima .palabras .p, .anima .portada .texto > *, .anima .horizonte { opacity: 1 !important; transform: none !important; filter: none !important; }
  .anima .pasos li::after { transform: none !important; }
  .portada .informe, .portada .caso { transform: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .dos-columnas { grid-template-columns: minmax(0, 1fr); }
  .cabecera { flex-wrap: wrap; row-gap: 0; padding-block: 10px; }
  .menu { order: 3; width: calc(100% + 48px); margin-inline: -24px; padding: 6px 18px 10px; overflow-x: auto; scrollbar-width: none; gap: 2px; font-size: 0.93rem; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { white-space: nowrap; padding: 7px 12px; }
  .cabecera .marca img { height: 30px; }
  .portada { padding-top: 48px; gap: 44px; }
  .portada .informe, .portada .caso { margin-bottom: 48px; }
}
@media (max-width: 520px) {
  .envoltura { padding-inline: 18px; }
  .menu { width: calc(100% + 36px); margin-inline: -18px; }
  .cabecera .boton { padding: 10px 14px; font-size: 0.9rem; }
  .cabecera .boton::after { content: none; }
  .acciones { width: 100%; }
  .portada .acciones .boton, .cierre .acciones .boton { flex: 1 1 100%; }
  .linea, .plan { padding: 26px 22px; }
  .formulario { padding: 22px; }
  .informe { padding: 20px 18px; }
  .fila { font-size: 0.95rem; }
  .modulos th, .modulos td { padding: 14px 16px; }
}

/* Tabla de módulos en el teléfono: cada módulo es una ficha con sus dos precios */
@media (max-width: 600px) {
  .modulos thead { display: none; }
  .modulos, .modulos tbody, .modulos tr { display: block; }
  .modulos tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--linea); }
  .modulos tbody tr:last-child { border-bottom: 0; }
  .modulos td { border-bottom: 0; }
  .modulos td:first-child { grid-column: 1 / -1; padding-bottom: 6px; }
  .modulos td.n { padding-top: 6px; display: grid; gap: 2px; }
  .modulos td.n::before { font-family: var(--marca); font-size: 0.72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-suave); }
  .modulos td:nth-child(2)::before { content: "Instalación"; }
  .modulos td:nth-child(3)::before { content: "Mensual"; }
}

.linea .etiqueta, .dos-columnas .etiqueta { justify-self: start; }

/* El horizonte se funde con el papel en vez de cortarse en seco */
.portada::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 248, 251, 0), var(--papel)); }
.portada:has(.caso) .horizonte { margin-bottom: calc(min(1500px, 170vw) * -0.75); }
@media (max-width: 600px) {
  .horizonte { width: 260vw; margin-bottom: calc(260vw * -0.60); }
  .portada:has(.caso) .horizonte { margin-bottom: calc(260vw * -0.45); }
}
.plan:not(.destacado) strong[style] { color: #00866c !important; }
.punto .n { color: #00866c; }
.caso .etiqueta { justify-self: start; }
@media (max-width: 860px) {
  /* En el teléfono la barra ocupa dos filas: la portada empieza justo debajo */
  .portada { margin-top: 0; padding-top: 48px; }
  .barra { background: var(--noche); }
}

/* ---------- Artículos (lectura) ---------- */
.articulo { max-width: 46rem; margin-inline: auto; }
.articulo h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; margin: 56px 0 18px; }
.articulo h2:first-child { margin-top: 0; }
.articulo p, .articulo li { font-size: 1.12rem; line-height: 1.7; color: var(--tinta); }
.articulo p + p { margin-top: 16px; }
.articulo ul, .articulo ol { padding-left: 1.3em; display: grid; gap: 12px; margin: 0; }
.articulo li::marker { color: #00866c; font-weight: 600; }
.articulo .nota { margin-top: 28px; font-size: 0.95rem; color: var(--tinta-suave); }
.articulo a { color: var(--azul); font-weight: 600; }
.portada .resumen { margin: 0; padding-left: 1.1em; display: grid; gap: 12px; color: #c9d6ea; font-size: 1.02rem; text-align: left; }
.portada .resumen strong { color: var(--luz); }
.portada .resumen li::marker { color: var(--verde-luz); }

/* ---------- Restaurantes: capturas del caso ---------- */
.pantalla { position: relative; z-index: 2; width: min(100%, 880px); margin: 0 0 72px; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 0 0 7px rgba(7, 17, 31, 0.9), 0 0 0 8px var(--noche-linea), 0 40px 90px -30px rgba(0, 168, 135, 0.5);
  transform-origin: 50% 100%; transform: perspective(1400px) rotateX(calc(var(--inclina, 0) * 22deg)) translateY(calc(var(--inclina, 0) * 36px)) scale(calc(1 - var(--inclina, 0) * 0.05)); }
.pantalla img { display: block; width: 100%; height: auto; }
.pantalla figcaption { position: absolute; left: 14px; bottom: 12px; font-family: var(--marca); font-size: 0.8rem; font-weight: 600; color: var(--luz);
  background: rgba(7, 17, 31, 0.7); border: 1px solid var(--noche-linea); border-radius: 999px; padding: 5px 12px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.galeria { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.galeria figure { margin: 0; display: grid; gap: 12px; }
.galeria img { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--noche);
  box-shadow: 0 0 0 7px var(--papel), 0 0 0 8px var(--linea), 0 30px 60px -36px rgba(11, 56, 117, 0.5); }
.galeria figcaption { font-size: 0.95rem; color: var(--tinta-suave); }
.nota.centro { text-align: center; margin-top: 30px; }
@media (max-width: 860px) { .galeria { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .galeria figure:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .pantalla { margin-bottom: 48px; } }

/* Oferta de lanzamiento: precio anterior tachado y etiqueta verde legible */
s.antes { font-weight: 500; font-size: 0.6em; color: var(--tinta-suave); text-decoration-thickness: 2px; text-decoration-color: rgba(200, 55, 45, 0.7); margin-right: 6px; vertical-align: 0.18em; }
.plan.destacado s.antes, .portada s.antes { color: var(--luz-suave); }
.modulos s.antes { font-size: 0.85em; vertical-align: 0; }
.oferta { color: #00866c; font-weight: 600; }
.plan.destacado .oferta { color: var(--verde-luz); }
