/* WatcherWolf · web pública nueva (26-10-2026, rama feat/frontend-nuevo). Base: la portada aprobada
   (_propuesta-portada-2026-10) con los arreglos de la revisión adversarial P-01…P-27.
   HTML + CSS + JS sin dependencias. Colores en variables: :root (claro) y [data-theme="dark"].
   Los widgets del mapa y del Guardián (copiados tal cual del PHP de producción) leen
   --amber, --bg-primary, --bg-secondary, --text-*, --border-*, --green, --red, --radius-*. */

/* ---------- Fuentes locales (woff2, OFL) ---------- */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --font-main: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --amber: #F59E0B;           /* ámbar de marca */
  --amber-strong: #F5A300;
  --amber-text: #B45309;      /* ámbar para texto sobre claro (AA) */
  --amber-glow: rgba(245, 158, 11, .14);
  --on-amber: #14110a;

  --bg-primary: #FAF8F3;      /* marfil */
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F2EEE4;
  --bg-elev: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, .72);
  --text-primary: #0E1525;
  --text-secondary: #46526A;
  --text-muted: #66708A;
  --border-color: #E5DFD1;
  --border-light: #D9D2C2;
  --green: #16A34A;
  --green-text: #15803D;
  --red: #DC2626;
  --red-text: #B91C1C;

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 40, .06);
  --shadow-md: 0 8px 24px -8px rgba(20, 24, 40, .16);
  --shadow-lg: 0 30px 70px -20px rgba(20, 24, 40, .28);

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --amber-text: #FBBF24;
  --amber-glow: rgba(245, 158, 11, .16);
  --bg-primary: #0A0E1A;      /* azul noche */
  --bg-secondary: #111827;
  --bg-tertiary: #0E1322;
  --bg-elev: #151B2B;
  --bg-glass: rgba(21, 27, 43, .66);
  --text-primary: #F2F4F8;
  --text-secondary: #B3BCCD;
  --text-muted: #8590A6;
  --border-color: rgba(255, 255, 255, .09);
  --border-light: rgba(255, 255, 255, .16);
  --green: #22C55E;
  --green-text: #4ADE80;
  --red: #EF4444;
  --red-text: #F87171;
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .8);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-main);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
@media (min-width: 1800px) { body { font-size: 18px; } :root { --max: 1600px; } }
@media (max-width: 600px) { body { font-size: 16px; } }
img, svg, video { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; top: 0; z-index: 100; }
.saltar:focus, .saltar:focus-visible { position: fixed; left: 12px; top: 12px; padding: 10px 16px; border-radius: 8px; background: var(--amber); color: var(--on-amber); font-weight: 700; text-decoration: none; }
main:focus { outline: none; }
.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-feature-settings: 'zero' 0; }
.serifa { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.015em; font-optical-sizing: auto; }
.ambar { color: var(--amber-text); }
[data-theme="dark"] .ambar { color: var(--amber); }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Etiqueta pequeña sobre los titulares (boceto 13: «VISTA DE EJEMPLO», «DETECCIÓN INTELIGENTE») */
.antetitulo { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--amber-text); margin-bottom: 14px; }
[data-theme="dark"] .antetitulo { color: var(--amber); }
.antetitulo .num { font-family: var(--font-mono); letter-spacing: 0; opacity: .75; }

.seccion { padding: clamp(72px, 9vw, 140px) 0; position: relative; }
.seccion--alt { background: var(--bg-tertiary); }
.titular { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); }
.titular--medio { font-size: clamp(1.75rem, 1.1rem + 1.9vw, 2.75rem); }
.entradilla { color: var(--text-secondary); font-size: clamp(1rem, .95rem + .3vw, 1.18rem); max-width: 60ch; margin-top: 18px; }
.cabecera-seccion { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 4vw, 64px); }
.cabecera-seccion .entradilla { margin-top: 0; justify-self: end; }
@media (max-width: 900px) { .cabecera-seccion { grid-template-columns: 1fr; } .cabecera-seccion .entradilla { justify-self: start; } }

/* ---------- Botones ---------- */
.boton { --b-bg: var(--amber); --b-fg: var(--on-amber); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; background: var(--b-bg); color: var(--b-fg); font: 600 1rem/1.2 var(--font-main);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease; }
.boton:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(245, 158, 11, .75); }
.boton .ico { transition: transform .2s ease; }
.boton:hover .ico--flecha { transform: translateX(3px); }
.boton--grande { min-height: 56px; padding: 14px 28px; font-size: 1.06rem; border-radius: 14px; }
.boton--fantasma { --b-bg: transparent; --b-fg: var(--text-primary); border-color: var(--border-light); }
.boton--fantasma:hover { box-shadow: none; border-color: var(--amber); }
.boton--cristal { --b-bg: rgba(10, 14, 26, .45); --b-fg: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[data-theme="light"] .boton--cristal { --b-bg: rgba(255, 255, 255, .7); --b-fg: var(--text-primary); border-color: rgba(14, 21, 37, .16); }
.boton--cristal:hover { box-shadow: none; border-color: var(--amber); }
.boton--oscuro { --b-bg: #0E1525; --b-fg: #fff; }
.boton--oscuro:hover { box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .6); }
.letra-pequena { font-size: .86rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.letra-pequena .punto { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ---------- Cabecera ---------- */
.cab { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; border-bottom: 1px solid transparent; }
.cab.solida { background: color-mix(in srgb, var(--bg-primary) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--border-color); }
.cab .contenedor { height: 100%; display: flex; align-items: center; gap: 28px; }
.cab-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.cab-logo img { height: 30px; width: auto; display: block; }
.logo-claro, .logo-oscuro { display: none !important; }
[data-theme="light"] .logo-claro { display: block !important; }
[data-theme="dark"] .logo-oscuro { display: block !important; }
/* Sobre el hero oscuro (o el claro) el logo sigue al tema: la imagen del hero cambia con él. */
.cab-nav { display: flex; gap: 4px; margin-left: 12px; }
.cab-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; color: var(--text-primary); opacity: .86; }
.cab-nav a:hover { opacity: 1; background: var(--amber-glow); }
.cab-acciones { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cab-enlace { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 10px; min-height: 44px; display: inline-flex; align-items: center; }
.cab-enlace:hover { color: var(--amber-text); }
.icono-boton { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border-light);
  background: transparent; color: var(--text-primary); cursor: pointer; font: 600 .82rem var(--font-main); text-decoration: none; }
.icono-boton:hover { border-color: var(--amber); }
.icono-boton .ico { width: 19px; height: 19px; }
.ico-sol, .ico-luna { display: none; }
[data-theme="dark"] .ico-sol { display: block; }
[data-theme="light"] .ico-luna { display: block; }
.idioma { width: auto; min-width: 44px; padding: 0 12px; letter-spacing: .04em; }
.cab .boton { min-height: 44px; padding: 9px 18px; font-size: .95rem; }
.cab-menu { display: none; }
@media (max-width: 1080px) {
  .cab-nav, .cab-enlace, .cab .solo-ancho { display: none; }
  .cab-menu { display: inline-grid; }
}
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .cab .contenedor { gap: 10px; }
  .cab-logo img { height: 24px; }
  .cab .boton { padding: 9px 13px; font-size: .9rem; }
  .cab-acciones { gap: 6px; }
  .cab-cta { display: none; }
  .cab .idioma { display: none; }
}

/* ---------- Menú del móvil (27-10-2026) ----------
   La cabecera se queda fija encima (el logo no salta) y la hamburguesa se convierte en la cruz.
   El panel ocupa el resto de la pantalla, se desplaza por dentro si no cabe (móvil apaisado) y
   las entradas llegan escalonadas. Referencias de Mobbin: TradingView (llamada a probar en una
   tarjeta y ajustes en una fila), Open (enlaces grandes con flecha) y Hims/Hootsuite (icono y
   una línea que dice qué hay en cada página). */
.hamb { position: relative; display: block; width: 18px; height: 12px; }
.hamb i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), top .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.hamb i:nth-child(1) { top: 0; }
.hamb i:nth-child(2) { top: 5px; }
.hamb i:nth-child(3) { top: 10px; }
.cab-menu[aria-expanded="true"] { border-color: var(--amber); }
.cab-menu[aria-expanded="true"] .hamb i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.cab-menu[aria-expanded="true"] .hamb i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.cab-menu[aria-expanded="true"] .hamb i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
/* Con el menú abierto la cabecera es sólida (también sobre la foto de la portada) y lo de detrás no se mueve. */
html.menu-abierto, html.menu-abierto body { overflow: hidden; }
html.menu-abierto .cab { background: var(--bg-primary); border-bottom-color: var(--border-color); backdrop-filter: none; -webkit-backdrop-filter: none; }

.menu-movil { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: radial-gradient(90% 55% at 100% 0%, var(--amber-glow), transparent 70%), var(--bg-primary);
  opacity: 0; transform: translateY(-10px); visibility: hidden;
  transition: opacity .2s ease, transform .3s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .3s; }
