/* ============================================================
   APP.CSS -- Core public styles
   Extracted from shop.css (Polymer pattern), adapted for core
   Only: header, drawer, forms, buttons, toast, spinner, responsive
   ============================================================ */

/* -- Variables ------------------------------------------------ */

:root {
    --app-primary: #202020;
    --app-secondary: #595959;
    --app-accent: #172C50;
    --app-bg: #fff;
    --app-bg-alt: #f5f5f5;
    --app-border: #e0e0e0;
    --app-contact-divider: #cccccc;   /* divisor de la rejilla de contacto */
    --app-contact-surface: #f8fafc;   /* fondo de las celdas de contacto */
    --app-radius: 0;
    --app-max-width: 1200px;
    --app-header-height: 64px;
    --app-font: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --app-success: #16a34a;
    --app-error: #dc2626;
    --app-warning: #d97706;
    --z-header: 100;
    --z-drawer-overlay: 200;
    --z-drawer: 201;
    --z-toast: 500;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* -- Language panel ------------------------------------------- */

.app-lang-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.3);
    z-index: 400; opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.app-lang-overlay.is-open { opacity: 1; pointer-events: auto; }

.app-lang-panel {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-radius: 0;
    padding: 20px 24px 32px; z-index: 401;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--app-border);
    pointer-events: none; visibility: hidden;
}
.app-lang-panel.is-open {
    transform: translateY(0); pointer-events: auto; visibility: visible;
}

.app-lang-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--app-border);
    font-size: 15px; color: var(--app-primary); text-decoration: none;
}
.app-lang-item:last-child { border-bottom: none; }
.app-lang-item:hover { color: var(--app-accent); }
.app-lang-item.is-active { font-weight: 600; }

@media (min-width: 769px) {
    .app-lang-panel {
        position: fixed; bottom: auto; top: 56px; right: 16px;
        left: auto; width: 200px; border-radius: 0;
        padding: 16px 20px 20px;
        transform: translateY(-10px); opacity: 0;
        transition: transform 0.2s ease, opacity 0.2s ease;
        pointer-events: none; visibility: hidden;
        border: 1px solid var(--app-border);
    }
    .app-lang-panel.is-open {
        transform: translateY(0); opacity: 1;
        pointer-events: auto; visibility: visible;
    }
}

/* -- Mobile drawer -------------------------------------------- */

.app-drawer-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: var(--z-drawer-overlay);
}
.app-drawer-overlay.is-open { display: block; }

.app-drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; background: var(--app-bg);
    z-index: var(--z-drawer);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    padding: 24px 20px;
    overflow-y: auto;
}
.app-drawer.is-open { transform: translateX(0); }

.app-drawer a {
    display: block; padding: 0 16px; line-height: 44px;
    color: var(--app-primary); text-decoration: none;
    font-size: 14px; font-weight: 500;
}
.app-drawer a:hover,
.app-drawer a.is-active {
    color: var(--app-accent); font-weight: 600;
}
/* Signing out is a POST, so it is a button inside a form and not a link (the
   inline `onclick` that used to submit a hidden form is gone — CSP, and it did
   nothing without JavaScript). It has to read as one more row of the drawer. */
.app-drawer__logout { margin: 0; }
.app-drawer__logout button {
    display: block; width: 100%; padding: 0 16px; line-height: 44px;
    border: 0; background: none; text-align: left; cursor: pointer;
    color: var(--app-primary); font: inherit; font-size: 14px; font-weight: 500;
}
.app-drawer__logout button:hover { color: var(--app-accent); font-weight: 600; }

.app-drawer__langs {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--app-border);
    margin-top: 12px;
    padding-top: 16px;
}

.app-drawer__lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 6px 12px;
    border: 1px solid var(--app-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--app-secondary);
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.app-drawer__lang-pill:hover {
    color: var(--app-accent);
    border-color: var(--app-accent);
}

/* `.app-drawer .` prefix: out-specific the nav-link rule `.app-drawer a.is-active`
   (0,2,1) that would otherwise repaint the pill text navy-on-navy → invisible. */
.app-drawer .app-drawer__lang-pill.is-active {
    background: var(--app-accent);
    border-color: var(--app-accent);
    color: #fff;
    font-weight: 600;
}

/* -- Field (floating label) ----------------------------------- */

.app-field {
    position: relative;
    padding-top: 20px;
    margin-bottom: 12px;
}

.app-input {
    width: 100%;
    font-size: 1em;
    font-weight: 300;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background-color: transparent;
    color: var(--app-primary);
    outline: none;
    background-image: linear-gradient(var(--app-accent), var(--app-accent));
    background-size: 0% 2px;
    background-position: center bottom;
    background-repeat: no-repeat;
    transition: background-size 0.2s ease-in;
}

.app-input::placeholder { color: transparent; }

/* Reset Firefox default invalid style */
.app-input:invalid { box-shadow: none; }

.app-input:focus {
    border-bottom-color: transparent;
    background-size: 100% 2px;
}

