/* ShieldGuard AI · Portada. Blanco, azul marino de la marca y una sola familia tipográfica. */
@font-face { font-family: "Libre Franklin"; font-weight: 400 700; font-display: swap; src: url(fonts/libre-franklin.woff2) format("woff2"); }

:root {
  --navy: #0a1258;
  --ink: #0a1258;
  --text: #2e3554;
  --muted: #5a6080;
  --line: #e2e5ee;
  --pale: #f5f6fa;
  --violet: #5b35d5;
  --mark: #fbe7a8;
  --filled: #d6efe0;
  --small: 0.875rem;
  --body: 1.0625rem;
  --lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --h3: 1.125rem;
  --h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.625rem);
  --h1: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem);
  --margen: clamp(20px, 4.4vw, 64px);
  --lateral: max(var(--margen), calc((100vw - 1320px) / 2));
  --seccion: clamp(32px, 3.2vw, 48px);
  --radio: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 var(--body)/1.6 "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3, dt { color: var(--ink); }
h1 { font-size: var(--h1); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; max-width: 24em; }
h3, dt { font-size: var(--h3); font-weight: 600; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
main > section { padding: var(--seccion) var(--lateral); }
main > section + section { border-top: 1px solid var(--line); }

.salto { position: absolute; left: -999px; }
.salto:focus { left: var(--margen); top: 8px; z-index: 60; background: var(--navy); color: #fff; padding: 10px 16px; }

/* Botones y enlaces */
.boton { display: inline-block; background: var(--navy); color: #fff; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.3; padding: 14px 24px; border: 1px solid var(--navy); border-radius: var(--radio); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.boton:hover { background: #060c40; }
.boton--bar { padding: 10px 18px; font-size: 0.9375rem; }
.boton--linea { background: #fff; color: var(--navy); border-color: #b9bed2; }
.boton--linea:hover { background: var(--pale); border-color: var(--navy); }
.boton--blanco { background: #fff; color: var(--navy); border-color: #fff; }
.boton--blanco:hover { background: #e7e9f4; }
.enlace { color: var(--navy); font-weight: 600; text-decoration: none; }
.enlace:hover { text-decoration: underline; text-underline-offset: 3px; }
.enlace--blanco { color: #fff; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* Barra */
.header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.barra { display: flex; align-items: center; gap: 28px; padding: 12px var(--lateral); }
.marca { margin-right: auto; }
.marca img { height: 40px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a, .entrar { color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.nav a:hover, .nav a.is-active, .entrar:hover { color: var(--violet); }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
.mobile-menu { display: none; }
.mobile-menu.is-open { display: flex; flex-direction: column; position: fixed; inset: 65px 0 0; z-index: 39; background: #fff; padding: 16px var(--margen); overflow: auto; }
.mobile-menu a { color: var(--ink); font-size: 1.125rem; font-weight: 500; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }

/* Cabecera con la maqueta */
main > .portada { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.entrada { margin: 24px 0 32px; font-size: var(--lead); line-height: 1.55; max-width: 33em; }
.normas { margin-top: 32px; color: var(--muted); font-size: var(--small); }
.maqueta { position: relative; aspect-ratio: 9 / 7; margin-bottom: 28px; }
.maqueta img, .maqueta canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.maqueta img { object-fit: contain; }
.maqueta canvas { opacity: 0; transition: opacity .4s; }
.maqueta.is-3d canvas { opacity: 1; }
.maqueta.is-3d img { opacity: 0; transition: opacity .4s .2s; pointer-events: none; }
.maqueta.is-3d canvas { cursor: grab; touch-action: pan-y; }
.maqueta.is-girando canvas { cursor: grabbing; }
.maqueta__info { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 22px)); background: var(--navy); color: #fff; font-size: var(--small); font-weight: 500; line-height: 1.3; padding: 6px 10px; border-radius: var(--radio); white-space: nowrap; pointer-events: none; }
.maqueta__ayuda { position: absolute; left: 0; right: 0; top: 100%; text-align: center; font-size: var(--small); color: var(--muted); display: none; pointer-events: none; }
.maqueta.is-3d .maqueta__ayuda { display: block; }

/* Plan de muestra */
main > .criterio { background: var(--pale); }
.criterio__texto { margin-bottom: 32px; }
.criterio__texto p { margin-top: 16px; font-size: var(--lead); line-height: 1.55; max-width: 46em; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radio); padding: clamp(16px, 2vw, 28px); }
.plan__pregunta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 18px; font-weight: 500; color: var(--ink); }
.plan__pregunta select { font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #b9bed2; border-radius: var(--radio); padding: 10px 12px; max-width: 100%; cursor: pointer; }
.plan__cuerpo { display: grid; grid-template-columns: 8fr 4fr; gap: 24px; }
.hoja { padding: clamp(4px, 1.4vw, 20px); }
.hoja p { margin-bottom: 14px; max-width: 64ch; }
.hoja__titulo { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; max-width: none; }
.hoja__estado { color: var(--muted); font-size: var(--small); }
.hoja h3 { font-size: 1rem; margin: 22px 0 8px; }
.hoja__capitulos { columns: 2; column-gap: 28px; margin-bottom: 18px; }
.hoja__capitulos li { break-inside: avoid; padding: 2px 0; }
.hoja__normas { font-size: var(--small); color: var(--muted); }
.hoja__firma { margin-bottom: 0 !important; font-size: var(--small); font-weight: 600; color: var(--ink); }
mark { background: var(--mark); color: inherit; padding: 1px 4px; border-radius: 2px; transition: background .2s; overflow-wrap: anywhere; }
mark.is-lleno { background: var(--filled); }
.datos { background: var(--pale); border-radius: var(--radio); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.datos h3 { font-size: 1rem; }
.datos label { display: block; font-size: var(--small); font-weight: 600; color: var(--ink); }
.datos input { display: block; width: 100%; margin-top: 4px; font: inherit; font-weight: 400; font-size: 1rem; padding: 10px 12px; background: #fff; color: var(--ink); border: 1px solid #b9bed2; border-radius: var(--radio); }
.datos__nota { font-size: var(--small); color: var(--muted); margin-top: auto; }

/* Capturas reales */
.captura { border: 1px solid var(--line); border-radius: var(--radio); overflow: hidden; background: #fff; }
.captura img { width: 100%; }
figcaption { font-size: var(--small); color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); background: #fff; }

/* Cómo funciona */
.pasos h2 { margin-bottom: 24px; }
.pasos__rejilla { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.pasos__lista { display: flex; flex-direction: column; gap: 20px; }
.pasos__lista strong { display: block; color: var(--ink); font-weight: 600; }

/* Planes */
.planes__intro { font-size: var(--lead); line-height: 1.55; max-width: 44em; margin: 16px 0 32px; }
.planes__lista > div { display: grid; grid-template-columns: 5fr 7fr; gap: 8px 48px; padding: 22px 0; border-top: 1px solid var(--line); }
.planes__lista > div:last-child { border-bottom: 1px solid var(--line); }
.planes__lista small { display: block; margin-top: 6px; font-size: var(--small); font-weight: 500; color: var(--muted); }
.planes__nota { margin-top: 28px; max-width: 54em; }

/* Dos columnas */
main > .dos { display: grid; grid-template-columns: 5fr 7fr; gap: 40px 48px; align-items: start; }
main > .dos--inversa { grid-template-columns: 7fr 5fr; background: var(--pale); }
.dos__texto p { margin-top: 16px; max-width: 34em; }
.tabla { grid-column: 1 / -1; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9688rem; }
th { text-align: left; font-weight: 600; color: var(--ink); padding: 12px 16px 12px 0; }
td { padding: 12px 16px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tabla td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }
.tres { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px; }
.tres dd, .ops__lista dd, .seguridad__lista dd, .precios__modulos dd { margin-top: 6px; }

/* Símbolos reales */
main > .plano { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.plano__texto p { margin-top: 16px; max-width: 34em; }
.simbolos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radio); overflow: hidden; }
.simbolos figure { background: #fff; padding: 20px 14px; }
.simbolos img { width: 60px; height: 60px; object-fit: contain; }
.simbolos figcaption { border: 0; padding: 12px 0 0; color: var(--text); }

/* Operaciones */
.ops__intro { font-size: var(--lead); line-height: 1.55; max-width: 44em; margin: 16px 0 32px; }
.ops__dos { display: grid; grid-template-columns: 8fr 4fr; gap: 48px; margin-top: 48px; align-items: start; }
.ops__lista { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.captura--movil { max-width: 340px; }
.captura--movil figcaption strong { color: var(--ink); font-weight: 600; }
.ops__roles { margin-top: 40px; max-width: 70em; }
.ops__roles strong { color: var(--ink); font-weight: 600; }
.ops__nota { margin-top: 14px; max-width: 70em; color: var(--muted); }

/* Seguridad */
main > .seguridad { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; background: var(--pale); }
.seguridad > div:first-child { position: sticky; top: 96px; }
.seguridad p { margin-top: 16px; max-width: 30em; }
.seguridad__lista { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }

/* Precios */
.precios__intro { font-size: var(--lead); line-height: 1.55; max-width: 44em; margin: 16px 0 32px; }
.tabla-precios { overflow-x: auto; }
.tp { min-width: 880px; table-layout: fixed; }
.tp th, .tp td { padding: 14px 16px; vertical-align: top; }
.tp thead th { border-bottom: 2px solid var(--navy); }
.tp thead td { border: 0; }
.tp tbody th { font-weight: 500; color: var(--text); border-top: 1px solid var(--line); padding-left: 0; }
.tp__nombre { display: block; font-size: 1.125rem; color: var(--ink); }
.tp__para { display: block; margin-top: 6px; font-size: var(--small); font-weight: 400; color: var(--muted); line-height: 1.45; }
.tp__precio { font-size: 1.75rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; line-height: 1.2; }
.tp__precio small { display: block; font-size: var(--small); font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.tp .boton { padding: 11px 16px; font-size: 0.9375rem; }
.precios__modulos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.precios__modulos > div { border: 1px solid var(--line); border-radius: var(--radio); padding: 24px; }
.precios__notas { margin-top: 24px; max-width: 70em; font-size: var(--small); color: var(--muted); }
.precios__notas strong, .precios__notas b { color: var(--ink); }

/* Vídeo */
.video-sec h2 { margin-bottom: 28px; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-radius: var(--radio); overflow: hidden; }
.video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video__play { position: absolute; left: 20px; bottom: 20px; font: inherit; font-weight: 600; background: var(--navy); color: #fff; border: 0; border-radius: var(--radio); padding: 14px 24px; cursor: pointer; }
.video.is-playing .video__play { display: none; }
[data-video-error] { position: absolute; left: 20px; top: 20px; color: #fff; }

/* Preguntas */
main > .faq { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
.faq__cab { position: sticky; top: 96px; }
.faq__cab p { margin-top: 16px; }
.faq__cab a { text-decoration: underline; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3em; line-height: 1; font-weight: 400; flex: none; }
details[open] summary::after { content: "–"; }
summary:hover { color: var(--violet); }
.faq__answer { padding: 0 0 20px; }
.faq__answer p, .faq__answer ol { max-width: 68ch; }
.faq__answer ol { list-style: decimal; padding-left: 20px; }
.faq__answer a { text-decoration: underline; }

/* Llamada final */
main > .demo { background: var(--navy); color: #d6daf0; border-top: 0; }
.demo h2 { color: #fff; }
.demo p { max-width: 44em; margin-top: 16px; }
.demo .acciones { margin-top: 28px; }

/* Pie */
.pie { padding: 48px var(--lateral) 28px; }
.pie__nombre img { height: 44px; width: auto; }
.pie__desc { margin-top: 14px; max-width: 34em; color: var(--muted); font-size: var(--small); }
.pie__enlaces, .pie__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: var(--small); }
.pie__enlaces { color: var(--ink); font-weight: 500; }
.pie__legal { color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }
.pie a { text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.pie button:hover { text-decoration: underline; }

/* WhatsApp y cookies */
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 30; background: #fff; color: var(--navy); font-weight: 600; font-size: var(--small); padding: 10px 14px; border: 1px solid #b9bed2; border-radius: var(--radio); text-decoration: none; }
.whatsapp:hover { background: var(--pale); }
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 50; max-width: 420px; background: #fff; color: var(--text); border: 1px solid #b9bed2; border-radius: var(--radio); padding: 20px; display: none; }
.consent.is-on { display: block; }
.consent h2 { font-size: var(--h3); }
.consent p { margin: 6px 0 14px; font-size: var(--small); line-height: 1.5; }
.consent a { text-decoration: underline; }
.consent__actions { display: flex; gap: 8px; }
.consent .boton { padding: 9px 16px; font-size: var(--small); }

/* Aparición discreta al bajar */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease-out, transform .45s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tableta */
@media (max-width: 1100px) {
  .nav, .entrar { display: none; }
  .burger { display: block; }
  main > .portada, .plan__cuerpo, .pasos__rejilla, main > .dos, main > .dos--inversa, main > .plano, main > .seguridad, main > .faq, .ops__dos { grid-template-columns: 1fr; }
  .seguridad > div:first-child, .faq__cab { position: static; }
  .dos--inversa .dos__texto { order: -1; }
  .maqueta { max-width: 760px; }
  .captura--movil { max-width: 320px; }
}

/* Teléfono */
@media (max-width: 640px) {
  .marca img { height: 32px; }
  .barra { gap: 10px; }
  .boton--bar { padding: 8px 12px; font-size: var(--small); }
  .planes__lista > div, .tres, .ops__lista, .seguridad__lista, .precios__modulos { grid-template-columns: 1fr; }
  .simbolos { grid-template-columns: 1fr 1fr; }
  .hoja__capitulos { columns: 1; }
  .tabla td:first-child { white-space: normal; }
  table { font-size: var(--small); }
  .plan__pregunta select { width: 100%; }
  .whatsapp { right: 12px; bottom: 12px; padding: 8px 10px; }
  .consent { left: 8px; right: 8px; bottom: 8px; max-width: none; }
}