.menu-movil[hidden] { display: none; }
.menu-movil.abierto { opacity: 1; transform: none; visibility: visible; transition: opacity .22s ease, transform .34s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
.menu-movil-caja { min-height: 100%; width: 100%; max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 18px;
  padding: 14px max(var(--gutter), env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); }
/* Entrada escalonada; al cerrar, todo a la vez. */
.mm-lista > li, .mm-ajustes, .mm-cta { opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .45s cubic-bezier(.16, 1, .3, 1); transition-delay: 0s; }
.menu-movil.abierto .mm-lista > li, .menu-movil.abierto .mm-ajustes, .menu-movil.abierto .mm-cta { opacity: 1; transform: none; transition-delay: calc(40ms + var(--i, 0) * 32ms); }

.mm-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mm-enlace { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px; margin: 0 -12px;
  border-radius: 14px; text-decoration: none; color: var(--text-primary); -webkit-tap-highlight-color: transparent; transition: background-color .2s ease; }
.mm-enlace:hover, .mm-enlace:active { background: var(--amber-glow); }
.mm-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-elev); border: 1px solid var(--border-color); color: var(--amber-text); }
[data-theme="dark"] .mm-ico { color: var(--amber); }
.mm-ico .ico { width: 20px; height: 20px; }
.mm-txt strong { display: block; font-size: 1.14rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.mm-txt small { display: block; margin-top: 2px; color: var(--text-muted); font-size: .86rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-flecha { width: 18px; height: 18px; color: var(--text-muted); transition: transform .2s ease, color .2s ease; }
.mm-enlace:hover .mm-flecha { transform: translateX(3px); color: var(--amber-text); }
.mm-enlace[aria-current="page"] .mm-ico { background: var(--amber); border-color: transparent; color: var(--on-amber); }
.mm-enlace[aria-current="page"] strong { color: var(--amber-text); }
[data-theme="dark"] .mm-enlace[aria-current="page"] strong { color: var(--amber); }

.mm-ajustes { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.mm-ajustes > span { color: var(--text-muted); font-size: .88rem; }
.mm-ajustes > div { display: flex; gap: 8px; }
.mm-cta { margin-top: auto; display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--border-light);
  background: radial-gradient(140% 120% at 0% 0%, var(--amber-glow), transparent 60%), var(--bg-elev); box-shadow: var(--shadow-md); }
.mm-cta .boton { width: 100%; }
.mm-cta .boton--fantasma { background: var(--bg-primary); }
.mm-cta .boton--fantasma .ico { width: 18px; height: 18px; }
.mm-nota { margin: 0; text-align: center; color: var(--text-muted); font-size: .82rem; }
/* Tableta: dos columnas de enlaces y los dos botones en fila. */
@media (min-width: 640px) {
  .mm-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .mm-cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-cta { margin-top: 4px; }
  .mm-cta .boton--fantasma { order: -1; }
  .mm-nota { grid-column: 1 / -1; }
}
/* Móvil apaisado (poco alto): más compacto, sin la línea de ayuda; lo que no quepa se desplaza. */
@media (max-height: 520px) and (orientation: landscape) {
  .menu-movil-caja { gap: 12px; padding-top: 8px; }
  .mm-enlace { min-height: 52px; padding: 4px 12px; }
  .mm-txt small { display: none; }
  .mm-ajustes { padding-top: 10px; }
  .mm-cta { margin-top: 0; padding: 12px; }
}
/* En escritorio no hay menú del móvil (el JS además lo cierra si se gira la tableta). */
@media (min-width: 1081px) { .menu-movil { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .menu-movil, .menu-movil.abierto, .mm-lista > li, .mm-ajustes, .mm-cta { transform: none !important; transition-delay: 0s !important; }
}

/* ---------- Hero con el eclipse (boceto 13) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; color: #fff;
  display: flex; flex-direction: column; background: #070a14; }
[data-theme="light"] .hero { background: var(--bg-primary); color: var(--text-primary); }
/* La «obra»: replica un object-fit: cover anclado arriba, para colocar encima el aro, los ojos y el texto en % de la imagen. */
.hero-obra { position: absolute; top: var(--obra-top, 0px); left: 50%; width: max(100%, calc(var(--hero-h, 100svh) * 1.5)); aspect-ratio: 3 / 2;
  transform: translateX(-50%); z-index: -2; }
.hero-fondo { position: absolute; inset: 0; animation: respira 34s ease-in-out infinite alternate; transform-origin: 50% 46%;
  /* P-12: la foto se funde con el fondo por abajo, sin corte seco en el botón. */
  -webkit-mask-image: linear-gradient(#000 82%, transparent 100%); mask-image: linear-gradient(#000 82%, transparent 100%); }
/* P-05 y P-18: la foto es un <img> (una por tema) con srcset 960/1536; el <head> precarga la del tema
   que toca con prioridad alta. La del otro tema es lazy y display:none: no se descarga hasta cambiar. */
.hero-fondo picture { display: contents; }
.hero-fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
@keyframes respira { from { transform: scale(1); } to { transform: scale(1.035); } }
/* El aro: un destello que lo recorre despacio, como un radar. Tapado abajo, donde pasa por detrás del lobo. */
.hero-aro { position: absolute; left: 49.4%; top: 43.6%; width: 57.6%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  pointer-events: none; mix-blend-mode: screen;
  background: conic-gradient(from var(--giro, 0deg), transparent 0deg, transparent 300deg, rgba(255, 214, 120, .0) 310deg, rgba(255, 220, 140, .95) 352deg, #fff6d8 358deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 6px), #000 calc(100% - 2px), transparent 100%), linear-gradient(#000 0 56%, transparent 66%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 6px), #000 calc(100% - 2px), transparent 100%), linear-gradient(#000 0 56%, transparent 66%);
  mask-composite: intersect; filter: blur(.6px) drop-shadow(0 0 6px rgba(255, 190, 70, .9)); animation: radar 11s linear infinite; }
@property --giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes radar { to { --giro: 360deg; } }
.hero-halo { position: absolute; left: 49.4%; top: 43.6%; width: 60%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, transparent 88%, rgba(255, 170, 40, .22) 95%, transparent 100%); mix-blend-mode: screen; animation: halo 6s ease-in-out infinite; }
@keyframes halo { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* Los ojos del lobo: un brillo ámbar que se enciende de vez en cuando. */
.hero-ojo { position: absolute; width: 3.4%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 110, .95), rgba(255, 170, 40, .45) 45%, transparent 100%); mix-blend-mode: screen; opacity: 0; animation: mirada 9s ease-in-out infinite 2.4s; }
.hero-ojo--i { left: 48.15%; top: 55.55%; }
.hero-ojo--d { left: 55.45%; top: 56.15%; }
@keyframes mirada { 0%, 58%, 100% { opacity: 0; } 66% { opacity: .95; } 74% { opacity: .55; } 82% { opacity: 0; } }
/* Estrellas que titilan (solo de noche) */
.hero-estrellas { position: absolute; inset: 0; pointer-events: none; }
.hero-estrellas i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .8); opacity: .2; animation: titila 4.5s ease-in-out infinite; }
[data-theme="light"] .hero-estrellas { display: none; }
@keyframes titila { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }
/* Velos para leer el texto */
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 16, .55) 0%, rgba(5, 8, 16, 0) 22%), linear-gradient(0deg, rgba(5, 8, 16, .92) 0%, rgba(5, 8, 16, .55) 20%, rgba(5, 8, 16, 0) 42%); }
[data-theme="light"] .hero::before {
  background: linear-gradient(180deg, rgba(250, 248, 243, .55) 0%, rgba(250, 248, 243, 0) 22%), linear-gradient(0deg, rgba(250, 248, 243, .96) 0%, rgba(250, 248, 243, .72) 20%, rgba(250, 248, 243, 0) 44%); }