.app-field > label {
    position: absolute; left: 0; top: 28px;
    font-size: 1em; font-weight: 300;
    color: var(--app-secondary); opacity: 0.5;
    pointer-events: none; transform-origin: 0 0;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out, color 0.15s ease-out;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.app-field > .app-input:focus ~ label {
    opacity: 1; transform: translate3d(0, -1.9em, 0) scale(0.8);
    color: var(--app-accent);
}

.app-field > .app-input:not(:placeholder-shown) ~ label {
    opacity: 1; transform: translate3d(0, -1.9em, 0) scale(0.8);
}

/* Validation -- via aria-invalid attribute (set by JS on submit attempt) */
.app-field > .app-input[aria-invalid='true']:not(:valid) {
    border-bottom-color: transparent;
    background-image: linear-gradient(#dd2c00, #dd2c00);
    background-size: 100% 2px;
}

.app-field > .app-input[aria-invalid='true']:not(:valid) ~ label {
    color: #dd2c00;
}

.app-field > .app-input[aria-invalid='true']:not(:valid) ~ .app-field-error {
    display: block;
}

.app-field-error {
    display: none; font-size: 0.65em; color: #dd2c00; margin-top: 2px;
}

/* Select styling */
.app-field > select.app-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(var(--app-accent), var(--app-accent)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23595959' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-size: 0% 2px, 12px;
    background-position: center bottom, right 0 center;
    background-repeat: no-repeat;
    padding-right: 20px;
    cursor: pointer;
}

.app-field > select.app-input:focus {
    background-size: 100% 2px, 12px;
}

/* Textarea */
.app-field > textarea.app-input {
    min-height: 80px;
    resize: vertical;
}

/* Input rows (side by side) */
.app-input-row {
    display: flex; align-items: flex-end; gap: 8px;
}
.app-input-row > * { flex: 1; }

/* -- Form actions row (wraps submit button, centered, spaced) - */

.app-form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* LA NOTA DE PRIVACIDAD del formulario de contacto — y el PORQUÉ vive aquí y no
   en `sections/form/contact.html` porque esa plantilla tiene paridad F4 y un
   `{# #}` nuevo la pone roja por el salto de línea que deja. Ya estaba
   registrado y volvió a pasar hoy.

   🔴 El defecto: ese formulario pedía nombre, correo y un mensaje libre sin
   decir en ninguna parte qué pasa con ellos — medido el 2026-09-28 en el sitio
   de `kita`, que es precisamente el que le vende cumplimiento del RGPD a una
   organización con DPO. Es de lo primero que mira quien audita.

   Va JUNTO AL BOTÓN y no en el pie porque la duda aparece al pulsar, no al
   empezar a escribir (*just-in-time disclosure*, `criterio-producto-premium.md`
   Pilar 8 §7). Sin enlace a la política: el condicional que lo ponía sólo si esa
   página existe no cabe en una plantilla con paridad, y el texto es la parte que
   un DPO busca. Enlazarla queda declarado en la cola.

   Discreta pero LEGIBLE:
   usa `--cms-muted`, que desde el 2026-09-28 tiene garantizado su contraste
   contra el fondo de cada franja (`ToneContrastTest`). Un aviso legal en gris
   claro es el gris claro el que lo convierte en decoración. */
.app-form-privacy {
    margin: 1rem auto 0;
    max-width: 52ch;
    font-size: .82rem;
    line-height: 1.55;
    text-align: center;
    color: var(--cms-muted, #586475);
}

.app-form-privacy a {
    color: inherit;
    text-decoration: underline;
}

/* -- Button (Polymer style) ----------------------------------- */

.app-button {
    display: inline-block;
}

.app-button > a,
.app-button > button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-sizing: border-box;
    border: 2px solid #000; background: #fff;
    font-size: 14px; font-weight: 500;
    color: var(--app-primary);
    margin: 0; padding: 8px 44px;
    text-align: center; text-decoration: none;
    text-transform: uppercase; border-radius: 0;
    outline: none; cursor: pointer;
    -webkit-appearance: none;
    transition: background-color 0.15s, color 0.15s;
}

.app-button > a:focus,
.app-button > button:focus { background: #c5cad3; }

.app-button > a:active,
.app-button > button:active { background: #000; color: #fff; }

.app-button > button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Primary (filled) */
.app-button--primary > a,
.app-button--primary > button {
    background: var(--app-accent);
    border-color: var(--app-accent);
    color: #fff;
}

.app-button--primary > a:active,
.app-button--primary > button:active { background: #0e1b33; }

/* -- Button states (spinner -> check/x -> idle) --------------- */

.app-btn-spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%;
    animation: appSpin 0.6s linear infinite;
    vertical-align: middle;
}

.app-button:not(.app-button--primary) button .app-btn-spinner {
    border-color: rgba(0,0,0,0.15);
    border-top-color: #000;
}

/* -- Spinner -------------------------------------------------- */

.app-spinner {
    position: fixed;
    top: calc(50% - 20px); left: calc(50% - 20px);
    width: 40px; height: 40px;
    border: 3px solid var(--app-border);
    border-top-color: var(--app-accent);
    border-radius: 50%;
    animation: appSpin 0.8s linear infinite;
    z-index: 300;
}

@keyframes appSpin { to { transform: rotate(360deg); } }

/* -- Toast ----------------------------------------------------
   ⚠️ ESTA es la definición que manda en el sitio público, y `app-toast.js`
   lleva OTRA dentro (un `<style>` que inyecta como respaldo para una página
   que no cargue esta hoja). Son dos capas del mismo contrato y hasta
   2026-08-12 no lo sabía ninguna de las dos: el `bottom` se cambió en el
   respaldo y no pasó nada, porque el que aplica es éste. Si tocas una, mira
   la otra — registrado como deuda en SCOPE con su disparador.

   `--app-bottom-inset` lo publica quien ocupe el borde inferior (hoy el banner
   de consentimiento; mañana una barra fija de un tema). Sin él, un visitante
   nuevo que se suscribe recibe el toast ENCIMA del banner: medido a 375px, el
   banner ocupa y 504…667 y el toast caía en y 583…643, dentro. Mismo contrato
   que `--sn-h` del aviso del sitio. */

.app-toast {
    position: fixed; bottom: calc(24px + var(--app-bottom-inset, 0px)); left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--app-primary); color: #fff;
    padding: 12px 24px; border-radius: 0;
    font-size: 14px; font-weight: 500;
    z-index: var(--z-toast); opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.app-toast.is-visible {
    opacity: 1; transform: translateX(-50%) translateY(0);
}

/* -- Image lazy load + shimmer -------------------------------- */

.app-image {
    position: relative;
    overflow: hidden;
    background-color: var(--app-bg-alt);
}

.app-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: appShimmer 1.2s ease-in-out infinite;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.app-image.is-loaded::before {
    opacity: 0;
    pointer-events: none;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.app-image.is-loaded img {
    opacity: 1;
}

@keyframes appShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* -- Gallery grid images --------------------------------------- */

.gallery-grid__img {
    display: block;
    aspect-ratio: 4/3;
}

.gallery-grid__img img {
    transition: opacity 0.5s ease, transform 0.3s ease;
}

a.gallery-grid__img:hover img {
    transform: scale(1.04);
}

/* -- Hero image section ---------------------------------------- */

.hero-image {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--cms-hero-bg, #0f172a);
    overflow: hidden;
}

.hero-image__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-image__bg.is-loaded {
    opacity: 1;
}

/* LQIP blur-up (ADR-0019 / patrón canónico images-presentation-processing §2):
   la miniatura ≤400px se pinta AL INSTANTE muy desenfocada como placeholder de
   PRECARGA — no es un efecto, evita el hueco vacío mientras baja la imagen full.
   Va DEBAJO de `__bg` (que arranca opacity:0); cuando la full carga, funde encima
   (`.is-loaded`). Ambas comparten `object-position:{focal}` (inline) para reencuadrar
   igual. `scale` oculta los bordes que el blur deja transparentes. */
.hero-image__lqip {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px);
    transform: scale(1.08);
}

/* ── Hero SIN foto: un estado DISEÑADO, no un hero que fallo ─────────────────
   `min_height` (70vh en la portada, 55vh en una interior) mide LA BANDA DE LA
   FOTO: se eligio para que una imagen respire. Sin foto no hay banda que medir, y
   respetarlo al pie deja una lona plana de media pantalla — «el bloque oscuro
   plano» que reporto Adan. La plantilla no emite ese `min-height` cuando no hay
   imagen, asi que la seccion se mide por su contenido con el ritmo que
   `__content` ya trae (hueco de cabecera + 3rem / 4rem).

   Es el mismo eje que el mapa ya cerro para el panel —E8, pantallas por estado
   (vacio, error, carga)— aplicado a la pieza publica que se le escapo. Y NO se
   inventa una forma: es la misma pieza, con su par de tokens y sin el espacio
   que sobra. El dia que haya foto vuelve a ser el hero a pantalla completa, sin
   tocar nada.

   `min-height:0` para ganarle al 80vh de `.hero-image`. Ningun color aqui: los
   pone el par `--cms-hero-*`, que es lo que permite a un tema repintarlo. */
.hero-image--plain {
    min-height: 0;
}

/* Hero imagen `inline` (setting image_display): la imagen va EN FLUJO a su ratio natural
   (no full-bleed que recorta), con el contenido debajo y sin overlay — para cuando la imagen
   ES contenido (producto, ilustración) y no un fondo decorativo. Alternativa a `background`. */
.hero-image--inline {
    display: block;
    min-height: 0;
    background: transparent;
}
.hero-image--inline .hero-image__lqip { display: none; }
.hero-image--inline .hero-image__bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}
.hero-image--inline .hero-image__content {
    padding: 2rem;
}

/* Hero imagen `motion: kenburns` — zoom/paneo LENTO y continuo que da vida al hero SIN
   depender del scroll (a diferencia del parallax). Zoom hacia un punto descentrado (60%/40%)
   para sensación de paneo sin revelar bordes. No aplica en `inline` (object-fit:contain
   revelaría bordes) ni con reduced-motion (accesibilidad). */
.hero-image--kenburns:not(.hero-image--inline) .hero-image__bg {
    transform-origin: 60% 40%;
    animation: heroKenBurns 24s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-image--kenburns .hero-image__bg { animation: none; }
}

/* Variante `parallax`: el `<img>` de fondo se DESPLAZA con el scroll (transform vía JS en
   la plantilla) más lento que el contenido → profundidad real. Se hace más alto que la
   sección (130%, sobresale 15% arriba/abajo) para que el desplazamiento no revele bordes.
   `will-change` para que el navegador lo componga en GPU (scroll fluido). Sin JS o con
   reduced-motion, queda estático cubriendo la sección (top/height se ignoran visualmente
   porque object-fit:cover + overflow:hidden del contenedor lo recortan). */
.hero-image--parallax .hero-image__bg {
    top: -20%;
    bottom: auto;
    height: 140%;
    will-change: transform;
}

/* Slideshow: las imágenes rotan reutilizando el efecto del carousel. El contenedor
   crea su propio contexto de apilado (`isolation`) para que los z-index del efecto
   (hasta 1001 en archive-x) NO tapen el overlay ni el contenido del hero. */
.hero-image__slides {
    position: absolute;
    inset: 0;
    isolation: isolate;
    z-index: 0;
    background: var(--cms-hero-bg, #0f172a); /* fallback mientras cargan las imágenes: nunca se ve blanco */
}
.hero-image__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    gap: .5rem;
    justify-content: center;
}
.hero-image__dots button {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    /* Un punto inactivo es LA MISMA tinta con menos presencia, no otro color: con
       `opacity` el par se lee solo y un tema los repinta cambiando `--cms-hero-ink`.
       Antes eran dos literales (`rgba(255,255,255,.45)` y `#fff`) que se quedaban
       blancos sobre la lona que el tema sí podía repintar. */
    background: var(--cms-hero-ink, #fff);
    opacity: .45;
    transition: opacity 0.25s ease, width 0.25s ease;
}
.hero-image__dots button.is-active {
    width: 1.5rem;
    border-radius: 0.3rem;
    opacity: 1;
}

.hero-image__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    pointer-events: none;
    z-index: 1;
}

.hero-image__content {
    position: relative;
    z-index: 2;
    padding: calc(var(--app-header-height) + 3rem) 2rem 4rem;
    width: 100%;
}

.hero-image__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cms-hero-ink, #fff);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-image__subtitle {
    font-size: 1.125rem;
    color: var(--cms-hero-ink-soft, rgba(255,255,255,0.8));
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-image--center { text-align: center; }
.hero-image--center .hero-image__subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero-image__cta {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--cms-hero-ink, #fff);
    color: var(--cms-hero-bg, #0f172a);
    font-weight: 700;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: opacity 0.15s, transform 0.15s;
}

.hero-image__cta:hover {
    /* El boton ES la tinta del hero (`background: var(--cms-hero-ink)`), asi que su
       hover se atenua en vez de saltar a un gris fijo: `#f1f5f9` solo funciona si la
       tinta es blanca, y con un tema puede no serlo. */
    opacity: .92;
    transform: translateY(-1px);
}

/* ── Carousel / slideshow — motor de transición COMPARTIDO ──────────────────
   Un único motor de rotación de slides para gallery/carousel, hero/slideshow y
   cualquier sección futura que rote contenido. Las clases las dirige `slideClass(i)`
   del factory Alpine `czCarousel` (templates/sections/_partials/carousel-engine.html).
   'fade' = cross-fade · 'archive-x' = efecto "WhatsApp" de Adán (byte-canónico entre
   verticales). Estas clases SOLO animan; el markup de cada consumidor decide qué pinta
   cada slide (imagen+overlay en gallery · fondo+LQIP en hero). Antes vivían duplicadas
   e inline como `.cz1-*` (gallery) y `.hs-*` (hero) — ya divergían (autoplay 4000 vs
   5000 ms); esta es su única fuente. */
/* El carrusel/slideshow es un COMPONENTE del core y sus estilos viven con él,
   en `assets/css/carousel.css`: lo usan el sitio público y el panel, y una hoja
   que sólo carga una de las dos caras no puede vestir un mecanismo compartido.
   Movido el 2026-09-07 — las reglas son las MISMAS, byte a byte. */

/* Hero slideshow — imágenes de fondo por slide (LQIP blur-up por slide, ADR-0019).
   El slide usa las clases compartidas `.cz-*` para la transición; estas reglas sólo
   dimensionan las dos <img> (miniatura desenfocada de precarga + full que funde encima). */
.hero-image__slides .cz-slide img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.hero-image__slide-lqip { filter:blur(18px); transform:scale(1.08); }
.hero-image__slide-full { opacity:0; transition:opacity .5s ease; }
.hero-image__slide-full.is-loaded { opacity:1; }

/* -- Site header (intelligent: transparent over hero, solid otherwise) */

.site-header {
    position: fixed;
    /* Normally 0. When the site notice is showing, the piece publishes its own
       measured height as `--sn-h` and the header sits below it instead of on top
       of it. A theme whose header is static or sticky never reads this: there the
       bar is simply a block above it, which is why the notice lives in the flow.
       `<noscript>` in the partial carries a fixed fallback for scripting off.

       `--app-top-inset` es lo SEGUNDO que puede ocupar este borde, y se suma en
       vez de competir: hoy lo publica la franja de «viendo el sitio como
       visitante» / «previsualizando un tema», que es `fixed` y por tanto pasa por
       encima de una cabecera tambien `fixed`. Medido el 2026-09-22 a 390 px: le
       tapaba 45 de sus 76 pixeles. Es el hermano superior de
       `--app-bottom-inset`, que este borde no tenia — y por eso la segunda pieza
       que llego aqui no tuvo donde apuntarse y se puso `top:0` a pelo. */
    top: calc(var(--sn-h, 0px) + var(--app-top-inset, 0px));
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: transparent;
    color: #f8fafc;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-solid {
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

/* Offset main content below fixed header (pages without hero).
   🔴 COLGABA DEL `id`, y eso se rompió el 2026-09-28 en cuanto el id pasó a
   significar otra cosa. `#main-content` es desde ese día **el destino del enlace
   de saltar al contenido** —contrato de accesibilidad, WCAG 2.4.1— así que
   cualquier tema que lo ponga en su `<main>`, como hizo `kita`, heredaba de
   regalo un margen pensado para la cabecera FIJA del layout del core. La suya es
   `sticky`: ya ocupa su sitio, así que el hueco se compensaba dos veces y el hero
   salía despegado del menú. Lo vio Adán en la página.
   Una clave no puede significar dos cosas. El ancla es del contrato; el margen,
   de quien tiene esa cabecera — y eso lo dice la CLASE del layout del core. */
.site-main {
    margin-top: var(--app-header-height);
}

/* Full-bleed pages: hero slides under the header */
.site-main.full-bleed {
    margin-top: 0;
    /* Sin lona oscura: cada tramo pone su propio fondo — el hero es oscuro por su
       clase (`.hero-image { background:#0f172a }`) y el footer también. Forzar aquí
       `background:#0f172a` era REDUNDANTE para el hero y teñía de oscuro las secciones
       de contenido TRANSPARENTES (content/team/…) → texto oscuro sobre oscuro, ilegible
       (regresión de la unificación del motor). El body claro (#f8fafc) cubre cualquier
       hueco flex bajo la última sección sin costura visible contra hero/footer. */
}

/* El logo de la cabecera. Fue un `<h1>` hasta el 2026-09-21, y eso significaba que
   TODAS las páginas del sitio declaraban el mismo titular —el nombre del sitio—,
   así que para un buscador ninguna decía de qué iba. Medido en vivo: `/es/team` y
   `/es/about` servían `<h1><a href="/es/">Onlainez</a></h1>`, mientras los temas de
   `autogratisentsorgen.ch` y `kita` sí ponían el suyo de contenido.
   El logo es NAVEGACIÓN, no el titular: el `h1` lo pone ahora la página. */
.site-header__brand {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .05em;
}

.site-header__brand a {
    color: inherit;
    text-decoration: none;
}

.site-header nav a {
    position: relative;
    color: #cbd5e1;
    text-decoration: none;
    font-size: .85rem;
    margin-left: .75rem;
    padding-bottom: 4px;
    transition: color .2s ease;
}

.site-header nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transform: translateX(-50%);
    transition: width .25s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
    color: #fff;
}

.site-header nav a:hover::after,
.site-header nav a.active::after {
    width: 100%;
}

.site-header nav form {
    display: inline;
    margin-left: .75rem;
}

.site-header nav button {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: .85rem;
    cursor: pointer;
    padding: 0;
}

.site-header nav button:hover {
    color: #f8fafc;
}

.site-header .badge {
    font-size: .7rem;
    background: #334155;
    color: #94a3b8;
    padding: .15rem .4rem;
    border-radius: .25rem;
    margin-left: .35rem;
}

.site-header #menuToggle {
    display: none;
    background: none;
    border: none;
    color: #f8fafc;
    cursor: pointer;
    padding: 8px;
}

/* Right-side cluster = public "topbar.end" zone (nav links + language switch +
   future module icons like cart/wishlist, gated by module state — see the
   module-slot-pattern canon). Keeps language reachable on mobile in one tap,
   without opening the drawer. */
.site-header__actions { display: flex; align-items: center; gap: .75rem; }

/* The language switcher and the account menu moved to partials/header-actions.html
   on 2026-08-09, styles included (assets/css/header-actions.css, in tokens so a
   dark theme can dress them). The rules that were here — including the mobile
   globe-only step — went with them; leaving them behind would be dead CSS, which
   this file already has too much of. */

@media (max-width: 767px) {
    .site-header #menuToggle { display: block; }
    .site-header nav { display: none; }
}

/* -- View Transitions API -------------------------------------
   🔴 Se fue a `ui.css` el 2026-09-25, y por una razon medida: esta hoja NO la
   carga un tema propio. `autogratisentsorgen` no la pide, asi que el sitio de
   un cliente llevaba el `<meta name="view-transition">` puesto y NINGUNA de
   estas reglas: la transicion suave existia solo en los sitios con el tema de
   fabrica. `ui.css` la cargan los cinco. */

/* -- Transitions ---------------------------------------------- */

.app-fade-in { animation: appFadeIn 0.25s ease; }
@keyframes appFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* -- Responsive ----------------------------------------------- */

@media (max-width: 767px) {
    .app-input-row {
        flex-direction: column; align-items: stretch; gap: 0;
    }

    /* Responsive button: full-width fixed bottom */
    .app-button--responsive {
        position: fixed; bottom: 0; left: 0; right: 0;
        height: 64px; z-index: 50;
    }
    .app-button--responsive > a,
    .app-button--responsive > button {
        background: var(--app-accent); border: none; color: #fff;
        width: 100%; height: 100%; padding: 20px; font-size: 15px;
    }
}

/* -- Accessibility -------------------------------------------- */

.app-sr-only {
    position: fixed; height: 0; overflow: hidden;
}

/* -- Pricing grid --------------------------------------------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-card {
    border: 1px solid #e2e8f0;
    padding: 2rem 1.5rem;
    position: relative;
}

.pricing-card--featured {
    border: 2px solid var(--app-accent);
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--app-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
}

.pricing-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.pricing-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: #64748b;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.pricing-card li {
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-cta {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border: 2px solid var(--app-accent);
    color: var(--app-accent);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background-color 0.15s, color 0.15s;
}

.pricing-cta:hover {
    background: var(--app-accent);
    color: #fff;
}

.pricing-card--featured .pricing-cta {
    background: var(--app-accent);
    color: #fff;
}

.pricing-card--featured .pricing-cta:hover {
    background: #0e1b33;
}

/* -- Feature alternating (zig-zag service sections) ----------- */

.feature-alt {
    padding: 5rem 1.5rem;
}

.feature-alt__inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-alt__text {
    flex: 1;
    min-width: 0;
}

.feature-alt__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.feature-alt__body {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.feature-alt__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-alt__tags li {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0.35rem 0.75rem;
    border: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feature-alt__icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.feature-alt__icon svg {
    max-width: 100%;
    height: auto;
}

/* SVG illustration layer stacking (multi-layer icons) */
.service-icon__layers {
    display: inline-block;
    position: relative;
    width: 100%;
    max-width: 15rem;
    height: auto;
}

.service-icon__layers svg {
    width: 100%;
    height: auto;
}

/* Layer stacking: first SVG is static, subsequent are absolute */
.service-icon__layers svg:not(:first-child) {
    position: absolute;
    inset: 0;
}

/* Initial hidden state — layers stagger in on reveal */
.service-icon__layers svg {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Stagger delay per layer */
.service-icon__layers svg:nth-child(1) { transition-delay: 0s; }
.service-icon__layers svg:nth-child(2) { transition-delay: 0.12s; }
.service-icon__layers svg:nth-child(3) { transition-delay: 0.24s; }
.service-icon__layers svg:nth-child(4) { transition-delay: 0.36s; }
.service-icon__layers svg:nth-child(5) { transition-delay: 0.48s; }
.service-icon__layers svg:nth-child(6) { transition-delay: 0.6s; }
.service-icon__layers svg:nth-child(7) { transition-delay: 0.72s; }

/* Active state — triggered by IntersectionObserver adding .is-visible */
.service-icon.is-visible .service-icon__layers svg {
    opacity: 1;
    transform: none;
}

@media (max-width: 767px) {
    .feature-alt__inner {
        flex-direction: column;
        gap: 2rem;
    }

    .feature-alt__text,
    .feature-alt__icon {
        order: unset !important;
    }

    .feature-alt__icon {
        max-width: 280px;
        margin: 0 auto;
    }

    .feature-alt {
        padding: 3rem 1.5rem;
    }
}

/* ── App launcher (F5 «índice de módulos activos» → /apps, front) ── */
.launcher-page { max-width: var(--app-max-width); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.launcher-head { margin-bottom: 2rem; }
.launcher-head__title { font-size: 1.5rem; font-weight: 700; color: var(--app-primary); margin: 0 0 .35rem; }
.launcher-head__sub { color: var(--app-secondary); margin: 0; }
.launcher-group { margin-bottom: 2.25rem; }
.launcher-group__title { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--app-secondary); margin: 0 0 1rem; }
.launcher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.launcher-tile { position: relative; background: var(--app-bg); border: 1px solid var(--app-border); border-radius: var(--app-radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .85rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.launcher-tile:hover { border-color: var(--app-accent); box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.launcher-tile__icon { width: 44px; height: 44px; border-radius: var(--app-radius); background: var(--app-bg-alt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.launcher-tile__icon svg { width: 22px; height: 22px; stroke: var(--app-accent); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.launcher-tile__meta { display: flex; flex-direction: column; gap: 2px; }
.launcher-tile__name { font-weight: 600; font-size: .95rem; color: var(--app-primary); text-decoration: none; }
/* stretched link: el enlace del nombre cubre toda la tarjeta (tile clicable) */
.launcher-tile__name::after { content: ""; position: absolute; inset: 0; }
.launcher-tile__cat { font-size: .7rem; color: var(--app-secondary); }
.launcher-tile__desc { font-size: .8rem; color: var(--app-secondary); line-height: 1.5; flex: 1; margin: 0; }
.launcher-tile__footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.launcher-tile__open { display: inline-flex; align-items: center; gap: 3px; font-size: .8rem; font-weight: 600; color: var(--app-accent); }
.launcher-tile__open svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.launcher-tile:hover .launcher-tile__open svg { transform: translateX(2px); }
/* el chip Admin va POR ENCIMA del enlace estirado → clic independiente */
.launcher-tile__admin { position: relative; z-index: 1; font-size: .7rem; font-weight: 500; color: var(--app-secondary); text-decoration: none; padding: 2px .5rem; border: 1px solid var(--app-border); border-radius: var(--app-radius); transition: color .15s, border-color .15s; }
.launcher-tile__admin:hover { color: var(--app-primary); border-color: var(--app-secondary); }
.launcher-empty { text-align: center; padding: 4rem 1.25rem; color: var(--app-secondary); }
.launcher-empty svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.5; opacity: .5; margin-bottom: 1rem; }
/* ── Header del front: clúster de iconos (waffle · idioma · usuario) ── */
/* icono genérico en el header (waffle de apps): mismo tamaño y color que el resto */
.site-header__icon { display: inline-flex; align-items: center; color: #cbd5e1; transition: color .15s; }
.site-header__icon:hover { color: #fff; }
.site-header__icon svg { width: 20px; height: 20px; display: block; }
/* El menú de usuario y el de idioma viven ahora en partials/header-actions.html,
   con su hoja propia (assets/css/header-actions.css) y en tokens `--ha-*`: escritos
   aquí, con los colores literales que tenían, un tema oscuro que incluyera la pieza
   se habría llevado una losa azul marino — el mismo defecto que tuvo el banner de
   consentimiento hasta ayer. Se retiran de aquí para no dejar CSS muerto que luego
   nadie sabe si sigue vivo. */

/* ── Contact info — rejilla con divisores internos ─────────────────────────
   Breakpoints canónicos: móvil <768 (1 columna) · tablet/desktop ≥768 (2×2).
   Divisores por técnica gap+fondo: el 1px de `gap` deja ver el fondo (borde)
   SOLO entre celdas → cruz interna sin marco exterior. Split-ready: en desktop
   la 2×2 encaja tal cual en el hueco izquierdo cuando se añada el split. */
.app-contact-grid {
    display: grid;
    grid-template-columns: 1fr;                 /* móvil <768 */
    gap: 1px;
    background: var(--app-contact-divider, #cccccc);   /* divisor */
}
@media (min-width: 768px) {                     /* tablet + desktop */
    .app-contact-grid { grid-template-columns: 1fr 1fr; }
}
.app-contact-cell {
    background: var(--app-contact-surface, #f8fafc);   /* fondo de las celdas */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .6rem;
    padding: 2.5rem 1.5rem;
}
/* 🔴 LA CELDA FANTASMA — arreglado el 2026-09-26, visto en la pagina de contacto
   de un cliente. La tecnica de arriba (gap + fondo = divisor) tiene una condicion
   que no estaba escrita: **las celdas tienen que LLENAR la rejilla**. Con tres
   datos en dos columnas queda un hueco sin celda, y ese hueco ensena el color del
   divisor — un rectangulo GRIS de 2,5rem de alto al lado del horario.
   Y tres es el caso normal: direccion, telefono y horario, sin email ni mapa.

   La ultima celda ocupa las dos columnas cuando queda impar. No hace falta saber
   cuantas hay: `:last-child:nth-child(odd)` es verdad exactamente en ese caso. */
@media (min-width: 768px) {
    .app-contact-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.app-contact-cell__icon { color: var(--app-accent, #172C50); line-height: 0; }
.app-contact-cell__label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--app-secondary, #595959);
}
.app-contact-cell__value { font-size: 1rem; font-weight: 700; color: var(--app-primary, #202020); }
.app-contact-cell__value a { color: inherit; text-decoration: none; }
.app-contact-cell__value a:hover { text-decoration: underline; }

/* EL INDICADOR «ABIERTO AHORA» de la ficha de contacto.
   Mecanismo del core (contrato-base §14): existe en los cinco sitios; lo que un
   tema cambia es su paleta via tokens, no si se pinta.
   🔑 El color NUNCA va solo — la palabra («Abierto ahora» / «Ahora cerrado») va
   siempre al lado, que es WCAG 1.4.1: quien no distingue verde de rojo lo lee. */
.app-open {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-right: .6rem; padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .8125rem; font-weight: 700; line-height: 1.4;
    background: var(--app-open-bg, #eef4ec); color: var(--app-open-fg, #35603a);
}
.app-open--no { background: var(--app-closed-bg, #f6eeee); color: var(--app-closed-fg, #8a3d3d); }
.app-open__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* LA SECCION DE FORMULARIO — su piel, sacada de los `style` inline el 2026-09-30.
   Por que: un inline no lo puede vestir un tema sin `!important`, asi que esta
   seccion salia CENTRADA dentro de un sitio cuya pagina se compone a la izquierda.
   Adan, viendolo: «el formulario tiene el mismo fondo» — y era literal, ademas, por
   un token invertido en su tema. `bg_color` sigue inline en la plantilla a
   proposito: eso es DATO de la seccion, no piel.
   Valores IDENTICOS a los que estaban clavados en la plantilla, asi que ningun sitio
   cambia de aspecto; lo que gana un tema es poder vestirlo sin `!important`. */
.app-form-section { padding: 5rem 1.5rem; }
.app-form-wrap    { max-width: 600px; margin: 0 auto; }
.app-form-title {
    font-size: 1.8rem; font-weight: 700; line-height: 1.25;
    color: var(--cms-heading, #0f172a);
    margin-bottom: .5rem; text-align: center;
}
.app-form-sub {
    font-size: 1rem; line-height: 1.65; color: var(--cms-muted, #64748b);
    margin-bottom: 2.5rem; text-align: center;
}
/* `--card` es opt-in por ajuste de la seccion (`settings.card`): sin el, el
   formulario va desnudo sobre el fondo, que es como lo quieren algunos temas. */
.app-form--card {
    background: var(--cms-surface, #fff);
    padding: 2rem 2.5rem;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
}

/* ── Página CMS pública (templates/page/index.html) ──────────────────────────
   Una página publicada sin secciones todavía. No es un error ni un 404: la
   página existe y está pensada para existir. Se dice con palabras y se ofrece
   la salida, en vez de dejar una pantalla en blanco que se lee como algo roto.
   Tokens con respaldo, para que un tema propio la herede con SUS colores. */
.page-empty {
    max-width: 42rem;
    margin: 6rem auto;
    padding: 0 1.5rem;
    text-align: center;
}
/* 🔀 `.page-title` VIVÍA AQUÍ y se movió a `cms-content.css` el 2026-09-22.
   Medido el 2026-08-09: `autogratisentsorgen.ch` tiene tema propio y NO carga
   esta hoja —cero apariciones de `site.css` en el HTML que sirve—, así que el
   titular que el core emite para él habría salido sin estilo del tema.
   ⚠️ Re-medido el 2026-09-27, porque esta línea nombraba también a `kita` y ya
   no era cierto: de los cinco sitios vivos sólo `autogratisentsorgen.ch` sigue
   sin cargarla; `kita`, `core.onlainez.net`, `handwerk` y `onlainez.net` sí.
   El razonamiento NO cambia y por eso el mecanismo se queda: basta UN tema que
   no la cargue para que el core no pueda dar por hecha ninguna de estas
   variables, y quién la carga es una decisión de cada tema que puede cambiar
   cualquier día — como cambió ésta. Lo que sí cambia es el ejemplo: si algún
   día se quiere comprobar el caso, el tema que lo ejercita es el del vertical. La hoja del
   contenido del CMS la incluye `page/index.html`, que es la MISMA plantilla que
   emite el titular, y va toda en tokens `--cms-*`: así un tema la hereda en su
   paleta sin tocar nada (`patrones/temas-que-heredan-del-core.md`). */

.page-empty__title {
    margin: 0 0 .75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--app-primary, #1e293b);
}
.page-empty__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--app-secondary, #64748b);
}
.page-empty__back {
    display: inline-block;
    margin-top: 2rem;
    color: var(--app-accent, #6366f1);
    font-size: .9rem;
    text-decoration: none;
}
.page-empty__back:hover { text-decoration: underline; }

/* ── Tokens del CONTENIDO CMS ────────────────────────────────────────────────
   Las plantillas de `templates/sections/**` los usan con el valor de hoy como
   respaldo (`var(--cms-heading, #0f172a)`), así que:

     · un tema que no haga nada  → exactamente los mismos colores de siempre;
     · un tema propio            → redefine estas doce variables y TODO el
                                   contenido del CMS se adapta, sin tocar una
                                   sola plantilla de sección.

   Por qué hacía falta (2026-08-09): las secciones llevaban los colores escritos
   a mano en atributos `style`. En cuanto el vertical —tema oscuro— pudo por fin
   servir sus páginas, el Impressum salía en gris oscuro sobre negro: ilegible.
   No era un fallo de ese tema; era que el contenido no tenía forma de saber en
   qué paleta se estaba pintando. Patrón: component tokens de Material 3, y la
   misma idea que `.prose` de Tailwind o `.markdown-body` de GitHub.

   Semánticos, no por valor: el token dice PARA QUÉ es el color, no cuál es. */
:root {
    --cms-heading:        #0f172a;   /* títulos de sección */
    --cms-text:           #475569;   /* cuerpo */
    --cms-muted:          #64748b;   /* metadatos, pies, puntos inactivos */
    --cms-surface:        #ffffff;   /* fondo de tarjeta */
    --cms-surface-alt:    #f8fafc;   /* fondo de sección alterna */
    --cms-border:         #e2e8f0;   /* líneas y separadores */
    --cms-btn-bg:         #0f172a;   /* botón sólido dentro del contenido */
    --cms-btn-ink:        #ffffff;   /* su texto — el par va junto o se rompe */
    --cms-link:           #2563eb;   /* enlaces dentro del texto */
    /* El hero pintaba `#0f172a` ESCRITO A MANO — la unica excepcion en un sistema
       donde todo el contenido CMS pinta por token, y el propio comentario de arriba
       dice que la excepcion es lo que lo hunde: un tema con su paleta se comia el
       azul marino del core lo quisiera o no. Van los TRES juntos porque un fondo sin
       su tinta es exactamente como se rompe un contraste. Valores = los de hoy, asi
       que un tema que no haga nada no ve un solo pixel distinto. */
    --cms-hero-bg:        #0f172a;   /* lona del hero */
    --cms-hero-ink:       #ffffff;   /* su tinta — el par va junto o se rompe */
    --cms-hero-ink-soft:  rgba(255,255,255,0.8); /* subtitulo, sobre esa lona */
    --cms-success-bg:     #f0fdf4;
    --cms-success-border: #86efac;
    --cms-success-ink:    #166534;
    --cms-error-bg:       #fef2f2;
    --cms-error-border:   #fca5a5;
    --cms-error-ink:      #991b1b;
}

/* ── Honeypot anti-spam ──────────────────────────────────────────────────────
   El campo trampa de todo formulario público: invisible para una persona,
   rellenado por un robot que completa cuanto encuentra.

   Vive aquí y no en un `style=` porque un atributo de estilo es lo único que la
   CSP no puede permitir con un nonce — cada formulario público emitía un informe
   de violación de `style-src-attr` en cada carga, que es ruido que hay que
   descartar a mano el día que se decida `enforce` (ADR-0023). El patrón ya
   existía en el layout base como `.footer-hp`; esto es la misma regla donde
   TODOS los formularios la alcanzan, en vez de una copia por plantilla.

   No se usa `display:none` ni `hidden`: un robot que se precie los salta, y
   algún lector de pantalla también. Fuera de pantalla lo ve el robot y no la
   persona, que es exactamente el contrato de una trampa. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