.hero-arriba { position: relative; text-align: center; padding-top: calc(var(--header-h) + clamp(10px, 3.2vh, 54px)); }
.hero-h1 { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(.78rem, .7rem + .25vw, .95rem); font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: #FCD34D; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); margin: 0 0 clamp(8px, 1.4vh, 18px); line-height: 1.3; }
[data-theme="light"] .hero-h1 { color: #92400E; text-shadow: 0 1px 10px rgba(255, 255, 255, .8); }
.hero-h1::before, .hero-h1::after { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .6; }
/* Titular dentro del aro: dos líneas («La tranquilidad de saber / que todo funciona.»); en el móvil, tres. */
.hero-titulo { font-size: clamp(2.2rem, .9rem + 3vw, 4.6rem); font-size: clamp(2.2rem, min(.9rem + 3vw, 6.6vh), 4.6rem);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0 auto;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
[data-theme="light"] .hero-titulo { text-shadow: 0 2px 24px rgba(255, 255, 255, .7); }
.hero-titulo > span { display: block; }
.hero-titulo .ambar { color: var(--amber); }
.hero-titulo > span > .corte { display: inline; }
[data-theme="light"] .hero-titulo .ambar { color: #C2410C; }
.hero-abajo { position: relative; margin-top: auto; padding-bottom: clamp(26px, 5vh, 64px); text-align: center; }
.hero-sub { font-size: clamp(1rem, .9rem + .45vw, 1.24rem); max-width: 50ch; margin: 0 auto 26px; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
[data-theme="light"] .hero-sub { color: var(--text-secondary); text-shadow: none; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero .letra-pequena { margin-top: 16px; color: rgba(255, 255, 255, .78); justify-content: center; }
[data-theme="light"] .hero .letra-pequena { color: var(--text-muted); }
.hero-entra > * { animation: entra .9s cubic-bezier(.16, 1, .3, 1) both; }
.hero-entra > *:nth-child(2) { animation-delay: .12s; }
.hero-entra > *:nth-child(3) { animation-delay: .24s; }
.hero-entra > *:nth-child(4) { animation-delay: .36s; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* Pantallas anchas (16:9, 16:10): la imagen sube un poco para que el texto de abajo caiga sobre la Tierra y no sobre el hocico. */
@media (min-aspect-ratio: 3/2) { .hero { --obra-top: calc(-9vh + 20px); } }
@media (max-width: 700px) {
  /* En el móvil la imagen es más pequeña: el lobo entero bajo el titular y el texto, debajo del hocico. */
  [data-theme="light"] .hero::before { background: linear-gradient(180deg, rgba(250, 248, 243, .5) 0%, rgba(250, 248, 243, 0) 18%), linear-gradient(0deg, #FAF8F3 0%, rgba(250, 248, 243, .93) 30%, rgba(250, 248, 243, .6) 38%, rgba(250, 248, 243, 0) 46%); }
  [data-theme="light"] .hero-sub { color: var(--text-primary); }
  .hero::before { background: linear-gradient(180deg, rgba(5, 8, 16, .55) 0%, rgba(5, 8, 16, 0) 18%), linear-gradient(0deg, #070a14 0%, rgba(5, 8, 16, .9) 30%, rgba(5, 8, 16, .5) 38%, rgba(5, 8, 16, 0) 46%); }
  .hero-obra { width: max(100%, 255vw); top: 30px; }
  .hero-titulo { font-size: clamp(1.8rem, 8.4vw, 2.4rem); line-height: 1.04; }
  .hero-titulo > span > .corte { display: block; }
  .hero-cta .boton { flex: 1 1 100%; }
  .hero-sub { margin-bottom: 20px; }
}

/* ---------- Franja de datos bajo el hero (bocetos 12 y 17) ---------- */
.franja { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: var(--bg-secondary); }
.franja ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.franja li { display: flex; align-items: center; gap: 14px; padding: 22px 22px; border-left: 1px solid var(--border-color); }
.franja li:first-child { border-left: 0; padding-left: 0; }
.franja .ico { width: 22px; height: 22px; color: var(--amber-text); }
[data-theme="dark"] .franja .ico { color: var(--amber); }
.franja strong { display: block; font-size: 1.02rem; line-height: 1.25; }
.franja span { display: block; color: var(--text-muted); font-size: .86rem; line-height: 1.3; }
@media (max-width: 1000px) { .franja ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .franja li:nth-child(3) { border-left: 0; padding-left: 0; } .franja li:nth-child(n+3) { border-top: 1px solid var(--border-color); } }
@media (max-width: 520px) { .franja li { padding: 16px 10px 16px 12px; gap: 10px; } .franja li:nth-child(odd) { padding-left: 0; } .franja strong { font-size: .95rem; } .franja span { font-size: .8rem; } }

/* ---------- Panel de ejemplo (bocetos 08 y 13; incident.io en Mobbin) ---------- */
.panel-seccion { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.lista-check { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.lista-check li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.lista-check .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--on-amber); display: grid; place-items: center; margin-top: 1px; }
.lista-check .tick .ico { width: 14px; height: 14px; stroke-width: 3; }
.lista-check b { font-weight: 600; }
.panel-seccion .acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 1100px) { .panel-seccion { grid-template-columns: 1fr; } }

.escena { position: relative; padding-bottom: 40px; }
.marco { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border-light); background: var(--bg-elev); box-shadow: var(--shadow-lg); overflow: hidden; }
.marco-barra { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border-color); background: var(--bg-tertiary); }
.marco-barra i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-light); }
.marco-barra .url { margin-left: 12px; flex: 1; max-width: 360px; height: 26px; border-radius: 7px; background: var(--bg-primary); border: 1px solid var(--border-color);
  font: 500 .74rem/24px var(--font-mono); color: var(--text-muted); padding: 0 10px; overflow: hidden; white-space: nowrap; }
/* Hueco para la captura del panel nuevo: hoy enseña una vista de ejemplo dibujada en HTML. */
.hueco-etiqueta { position: absolute; top: 10px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font: 600 .7rem/1.3 var(--font-main); letter-spacing: .04em; color: var(--on-amber); background: repeating-linear-gradient(-45deg, #FBBF24 0 8px, #F59E0B 8px 16px); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); }
.captura { display: block; line-height: 0; }
.captura img { display: block; width: 100%; height: auto; }
[data-theme="dark"] .solo-claro, [data-theme="light"] .solo-oscuro { display: none !important; }
.movil-pantalla--captura { padding: 0; }
.movil-pantalla--captura::before { z-index: 2; }
.hueco { outline: 2px dashed rgba(245, 158, 11, .55); outline-offset: -2px; }

.p-app { display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: 520px; font-size: .8rem; }
.p-menu { border-right: 1px solid var(--border-color); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; background: color-mix(in srgb, var(--bg-elev) 70%, var(--bg-tertiary)); }
.p-menu img { height: 18px; width: auto; margin: 2px 8px 16px; align-self: flex-start; }
.p-menu a { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.p-menu a .ico { width: 15px; height: 15px; }
.p-menu a.activo { background: var(--amber-glow); color: var(--amber-text); }
[data-theme="dark"] .p-menu a.activo { color: var(--amber); }
.p-menu .p-grupo { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); padding: 12px 9px 4px; }
.p-cuerpo { padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.p-estado { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
  background: color-mix(in srgb, var(--green) 9%, transparent); }
.p-estado .latido { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: latido 2s infinite; flex-shrink: 0; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
.p-estado b { font-size: .9rem; }
.p-estado span { color: var(--text-muted); margin-left: auto; font-family: var(--font-mono); font-size: .72rem; }
.p-cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.p-cifra { border: 1px solid var(--border-color); border-radius: 12px; padding: 11px 12px; background: var(--bg-primary); min-width: 0; }
.p-cifra small { display: block; color: var(--text-muted); font-size: .68rem; }
.p-cifra strong { display: block; font: 700 1.25rem/1.25 var(--font-mono); letter-spacing: -.02em; margin-top: 2px; }
.p-cifra em { font-style: normal; font-size: .66rem; color: var(--green-text); }
.p-cifra svg { display: block; width: 100%; height: 22px; margin-top: 4px; }
.p-fila2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; }
.p-caja { border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; background: var(--bg-primary); min-width: 0; }
.p-caja h4 { font-size: .78rem; font-weight: 600; display: flex; justify-content: space-between; margin-bottom: 8px; letter-spacing: 0; }
.p-caja h4 span { color: var(--text-muted); font-weight: 500; }
.p-grafica { width: 100%; height: 120px; display: block; }
.p-webs { display: grid; gap: 7px; }
.p-web { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.p-web i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.p-web i.ko { background: var(--amber); }
.p-web span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-web b { font: 600 .72rem var(--font-mono); color: var(--text-secondary); }
.p-barras { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; margin-top: 4px; height: 16px; }
.p-barras i { border-radius: 2px; background: var(--green); opacity: .85; }
.p-barras i.m { background: var(--amber); }
.p-sucesos { display: grid; gap: 8px; }
.p-suceso { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px; }
.p-suceso i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 5px; }
.p-suceso i.a { background: var(--amber); }
.p-suceso small { display: block; color: var(--text-muted); font-size: .68rem; }

/* El móvil que asoma por delante (incident.io) */
.movil { position: absolute; right: -14px; bottom: 0; width: clamp(150px, 15vw, 214px); aspect-ratio: 9 / 19; border-radius: 30px; padding: 9px; background: #0B0F1C;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .14); z-index: 4; }
.movil-pantalla { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: var(--bg-primary); padding: 26px 10px 10px; font-size: .62rem; display: flex; flex-direction: column; gap: 8px; }
.movil-pantalla::before { content: ''; position: absolute; top: 7px; left: 50%; width: 60px; height: 14px; border-radius: 10px; background: #0B0F1C; transform: translateX(-50%); }
.movil .hueco-etiqueta { top: auto; bottom: 14px; right: 50%; transform: translateX(50%); white-space: nowrap; font-size: .58rem; }
.m-tarjeta { border: 1px solid var(--border-color); border-radius: 10px; padding: 8px; background: var(--bg-elev); }
.m-tarjeta strong { font: 700 1rem var(--font-mono); display: block; }
@media (max-width: 1100px) { .movil { right: 8px; } }
@media (max-width: 760px) {
  .escena { padding-bottom: 0; }
  .marco .hueco-etiqueta { font-size: .62rem; }
  .p-app { grid-template-columns: 1fr; min-height: 0; }
  .p-menu { display: none; }
  .p-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-fila2 { grid-template-columns: 1fr; }
  .movil { display: none; }
  /* Con capturas: en el móvil se enseña la del móvil, no la de escritorio en pequeño. */
  .escena--captura .marco { display: none; }
  .escena--captura .movil { display: block; position: relative; right: auto; bottom: auto; margin: 0 auto; width: min(290px, 78vw); }
}

/* Aviso flotante (boceto 11) */
.aviso-flotante { position: absolute; left: -26px; bottom: 6px; z-index: 5; width: min(330px, 80%); display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px;
  padding: 14px 16px; border-radius: 16px; background: var(--bg-glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-lg); font-size: .86rem; line-height: 1.4; }
.aviso-flotante .icono { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red-text); }
.aviso-flotante .icono .ico { width: 18px; height: 18px; }
.aviso-flotante small { display: block; color: var(--text-muted); font-size: .74rem; }
.aviso-flotante b { display: block; }
.escena.visible .aviso-flotante { animation: aviso 7s cubic-bezier(.16, 1, .3, 1) infinite 1s; }
@keyframes aviso { 0% { opacity: 0; transform: translateY(14px) scale(.98); } 8%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(6px); } }
@media (max-width: 760px) { .aviso-flotante { position: relative; left: 0; bottom: 0; width: 100%; margin-top: 14px; } .escena.visible .aviso-flotante { animation: none; } }

/* ---------- Funciones (bento; Better Stack en Mobbin + bocetos 06, 08 y 14) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tarjeta { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-elev);
  overflow: hidden; transition: border-color .25s ease, transform .3s ease, box-shadow .3s ease; min-width: 0; }
.tarjeta:hover { border-color: color-mix(in srgb, var(--amber) 60%, var(--border-color)); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tarjeta-vista { position: relative; min-height: 176px; padding: 18px; border-bottom: 1px solid var(--border-color); background:
  radial-gradient(120% 90% at 100% 0%, var(--amber-glow), transparent 60%), var(--bg-tertiary); overflow: hidden; }
.tarjeta-texto { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tarjeta-texto .rotulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tarjeta-texto h3 { font-size: 1.16rem; letter-spacing: -.01em; }
.tarjeta-texto .n { font: 500 .72rem var(--font-mono); color: var(--text-muted); }
.tarjeta-texto p { color: var(--text-secondary); font-size: .93rem; line-height: 1.55; }
.tarjeta-texto .incluido { margin-top: auto; padding-top: 6px; font-size: .78rem; color: var(--text-muted); }
@media (max-width: 1240px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tarjeta-vista { min-height: 160px; }
  .mv-tipos { gap: 5px; } .mv-tipo { padding: 5px 9px; } }

/* Mini vistas de cada tarjeta */
.mv-barras { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 54px; align-items: end; }
.mv-barras i { height: 100%; border-radius: 3px; background: var(--green); opacity: .9; transform-origin: bottom; }
.mv-barras i.m { background: var(--amber); }
.visible .mv-barras i { animation: sube .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes sube { from { transform: scaleY(.1); opacity: 0; } to { transform: none; } }
.mv-dato { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.mv-dato strong { font: 700 1.6rem var(--font-mono); letter-spacing: -.03em; }
.mv-dato span { font-size: .76rem; color: var(--text-muted); }
.mv-pie { display: flex; justify-content: space-between; font: 500 .68rem var(--font-mono); color: var(--text-muted); margin-top: 8px; }
.mv-cert { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border-color); }
.mv-cert .ico-caja { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green-text); }
.mv-cert b { display: block; font-size: .86rem; }
.mv-cert small { display: block; color: var(--text-muted); font-size: .72rem; }
.mv-avisos { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; align-items: center; font-size: .72rem; color: var(--text-muted); }
.mv-avisos span.ch { font: 600 .72rem var(--font-mono); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border-light); color: var(--text-secondary); background: var(--bg-elev); }
.mv-avisos span.ch.on { border-color: var(--amber); color: var(--amber-text); }
[data-theme="dark"] .mv-avisos span.ch.on { color: var(--amber); }
.mv-medidores { display: flex; justify-content: space-around; align-items: center; height: 100%; }
.medidor { position: relative; width: 104px; text-align: center; }
.medidor svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.medidor circle { fill: none; stroke-width: 9; }
.medidor .fondo { stroke: var(--border-color); }
.medidor .valor { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1.4s cubic-bezier(.16, 1, .3, 1); }
.visible .medidor .valor { stroke-dashoffset: var(--off); }
.medidor strong { position: absolute; inset: 0 0 auto 0; top: 30px; font: 700 1.5rem var(--font-mono); }
.medidor small { display: block; margin-top: -4px; font-size: .7rem; color: var(--text-muted); font-weight: 600; letter-spacing: .06em; }
.mv-directo svg { width: 100%; height: 96px; display: block; overflow: visible; }
.mv-directo .linea { fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.visible .mv-directo .linea { animation: traza 5s linear infinite; }
@keyframes traza { 0% { stroke-dashoffset: 600; } 70%, 100% { stroke-dashoffset: 0; } }
.mv-directo .rejilla { stroke: var(--border-color); stroke-dasharray: 2 4; }
.mv-directo .chip { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem var(--font-main); padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red-text); }
.mv-directo .chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: parpadea 1.2s steps(2) infinite; }
@keyframes parpadea { 50% { opacity: .2; } }
.mv-tipos { display: grid; gap: 7px; }
.mv-tipo { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--border-color); font-size: .76rem; }
.mv-tipo code { font: 600 .66rem var(--font-mono); color: var(--amber-text); background: var(--amber-glow); padding: 2px 6px; border-radius: 6px; text-align: center; }
[data-theme="dark"] .mv-tipo code { color: var(--amber); }
.mv-tipo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-tipo b { color: var(--green-text); font: 600 .7rem var(--font-mono); }
.mv-pdf { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; height: 100%; }
.mv-hoja { height: 140px; border-radius: 6px; background: #fff; box-shadow: var(--shadow-md); padding: 10px; display: grid; gap: 6px; align-content: start; transform: rotate(-3deg); color: #0E1525; }
.mv-hoja .logo-cliente { height: 14px; width: 56px; border-radius: 3px; background: repeating-linear-gradient(90deg, #6366F1 0 8px, #818CF8 8px 16px); }
.mv-hoja i { display: block; height: 5px; border-radius: 3px; background: #E5E7EB; }
.mv-hoja i.c { width: 60%; }
.mv-hoja .mini-barras { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; height: 26px; align-items: end; }
.mv-hoja .mini-barras b { background: #6366F1; border-radius: 1px; }
.mv-pdf ul { list-style: none; display: grid; gap: 6px; font-size: .78rem; color: var(--text-secondary); }
.mv-pdf li::before { content: '✓'; color: var(--green-text); font-weight: 700; margin-right: 6px; }
.mv-estado { border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border-color); padding: 12px; }
.mv-estado .t { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; }
.mv-estado .t i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mv-estado .url { font: 500 .68rem var(--font-mono); color: var(--text-muted); margin-bottom: 8px; }
.mv-estado .fila { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text-secondary); margin-top: 8px; }
.mv-estado .p-barras { height: 14px; grid-template-columns: repeat(45, 1fr); }

/* ---------- Guardián (bocetos 13, 09; serifa de 04 y 10) ---------- */
.guardian { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 80px); align-items: center; }
.guardian .titular .serifa { font-style: italic; color: var(--amber-text); font-weight: 500; }
[data-theme="dark"] .guardian .titular .serifa { color: var(--amber); }
.puntos { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.puntos li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--text-secondary); font-size: .97rem; }
.puntos .ico { width: 18px; height: 18px; color: var(--green-text); margin-top: 4px; stroke-width: 2.6; }
.guardian-caja { border: 1px solid var(--border-light); border-radius: var(--radius-xl); background: var(--bg-elev); padding: clamp(16px, 2vw, 28px); box-shadow: var(--shadow-lg); position: relative; }
.guardian-caja::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(245, 158, 11, .7), transparent 38%, transparent 70%, rgba(245, 158, 11, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.etiqueta-plan { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--amber-glow); color: var(--amber-text); font-size: .8rem; font-weight: 600; margin-top: 22px; }
[data-theme="dark"] .etiqueta-plan { color: var(--amber); }
@media (max-width: 1000px) { .guardian { grid-template-columns: 1fr; } }

/* ---------- «Primero te enteras tú» (boceto 09 + fondo 5) ---------- */
.mirada { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 10vw, 150px) 0 clamp(72px, 8vw, 120px); color: #fff; background: #070a14; }
[data-theme="light"] .mirada { color: var(--text-primary); background: #eaf3fb; }
.mirada-fondo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 18%; }
/* Fondos de las secciones de abajo: se piden solo cuando la sección se acerca a la pantalla (.con-fondo, lo pone el JS). */
[data-theme="dark"] .con-fondo .mirada-fondo { background-image: url('../img/web/fondos/mirada-oscuro.jpg');
  background-image: image-set(url('../img/web/fondos/mirada-oscuro.avif') type('image/avif'), url('../img/web/fondos/mirada-oscuro.webp') type('image/webp'), url('../img/web/fondos/mirada-oscuro.jpg') type('image/jpeg')); }
[data-theme="light"] .con-fondo .mirada-fondo { background-image: url('../img/web/fondos/mirada-claro.jpg');
  background-image: image-set(url('../img/web/fondos/mirada-claro.avif') type('image/avif'), url('../img/web/fondos/mirada-claro.webp') type('image/webp'), url('../img/web/fondos/mirada-claro.jpg') type('image/jpeg')); }
[data-theme="dark"] .con-fondo .global-fondo { background-image: image-set(url('../img/web/fondos/global-oscuro.avif') type('image/avif'), url('../img/web/fondos/global-oscuro.webp') type('image/webp'), url('../img/web/fondos/global-oscuro.jpg') type('image/jpeg')); }
[data-theme="light"] .con-fondo .global-fondo { background-image: image-set(url('../img/web/fondos/global-claro.avif') type('image/avif'), url('../img/web/fondos/global-claro.webp') type('image/webp'), url('../img/web/fondos/global-claro.jpg') type('image/jpeg')); }
[data-theme="dark"] .con-fondo .cierre-fondo { background-image: url('../img/web/fondos/cierre-oscuro.jpg');
  background-image: image-set(url('../img/web/fondos/cierre-oscuro.avif') type('image/avif'), url('../img/web/fondos/cierre-oscuro.webp') type('image/webp'), url('../img/web/fondos/cierre-oscuro.jpg') type('image/jpeg')); }
[data-theme="light"] .con-fondo .cierre-fondo { background-image: url('../img/web/fondos/cierre-claro.jpg');
  background-image: image-set(url('../img/web/fondos/cierre-claro.avif') type('image/avif'), url('../img/web/fondos/cierre-claro.webp') type('image/webp'), url('../img/web/fondos/cierre-claro.jpg') type('image/jpeg')); }
@media (max-width: 1100px) {
  [data-theme="dark"] .con-fondo .mirada-fondo { background-image: image-set(url('../img/web/fondos/mirada-oscuro-960.avif') type('image/avif'), url('../img/web/fondos/mirada-oscuro-960.webp') type('image/webp'), url('../img/web/fondos/mirada-oscuro-960.jpg') type('image/jpeg')); }
  [data-theme="light"] .con-fondo .mirada-fondo { background-image: image-set(url('../img/web/fondos/mirada-claro-960.avif') type('image/avif'), url('../img/web/fondos/mirada-claro-960.webp') type('image/webp'), url('../img/web/fondos/mirada-claro-960.jpg') type('image/jpeg')); }
  [data-theme="dark"] .con-fondo .cierre-fondo { background-image: image-set(url('../img/web/fondos/cierre-oscuro-960.avif') type('image/avif'), url('../img/web/fondos/cierre-oscuro-960.webp') type('image/webp'), url('../img/web/fondos/cierre-oscuro-960.jpg') type('image/jpeg')); }
  [data-theme="light"] .con-fondo .cierre-fondo { background-image: image-set(url('../img/web/fondos/cierre-claro-960.avif') type('image/avif'), url('../img/web/fondos/cierre-claro-960.webp') type('image/webp'), url('../img/web/fondos/cierre-claro-960.jpg') type('image/jpeg')); }
}
.mirada::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 10, 20, .25) 0%, rgba(7, 10, 20, .55) 38%, rgba(7, 10, 20, .94) 64%); }
[data-theme="light"] .mirada::before { background: linear-gradient(180deg, rgba(250, 248, 243, .1) 0%, rgba(250, 248, 243, .5) 36%, rgba(250, 248, 243, .95) 62%); }
.mirada-cab { text-align: center; max-width: 900px; margin: 0 auto; padding-top: clamp(120px, 16vw, 260px); }
.mirada-cab .titular { font-size: clamp(2.4rem, 1.2rem + 4vw, 5rem); }
.mirada-cab .entradilla { margin-left: auto; margin-right: auto; color: inherit; opacity: .85; }
.pasos { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 72px); counter-reset: paso; position: relative; }
.pasos::before { content: ''; position: absolute; top: 21px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, var(--amber), var(--red) 34%, var(--amber) 66%, var(--green)); opacity: .55; }
.paso { text-align: center; padding: 0 16px; position: relative; }
.paso .bola { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: #0E1525; border: 2px solid var(--amber); color: var(--amber); position: relative; z-index: 1; }
[data-theme="light"] .paso .bola { background: #fff; }
.paso .bola .ico { width: 19px; height: 19px; }
.paso .bola.r { border-color: var(--red); color: var(--red); }
.paso .bola.v { border-color: var(--green); color: var(--green); }
.paso .t { font: 600 .74rem var(--font-mono); color: var(--amber); letter-spacing: .02em; }
[data-theme="light"] .paso .t { color: var(--amber-text); }
.paso h3 { font-size: 1.08rem; margin: 6px 0 6px; letter-spacing: -.01em; }
.paso p { font-size: .9rem; opacity: .8; line-height: 1.5; }
.canales { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.canal { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[data-theme="light"] .canal { background: rgba(255, 255, 255, .8); border-color: var(--border-light); }
.canal .ico { width: 18px; height: 18px; color: var(--amber); }
[data-theme="light"] .canal .ico { color: var(--amber-text); }
@media (max-width: 700px) {
  .mirada { padding-top: 0; }
  .mirada-fondo { inset: 0 0 auto 0; height: 440px; background-position: center 30%; }
  .mirada::before { background: linear-gradient(180deg, rgba(7, 10, 20, 0) 0, rgba(7, 10, 20, .3) 240px, #070a14 430px); }
  [data-theme="light"] .mirada::before { background: linear-gradient(180deg, rgba(250, 248, 243, 0) 0, rgba(250, 248, 243, .35) 240px, #FAF8F3 430px); }
  [data-theme="light"] .mirada { background: #FAF8F3; }
  .mirada-cab { padding-top: 300px; }
  .mirada-cab .titular { font-size: 2.15rem; }
}
@media (max-width: 900px) {
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .pasos::before { display: none; }
}
@media (max-width: 520px) {
  .pasos { grid-template-columns: 1fr; text-align: left; row-gap: 22px; }
  .paso { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; text-align: left; padding: 0; }
  .paso .bola { margin: 0; grid-row: span 3; }
  .canales { justify-content: flex-start; }
}

/* ---------- Sondas y mapa (fondo 3, boceto 12; ciudades del 02) ---------- */
.global { position: relative; overflow: hidden; isolation: isolate; }
.global-fondo { position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1; background-size: cover; background-position: center 30%; opacity: .5;
  -webkit-mask: linear-gradient(180deg, transparent, #000 55%); mask: linear-gradient(180deg, transparent, #000 55%); }
.global-cab { text-align: center; max-width: 880px; margin: 0 auto clamp(30px, 4vw, 52px); }
.global-cab .entradilla { margin-left: auto; margin-right: auto; }
.mapa-caja { max-width: 1240px; margin: 0 auto; border-radius: var(--radius-xl); padding: clamp(14px, 2vw, 28px); background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mapa-caja .ms { --ms-t1: #27314d; --ms-t2: #172036; --ms-trama: rgba(176, 196, 255, .17); --ms-costa: rgba(176, 196, 255, .3); }
[data-theme="light"] .mapa-caja .ms { --ms-t1: #c9d3e6; --ms-t2: #e2e8f2; --ms-trama: rgba(60, 80, 130, .2); --ms-costa: rgba(80, 100, 150, .38); }
.ciudades { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 26px auto 0; max-width: 1100px; }
.ciudades li { font-size: .86rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-elev); display: inline-flex; align-items: center; gap: 8px; }
.ciudades li i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ciudades li.cc i { background: var(--amber); border-radius: 1px; transform: rotate(45deg); }
.nota-plan { display: table; margin: 18px auto 0; padding: 6px 14px; border-radius: 999px; text-align: center; color: var(--text-secondary); font-size: .88rem;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent); border: 1px solid var(--border-color); }

/* ---------- Cifras reales sobre ámbar (boceto 02; Apollo y Retool en Mobbin) ---------- */
.cifras { background: var(--amber); color: #14110a; padding: clamp(64px, 8vw, 120px) 0; position: relative; overflow: hidden; }
.cifras .antetitulo { color: #3b2a05; }
.cifras-cab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; }
.cifras .titular { font-size: clamp(2.2rem, 1.1rem + 3.4vw, 4.4rem); letter-spacing: -.04em; line-height: .98; }
.cifras-cab p { font-size: 1.04rem; max-width: 52ch; color: #3b2a05; }
.cifras-rejilla { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(36px, 4vw, 60px); border-top: 2px solid #14110a; }
.cifras-rejilla li { padding: 22px 22px 0 0; }
.cifras-rejilla strong { display: block; font: 700 clamp(2.2rem, 1.4rem + 2.6vw, 4rem)/1 var(--font-main); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cifras-rejilla span { display: block; margin-top: 10px; font-size: .95rem; line-height: 1.4; color: #3b2a05; max-width: 26ch; }
.cifras-fuente { margin-top: 26px; font-size: .84rem; color: #4a3608; }
@media (max-width: 900px) { .cifras-cab { grid-template-columns: 1fr; } .cifras-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cifras-rejilla li:nth-child(n+3) { border-top: 1px solid rgba(20, 17, 10, .25); margin-top: 22px; } }

/* Para quién (casos de uso reales del producto, sin testimonios) */
.usos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.uso { border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 26px; background: var(--bg-elev); display: flex; flex-direction: column; gap: 12px; }
.uso h3 { font-size: 1.2rem; }
.uso p { color: var(--text-secondary); font-size: .95rem; }
.uso .modulos { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.uso .modulos span { font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border-color); }
@media (max-width: 1000px) { .usos { grid-template-columns: 1fr; } }

/* ---------- Precios (Circle, HoneyBook, Mora y Plain en Mobbin) ---------- */
.precios-cab { text-align: center; max-width: 820px; margin: 0 auto 36px; }
.precios-cab .entradilla { margin-left: auto; margin-right: auto; }
.conmutador { display: inline-flex; padding: 5px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--border-light); margin: 0 auto 36px; position: relative; }
.conmutador button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--text-secondary); font: 600 .95rem var(--font-main); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.conmutador button[aria-pressed="true"] { background: var(--text-primary); color: var(--bg-primary); }
.conmutador .ahorro { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--amber); color: var(--on-amber); }
.centro { text-align: center; }
.planes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-elev); padding: 26px 22px 24px; display: flex; flex-direction: column; min-width: 0; }
.plan--destacado { border: 2px solid var(--amber); box-shadow: 0 30px 60px -30px rgba(245, 158, 11, .55); }
.plan .marca-plan { position: absolute; top: -13px; left: 22px; padding: 4px 11px; border-radius: 999px; background: var(--amber); color: var(--on-amber); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.plan h3 { font-size: 1.3rem; }
.plan .para { color: var(--text-muted); font-size: .9rem; margin-top: 4px; min-height: 2.8em; }
.plan .precio { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.plan .precio strong { font: 700 2.6rem/1 var(--font-main); letter-spacing: -.04em; }
.plan .precio span { color: var(--text-muted); font-size: .9rem; }
.plan .equivale { font-size: .8rem; color: var(--text-muted); min-height: 1.4em; margin-top: 6px; }
.plan .boton { margin: 20px 0 6px; width: 100%; }
.plan .sin-tarjeta { font-size: .78rem; color: var(--text-muted); text-align: center; }
.plan .clave { margin: 20px 0 14px; padding: 12px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.plan .clave div small { display: block; color: var(--text-muted); font-size: .72rem; }
.plan .clave div b { font: 700 1.02rem var(--font-mono); }
.plan ul { list-style: none; display: grid; gap: 9px; font-size: .9rem; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.plan li .ico { width: 16px; height: 16px; margin-top: 4px; stroke-width: 2.6; }
.plan li.si .ico { color: var(--green-text); }
.plan li.no { color: var(--text-muted); }
.plan li.no .ico { color: var(--text-muted); }
.plan li.no .no-incl { font-size: .72rem; font-weight: 600; margin-left: 4px; opacity: .9; }
.precios-nota { text-align: center; color: var(--text-muted); font-size: .88rem; margin-top: 26px; }
[data-ciclo="anual"] .solo-mensual, [data-ciclo="mensual"] .solo-anual { display: none; }
@media (max-width: 1240px) { .planes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 640px) { .planes { grid-template-columns: 1fr; } .plan .para { min-height: 0; } }

/* ---------- Preguntas ---------- */
.faq { max-width: 920px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border-color); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--text-secondary); max-width: 72ch; }

/* ---------- Cierre (fondo 4; boceto 08; Superpower y Square en Mobbin) ---------- */
.cierre { position: relative; overflow: hidden; isolation: isolate; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; background: #060912; }
[data-theme="light"] .cierre { color: var(--text-primary); background: #f3e7d6; }
.cierre-fondo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 70% 60%; }
.cierre::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 9, 18, .88) 0%, rgba(6, 9, 18, .55) 42%, rgba(6, 9, 18, 0) 70%); }
[data-theme="light"] .cierre::before { background: linear-gradient(90deg, rgba(250, 248, 243, .92) 0%, rgba(250, 248, 243, .62) 42%, rgba(250, 248, 243, 0) 70%); }
.cierre .titular { font-size: clamp(2.6rem, 1.2rem + 4.4vw, 5.8rem); line-height: 1; }
.cierre .titular .serifa { display: block; font-style: italic; color: var(--amber); font-weight: 400; }
[data-theme="light"] .cierre .titular .serifa { color: #B45309; }
.cierre .entradilla { color: inherit; opacity: .85; }
.cierre .acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; align-items: center; }
.cierre .letra-pequena { color: inherit; opacity: .75; margin-top: 14px; }
@media (max-width: 700px) {
  .cierre { align-items: flex-end; padding: 0 0 56px; min-height: 760px; }
  .cierre-fondo { background-position: 78% 40%; }
  .cierre::before { background: linear-gradient(0deg, rgba(6, 9, 18, .95) 0%, rgba(6, 9, 18, .7) 46%, rgba(6, 9, 18, .1) 75%); }
  [data-theme="light"] .cierre::before { background: linear-gradient(0deg, rgba(250, 248, 243, .97) 0%, rgba(250, 248, 243, .78) 46%, rgba(250, 248, 243, .1) 75%); }
  .cierre .acciones .boton { flex: 1 1 100%; }
}

/* ---------- Pie ---------- */
.pie { padding: 64px 0 36px; border-top: 1px solid var(--border-color); background: var(--bg-primary); }
.pie-rejilla { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.pie-marca img { height: 28px; width: auto; }
.pie-marca p { color: var(--text-muted); font-size: .92rem; margin-top: 14px; max-width: 34ch; }
.pie h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); margin-bottom: 14px; font-weight: 600; }
.pie ul { list-style: none; display: grid; gap: 9px; }
.pie a { text-decoration: none; color: var(--text-secondary); font-size: .93rem; }
.pie a:hover { color: var(--amber-text); }
.pie-bajo { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: .85rem; }
.muestra-aviso { color: var(--amber-text); font-weight: 600; }
[data-theme="dark"] .muestra-aviso { color: var(--amber); }
@media (max-width: 1000px) { .pie-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pie-marca { grid-column: 1 / -1; } }

/* ---------- Aparición al hacer scroll (sobria) ---------- */
.aparece { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--retardo, 0s); }
.aparece.visible { opacity: 1; transform: none; }
.sin-js .aparece { opacity: 1; transform: none; }

/* =====================================================================
   Web completa (26-10-2026): arreglos de la revisión y piezas de las demás páginas
   ===================================================================== */

/* ---------- Cabecera en las páginas sin foto ---------- */
.cab-nav a[aria-current="page"] { opacity: 1; color: var(--amber-text); }
[data-theme="dark"] .cab-nav a[aria-current="page"] { color: var(--amber); }


/* ---------- Cabecera de las páginas interiores ---------- */
.pcab { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(48px, 7vw, 104px)) 0 clamp(40px, 5vw, 72px);
  background: radial-gradient(70% 90% at 82% 0%, var(--amber-glow), transparent 62%), var(--bg-primary); border-bottom: 1px solid var(--border-color); }
.pcab::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none;
  background-image: radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,.75), transparent), radial-gradient(1px 1px at 31% 62%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 58% 18%, rgba(255,255,255,.6), transparent), radial-gradient(1px 1px at 76% 48%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.6px 1.6px at 90% 30%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 45% 82%, rgba(255,255,255,.35), transparent); }
[data-theme="light"] .pcab::before { display: none; }
.pcab-foto { position: absolute; inset: 0 0 0 auto; width: min(56%, 900px); z-index: -2; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.pcab-foto picture { display: contents; }
.pcab-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; display: block; }
[data-theme="light"] .pcab-foto { opacity: .5; }
.pcab h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 4.2rem); letter-spacing: -.035em; max-width: 18ch; }
.pcab h1 .serifa { font-style: italic; color: var(--amber-text); }
[data-theme="dark"] .pcab h1 .serifa { color: var(--amber); }
.pcab .entradilla { font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); }
.pcab .acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.pcab--centro { text-align: center; }
.pcab--centro h1, .pcab--centro .entradilla { margin-left: auto; margin-right: auto; }
.pcab--centro .acciones, .pcab--centro .migas { justify-content: center; }
.migas { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--text-muted); margin: 0 0 18px; padding: 0; list-style: none; flex-wrap: wrap; }
.migas a { text-decoration: none; color: var(--text-secondary); }
.migas a:hover { color: var(--amber-text); }
.migas li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
@media (max-width: 760px) { .pcab-foto { width: 100%; opacity: .25; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); } }

/* ---------- Funciones: índice fijo + módulos en detalle (Better Stack y Linear en Mobbin) ---------- */
.fx { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.fx-indice { position: sticky; top: calc(var(--header-h) + 24px); }
.fx-indice p { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.fx-indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fx-indice a { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text-secondary); font-size: .92rem; min-height: 40px; }
.fx-indice a span { font: 500 .7rem var(--font-mono); color: var(--text-muted); }
.fx-indice a:hover, .fx-indice a.activo { background: var(--amber-glow); color: var(--text-primary); }
.fx-lista { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.mod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 3vw, 48px); align-items: center; padding: clamp(22px, 2.6vw, 36px);
  border: 1px solid var(--border-color); border-radius: var(--radius-xl); background: var(--bg-elev); scroll-margin-top: calc(var(--header-h) + 20px); }
.mod:nth-child(even) .mod-vista { order: -1; }
.mod-fig { font: 500 .72rem var(--font-mono); color: var(--text-muted); letter-spacing: .04em; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mod-fig .plan-pill { font-family: var(--font-main); font-weight: 600; letter-spacing: 0; padding: 3px 9px; border-radius: 999px; background: var(--amber-glow); color: var(--amber-text); }
[data-theme="dark"] .mod-fig .plan-pill { color: var(--amber); }
.mod h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); letter-spacing: -.025em; }
.mod h2 small { display: block; font-size: .5em; font-weight: 600; letter-spacing: 0; color: var(--text-muted); margin-top: 6px; }
.mod p.mod-txt { color: var(--text-secondary); margin-top: 12px; }
.mod ul { list-style: none; display: grid; gap: 9px; margin-top: 18px; }
.mod li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: .95rem; color: var(--text-secondary); }
.mod li .ico { width: 17px; height: 17px; color: var(--green-text); margin-top: 4px; stroke-width: 2.6; }
.mod .mas { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; font-weight: 600; color: var(--amber-text); text-decoration: none; min-height: 44px; }
[data-theme="dark"] .mod .mas { color: var(--amber); }
.mod .mas .ico { width: 16px; height: 16px; }
.mod-vista { min-height: 250px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: clamp(16px, 2vw, 26px);
  background: radial-gradient(120% 90% at 100% 0%, var(--amber-glow), transparent 60%), var(--bg-tertiary); display: flex; flex-direction: column; justify-content: center; gap: 12px; overflow: hidden; min-width: 0; }
.mod-vista .ms, .mod-vista .gd { margin: 0; }
@media (max-width: 1100px) { .fx { grid-template-columns: 1fr; } .fx-indice { position: static; } .fx-indice ol { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
@media (max-width: 860px) { .mod { grid-template-columns: 1fr; } .mod:nth-child(even) .mod-vista { order: 0; } .mod-vista { min-height: 0; } }
@media (max-width: 560px) { .fx-indice { display: none; } .mod { padding: 18px; border-radius: var(--radius-lg); } }

/* Mini vistas nuevas de funciones */
.mv-lista { display: grid; gap: 8px; }
.mv-fila { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--border-color); font-size: .84rem; }
.mv-fila i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mv-fila i.a { background: var(--amber); } .mv-fila i.r { background: var(--red); }
.mv-fila b { font: 600 .74rem var(--font-mono); color: var(--text-secondary); }
.mv-fila span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-titulo { font-size: .76rem; color: var(--text-muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mv-chat { display: grid; gap: 10px; }
.mv-burbuja { max-width: 92%; padding: 11px 14px; border-radius: 14px; font-size: .86rem; line-height: 1.45; background: var(--bg-elev); border: 1px solid var(--border-color); }
.mv-burbuja.yo { justify-self: end; background: var(--amber-glow); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.mv-burbuja small { display: block; color: var(--text-muted); font-size: .72rem; margin-bottom: 3px; }
.mv-codigo { font: 500 .78rem/1.6 var(--font-mono); background: #0B1020; color: #D7DEEA; border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: pre; border: 1px solid rgba(255,255,255,.08); margin: 0; }
.mv-codigo .k { color: #FBBF24; } .mv-codigo .s { color: #86EFAC; } .mv-codigo .c { color: #8C9AB5; }
.mv-grupos { display: grid; gap: 10px; }
.mv-grupo { border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-elev); padding: 10px 12px; }
.mv-grupo b { display: flex; align-items: center; gap: 8px; font-size: .84rem; margin-bottom: 6px; }
.mv-grupo b::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--amber)); }
.mv-grupo span { display: inline-block; font-size: .74rem; padding: 3px 8px; border-radius: 999px; background: var(--bg-tertiary); margin: 2px 4px 2px 0; color: var(--text-secondary); }

/* ---------- Precios: página completa ---------- */
.oferta { display: flex; justify-content: center; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 auto 28px; padding: 10px 18px; border-radius: 14px; max-width: 720px;
  background: color-mix(in srgb, var(--amber) 14%, var(--bg-elev)); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); font-weight: 600; font-size: .95rem; text-align: center; }
.aviso-cobro { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; max-width: 820px; margin: 30px auto 0; padding: 16px 18px; border-radius: 14px;
  background: var(--bg-elev); border: 1px dashed var(--border-light); color: var(--text-secondary); font-size: .92rem; }
.aviso-cobro .ico { width: 20px; height: 20px; color: var(--amber-text); margin-top: 2px; }
[data-theme="dark"] .aviso-cobro .ico { color: var(--amber); }
.comparar-caja { margin-top: clamp(56px, 6vw, 96px); }
.comparar-caja .precios-cab { margin-bottom: 26px; }
.comparar-scroll { position: relative; overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-elev); }
.comparar { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
.comparar th, .comparar td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--border-color); }
.comparar thead th { background: var(--bg-elev); vertical-align: bottom; padding-top: 20px; }
.comparar thead th b { display: block; font-size: 1.08rem; }
.comparar thead th small { display: block; color: var(--text-muted); font-weight: 500; font-size: .8rem; margin-top: 2px; }
.comparar thead .boton { min-height: 40px; padding: 8px 14px; font-size: .86rem; margin-top: 10px; width: 100%; }
.comparar tbody th { text-align: left; font-weight: 500; color: var(--text-secondary); width: 32%; }
.comparar .grupo th { text-align: left; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-text); font-weight: 700; padding-top: 22px; background: var(--bg-tertiary); }
[data-theme="dark"] .comparar .grupo th { color: var(--amber); }
.comparar .dest { background: color-mix(in srgb, var(--amber) 7%, transparent); }
.comparar thead .dest { background: color-mix(in srgb, var(--amber) 12%, var(--bg-elev)); box-shadow: inset 0 3px 0 var(--amber); }
.comparar .ico { width: 17px; height: 17px; vertical-align: -3px; stroke-width: 2.6; }
.comparar .si .ico { color: var(--green-text); }
.comparar .no { color: var(--text-muted); }
.comparar td.valor { font-family: var(--font-mono); font-size: .86rem; }
.comparar tr:last-child td, .comparar tr:last-child th { border-bottom: 0; }
.desliza { display: none; font-size: .8rem; color: var(--text-muted); margin: 0 0 8px; text-align: right; }
@media (max-width: 820px) { .desliza { display: block; } }

/* ---------- Acceso: login, registro, contraseñas (Retool, Origin, TheyDo y Todoist en Mobbin) ---------- */
.acceso { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); background: var(--bg-primary); }
.acceso-form { position: relative; display: flex; flex-direction: column; padding: calc(var(--header-h) + 24px) clamp(20px, 5vw, 88px) 28px; }
.acceso-caja { position: relative; width: 100%; max-width: 440px; margin: auto; }
.acceso-caja h1 { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); letter-spacing: -.03em; }
.acceso-caja .sub { color: var(--text-secondary); margin-top: 10px; }
.acceso-arte { position: relative; overflow: hidden; isolation: isolate; margin: 12px 12px 12px 0; border-radius: 28px; background: #070a14; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 56px); min-height: 560px; }
[data-theme="light"] .acceso-arte { background: #eaf3fb; color: var(--text-primary); }
.acceso-arte picture { display: contents; }
.acceso-arte img.arte-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; z-index: -2; }
.acceso-arte::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,10,20,.05) 0%, rgba(7,10,20,.3) 38%, rgba(7,10,20,.94) 100%); }
[data-theme="light"] .acceso-arte::before { background: linear-gradient(180deg, rgba(250,248,243,0) 0%, rgba(250,248,243,.3) 38%, rgba(250,248,243,.96) 100%); }
.acceso-arte h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 3rem); line-height: 1.05; max-width: 17ch; }
.acceso-arte h2 .serifa { font-style: italic; color: var(--amber); display: block; }
[data-theme="light"] .acceso-arte h2 .serifa { color: #B45309; }
.acceso-arte .bajo { margin-top: 12px; max-width: 46ch; opacity: .88; }
.tarjeta-vidrio { margin-top: 26px; max-width: 440px; padding: 16px 18px; border-radius: 18px; background: rgba(21, 27, 43, .66); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: .88rem; display: grid; gap: 10px; }
[data-theme="light"] .tarjeta-vidrio { background: rgba(255,255,255,.82); border-color: rgba(14,21,37,.1); }
.tarjeta-vidrio .tv-tit { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; font-weight: 600; }
.tarjeta-vidrio .fila-v { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tarjeta-vidrio .fila-v i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.tarjeta-vidrio .fila-v i.a { background: var(--amber); box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.tarjeta-vidrio .fila-v b { font: 600 .76rem var(--font-mono); opacity: .85; }
.pie-acceso { margin-top: 28px; font-size: .84rem; color: var(--text-muted); display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: center; }
.pie-acceso a { color: var(--text-secondary); display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 980px) {
  .acceso { grid-template-columns: 1fr; }
  .acceso-arte { display: none; }
  .acceso-form { padding-top: calc(var(--header-h) + 12px); }
  .acceso-form::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 260px; pointer-events: none; background: radial-gradient(80% 100% at 50% 0%, var(--amber-glow), transparent 70%); }
}

/* Resumen del plan junto al registro (TheyDo y Todoist en Mobbin) */
.plan-elegido { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--border-color)); background: color-mix(in srgb, var(--amber) 8%, var(--bg-elev)); margin-top: 22px; }
.plan-elegido .l1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-weight: 700; }
.plan-elegido .l1 span { font: 600 .92rem var(--font-mono); }
.plan-elegido .l2 { font-size: .84rem; color: var(--text-secondary); display: flex; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.plan-elegido a { color: var(--amber-text); font-weight: 600; }
[data-theme="dark"] .plan-elegido a { color: var(--amber); }
.linea-tiempo { list-style: none; display: grid; margin: 22px 0 0; padding: 0; }
.linea-tiempo li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; position: relative; }
.linea-tiempo li:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: rgba(255,255,255,.22); }
[data-theme="light"] .linea-tiempo li:not(:last-child)::before { background: rgba(14,21,37,.15); }
.linea-tiempo .bola { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--on-amber); }
.linea-tiempo .bola.gris { background: rgba(255,255,255,.16); color: inherit; }
[data-theme="light"] .linea-tiempo .bola.gris { background: rgba(14,21,37,.08); }
.linea-tiempo .bola .ico { width: 15px; height: 15px; }
.linea-tiempo b { display: block; font-size: .95rem; }
.linea-tiempo span { font-size: .86rem; opacity: .88; }
.incluye { list-style: none; display: grid; gap: 7px; margin: 4px 0 0; padding: 0; font-size: .9rem; }
.incluye li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.incluye .ico { width: 16px; height: 16px; color: var(--green); margin-top: 4px; stroke-width: 2.8; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 18px; margin-top: 24px; }
.campo { display: grid; gap: 7px; }
.campo label, .campo .etiqueta { font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.campo .enlace-lado { font-weight: 500; font-size: .86rem; color: var(--amber-text); text-decoration: none; }
[data-theme="dark"] .campo .enlace-lado { color: var(--amber); }
.campo .enlace-lado:hover { text-decoration: underline; }
.entrada { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-light); background: var(--bg-elev);
  color: var(--text-primary); font: 500 1rem var(--font-main); transition: border-color .15s ease, box-shadow .15s ease; }
.entrada::placeholder { color: var(--text-muted); opacity: .85; }
.entrada:hover { border-color: color-mix(in srgb, var(--amber) 40%, var(--border-light)); }
.entrada:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-glow); }
.entrada[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent); }
.entrada--codigo { font: 700 1.6rem var(--font-mono); letter-spacing: .45em; text-align: center; padding-left: .6em; }
.con-ojo { position: relative; }
.con-ojo .entrada { padding-right: 54px; }
.ver-clave { position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); cursor: pointer; display: grid; place-items: center; }
.ver-clave:hover { color: var(--text-primary); }
.ver-clave .ico { width: 19px; height: 19px; }
.ver-clave .ico-no, .ver-clave[aria-pressed="true"] .ico-si { display: none; }
.ver-clave[aria-pressed="true"] .ico-no { display: block; }
.error-campo { color: var(--red-text); font-size: .86rem; font-weight: 500; }
.error-campo[hidden] { display: none; }
.ayuda { font-size: .83rem; color: var(--text-muted); }
.fuerza { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.fuerza i { height: 4px; border-radius: 4px; background: var(--border-color); transition: background-color .2s ease; }
.fuerza-caja[data-nivel="0"] .fuerza i:first-child, .fuerza-caja[data-nivel="1"] .fuerza i:nth-child(-n+1) { background: var(--red); }
.fuerza-caja[data-nivel="2"] .fuerza i:nth-child(-n+2) { background: var(--amber); }
.fuerza-caja[data-nivel="3"] .fuerza i:nth-child(-n+3), .fuerza-caja[data-nivel="4"] .fuerza i { background: var(--green); }
.casilla { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .9rem; color: var(--text-secondary); }
.casilla input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); }
.casilla a { color: var(--text-primary); }
.form .boton[type="submit"] { width: 100%; min-height: 52px; font-size: 1.02rem; }
.boton.cargando { pointer-events: none; opacity: .85; }
.boton.cargando::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: gira .8s linear infinite; }
.boton.cargando .ico { display: none; }
@keyframes gira { to { transform: rotate(360deg); } }
.separador { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: .84rem; margin: 22px 0 0; }
.separador::before, .separador::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.boton-google { --b-bg: var(--bg-elev); --b-fg: var(--text-primary); width: 100%; min-height: 52px; border: 1px solid var(--border-light); margin-top: 26px; font-weight: 600; }
.boton-google:hover { box-shadow: var(--shadow-md); border-color: var(--text-muted); }
.boton-google svg { width: 20px; height: 20px; }
.aviso { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 13px 15px; border-radius: 12px; font-size: .92rem; line-height: 1.45; margin-top: 20px; border: 1px solid; }
.aviso .ico { width: 19px; height: 19px; margin-top: 1px; }
.aviso--error { background: color-mix(in srgb, var(--red) 9%, var(--bg-elev)); border-color: color-mix(in srgb, var(--red) 40%, transparent); color: var(--text-primary); }
.aviso--error .ico { color: var(--red-text); }
.aviso--ok { background: color-mix(in srgb, var(--green) 9%, var(--bg-elev)); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.aviso--ok .ico { color: var(--green-text); }
.aviso--info { background: var(--bg-elev); border-color: var(--border-light); color: var(--text-secondary); }
.aviso--info .ico { color: var(--amber-text); }
[data-theme="dark"] .aviso--info .ico { color: var(--amber); }
.aviso a { color: inherit; font-weight: 600; }
.aviso form { display: inline; }
.aviso .enlace-boton { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; }
.captcha-caja { min-height: 66px; }
.captcha-apagado { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: .82rem; color: var(--text-muted); border: 1px dashed var(--border-light); }
.captcha-apagado .ico { width: 16px; height: 16px; flex-shrink: 0; }
.cambio { text-align: center; margin-top: 22px; color: var(--text-secondary); font-size: .95rem; }
.cambio a { color: var(--amber-text); font-weight: 600; display: inline-block; padding: 10px 0; }
[data-theme="dark"] .cambio a { color: var(--amber); }
.volver { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-secondary); font-size: .9rem; margin-bottom: 14px; background: none; border: 0; padding: 8px 0; cursor: pointer; font-family: inherit; min-height: 44px; }
.volver .ico { width: 16px; height: 16px; }
.volver:hover { color: var(--text-primary); }
.icono-grande { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--amber-glow); color: var(--amber-text); margin-bottom: 18px; }
[data-theme="dark"] .icono-grande { color: var(--amber); }
.icono-grande.ok { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green-text); }
.icono-grande.ko { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red-text); }
.icono-grande .ico { width: 26px; height: 26px; }

/* ---------- Pie: títulos que no son encabezados (P-23) y enlaces a 44 px en el móvil (P-16) ---------- */
.pie-titulo { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); margin-bottom: 14px; font-weight: 600; }
.pie-redes { display: flex; gap: 4px; margin-top: 16px; margin-left: -10px; flex-wrap: wrap; }
.pie-redes a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--text-muted); }
.pie-redes a:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.pie-redes svg { width: 19px; height: 19px; }
.pie-bajo a { color: var(--text-muted); text-decoration: none; }
@media (max-width: 760px) { .pie ul { gap: 0; } .pie li a { display: inline-flex; align-items: center; min-height: 44px; } .pie-bajo a { display: inline-flex; min-height: 44px; align-items: center; } }
.ms-lista summary { min-height: 44px; display: flex; align-items: center; }
.precios-nota a { display: inline-block; padding: 12px 0; }

/* ---------- Cierre corto (páginas interiores) ---------- */
.cierre-corto { padding: clamp(56px, 7vw, 100px) 0; text-align: center; background: var(--bg-tertiary); border-top: 1px solid var(--border-color); }
.cierre-corto h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.cierre-corto h2 .serifa { font-style: italic; color: var(--amber-text); }
[data-theme="dark"] .cierre-corto h2 .serifa { color: var(--amber); }
.cierre-corto .entradilla { margin: 14px auto 0; }
.cierre-corto .acciones { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }


/* =====================================================================
   Tanda 2 (26-10-2026): legales, contacto, blog, estado, status, comparativa, API, aterrizajes
   ===================================================================== */
.pcab--corta { padding-bottom: clamp(32px, 4vw, 56px); }
.pcab--corta h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); max-width: 22ch; }

/* Texto largo (legales, artículos, API) */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.doc-indice { position: sticky; top: calc(var(--header-h) + 24px); }
.doc-indice p { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.doc-indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc-indice a { display: block; padding: 7px 10px; border-radius: 9px; text-decoration: none; color: var(--text-secondary); font-size: .9rem; line-height: 1.35; }
.doc-indice a:hover { background: var(--amber-glow); color: var(--text-primary); }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc-indice { position: static; } }
@media (max-width: 560px) { .doc-indice { display: none; } }
.prosa { max-width: 72ch; font-size: 1.04rem; line-height: 1.75; color: var(--text-secondary); }
.prosa > * + * { margin-top: 1em; }
.prosa h2 { color: var(--text-primary); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prosa h3 { color: var(--text-primary); font-size: 1.2rem; margin-top: 1.8em; }
.prosa h2:first-child { margin-top: 0; }
.prosa a { color: var(--amber-text); }
[data-theme="dark"] .prosa a { color: var(--amber); }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li + li { margin-top: .45em; }
.prosa strong { color: var(--text-primary); }
.prosa code { font-family: var(--font-mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--bg-tertiary); border: 1px solid var(--border-color); }
.prosa pre { font: 500 .86rem/1.6 var(--font-mono); background: #0B1020; color: #D7DEEA; padding: 16px 18px; border-radius: 12px; overflow-x: auto; border: 1px solid rgba(255,255,255,.08); }
.prosa pre code { background: none; border: 0; padding: 0; color: inherit; }
.prosa blockquote { margin-left: 0; padding: 12px 18px; border-left: 3px solid var(--amber); background: var(--bg-tertiary); border-radius: 0 12px 12px 0; }
.prosa img { border-radius: 14px; height: auto; }
.prosa table, .cookie-table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.prosa th, .prosa td { border-bottom: 1px solid var(--border-color); padding: 10px 12px; text-align: left; vertical-align: top; }
.prosa th { color: var(--text-primary); font-weight: 600; }

/* Contacto (Mistral AI, Framer y Charma en Mobbin) */
.contacto { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.canales-contacto { display: grid; gap: 12px; }
.canal-c { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); background: var(--bg-elev); }
.canal-c h2 { font-size: 1.05rem; letter-spacing: -.01em; }
.canal-c p { color: var(--text-secondary); font-size: .92rem; margin-top: 4px; }
.canal-c .mas { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 40px; font-weight: 600; color: var(--amber-text); text-decoration: none; }
[data-theme="dark"] .canal-c .mas { color: var(--amber); }
.canal-c .mas .ico { width: 15px; height: 15px; }
.canal-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-glow); color: var(--amber-text); }
[data-theme="dark"] .canal-ico { color: var(--amber); }
.canal-ico .ico { width: 20px; height: 20px; }
.punto-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 20%, transparent); }
.horario { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--text-muted); font-size: .88rem; padding: 6px 4px; }
.horario .ico { width: 18px; height: 18px; margin-top: 2px; }
.caja-form { border: 1px solid var(--border-light); border-radius: var(--radius-xl); background: var(--bg-elev); padding: clamp(20px, 3vw, 40px); box-shadow: var(--shadow-md); }
.caja-form-tit { font-size: 1.7rem; letter-spacing: -.02em; }
.caja-form-sub { color: var(--text-secondary); margin-top: 8px; }
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
textarea.entrada { min-height: 150px; resize: vertical; line-height: 1.5; }
select.entrada { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
@media (max-width: 900px) { .contacto { grid-template-columns: 1fr; } .caja-form { order: -1; } }
@media (max-width: 560px) { .dos-col { grid-template-columns: 1fr; } }

/* Página de error 404 */
.pagina-404 { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 60px; position: relative; overflow: hidden; isolation: isolate; }
.pagina-404 .num { font: 700 clamp(5rem, 3rem + 10vw, 11rem)/1 var(--font-main); letter-spacing: -.06em; color: var(--amber-text); }
[data-theme="dark"] .pagina-404 .num { color: var(--amber); }
.pagina-404 h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin-top: 10px; }
.pagina-404 p { color: var(--text-secondary); max-width: 52ch; margin: 14px auto 0; }
.pagina-404 .acciones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pagina-404 .sugerencias { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 24px; list-style: none; padding: 0; }
.pagina-404 .sugerencias a { display: inline-flex; min-height: 40px; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-elev); text-decoration: none; color: var(--text-secondary); font-size: .9rem; }
.pagina-404 .sugerencias a:hover { border-color: var(--amber); color: var(--text-primary); }
.pagina-404 .lobo-404 { position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; opacity: .35; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); }
.pagina-404 .lobo-404 picture { display: contents; }
.pagina-404 .lobo-404 img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }

/* Tarjetas genéricas en rejilla (aterrizajes, comparativa, blog, estado) */
.rejilla-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rejilla-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .rejilla-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rejilla-3, .rejilla-2 { grid-template-columns: 1fr; } }
.ficha { border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-elev); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ficha h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.ficha p { color: var(--text-secondary); font-size: .95rem; }
.ficha .canal-ico { margin-bottom: 4px; }
.pasos-num { counter-reset: paso; list-style: none; padding: 0; display: grid; gap: 14px; }
.pasos-num li { counter-increment: paso; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.pasos-num li::before { content: counter(paso, decimal-leading-zero); font: 600 .8rem var(--font-mono); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-glow); color: var(--amber-text); }
[data-theme="dark"] .pasos-num li::before { color: var(--amber); }
.pasos-num b { display: block; color: var(--text-primary); }
.pasos-num span { color: var(--text-secondary); font-size: .95rem; }
.tabla-cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; min-width: 620px; }
.tabla-cmp th, .tabla-cmp td { padding: 13px 16px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.tabla-cmp thead th { font-size: 1rem; background: var(--bg-tertiary); }
.tabla-cmp thead th:nth-child(2) { color: var(--amber-text); }
[data-theme="dark"] .tabla-cmp thead th:nth-child(2) { color: var(--amber); }
.tabla-cmp td:nth-child(2) { background: color-mix(in srgb, var(--amber) 6%, transparent); color: var(--text-primary); }
.tabla-cmp tbody th { font-weight: 600; color: var(--text-primary); width: 28%; }
.tabla-cmp td { color: var(--text-secondary); }
.tabla-cmp tr:last-child th, .tabla-cmp tr:last-child td { border-bottom: 0; }
.aviso-fuente { font-size: .84rem; color: var(--text-muted); margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .aparece { opacity: 1; transform: none; }
  .hero-aro, .hero-ojo, .hero-estrellas { display: none; }
  .mv-directo .linea { stroke-dashoffset: 0; }
  .escena.visible .aviso-flotante { animation: none; opacity: 1; }
}
.enlace-tarjeta { color: inherit; text-decoration: none; } .enlace-tarjeta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } .enlace-tarjeta:focus-visible { outline: none; } .tarjeta:has(.enlace-tarjeta:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
/* Acceso: retoques tras la primera vista */
.pie-acceso span { display: inline-flex; min-height: 44px; align-items: center; }
.plan-elegido .l1 span:last-child { font: 600 .74rem var(--font-main); padding: 3px 9px; border-radius: 999px; background: var(--amber-glow); color: var(--amber-text); }
[data-theme="dark"] .plan-elegido .l1 span:last-child { color: var(--amber); }
.acceso-arte .tarjeta-vidrio .incluye { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.acceso-arte .linea-tiempo li { padding-bottom: 14px; }
.acceso-arte .linea-tiempo li:last-child { padding-bottom: 0; }
.pagina-acceso .cab:not(.solida) { background: transparent; }
@media (max-width: 1280px) { .acceso-arte .tarjeta-vidrio .incluye { grid-template-columns: 1fr; } }

/* Invitados de una agencia (/alertas/gestionar): página con la marca de quien invita */
.pagina-invitado main { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 540px); justify-content: center; align-content: center; padding: 24px 16px 40px; background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--acento, var(--amber)) 14%, transparent), transparent 70%), var(--bg-primary); }
.invitado { width: 100%; max-width: 540px; }
.invitado-arriba { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.invitado-caja { border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-elev); border: 1px solid var(--border-light); box-shadow: var(--shadow-lg); }
.invitado-banda { background: var(--banda, #0a0a0f); color: var(--banda-txt, #fff); padding: 16px 22px; display: flex; align-items: center; gap: 10px; min-height: 64px; }
.invitado-banda img { max-height: 36px; width: auto; }
.invitado-banda .punto { width: 12px; height: 12px; border-radius: 50%; background: var(--acento, var(--amber)); }
.invitado-cuerpo { padding: clamp(20px, 4vw, 34px); }
.invitado-cuerpo h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.02em; }
.invitado-url { font: 500 .86rem var(--font-mono); color: var(--text-muted); margin-top: 6px; overflow-wrap: anywhere; }
.opcion { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 14px; cursor: pointer; background: var(--bg-primary); }
.opcion:has(input:checked) { border-color: color-mix(in srgb, var(--acento, var(--amber)) 60%, var(--border-color)); background: color-mix(in srgb, var(--acento, var(--amber)) 7%, var(--bg-primary)); }
.opcion input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--acento, var(--amber)); }
.opcion b { display: block; }
.opcion small { display: block; color: var(--text-secondary); font-size: .88rem; margin-top: 2px; }
.boton--acento { --b-bg: var(--acento, var(--amber)); --b-fg: var(--acento-txt, #14110a); }
.invitado-baja { text-align: center; margin-top: 16px; }
.invitado-baja button { background: none; border: 0; color: var(--text-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; min-height: 44px; }
.invitado-pie { text-align: center; color: var(--text-muted); font-size: .84rem; margin-top: 16px; }
.invitado-pie a { color: inherit; }

/* ---------- Cabecera de la portada: contraste sin tapar al lobo (Joan, 26-10: fuera el recuadro) ----------
   El texto de abajo va sobre la franja de la Tierra, por debajo del hocico. El contraste lo dan un
   degradado que solo sube hasta el 26 % inferior (no llega a la cara) y una sombra muy difuminada. */
.hero-placa { display: block; max-width: 880px; margin: 0 auto; }
.hero::before { background: linear-gradient(180deg, rgba(5, 8, 16, .55) 0%, rgba(5, 8, 16, 0) 22%),
  linear-gradient(0deg, rgba(5, 8, 16, .95) 0%, rgba(5, 8, 16, .82) 12%, rgba(5, 8, 16, .5) 20%, rgba(5, 8, 16, 0) 27%); }
[data-theme="light"] .hero::before { background: linear-gradient(180deg, rgba(250, 248, 243, .55) 0%, rgba(250, 248, 243, 0) 22%),
  linear-gradient(0deg, rgba(250, 248, 243, .97) 0%, rgba(250, 248, 243, .86) 12%, rgba(250, 248, 243, .4) 21%, rgba(250, 248, 243, 0) 27%); }
.hero-abajo { padding-bottom: clamp(18px, 3.2vh, 44px); }
.hero-sub { max-width: 64ch; margin-bottom: 18px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 24px rgba(0, 0, 0, .75); }
[data-theme="light"] .hero-sub { color: var(--text-primary); text-shadow: 0 0 2px rgba(250, 248, 243, .95), 0 0 20px rgba(250, 248, 243, .95); }
.hero .letra-pequena { margin-top: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 16px rgba(0, 0, 0, .8); }
[data-theme="light"] .hero .letra-pequena { color: #1E2638; text-shadow: 0 0 2px rgba(250, 248, 243, 1), 0 0 14px rgba(250, 248, 243, 1); }
[data-theme="light"] .hero-h1 { color: #7C2D12; text-shadow: 0 0 2px rgba(250, 248, 243, .9), 0 0 16px rgba(250, 248, 243, .9); }
.boton--cristal { --b-bg: rgba(10, 14, 26, .72); }
[data-theme="light"] .boton--cristal { --b-bg: rgba(255, 255, 255, .9); }
/* Pantallas apaisadas: la imagen sube un poco más para dejar la franja de la Tierra libre para el texto. */
@media (min-aspect-ratio: 3/2) { .hero { --obra-top: calc(-14vh + 20px); } }
@media (min-aspect-ratio: 3/2) and (max-height: 820px) { .hero-sub { font-size: 1rem; margin-bottom: 14px; } .hero .boton--grande { min-height: 50px; padding: 11px 24px; } }
@media (max-width: 700px) { .hero-placa { max-width: none; } }
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(180deg, rgba(5, 8, 16, .55) 0%, rgba(5, 8, 16, 0) 18%), linear-gradient(0deg, #070a14 0%, rgba(5, 8, 16, .9) 28%, rgba(5, 8, 16, .45) 36%, rgba(5, 8, 16, 0) 42%); }
  [data-theme="light"] .hero::before { background: linear-gradient(180deg, rgba(250, 248, 243, .5) 0%, rgba(250, 248, 243, 0) 18%), linear-gradient(0deg, #FAF8F3 0%, rgba(250, 248, 243, .93) 28%, rgba(250, 248, 243, .5) 36%, rgba(250, 248, 243, 0) 42%); }
}
.tabla-cmp .si .ico { color: var(--green-text); width: 16px; height: 16px; vertical-align: -3px; } .tabla-cmp .no .ico { color: var(--text-muted); width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Corona del eclipse (Joan, 26-10): cometas que recorren el aro y filamentos que giran ----------
   Un <canvas> centrado en el aro de la imagen; lo pinta web.js solo cuando la cabecera se ve. */
.hero-corona { position: absolute; left: 49.4%; top: 43.6%; width: 72%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero-corona.lista { opacity: 1; }
.hero-corona.lista ~ .hero-ojo { z-index: 1; }
.hero-obra.con-corona .hero-aro { display: none; }
[data-theme="dark"] .hero-corona { mix-blend-mode: screen; }

/* Blog (Windsurf, Linear y Vercel en Mobbin) */
.blog-barra { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.filtro { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-elev); color: var(--text-secondary); font: 600 .88rem var(--font-main); cursor: pointer; }
.filtro span { opacity: .6; font-weight: 500; margin-left: 4px; }
.filtro[aria-pressed="true"] { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
.buscar { position: relative; flex: 0 1 300px; }
.buscar .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }
.buscar .entrada { padding-left: 40px; min-height: 44px; }
.destacado { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; text-decoration: none; color: inherit; padding: clamp(14px, 1.6vw, 20px); border-radius: var(--radius-xl); border: 1px solid var(--border-color); background: var(--bg-elev); margin-bottom: 22px; transition: border-color .2s ease, box-shadow .25s ease; }
.destacado[hidden], .post[hidden] { display: none; }
.destacado:hover, .post:hover { border-color: color-mix(in srgb, var(--amber) 55%, var(--border-color)); box-shadow: var(--shadow-md); }
.destacado-img, .post-img, .post-portada { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1200 / 630; background: var(--bg-tertiary); }
.destacado-img picture, .post-img picture, .post-portada picture { display: contents; }
.destacado-img img, .post-img img, .post-portada img { width: 100%; height: 100%; object-fit: cover; display: block; }
.destacado-txt h2 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.3rem); letter-spacing: -.025em; margin: 8px 0 10px; }
.destacado-txt p { color: var(--text-secondary); }
.destacado-txt .mas { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--amber-text); }
[data-theme="dark"] .destacado-txt .mas { color: var(--amber); }
.destacado-txt .mas .ico { width: 16px; height: 16px; }
.meta, .meta-post { font-size: .84rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.meta .ico { width: 14px; height: 14px; }
.meta .cat, .meta-post .cat { font-weight: 700; color: var(--amber-text); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
[data-theme="dark"] .meta .cat, [data-theme="dark"] .meta-post .cat { color: var(--amber); }
.meta-post { margin-bottom: 14px; font-size: .9rem; }
.blog-rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 18px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); background: var(--bg-elev); text-decoration: none; color: inherit; transition: border-color .2s ease, box-shadow .25s ease; }
.post h3 { font-size: 1.12rem; letter-spacing: -.01em; padding: 0 6px; }
.post p { color: var(--text-secondary); font-size: .93rem; padding: 0 6px; }
.post .meta { padding: 0 6px; }
.post p.meta:last-child { margin-top: auto; }
.img-vacia { display: block; width: 100%; height: 100%; background: radial-gradient(80% 90% at 70% 10%, var(--amber-glow), transparent 60%), linear-gradient(135deg, var(--bg-tertiary), var(--bg-elev)); }
.sin-resultados { text-align: center; color: var(--text-muted); padding: 30px 0; }
.boletin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.post-portada { box-shadow: var(--shadow-lg); }
.post-cta { margin-top: 28px; padding: 18px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--border-color)); background: color-mix(in srgb, var(--amber) 7%, var(--bg-elev)); display: grid; gap: 8px; }
.post-cta span { color: var(--text-secondary); font-size: .9rem; }
.post-cta .boton { min-height: 44px; margin-top: 6px; }
/* El botón vive dentro del índice lateral: `.doc-indice a` (más específico) le ponía la letra gris y el padding de los enlaces del índice. */
.doc-indice .post-cta .boton, .doc-indice .post-cta .boton:hover { display: inline-flex; padding: 10px 18px; border-radius: 12px; color: var(--b-fg); background: var(--b-bg); font: 600 .95rem/1.2 var(--font-main); }
@media (max-width: 1100px) { .blog-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .destacado, .boletin { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .blog-rejilla { grid-template-columns: 1fr; } .buscar { flex-basis: 100%; } }
@media (max-width: 960px) { .doc-indice .post-cta { display: none; } }

/* «¿Está caído?» y estado de WatcherWolf (Stripe Status, Better Stack e incident.io en Mobbin) */
.buscar--grande { display: block; max-width: 560px; margin: 26px auto 0; flex: none; }
.buscar--grande .entrada { min-height: 56px; font-size: 1.05rem; border-radius: 16px; box-shadow: var(--shadow-md); }
.resumen-estado { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pildora { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--bg-elev); border: 1px solid var(--border-color); color: var(--text-secondary); }
.pildora i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.pildora.ok { color: var(--green-text); } .pildora.ok i { background: var(--green); }
.pildora.ko { color: var(--red-text); } .pildora.ko i { background: var(--red); }
.cat-svc + .cat-svc { margin-top: 34px; }
.cat-svc[hidden] { display: none; }
.cat-tit { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); margin-bottom: 14px; font-weight: 700; }
.svc-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.svc { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-color); background: var(--bg-elev); text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease; }
.svc[hidden] { display: none; }
.svc:hover { border-color: color-mix(in srgb, var(--amber) 55%, var(--border-color)); transform: translateY(-2px); }
.svc-cab { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.svc-cab img { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: #fff; }
.svc-cab b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-estado { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--green-text); }
.svc-estado i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.svc--down { border-color: color-mix(in srgb, var(--red) 45%, var(--border-color)); }
.svc--down .svc-estado { color: var(--red-text); } .svc--down .svc-estado i { background: var(--red); animation: latido-rojo 1.6s infinite; }
.svc--partial .svc-estado { color: var(--amber-text); } .svc--partial .svc-estado i { background: var(--amber); }
[data-theme="dark"] .svc--partial .svc-estado { color: var(--amber); }
.svc--pending .svc-estado { color: var(--text-muted); } .svc--pending .svc-estado i { background: var(--text-muted); }
@keyframes latido-rojo { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } }
.barras-24 { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 22px; }
.barras-24 i { border-radius: 2px; background: var(--green); opacity: .85; }
.barras-24 i.partial { background: var(--amber); } .barras-24 i.down { background: var(--red); }
.barras-24--grande { height: 40px; gap: 3px; margin-top: 4px; }
.barras-30 { grid-template-columns: repeat(30, 1fr); }
.svc-pie { display: flex; justify-content: space-between; gap: 10px; font: 500 .74rem var(--font-mono); color: var(--text-muted); }
.svc-titulo { display: flex; gap: 16px; align-items: center; }
.svc-titulo img { width: 56px; height: 56px; border-radius: 14px; background: #fff; padding: 6px; object-fit: contain; box-shadow: var(--shadow-md); }
.svc-titulo h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); max-width: none; }
.svc-host { font: 500 .9rem var(--font-mono); color: var(--text-muted); margin-top: 4px; }
.veredicto { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 24px; padding: 16px 20px; border-radius: 16px; max-width: 720px;
  border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 9%, var(--bg-elev)); }
.veredicto .punto { width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: latido 2s infinite; }
.veredicto b { display: block; font-size: 1.1rem; }
.veredicto span { color: var(--text-secondary); font-size: .9rem; }
.veredicto--down { border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 9%, var(--bg-elev)); }
.veredicto--down .punto { background: var(--red); animation: latido-rojo 1.6s infinite; }
.veredicto--partial { border-color: color-mix(in srgb, var(--amber) 50%, transparent); background: color-mix(in srgb, var(--amber) 9%, var(--bg-elev)); }
.veredicto--partial .punto { background: var(--amber); animation: none; }
.cifras-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cifras-svc small { color: var(--text-muted); font-size: .84rem; }
.cifras-svc strong { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem) var(--font-mono); letter-spacing: -.02em; }
.ficha-tit { font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 700px) { .cifras-svc { grid-template-columns: 1fr; } .barras-24--grande { height: 30px; gap: 2px; } }
/* /status: componentes de WatcherWolf */
.componentes { display: grid; gap: 0; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-elev); overflow: hidden; }
.componente { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 16px 20px; border-bottom: 1px solid var(--border-color); align-items: center; }
.componente:last-child { border-bottom: 0; }
.componente b { font-size: 1rem; }
.componente small { display: block; color: var(--text-muted); font-size: .84rem; margin-top: 2px; }
.componente .barras-24 { grid-column: 1 / -1; grid-template-columns: repeat(30, 1fr); height: 26px; }
.componente .pct { font: 600 .84rem var(--font-mono); color: var(--text-secondary); }

/* Páginas de estado de los clientes (/status/{slug}), con la marca del cliente */
.pagina-cliente main { min-height: 100vh; background: radial-gradient(70% 40% at 50% 0%, color-mix(in srgb, var(--acento, var(--amber)) 10%, transparent), transparent 70%), var(--bg-primary); }
.cliente-cab { border-bottom: 1px solid var(--border-color); background: var(--bg-elev); }
.cliente-cab .contenedor { max-width: 980px; display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.cliente-logo { max-height: 40px; width: auto; }
.cliente-nombre { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.cliente-nombre .punto { width: 12px; height: 12px; border-radius: 50%; background: var(--acento, var(--amber)); }
.cliente-cuerpo { max-width: 980px; padding-top: clamp(28px, 4vw, 56px); padding-bottom: 56px; }
.cliente-cuerpo h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); }
.barras-90 { grid-template-columns: repeat(90, 1fr); gap: 1px; height: 30px; }
.barras-90 i.nd, .barras-24 i.nd { background: var(--border-light); opacity: .6; }
.chip-tipo { font: 600 .66rem var(--font-mono); padding: 2px 6px; border-radius: 6px; background: var(--amber-glow); color: var(--amber-text); vertical-align: 2px; margin-left: 6px; }
[data-theme="dark"] .chip-tipo { color: var(--amber); }
.incidente + .incidente { margin-top: 8px; }
@media (max-width: 640px) { .barras-90 { height: 24px; } }
.campo label.casilla { display: grid; justify-content: initial; grid-template-columns: 22px minmax(0, 1fr); font-weight: 400; font-size: .9rem; }
.componente .barras-90 { grid-template-columns: repeat(90, 1fr); gap: 1px; }

/* Full HD sin huecos (tanda 2, revisión del coordinador) */
.svc-rejilla--unica { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.svc-nombre { display: grid; min-width: 0; line-height: 1.2; }
.svc-nombre b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-nombre small { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc { max-width: 1180px; margin-left: auto; margin-right: auto; }
.status-rejilla { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.status-rejilla > .ficha { margin-top: 0; }
@media (max-width: 1000px) { .status-rejilla { grid-template-columns: 1fr; } }
.pcab--doc .contenedor { max-width: 1180px; }
.cliente-cab .contenedor, .cliente-cuerpo { max-width: 1180px; }

/* Pie: firma «Desarrollado por SoftwaLabs», como en ARQSEO. El logo, tan alto como las mayúsculas del texto (400×38). */
.pie-bajo-der { display: inline-flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.pie-firma { display: inline-flex; align-items: center; gap: .55rem; color: var(--text-muted); text-decoration: none; }
.pie-firma picture img { height: .72em; width: auto; display: block; opacity: .9; }
.pie-firma:hover picture img { opacity: 1; }
.pie-firma:hover span { color: var(--text-primary); }
@media (max-width: 760px) { .pie-firma { min-height: 44px; } }
