/*
 * ALDEA — Sistema de diseño "Caliza, Selva y Tapial" (SDD 022 · P1.4)
 *
 * Hoja EXCLUSIVA del sistema de diseño. `functions.php` la encola SOLO cuando
 * el gate meta-driven está activo (`_il_design_system = '1'` en el objeto
 * consultado, nunca en el Umbral Legado, nunca en admin/feed). En Producción,
 * cuyas páginas no llevan la meta, este archivo no se sirve: el aspecto
 * original de Elementor queda intacto (D2 / X1).
 *
 * `style.css` conserva únicamente lo estructural y lo heredado de Producción
 * (tokens `--il-*`, `.lang-*`, `.btn-solicitar-dossier-landing`,
 * `.menu-link-solicitar`, `body.single-post …`, utilidades a11y y la posición
 * del selector de idioma flotante).
 *
 * Orden: se encola después de `hello-elementor-child-style`, por lo que el
 * orden relativo interno de los bloques (OLA P → OLA P2 → OLA P3 → OLA 6 →
 * OLA 8 → OLA 9) se mantiene idéntico al de la hoja única original.
 *
 * Cero selectores por ID de página: el gate es por meta, nunca por ID.
 */

/* =========================================================================
   2. ANULACIÓN DE HERENCIAS DEL KIT ELEMENTOR 16 (Aksa Yoga)
   Reemplaza azul/naranja y la tipografía heredada por la paleta territorial.

   SDD 022 · D2 (gate fail-closed): TODA regla transversal de esta hoja va
   prefijada con `body.il-theme-caliza`, clase que `functions.php` añade solo
   cuando el objeto consultado tiene `_il_design_system = '1'`. Sin la meta no
   se repinta nada: el Home y las fichas originales de Producción conservan su
   aspecto Elementor. Lo único que sigue global son las reglas heredadas de
   Producción (§7: `.lang-switcher`, `.btn-solicitar-dossier-landing`,
   `.menu-link-solicitar`, `body.single-post …`), los tokens `--il-*`
   (namespace propio), la accesibilidad de movimiento reducido y los bloques
   del Umbral/shell cuyos selectores (`.il-legado-*`, `.il-umbral-*`,
   `.il-site-*`, `.il-*`) solo existen en su propio markup.
   ========================================================================= */

/* `html` no puede llevar la clase del body: se alcanza con `:has()` y, en
   navegadores sin soporte, solo se pierde el scroll suave (degrada bien). */
html:has(body.il-theme-caliza) {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.il-theme-caliza,
body.il-theme-caliza.elementor-kit-16,
.elementor-kit-16 body.il-theme-caliza {
    background-color: var(--il-limestone-50);
    color: var(--il-ink-900);
    font-family: var(--il-font-sans);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body.il-theme-caliza,
body.il-theme-caliza p,
body.il-theme-caliza li,
body.il-theme-caliza dd,
body.il-theme-caliza figcaption,
body.il-theme-caliza .elementor-widget-text-editor,
body.il-theme-caliza .elementor-widget-text-editor p {
    font-family: var(--il-font-sans);
    color: var(--il-ink-900);
}

/* Especificidad reforzada: el Kit global imprime su CSS después del tema hijo.
   `:not(.page-template-page-umbral-legado)` blinda por partida doble el canvas
   oscuro del Umbral Legado (marfil/dorado), que nunca debe heredar selva. */
body.il-theme-caliza:not(.page-template-page-umbral-legado) h1,
body.il-theme-caliza:not(.page-template-page-umbral-legado) h2,
body.il-theme-caliza:not(.page-template-page-umbral-legado) h3,
body.il-theme-caliza:not(.page-template-page-umbral-legado) h4,
body.il-theme-caliza:not(.page-template-page-umbral-legado) h5,
body.il-theme-caliza:not(.page-template-page-umbral-legado) h6,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .elementor-heading-title,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .elementor-widget-heading .elementor-heading-title,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .elementor-widget-heading .elementor-heading-title a,
.elementor-kit-16 body.il-theme-caliza:not(.page-template-page-umbral-legado) h1,
.elementor-kit-16 body.il-theme-caliza:not(.page-template-page-umbral-legado) h2,
.elementor-kit-16 body.il-theme-caliza:not(.page-template-page-umbral-legado) h3,
.elementor-kit-16 body.il-theme-caliza:not(.page-template-page-umbral-legado) h4,
.elementor-kit-16 body.il-theme-caliza:not(.page-template-page-umbral-legado) h5,
.elementor-kit-16 body.il-theme-caliza:not(.page-template-page-umbral-legado) h6 {
    font-family: var(--il-font-display);
    color: var(--il-forest-900);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
    text-wrap: balance;
    margin-top: 0;
}

body.il-theme-caliza h1,
body.il-theme-caliza .elementor-heading-title.elementor-size-xxl { font-size: clamp(2.125rem, 5vw, 3.5rem); line-height: 1.08; }
body.il-theme-caliza h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
body.il-theme-caliza h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
body.il-theme-caliza h4 { font-size: 1.25rem; }
body.il-theme-caliza h5 { font-size: 1.0625rem; font-family: var(--il-font-sans); letter-spacing: 0.01em; }
body.il-theme-caliza h6,
body.il-theme-caliza .elementor-widget-heading h6.elementor-heading-title {
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--il-ink-600);
    font-weight: 600;
}

body.il-theme-caliza p,
body.il-theme-caliza ul,
body.il-theme-caliza ol,
body.il-theme-caliza dl,
body.il-theme-caliza table,
body.il-theme-caliza blockquote,
body.il-theme-caliza figure { margin-block: 0 1.15em; }
body.il-theme-caliza p:last-child { margin-bottom: 0; }

body.il-theme-caliza blockquote,
body.il-theme-caliza .elementor-kit-16 blockquote,
.il-editorial-quote {
    font-family: var(--il-font-serif);
    font-style: italic;
    font-size: 1.1875rem;
    line-height: 1.75;
    color: var(--il-forest-900);
    border-left: 3px solid var(--il-henequen-400);
    padding: 0.25em 0 0.25em 1.25em;
    margin-inline: 0;
}

body.il-theme-caliza a,
body.il-theme-caliza.elementor-kit-16 a,
body.il-theme-caliza .elementor-widget-text-editor a {
    color: var(--il-tapial-600);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

body.il-theme-caliza a:hover,
body.il-theme-caliza a:focus-visible { color: var(--il-forest-900); }

body.il-theme-caliza a:focus-visible,
body.il-theme-caliza button:focus-visible,
body.il-theme-caliza input:focus-visible,
body.il-theme-caliza select:focus-visible,
body.il-theme-caliza textarea:focus-visible,
body.il-theme-caliza summary:focus-visible,
body.il-theme-caliza [tabindex]:focus-visible,
body.il-theme-caliza .elementor-button:focus-visible {
    outline: 2px solid var(--il-henequen-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Botones: base territorial, sin restos del Kit anterior */
body.il-theme-caliza button,
body.il-theme-caliza input[type="submit"],
body.il-theme-caliza input[type="button"],
body.il-theme-caliza.elementor-kit-16 .elementor-button,
body.il-theme-caliza.elementor-kit-16 button,
body.il-theme-caliza .il-btn,
.il-btn {
    font-family: var(--il-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    min-height: var(--il-touch);
    padding: 0.875rem 1.6rem;
    border-radius: var(--il-radius-pill);
    border: 1px solid transparent;
    background-color: var(--il-forest-900);
    color: var(--il-limestone-50);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.il-theme-caliza button:hover,
body.il-theme-caliza input[type="submit"]:hover,
body.il-theme-caliza.elementor-kit-16 .elementor-button:hover,
body.il-theme-caliza .il-btn:hover,
.il-btn:hover {
    background-color: var(--il-tapial-600);
    color: var(--il-limestone-50);
}

body.il-theme-caliza button:disabled,
.il-btn[aria-disabled="true"],
.il-btn.is-busy {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Variante secundaria sobria */
.il-btn--ghost,
.elementor-kit-16 .elementor-button.elementor-size-md.il-btn--ghost {
    background-color: transparent;
    color: var(--il-forest-900);
    border-color: var(--il-henequen-400);
}

.il-btn--ghost:hover {
    background-color: var(--il-limestone-100);
    color: var(--il-forest-900);
}

/* Formularios */
body.il-theme-caliza input[type="text"],
body.il-theme-caliza input[type="email"],
body.il-theme-caliza input[type="tel"],
body.il-theme-caliza input[type="url"],
body.il-theme-caliza input[type="search"],
body.il-theme-caliza input[type="number"],
body.il-theme-caliza select,
body.il-theme-caliza textarea,
body.il-theme-caliza.elementor-kit-16 input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
body.il-theme-caliza.elementor-kit-16 textarea {
    font-family: var(--il-font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--il-ink-900);
    background-color: #FFFFFF;
    border: 1px solid rgba(105, 93, 79, 0.35);
    border-radius: var(--il-radius-sm);
    padding: 0.75rem 0.95rem;
    min-height: var(--il-touch);
    width: 100%;
    max-width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.il-theme-caliza input:hover,
body.il-theme-caliza select:hover,
body.il-theme-caliza textarea:hover { border-color: rgba(160, 82, 45, 0.55); }

body.il-theme-caliza input:focus,
body.il-theme-caliza select:focus,
body.il-theme-caliza textarea:focus {
    border-color: var(--il-tapial-600);
    box-shadow: 0 0 0 3px rgba(214, 186, 123, 0.35);
    outline: none;
}

body.il-theme-caliza label,
.il-field label {
    display: block;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--il-ink-900);
    margin-bottom: 0.375rem;
}

body.il-theme-caliza input::placeholder,
body.il-theme-caliza textarea::placeholder { color: var(--il-ink-600); opacity: 1; }

body.il-theme-caliza input[type="checkbox"],
body.il-theme-caliza input[type="radio"] {
    accent-color: var(--il-forest-900);
    width: 1.125rem;
    height: 1.125rem;
    min-height: 0;
}

body.il-theme-caliza table { border-collapse: collapse; width: 100%; }
body.il-theme-caliza th,
body.il-theme-caliza td { border-bottom: 1px solid rgba(214, 186, 123, 0.45); padding: 0.75rem 0.5rem; text-align: left; }
body.il-theme-caliza th { font-family: var(--il-font-sans); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--il-ink-600); }

body.il-theme-caliza img,
body.il-theme-caliza svg,
body.il-theme-caliza video,
body.il-theme-caliza canvas,
body.il-theme-caliza iframe { max-width: 100%; height: auto; }
body.il-theme-caliza img { border-radius: 2px; }

body.il-theme-caliza hr,
.il-divider {
    border: 0;
    border-top: 1px solid var(--il-henequen-400);
    opacity: 0.6;
    margin-block: 2rem;
}

body.il-theme-caliza ::selection { background-color: var(--il-henequen-400); color: var(--il-forest-900); }


/* Contención horizontal en contenedores principales (360px sin desbordes) */
#page,
.site,
.site-content,
.elementor,
.elementor-section,
.elementor-container,
.e-con,
.il-site-header,
.il-site-footer,
.il-umbral,
.il-legal-page,
.il-affiliates-page,
.il-availability-strip,
.il-editorial-grid,
.il-gallery-strip,
.il-newsletter-band {
    max-width: 100%;
    overflow-x: clip;
}

/* =========================================================================
   3. HEADER GLOBAL
   ========================================================================= */

.il-site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    background-color: var(--il-header-bg);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: var(--il-header-border);
    font-family: var(--il-font-sans);
}

body.admin-bar .il-site-header { top: 32px; }

.il-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1240px;
    margin-inline: auto;
    padding: 0.75rem var(--il-gutter);
}

.il-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--il-forest-900);
    flex: 0 1 auto;
    min-width: 0;
}

.il-site-brand__mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: var(--il-radius-sm);
    background-color: var(--il-forest-900);
    color: var(--il-henequen-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--il-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

.il-site-brand__name {
    font-family: var(--il-font-display);
    font-size: clamp(1.125rem, 2.2vw, 1.4375rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--il-forest-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.il-site-brand__tagline {
    display: block;
    font-family: var(--il-font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--il-ink-600);
    margin-top: 2px;
}

/* Navegación desktop */
.il-site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    margin-right: 0;
}

.il-site-nav a,
.il-site-nav .menu-item > a {
    display: inline-flex;
    align-items: center;
    min-height: var(--il-touch);
    padding: 0.5rem 0.75rem;
    font-size: 0.9063rem;
    font-weight: 500;
    color: var(--il-ink-900);
    text-decoration: none;
    border-radius: var(--il-radius-sm);
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.il-site-nav a:hover,
.il-site-nav .current-menu-item > a,
.il-site-nav a[aria-current="page"] {
    color: var(--il-forest-900);
    background-color: rgba(214, 186, 123, 0.22);
}

.il-site-nav ul { display: flex; align-items: center; gap: 0.125rem; list-style: none; margin: 0; padding: 0; }
.il-site-nav li { position: relative; }

.il-site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 0 0 auto;
}

.il-site-header__cta {
    min-height: var(--il-touch);
    padding: 0.6875rem 1.375rem;
    border-radius: var(--il-radius-pill);
    background-color: var(--il-forest-900);
    color: var(--il-limestone-50);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--il-forest-900);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.il-site-header__cta:hover,
.il-site-header__cta:focus-visible {
    background-color: var(--il-tapial-600);
    border-color: var(--il-tapial-600);
    color: var(--il-limestone-50);
}

/* Reserva de espacio para el selector flotante ES/EN (top:20px; right:20px) */
@media (min-width: 1025px) {
    .il-site-header__inner { padding-right: 92px; }
    .il-site-nav { padding-right: 0; }
}

/* Selector ES/EN propio del header (opcional; el flotante se conserva) */
.il-site-lang {
    display: none;
    align-items: center;
    gap: 0.125rem;
    padding: 0.125rem;
    border: 1px solid rgba(214, 186, 123, 0.6);
    border-radius: var(--il-radius-pill);
}

.il-site-lang a {
    min-height: 2rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--il-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--il-ink-600);
    text-decoration: none;
}

.il-site-lang a.is-current,
.il-site-lang a[aria-current="true"] {
    background-color: var(--il-forest-900);
    color: var(--il-limestone-50);
}

/* Toggle móvil */
.il-mobile-toggle {
    display: none;
    width: var(--il-touch);
    height: var(--il-touch);
    min-height: var(--il-touch);
    padding: 0;
    background-color: transparent;
    border: 1px solid rgba(27, 59, 43, 0.25);
    border-radius: var(--il-radius-sm);
    color: var(--il-forest-900);
    align-items: center;
    justify-content: center;
}

.il-mobile-toggle:hover { background-color: rgba(214, 186, 123, 0.24); color: var(--il-forest-900); }

.il-mobile-toggle__bars {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: background-color 0.22s ease;
}

.il-mobile-toggle__bars::before,
.il-mobile-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    display: block;
    width: 20px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.22s ease, top 0.22s ease;
}

.il-mobile-toggle__bars::before { top: -6px; }
.il-mobile-toggle__bars::after { top: 6px; }

.il-mobile-toggle[aria-expanded="true"] .il-mobile-toggle__bars { background-color: transparent; }
.il-mobile-toggle[aria-expanded="true"] .il-mobile-toggle__bars::before { top: 0; transform: rotate(45deg); }
.il-mobile-toggle[aria-expanded="true"] .il-mobile-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Drawer móvil */
.il-mobile-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(22rem, 88vw);
    max-width: 100%;
    background-color: var(--il-limestone-50);
    border-left: 1px solid rgba(214, 186, 123, 0.6);
    box-shadow: -18px 0 40px -22px rgba(27, 59, 43, 0.45);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.26s ease, visibility 0.26s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 100000;
}

.il-mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.il-mobile-drawer__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: var(--il-touch);
    height: var(--il-touch);
    background-color: transparent;
    border: 1px solid rgba(27, 59, 43, 0.25);
    border-radius: var(--il-radius-sm);
    color: var(--il-forest-900);
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.il-mobile-drawer__close:hover { background-color: rgba(214, 186, 123, 0.24); }

.il-mobile-drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.125rem;
}

.il-mobile-drawer li > a,
.il-mobile-drawer .il-drawer-link {
    display: flex;
    align-items: center;
    min-height: var(--il-touch);
    padding: 0.625rem 0.5rem;
    border-bottom: 1px solid rgba(214, 186, 123, 0.35);
    font-size: 1rem;
    font-weight: 500;
    color: var(--il-ink-900);
    text-decoration: none;
}

.il-mobile-drawer .il-drawer-cta {
    margin-top: 1.25rem;
    justify-content: center;
    background-color: var(--il-forest-900);
    color: var(--il-limestone-50);
    border-radius: var(--il-radius-pill);
    border-bottom: 0;
    min-height: var(--il-touch);
}

.il-mobile-drawer .il-drawer-cta:hover { background-color: var(--il-tapial-600); color: var(--il-limestone-50); }

body.il-drawer-open { overflow: hidden; }

.il-drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(27, 59, 43, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 99998;
}

.il-drawer-backdrop.is-open { opacity: 1; visibility: visible; }

/* =========================================================================
   4. FOOTER GLOBAL
   ========================================================================= */

.il-site-footer {
    background-color: var(--il-forest-900);
    color: var(--il-limestone-50);
    font-family: var(--il-font-sans);
    padding-block: clamp(2.5rem, 5vw, 4rem) 0;
    margin-top: clamp(2.5rem, 6vw, 5rem);
}

.il-site-footer__inner {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--il-gutter);
}

.il-site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.75rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.il-site-footer h2,
.il-site-footer h3,
.il-site-footer .il-footer-title {
    font-family: var(--il-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--il-henequen-400);
    margin: 0 0 1rem;
    line-height: 1.4;
}

.il-site-footer p,
.il-site-footer li,
.il-site-footer a {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--il-limestone-50);
}

.il-site-footer p { color: rgba(251, 249, 245, 0.86); }

.il-site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.125rem; }

.il-site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: var(--il-touch);
    padding: 0.1875rem 0;
    color: var(--il-limestone-50);
    text-decoration: none;
    transition: color 0.2s ease;
}

.il-site-footer a:hover { color: var(--il-henequen-400); }

.il-site-footer a:focus-visible { outline-color: var(--il-henequen-400); }

.il-site-footer__brand-name {
    font-family: var(--il-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--il-limestone-50);
    display: block;
    margin-bottom: 0.5rem;
}

.il-site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.il-site-footer__social a {
    justify-content: center;
    min-width: var(--il-touch);
    min-height: var(--il-touch);
    padding: 0 0.875rem;
    border: 1px solid rgba(214, 186, 123, 0.45);
    border-radius: var(--il-radius-pill);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.il-site-footer__social a:hover {
    background-color: rgba(214, 186, 123, 0.16);
    border-color: var(--il-henequen-400);
    color: var(--il-henequen-400);
}

.il-site-footer__bottom {
    border-top: 1px solid rgba(214, 186, 123, 0.45);
    padding-block: 1.25rem;
}

.il-site-footer__bottom-inner {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--il-gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.il-site-footer__bottom p,
.il-site-footer__bottom a {
    font-size: 0.8125rem;
    color: rgba(251, 249, 245, 0.78);
    margin: 0;
    letter-spacing: 0.01em;
}

/* =========================================================================
   5. UMBRAL DE ALINEACIÓN — /participa/ (elementor_canvas, sin shell global)
   ========================================================================= */

body.il-umbral-canvas .il-site-header,
body.il-umbral-canvas .il-site-footer,
body.il-umbral-canvas header#site-header,
body.il-umbral-canvas footer#site-footer,
body.il-umbral-canvas .site-header,
body.il-umbral-canvas .site-footer {
    display: none !important;
}

body.il-umbral-canvas { background-color: var(--il-limestone-50); }

.il-umbral {
    min-height: 100vh;
    background-color: var(--il-limestone-50);
    color: var(--il-ink-900);
    padding: clamp(1.5rem, 4vw, 3rem) var(--il-gutter) clamp(3rem, 6vw, 5rem);
}

.il-umbral__inner {
    max-width: 1120px;
    margin-inline: auto;
}

.il-umbral__masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
    border-bottom: 1px solid rgba(214, 186, 123, 0.6);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.il-umbral__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--il-forest-900);
    min-height: var(--il-touch);
}

.il-umbral__brand-name {
    font-family: var(--il-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--il-forest-900);
}

.il-umbral__return {
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--il-ink-600);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.il-umbral__return:hover {
    color: var(--il-tapial-600);
    border-bottom-color: var(--il-tapial-600);
}

.il-umbral__header {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.il-umbral__eyebrow {
    display: inline-block;
    font-family: var(--il-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
    margin-bottom: 0.875rem;
}

.il-umbral__title {
    font-family: var(--il-font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    color: var(--il-forest-900);
    margin: 0 0 0.875rem;
    text-wrap: balance;
}

.il-umbral__lead {
    font-family: var(--il-font-serif);
    font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
    line-height: 1.7;
    color: var(--il-ink-600);
    margin: 0;
}

.il-umbral-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.125rem, 2.4vw, 1.75rem);
    align-items: stretch;
}

.il-pathway-card {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-md);
    padding: clamp(1.375rem, 2.6vw, 1.875rem);
    box-shadow: var(--il-shadow-soft);
    transition: box-shadow 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
    min-width: 0;
}

.il-pathway-card:hover,
.il-pathway-card:focus-within {
    box-shadow: var(--il-shadow-lift);
    transform: translateY(-2px);
    border-color: rgba(160, 82, 45, 0.55);
}

.il-pathway-card__label {
    font-family: var(--il-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-pathway-card__title {
    font-family: var(--il-font-display);
    font-size: clamp(1.375rem, 2.2vw, 1.625rem);
    line-height: 1.15;
    color: var(--il-forest-900);
    margin: 0;
}

.il-pathway-card__text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--il-ink-900);
    margin: 0;
}

.il-pathway-card__meta {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--il-ink-600);
    margin: 0;
}

.il-pathway-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--il-ink-900);
}

.il-pathway-card__list li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    line-height: 1.5;
}

.il-pathway-card__list li::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin-top: 0.5em;
    border-radius: 50%;
    background-color: var(--il-henequen-400);
}

.il-pathway-card__foot { margin-top: auto; padding-top: 0.5rem; }

.il-pathway-card__note {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--il-ink-600);
    margin: 0.625rem 0 0;
}

/* Formularios del Umbral */
.il-umbral-form {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.il-umbral-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.il-field { display: grid; gap: 0.375rem; min-width: 0; }
.il-field--full { grid-column: 1 / -1; }

.il-field__hint {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--il-ink-600);
    margin: 0;
}

.il-field--check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.il-field--check label {
    margin: 0;
    font-weight: 400;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--il-ink-600);
}

.il-umbral-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}

.il-umbral-form [aria-busy="true"] { cursor: progress; }

/* Mensajes de estado accesibles */
.il-form-status {
    display: block;
    border-radius: var(--il-radius-sm);
    padding: 0.8125rem 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    border: 1px solid transparent;
    margin: 0;
}

.il-form-status:empty { display: none; }

.il-form-status--ok,
.il-form-status[data-state="ok"] {
    background-color: rgba(27, 59, 43, 0.08);
    border-color: rgba(27, 59, 43, 0.35);
    color: var(--il-forest-900);
}

.il-form-status--warn,
.il-form-status[data-state="warn"] {
    background-color: rgba(214, 186, 123, 0.22);
    border-color: var(--il-henequen-400);
    color: var(--il-ink-900);
}

.il-form-status--error,
.il-form-status[data-state="error"] {
    background-color: rgba(160, 82, 45, 0.09);
    border-color: rgba(160, 82, 45, 0.55);
    color: var(--il-forest-900);
}

.il-form-status a { color: var(--il-tapial-600); font-weight: 600; }

/* Desbloqueo de Vía A tras el alta */
.il-via-a-unlock { display: grid; gap: 0.75rem; margin-top: 1rem; }
.il-via-a-unlock[hidden] { display: none !important; }

.il-via-a-unlock__title {
    font-family: var(--il-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
    margin: 0;
}

.il-via-a-unlock__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

/* Vía C: puente al carrito */
.il-custodio-steps {
    list-style: none;
    counter-reset: il-step;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.il-custodio-steps li {
    counter-increment: il-step;
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    gap: 0.625rem;
    align-items: start;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--il-ink-900);
}

.il-custodio-steps li::before {
    content: counter(il-step);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1px solid var(--il-henequen-400);
    color: var(--il-forest-900);
    font-family: var(--il-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.il-umbral__foot {
    margin-top: clamp(2.25rem, 4vw, 3.25rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(214, 186, 123, 0.5);
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--il-ink-600);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.il-umbral__foot a { color: var(--il-ink-600); text-decoration: underline; text-underline-offset: 0.2em; }
.il-umbral__foot a:hover { color: var(--il-tapial-600); }

/* =========================================================================
   6. MÓDULOS DEL NUEVO HOME (ID 1065)
   ========================================================================= */

/* Franja fiduciaria + disponibilidad viva */
.il-availability-strip {
    background-color: var(--il-limestone-100);
    border-block: 1px solid var(--il-henequen-400);
    padding: 0.875rem var(--il-gutter);
    font-family: var(--il-font-sans);
}

.il-availability-strip__inner {
    max-width: 1240px;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    text-align: center;
}

.il-availability-strip__item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4375rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--il-ink-900);
    margin: 0;
}

.il-availability-strip__value {
    font-family: var(--il-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--il-forest-900);
    letter-spacing: -0.01em;
}

.il-availability-strip__label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--il-ink-600);
}

.il-availability-strip__divider {
    width: 1px;
    height: 1.125rem;
    background-color: rgba(214, 186, 123, 0.9);
}

.il-availability-strip__status {
    font-size: 0.8125rem;
    color: var(--il-ink-600);
}

.il-availability-strip__status--live { color: var(--il-forest-900); }
.il-availability-strip__status--muted { color: var(--il-ink-600); font-style: italic; }

/* Grilla editorial: 3 cards uniformes de Soberanía Regenerativa */
.il-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.125rem, 2.4vw, 1.75rem);
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--il-gutter);
    align-items: stretch;
}

.il-editorial-card {
    display: flex;
    flex-direction: column;
    background-color: var(--il-limestone-100);
    border: 1px solid rgba(214, 186, 123, 0.55);
    border-radius: var(--il-radius-md);
    overflow: hidden;
    box-shadow: var(--il-shadow-soft);
    min-width: 0;
    transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.il-editorial-card:hover { box-shadow: var(--il-shadow-lift); transform: translateY(-2px); }

.il-editorial-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: rgba(27, 59, 43, 0.08);
}

.il-editorial-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.il-editorial-card:hover .il-editorial-card__media img { transform: scale(1.03); }

.il-editorial-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.375rem 1.375rem;
    flex: 1 1 auto;
}

.il-editorial-card__kicker {
    font-family: var(--il-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
    margin: 0;
}

.il-editorial-card__title {
    font-family: var(--il-font-display);
    font-size: 1.3125rem;
    line-height: 1.2;
    color: var(--il-forest-900);
    margin: 0;
}

.il-editorial-card__title a { color: inherit; text-decoration: none; }
.il-editorial-card__title a:hover { color: var(--il-tapial-600); }

.il-editorial-card__excerpt {
    font-size: 0.9063rem;
    line-height: 1.6;
    color: var(--il-ink-600);
    margin: 0;
    flex: 1 1 auto;
}

.il-editorial-card__link {
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--il-tapial-600);
    text-decoration: none;
    margin-top: 0.375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.il-editorial-card__link::after { content: "\2192"; transition: transform 0.2s ease; }
.il-editorial-card:hover .il-editorial-card__link::after { transform: translateX(3px); }

/* Mosaico territorial WebP */
.il-gallery-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(7rem, 15vw, 11rem);
    gap: 0.5rem;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--il-gutter);
}

.il-gallery-strip__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--il-radius-sm);
    background-color: rgba(27, 59, 43, 0.08);
    min-width: 0;
}

.il-gallery-strip__item img,
.il-gallery-strip__item picture > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.il-gallery-strip__item:hover img,
.il-gallery-strip__item:focus-within img { transform: scale(1.04); filter: saturate(108%); }

.il-gallery-strip__item--wide { grid-column: span 2; }
.il-gallery-strip__item--tall { grid-row: span 2; }

.il-gallery-strip__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem 0.875rem 0.75rem;
    background: linear-gradient(to top, rgba(27, 59, 43, 0.78), rgba(27, 59, 43, 0));
    color: var(--il-limestone-50);
    font-family: var(--il-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 0;
}

.il-gallery-strip__link {
    position: absolute;
    inset: 0;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}

/* Banda de newsletter / Bitácora */
.il-newsletter-band {
    background-color: var(--il-forest-900);
    color: var(--il-limestone-50);
    padding: clamp(2.5rem, 5vw, 4rem) var(--il-gutter);
}

.il-newsletter-band__inner {
    max-width: 56rem;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: center;
}

.il-newsletter-band__title {
    font-family: var(--il-font-display);
    font-size: clamp(1.625rem, 3.2vw, 2.375rem);
    line-height: 1.12;
    color: var(--il-limestone-50);
    margin: 0 0 0.625rem;
}

.il-newsletter-band__text {
    font-family: var(--il-font-serif);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(251, 249, 245, 0.86);
    margin: 0;
}

.il-newsletter-band form,
.il-newsletter-band .wpcf7,
.il-newsletter-band .fluentform { display: flex; flex-wrap: wrap; gap: 0.625rem; }

.il-newsletter-band input[type="email"],
.il-newsletter-band input[type="text"] {
    flex: 1 1 15rem;
    min-width: 0;
    background-color: rgba(251, 249, 245, 0.97);
    border-color: transparent;
    color: var(--il-ink-900);
}

.il-newsletter-band label { color: rgba(251, 249, 245, 0.9); }

.il-newsletter-band .il-btn,
.il-newsletter-band button,
.il-newsletter-band input[type="submit"] {
    background-color: var(--il-henequen-400);
    border-color: var(--il-henequen-400);
    color: var(--il-forest-900);
    flex: 0 0 auto;
}

.il-newsletter-band .il-btn:hover,
.il-newsletter-band button:hover,
.il-newsletter-band input[type="submit"]:hover {
    background-color: var(--il-limestone-50);
    border-color: var(--il-limestone-50);
    color: var(--il-forest-900);
}

.il-newsletter-band a { color: var(--il-henequen-400); }
.il-newsletter-band a:hover { color: var(--il-limestone-50); }

.il-newsletter-band__note {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(251, 249, 245, 0.7);
    margin: 0.75rem 0 0;
    flex-basis: 100%;
}

/* Páginas legales y de afiliados */
.il-legal-page,
.il-affiliates-page {
    max-width: var(--il-measure);
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3.5rem) var(--il-gutter);
    font-family: var(--il-font-sans);
    color: var(--il-ink-900);
}

.il-legal-page h2,
.il-affiliates-page h2 {
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(214, 186, 123, 0.5);
}

.il-legal-page h2:first-of-type,
.il-affiliates-page h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.5rem; }

.il-legal-page ul,
.il-affiliates-page ul { padding-left: 1.125rem; }
.il-legal-page li,
.il-affiliates-page li { margin-bottom: 0.4375rem; }

.il-legal-page__updated,
.il-legal-page .il-meta,
.il-affiliates-page .il-meta {
    font-size: 0.8125rem;
    color: var(--il-ink-600);
    letter-spacing: 0.01em;
}

.il-affiliates-page__steps {
    display: grid;
    gap: 1rem;
    margin-block: 1.75rem;
}

.il-affiliates-page__step {
    background-color: var(--il-limestone-100);
    border: 1px solid rgba(214, 186, 123, 0.6);
    border-radius: var(--il-radius-md);
    padding: 1.25rem 1.375rem;
}

.il-affiliates-page__step h3 { margin: 0 0 0.375rem; font-size: 1.1875rem; }
.il-affiliates-page__step p { margin: 0; font-size: 0.9063rem; color: var(--il-ink-900); }

.il-affiliates-page__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* =========================================================================
   8. RESPONSIVE
   ========================================================================= */

@media (max-width: 1024px) {
    .il-site-header__inner { padding-right: var(--il-gutter); }
    .il-site-nav { display: none; }
    .il-site-lang { display: inline-flex; }
    .il-site-header__cta { display: none; }
    .il-mobile-toggle { display: inline-flex; }

    .il-umbral-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .il-editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .il-site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .il-newsletter-band__inner { grid-template-columns: minmax(0, 1fr); }
    .il-gallery-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    body.il-theme-caliza { font-size: 0.9688rem; }

    .il-umbral-grid,
    .il-editorial-grid,
    .il-site-footer__grid,
    .il-umbral-form__grid,
    .il-gallery-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .il-gallery-strip { grid-auto-rows: 11rem; }
    .il-gallery-strip__item--wide { grid-column: span 1; }
    .il-gallery-strip__item--tall { grid-row: span 1; }

    .il-umbral__masthead { flex-wrap: wrap; }
    .il-umbral { padding-inline: 1.125rem; }
    .il-umbral__inner { max-width: 100%; }

    .il-availability-strip__divider { display: none; }
    .il-availability-strip__inner { gap: 0.375rem 1rem; }

    .il-site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }

    .il-pathway-card { padding: 1.25rem; }

    .il-umbral-form__actions .il-btn,
    .il-umbral-form__actions button,
    .il-umbral-form__actions input[type="submit"] { width: 100%; }

    .il-legal-page,
    .il-affiliates-page { padding-inline: 1.125rem; }

}

@media (max-width: 400px) {
    .il-site-brand__name { font-size: 1.0625rem; }
    .il-site-brand__tagline { display: none; }
    .il-site-header__inner { gap: 0.75rem; padding-block: 0.625rem; }
    .il-mobile-drawer { padding-inline: 1.125rem; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Impresión */
@media print {
    .il-site-header,
    .il-site-footer,
    .il-mobile-drawer,
    .il-drawer-backdrop,
    .il-newsletter-band { display: none !important; }
    body { background: #FFFFFF; color: #000000; }
}


.il-editorial-hub,
.il-gallery-hub,
.il-single-editorial {
    background-color: var(--il-limestone-50);
    color: var(--il-ink-900);
    overflow-x: clip;
}

.il-editorial-hub img,
.il-gallery-hub img,
.il-single-editorial img {
    max-width: 100%;
}

/* Autosuficiencia de caja incluso sin el reset del tema padre */
.il-editorial-hub,
.il-editorial-hub *,
.il-gallery-hub,
.il-gallery-hub *,
.il-single-editorial,
.il-single-editorial * {
    box-sizing: border-box;
}

.il-editorial-hub [hidden],
.il-gallery-hub [hidden],
.il-single-editorial [hidden] { display: none !important; }

/* -------------------------------------------------------------------------
   14.1 Hub editorial — masthead, filtros de pilar y rejilla
   ------------------------------------------------------------------------- */

.il-editorial-hub__masthead,
.il-gallery-hub__masthead {
    max-width: 1240px;
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--il-gutter) clamp(1.25rem, 3vw, 2rem);
    border-bottom: 1px solid rgba(214, 186, 123, 0.55);
}

.il-editorial-hub__eyebrow,
.il-gallery-hub__eyebrow {
    margin: 0 0 0.875rem;
    font-family: var(--il-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-editorial-hub__title,
.il-gallery-hub__title {
    margin: 0 0 1rem;
    font-family: var(--il-font-display);
    font-weight: 600;
    font-size: clamp(2.125rem, 5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--il-forest-900);
    text-wrap: balance;
}

.il-editorial-hub__subtitle,
.il-gallery-hub__subtitle {
    max-width: 62ch;
    margin: 0;
    font-family: var(--il-font-serif);
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.65;
    color: var(--il-ink-600);
}

/* Filtros de pilar: píldoras siempre visibles, sin depender de hover */
.il-editorial-hub__filters {
    max-width: 1240px;
    margin-inline: auto;
    padding: clamp(1.25rem, 3vw, 2rem) var(--il-gutter) 0;
}

.il-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.il-filter-group button,
.il-filter-group .il-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.625rem 1.125rem;
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-pill);
    background-color: var(--il-limestone-50);
    color: var(--il-forest-900);
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.il-filter-group button:hover,
.il-filter-group .il-filter-pill:hover {
    background-color: var(--il-limestone-100);
    border-color: var(--il-forest-900);
    color: var(--il-forest-900);
}

.il-filter-group button[aria-pressed="true"],
.il-filter-group .il-filter-pill[aria-pressed="true"] {
    background-color: var(--il-forest-900);
    border-color: var(--il-forest-900);
    color: var(--il-limestone-50);
}

.il-filter-group button:focus-visible,
.il-filter-group .il-filter-pill:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

.il-filter-status,
[data-il-filter-status] {
    margin: 0.75rem 0 0;
    min-height: 1.25rem;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--il-ink-600);
}

/* Tarjeta destacada */
.il-editorial-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: stretch;
    max-width: 1240px;
    margin: clamp(1.75rem, 4vw, 3rem) auto 0;
    padding: 0 var(--il-gutter);
}

.il-editorial-featured__card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-column: 1 / -1;
    min-width: 0;
    overflow: hidden;
    background-color: var(--il-limestone-100);
    border: 1px solid rgba(214, 186, 123, 0.55);
    border-radius: var(--il-radius-md);
    box-shadow: var(--il-shadow-soft);
}

.il-editorial-featured__media {
    margin: 0;
    overflow: hidden;
    background-color: rgba(27, 59, 43, 0.08);
}

.il-editorial-featured__media img,
.il-editorial-featured__media picture,
.il-editorial-featured__media picture img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
}

.il-editorial-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    min-width: 0;
    padding: clamp(1.5rem, 3vw, 2.75rem);
}

.il-editorial-featured__title {
    margin: 0;
    font-family: var(--il-font-display);
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    line-height: 1.16;
    color: var(--il-forest-900);
    text-wrap: balance;
}

.il-editorial-featured__title a { color: inherit; text-decoration: none; }
.il-editorial-featured__title a:hover { color: var(--il-tapial-600); }

.il-editorial-featured__excerpt {
    margin: 0;
    font-family: var(--il-font-sans);
    font-size: 0.9688rem;
    line-height: 1.65;
    color: var(--il-ink-600);
}

/* Rejilla de ensayos */
.il-editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
    gap: clamp(1.125rem, 2.4vw, 1.75rem);
    max-width: 1240px;
    margin: clamp(1.75rem, 4vw, 3rem) auto 0;
    padding-inline: var(--il-gutter);
    align-items: stretch;
}

.il-editorial-grid > * { min-width: 0; }

.il-editorial-grid .il-editorial-card {
    background-color: var(--il-limestone-100);
    border: 1px solid rgba(214, 186, 123, 0.55);
    border-radius: var(--il-radius-md);
    box-shadow: var(--il-shadow-soft);
    transition: box-shadow 0.24s ease, border-color 0.24s ease;
}

.il-editorial-grid .il-editorial-card:hover,
.il-editorial-grid .il-editorial-card:focus-within {
    border-color: var(--il-henequen-400);
    box-shadow: var(--il-shadow-lift);
    transform: none;
}

.il-editorial-grid .il-editorial-card:focus-visible,
.il-editorial-grid .il-editorial-card a:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

/* Paginación accesible */
.il-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 1240px;
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    padding: 0 var(--il-gutter) clamp(2.5rem, 5vw, 4rem);
    list-style: none;
}

.il-pagination a,
.il-pagination span,
.il-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-sm);
    background-color: var(--il-limestone-50);
    color: var(--il-forest-900);
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.il-pagination a:hover {
    background-color: var(--il-limestone-100);
    color: var(--il-forest-900);
}

.il-pagination [aria-current="page"],
.il-pagination .current {
    background-color: var(--il-forest-900);
    border-color: var(--il-forest-900);
    color: var(--il-limestone-50);
}

.il-pagination a:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   14.2 Single editorial — breadcrumb, cabecera, TOC, prosa y pie
   ------------------------------------------------------------------------- */

.il-single-editorial {
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.il-breadcrumb,
.il-single-editorial__header,
.il-single-editorial__hero,
.il-single-editorial__layout,
.il-single-editorial__footer {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: var(--il-gutter);
}

.il-breadcrumb {
    padding-top: clamp(1.25rem, 3vw, 2rem);
}

.il-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--il-ink-600);
}

.il-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.il-breadcrumb__item + .il-breadcrumb__item::before {
    content: "\203A";
    margin-inline: 0.5rem;
    color: var(--il-ink-600);
}

.il-breadcrumb__link {
    color: var(--il-tapial-600);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.il-breadcrumb__link:hover,
.il-breadcrumb__link:focus-visible {
    color: var(--il-forest-900);
    border-bottom-color: var(--il-henequen-400);
}

.il-breadcrumb__link:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
    border-radius: 3px;
}

.il-breadcrumb__current {
    color: var(--il-ink-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 46ch;
}

.il-single-editorial__header {
    padding-top: clamp(1.25rem, 3vw, 2rem);
    padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.il-single-editorial__pillar {
    margin: 0 0 0.875rem;
    font-family: var(--il-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-single-editorial__pillar-link {
    color: var(--il-tapial-600);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

.il-single-editorial__pillar-link:hover { color: var(--il-forest-900); }

.il-single-editorial__pillar-link:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Blindaje: el Kit heredado no debe colapsar ni ocultar el titular */
.il-single-editorial__title {
    display: block !important;
    max-width: 24ch;
    margin: 0 0 1.125rem;
    font-family: var(--il-font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--il-forest-900);
    text-wrap: balance;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

.il-single-editorial__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0;
    margin: 0;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--il-ink-600);
}

.il-single-editorial__meta > * + *::before {
    content: "\00B7";
    margin-inline: 0.625rem;
    color: var(--il-henequen-400);
}

.il-single-editorial__byline { font-weight: 600; color: var(--il-forest-900); }

.il-single-editorial__date { font-variant-numeric: tabular-nums; }

.il-reading-time {
    display: inline-flex;
    align-items: center;
    font-variant-numeric: tabular-nums;
    color: var(--il-ink-600);
}

.il-single-editorial__hero {
    margin: clamp(1rem, 2.5vw, 1.75rem) auto 0;
}

.il-single-editorial__hero-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--il-radius-md);
    background-color: rgba(27, 59, 43, 0.08);
}

/* Layout de lectura: 1 columna móvil, 2 columnas desde 1024 px */
.il-single-editorial__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: start;
    padding-top: clamp(1.75rem, 4vw, 2.75rem);
}

.il-single-editorial__layout > * { min-width: 0; }

.il-toc-aside { min-width: 0; }

.il-toc-disclosure {
    background-color: var(--il-limestone-100);
    border: 1px solid rgba(214, 186, 123, 0.55);
    border-radius: var(--il-radius-sm);
    padding: 0.25rem 1rem 0.875rem;
}

.il-toc-disclosure__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.5rem 0;
    font-family: var(--il-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--il-ink-600);
    cursor: pointer;
    list-style: none;
}

.il-toc-disclosure__summary::-webkit-details-marker { display: none; }

.il-toc-disclosure__summary::after {
    content: "\25BE";
    font-size: 0.875rem;
    line-height: 1;
    color: var(--il-tapial-600);
    transition: transform 0.2s ease;
}

.il-toc-disclosure[open] > .il-toc-disclosure__summary::after { transform: rotate(180deg); }

.il-toc-disclosure__summary:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
    border-radius: 4px;
}

.il-toc {
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    line-height: 1.45;
}

.il-toc ol,
.il-toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.il-toc li { margin: 0; }

.il-toc li + li { margin-top: 0.125rem; }

.il-toc h2,
.il-toc h3,
.il-toc .il-toc__heading {
    margin: 0 0 0.5rem;
    font-family: var(--il-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--il-ink-600);
}

.il-toc a {
    display: block;
    padding: 0.4375rem 0.5rem;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    color: var(--il-ink-600);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.il-toc a:hover {
    color: var(--il-forest-900);
    background-color: rgba(214, 186, 123, 0.16);
}

.il-toc a:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
    border-radius: 4px;
}

.il-toc a[aria-current="location"] {
    color: var(--il-tapial-600);
    font-weight: 600;
    border-left-color: var(--il-tapial-600);
    background-color: rgba(160, 82, 45, 0.07);
}

/* Prosa editorial */
.il-editorial-prose {
    max-width: 68ch;
    min-width: 0;
    font-family: var(--il-font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--il-ink-900);
    overflow-wrap: break-word;
}

.il-editorial-prose > *:first-child { margin-top: 0; }

.il-editorial-prose p,
.il-editorial-prose ul,
.il-editorial-prose ol,
.il-editorial-prose dl,
.il-editorial-prose figure,
.il-editorial-prose table,
.il-editorial-prose blockquote { margin-block: 0 1.35em; }

.il-editorial-prose h2,
.il-editorial-prose h3,
.il-editorial-prose h4 {
    font-family: var(--il-font-display);
    color: var(--il-forest-900);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.22;
    text-wrap: balance;
    scroll-margin-top: 96px;
}

.il-editorial-prose h2 {
    margin-block: 2.25em 0.6em;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.il-editorial-prose h3 {
    margin-block: 1.9em 0.5em;
    font-size: clamp(1.25rem, 1.9vw, 1.5rem);
}

.il-editorial-prose h4 {
    margin-block: 1.6em 0.4em;
    font-size: 1.125rem;
}

.il-editorial-prose a {
    color: var(--il-tapial-600);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.il-editorial-prose a:hover,
.il-editorial-prose a:focus-visible { color: var(--il-forest-900); }

.il-editorial-prose blockquote {
    margin-inline: 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--il-tapial-600);
    border-radius: 0 var(--il-radius-sm) var(--il-radius-sm) 0;
    background-color: var(--il-limestone-100);
    font-family: var(--il-font-serif);
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--il-forest-900);
}

.il-editorial-prose blockquote p:last-child { margin-bottom: 0; }

.il-editorial-prose blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--il-font-sans);
    font-style: normal;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--il-ink-600);
}

.il-editorial-prose figure { max-width: 100%; }

.il-editorial-prose img,
.il-editorial-prose picture img,
.il-editorial-prose video,
.il-editorial-prose iframe,
.il-editorial-prose embed {
    max-width: 100%;
    height: auto;
    border-radius: var(--il-radius-sm);
}

.il-editorial-prose iframe,
.il-editorial-prose video { display: block; }

.il-editorial-prose figcaption {
    margin-top: 0.625rem;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--il-ink-600);
}

.il-editorial-prose ul,
.il-editorial-prose ol { padding-left: 1.35em; }

.il-editorial-prose li + li { margin-top: 0.4em; }

.il-editorial-prose hr {
    margin-block: 2.25em;
    border: 0;
    border-top: 1px solid rgba(214, 186, 123, 0.7);
}

.il-editorial-prose pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 1rem 1.125rem;
    border-radius: var(--il-radius-sm);
    background-color: var(--il-limestone-100);
    font-size: 0.875rem;
    line-height: 1.55;
}

.il-editorial-prose code { overflow-wrap: anywhere; }

.il-editorial-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.il-editorial-prose th,
.il-editorial-prose td {
    padding: 0.5rem 0.625rem;
    border-bottom: 1px solid rgba(214, 186, 123, 0.55);
    text-align: left;
    vertical-align: top;
}

/* Pie editorial */
.il-single-editorial__footer {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.il-single-editorial__signature {
    margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(214, 186, 123, 0.6);
    font-family: var(--il-font-serif);
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--il-ink-600);
}

/* Tarjeta contextual territorial */
.il-territorial-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
    overflow: hidden;
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-md);
    box-shadow: var(--il-shadow-soft);
}

.il-territorial-card > * { min-width: 0; }

.il-territorial-card__media,
.il-territorial-card figure {
    margin: 0;
    overflow: hidden;
    background-color: rgba(27, 59, 43, 0.08);
}

.il-territorial-card__media img,
.il-territorial-card picture,
.il-territorial-card picture img,
.il-territorial-card figure img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
}

.il-territorial-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: clamp(1.375rem, 3vw, 2.25rem);
}

.il-territorial-card__eyebrow {
    margin: 0;
    font-family: var(--il-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-territorial-card__title {
    margin: 0;
    font-family: var(--il-font-display);
    font-size: clamp(1.375rem, 2.4vw, 1.875rem);
    line-height: 1.18;
    color: var(--il-forest-900);
    text-wrap: balance;
}

.il-territorial-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--il-font-sans);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--il-ink-900);
}

.il-territorial-card__list li {
    position: relative;
    padding-left: 1.25rem;
}

.il-territorial-card__list li + li { margin-top: 0.5rem; }

.il-territorial-card__list li::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
    background-color: var(--il-tapial-600);
}

.il-territorial-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.il-territorial-card__actions .il-btn,
.il-territorial-card__actions a {
    min-height: 44px;
}

.il-territorial-card__actions .il-btn--primary {
    background-color: var(--il-forest-900);
    border-color: var(--il-forest-900);
    color: var(--il-limestone-50);
}

.il-territorial-card__actions .il-btn--primary:hover {
    background-color: var(--il-tapial-600);
    border-color: var(--il-tapial-600);
    color: var(--il-limestone-50);
}

.il-territorial-card__actions .il-btn:focus-visible,
.il-territorial-card__actions a:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

/* Navegación entre ensayos */
.il-single-editorial__essay-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.875rem, 2vw, 1.25rem);
}

.il-single-editorial__essay-nav > * { min-width: 0; }

.il-single-editorial__essay-link {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
    min-height: 44px;
    padding: 1.125rem 1.25rem;
    background-color: var(--il-limestone-50);
    border: 1px solid rgba(214, 186, 123, 0.6);
    border-radius: var(--il-radius-sm);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.il-single-editorial__essay-link:hover {
    background-color: var(--il-limestone-100);
    border-color: var(--il-henequen-400);
}

.il-single-editorial__essay-link:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

.il-single-editorial__essay-kicker {
    font-family: var(--il-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-single-editorial__essay-title {
    font-family: var(--il-font-display);
    font-size: 1.125rem;
    line-height: 1.25;
    color: var(--il-forest-900);
}

.il-single-editorial__essay-link--next { text-align: right; }
.il-single-editorial__essay-link--next .il-single-editorial__essay-kicker::after { content: " \2192"; }
.il-single-editorial__essay-link--prev .il-single-editorial__essay-kicker::before { content: "\2190 "; }

/* -------------------------------------------------------------------------
   14.3 Galería Viva — pestañas de formato, filtros y tarjetas
   ------------------------------------------------------------------------- */

.il-gallery-hub {
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.il-gallery-hub__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1240px;
    margin-inline: auto;
    padding: clamp(1.25rem, 3vw, 2rem) var(--il-gutter) 0;
}

.il-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.il-gallery-tabs button,
.il-gallery-tabs .il-gallery-tabs__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-pill);
    background-color: var(--il-limestone-50);
    color: var(--il-forest-900);
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.il-gallery-tabs button:hover,
.il-gallery-tabs .il-gallery-tabs__tab:hover {
    background-color: var(--il-limestone-100);
    border-color: var(--il-forest-900);
}

.il-gallery-tabs button[aria-pressed="true"],
.il-gallery-tabs .il-gallery-tabs__tab[aria-pressed="true"] {
    background-color: var(--il-forest-900);
    border-color: var(--il-forest-900);
    color: var(--il-limestone-50);
}

.il-gallery-tabs button:focus-visible,
.il-gallery-tabs .il-gallery-tabs__tab:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

.il-gallery-media-panel[hidden] { display: none !important; }

.il-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(1rem, 2.2vw, 1.5rem);
    max-width: 1240px;
    margin: clamp(1.5rem, 3.5vw, 2.25rem) auto 0;
    padding-inline: var(--il-gutter);
    align-items: start;
}

.il-gallery-grid > * { min-width: 0; }

.il-gallery-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background-color: var(--il-limestone-100);
    border: 1px solid rgba(214, 186, 123, 0.55);
    border-radius: var(--il-radius-md);
    box-shadow: var(--il-shadow-soft);
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.il-gallery-card:hover,
.il-gallery-card:focus-within {
    border-color: var(--il-henequen-400);
    box-shadow: var(--il-shadow-lift);
}

.il-gallery-card__media {
    margin: 0;
    overflow: hidden;
    background-color: rgba(27, 59, 43, 0.08);
}

.il-gallery-card__media picture { display: block; }

.il-gallery-card__media img,
.il-gallery-card__media picture img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
}

.il-gallery-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.125rem 1.25rem;
}

.il-gallery-card__kicker {
    margin: 0;
    font-family: var(--il-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-gallery-card__title {
    margin: 0;
    font-family: var(--il-font-display);
    font-size: 1.125rem;
    line-height: 1.25;
    color: var(--il-forest-900);
}

.il-gallery-card__caption {
    margin: 0;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--il-ink-600);
}

.il-gallery-card a:focus-visible,
.il-gallery-card button:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

/* Video y Reel: controles nativos siempre visibles, sin autoplay */
.il-gallery-video {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.75rem;
    background-color: var(--il-limestone-100);
    border: 1px solid rgba(214, 186, 123, 0.55);
    border-radius: var(--il-radius-md);
    box-shadow: var(--il-shadow-soft);
}

.il-gallery-video__media {
    margin: 0;
    line-height: 0;
}

.il-gallery-video video,
.il-gallery-video iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--il-radius-md);
    background-color: #0E1A13;
}

.il-gallery-video__title {
    margin: 0;
    padding-inline: 0.25rem;
    font-family: var(--il-font-display);
    font-size: 1.125rem;
    line-height: 1.25;
    color: var(--il-forest-900);
}

.il-gallery-video__summary {
    margin: 0;
    padding: 0.25rem;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--il-ink-600);
}

.il-gallery-video__summary > summary,
.il-gallery-video__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.375rem 0.25rem;
    font-weight: 600;
    color: var(--il-forest-900);
    cursor: pointer;
    list-style: none;
}

.il-gallery-video__summary > summary::-webkit-details-marker { display: none; }

.il-gallery-video__summary > summary::after {
    content: "\25BE";
    font-size: 0.8125rem;
    color: var(--il-tapial-600);
}

.il-gallery-video__summary[open] > summary::after { transform: rotate(180deg); }

.il-gallery-video__summary > summary:focus-visible,
.il-gallery-video__toggle:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
    border-radius: 4px;
}

.il-gallery-video__summary p,
.il-gallery-video__text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--il-ink-600);
}

/* -------------------------------------------------------------------------
   14.4 Adaptación responsive (sin overflow horizontal)
   ------------------------------------------------------------------------- */

@media (min-width: 1024px) {
    .il-single-editorial__layout--with-toc {
        grid-template-columns: minmax(220px, 260px) minmax(0, 72ch);
    }

    .il-toc-aside {
        position: sticky;
        top: 96px;
        align-self: start;
        max-height: calc(100vh - 128px);
        overflow-y: auto;
    }

    .il-toc-disclosure {
        padding: 1rem 1.125rem 1.25rem;
    }

    /* En escritorio el índice queda siempre desplegado y sin control visible */
    .il-toc-disclosure > .il-toc-disclosure__summary {
        display: none;
    }
}

@media (max-width: 900px) {
    .il-editorial-featured__card {
        grid-template-columns: minmax(0, 1fr);
    }

    .il-editorial-featured__media img,
    .il-editorial-featured__media picture img {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 768px) {
    .il-territorial-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .il-territorial-card__media img,
    .il-territorial-card picture img,
    .il-territorial-card figure img {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .il-single-editorial__essay-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .il-single-editorial__essay-link--next { text-align: left; }

    .il-breadcrumb__current { white-space: normal; max-width: 100%; }
}

@media (max-width: 600px) {
    .il-editorial-prose {
        font-size: 1.0313rem;
    }

    .il-editorial-prose h2,
    .il-editorial-prose h3 { scroll-margin-top: 72px; }

    .il-editorial-prose table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .il-filter-group button,
    .il-gallery-tabs button {
        padding-inline: 0.875rem;
        font-size: 0.75rem;
    }

    .il-editorial-featured__body { padding: 1.25rem 1.125rem 1.5rem; }

    .il-single-editorial__title { max-width: 100%; }
}

@media (max-width: 400px) {
    .il-breadcrumb__list { font-size: 0.75rem; }

    .il-single-editorial__meta { font-size: 0.75rem; }

    .il-territorial-card__body { padding: 1.25rem 1.125rem; }

    .il-territorial-card__actions { flex-direction: column; }

    .il-territorial-card__actions .il-btn,
    .il-territorial-card__actions a { width: 100%; }
}

@media print {
    .il-toc-aside,
    .il-single-editorial__essay-nav,
    .il-territorial-card__actions { display: none !important; }

    .il-single-editorial__title { font-size: 2rem; }
}

/* === SDD 015: Matriz Comparativa Fiduciaria y Disponibilidad ISI === */

.il-matrix {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--il-gutter);
    padding-block: clamp(2.5rem, 6vw, 5rem);
    color: var(--il-ink-900);
    font-family: var(--il-font-sans);
    box-sizing: border-box;
}

.il-matrix *,
.il-matrix *::before,
.il-matrix *::after { box-sizing: border-box; }

/* Encabezado editorial fiduciario */
.il-matrix__hero {
    display: flex;
    flex-direction: column;
    gap: clamp(0.875rem, 2vw, 1.25rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: 78ch;
}

.il-matrix__eyebrow {
    margin: 0;
    font-family: var(--il-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-matrix__title,
.il-matrix__hero h1,
.il-matrix__hero .il-matrix__title {
    margin: 0;
    font-family: var(--il-font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--il-forest-900);
    text-wrap: balance;
    overflow-wrap: break-word;
}

.il-matrix__subtitle {
    margin: 0;
    font-family: var(--il-font-serif);
    font-size: clamp(1rem, 1.6vw, 1.1875rem);
    line-height: 1.65;
    color: var(--il-ink-600);
    max-width: var(--il-measure);
}

/* Caja de disponibilidad verificada del ledger */
.il-matrix__snapshot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem 1.5rem;
    margin: 0.5rem 0 0;
    padding: clamp(1.125rem, 2.5vw, 1.75rem);
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-md);
    box-shadow: var(--il-shadow-soft);
    max-width: 100%;
}

.il-matrix__snapshot-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.il-matrix__snapshot-value {
    font-family: var(--il-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--il-forest-900);
}

.il-matrix__snapshot-label {
    font-size: 0.8125rem;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: var(--il-ink-600);
}

.il-matrix__snapshot-note {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(214, 186, 123, 0.55);
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--il-ink-600);
}

/* Badges de disponibilidad (shortcodes del ledger) */
.il-matrix .isi-availability,
.il-matrix .isi-capacity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    align-self: flex-start;
    padding: 0.3125rem 0.75rem;
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-pill);
    background-color: var(--il-limestone-50);
    color: var(--il-forest-900);
    font-family: var(--il-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.35;
    white-space: normal;
}

.il-matrix .isi-availability.isi-unverified {
    border-style: dashed;
    color: var(--il-ink-600);
    background-color: var(--il-limestone-100);
}

/* Rejilla de arquetipos */
.il-matrix__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 2.2vw, 1.5rem);
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.il-archetype-card {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    min-width: 0;
    padding: clamp(1.25rem, 2.4vw, 1.75rem);
    background-color: var(--il-limestone-50);
    border: 1px solid rgba(105, 93, 79, 0.28);
    border-radius: var(--il-radius-md);
    box-shadow: var(--il-shadow-soft);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.il-archetype-card:hover {
    border-color: var(--il-henequen-400);
    box-shadow: var(--il-shadow-lift);
    transform: translateY(-2px);
}

.il-archetype-card--featured {
    border: 2px solid var(--il-tapial-600);
    background-color: var(--il-limestone-100);
}

.il-archetype-card__title {
    margin: 0;
    font-family: var(--il-font-display);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--il-forest-900);
}

.il-archetype-card__kicker {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-archetype-card__lede {
    margin: 0;
    font-family: var(--il-font-serif);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--il-ink-600);
}

.il-archetype-card__rights,
.il-archetype-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
}

.il-archetype-card__rights li,
.il-archetype-card ul li {
    position: relative;
    padding-left: 1.125rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--il-ink-900);
    overflow-wrap: break-word;
}

.il-archetype-card__rights li::before,
.il-archetype-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: var(--il-henequen-400);
}

.il-archetype-card--featured .il-archetype-card__rights li::before,
.il-archetype-card--featured ul li::before {
    background-color: var(--il-tapial-600);
}

.il-archetype-card__actions,
.il-archetype-card .il-btn {
    margin-top: auto;
}

.il-archetype-card .il-btn,
.il-archetype-card .il-btn--primary {
    width: 100%;
    min-height: var(--il-touch);
    min-height: 44px;
}

.il-archetype-card .il-btn--primary {
    background-color: var(--il-forest-900);
    border-color: var(--il-forest-900);
    color: var(--il-limestone-50);
}

.il-archetype-card .il-btn--primary:hover {
    background-color: var(--il-tapial-600);
    border-color: var(--il-tapial-600);
    color: var(--il-limestone-50);
}

.il-archetype-card a:focus-visible,
.il-archetype-card button:focus-visible,
.il-matrix__table a:focus-visible {
    outline: 2px solid var(--il-tapial-600);
    outline-offset: 2px;
    border-radius: var(--il-radius-sm);
}

/* Tabla comparativa: contenedor responsivo, sin romper layout en 360px */
.il-matrix__table-wrap {
    width: 100%;
    max-width: 100%;
    margin-top: clamp(2rem, 4vw, 3rem);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(105, 93, 79, 0.22);
    border-radius: var(--il-radius-md);
    background-color: var(--il-limestone-50);
}

.il-matrix__table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    border-spacing: 0;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    line-height: 1.55;
    text-align: left;
}

.il-matrix__table caption {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--il-ink-600);
    background-color: var(--il-limestone-50);
}

.il-matrix__table thead th {
    padding: 0.875rem 1rem;
    background-color: var(--il-forest-900);
    color: var(--il-limestone-50);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: bottom;
    border-bottom: 2px solid var(--il-henequen-400);
}

.il-matrix__table tbody th {
    padding: 0.8125rem 1rem;
    background-color: transparent;
    color: var(--il-forest-900);
    font-weight: 600;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(105, 93, 79, 0.18);
}

.il-matrix__table tbody td {
    padding: 0.8125rem 1rem;
    color: var(--il-ink-900);
    vertical-align: top;
    border-bottom: 1px solid rgba(105, 93, 79, 0.18);
}

.il-matrix__table tbody tr:nth-child(even) {
    background-color: var(--il-limestone-100);
}

.il-matrix__table tbody tr:hover {
    background-color: rgba(214, 186, 123, 0.16);
}

.il-matrix__table th,
.il-matrix__table td { overflow-wrap: break-word; }

/* Sobrescritura visual respetuosa de FluentCart (sin tocar scripts ni pagos) */
body.il-theme-caliza .fct-cart-drawer,
body.il-theme-caliza .fluent-cart-checkout-page {
    font-family: var(--il-font-sans);
    color: var(--il-ink-900);
}

body.il-theme-caliza .fct-cart-drawer h1,
body.il-theme-caliza .fct-cart-drawer h2,
body.il-theme-caliza .fct-cart-drawer h3,
body.il-theme-caliza .fluent-cart-checkout-page h1,
body.il-theme-caliza .fluent-cart-checkout-page h2,
body.il-theme-caliza .fluent-cart-checkout-page h3 {
    font-family: var(--il-font-display);
    color: var(--il-forest-900);
}

body.il-theme-caliza .fct-cart-drawer a,
body.il-theme-caliza .fluent-cart-checkout-page a { color: var(--il-tapial-600); }

body.il-theme-caliza .fct-cart-drawer .fct-primary-button,
body.il-theme-caliza .fct-cart-drawer button[type="submit"],
body.il-theme-caliza .fct-cart-drawer .fct-button-primary,
body.il-theme-caliza .fluent-cart-checkout-page .fct-primary-button,
body.il-theme-caliza .fluent-cart-checkout-page button[type="submit"],
body.il-theme-caliza .fluent-cart-checkout-page .fct-button-primary,
body.il-theme-caliza .fluent-cart-checkout-page .fluent-cart-primary-button {
    min-height: var(--il-touch);
    border: 1px solid var(--il-forest-900);
    border-radius: var(--il-radius-sm);
    background-color: var(--il-forest-900);
    color: var(--il-limestone-50);
    font-family: var(--il-font-sans);
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.il-theme-caliza .fct-cart-drawer .fct-primary-button:hover,
body.il-theme-caliza .fct-cart-drawer button[type="submit"]:hover,
body.il-theme-caliza .fct-cart-drawer .fct-button-primary:hover,
body.il-theme-caliza .fluent-cart-checkout-page .fct-primary-button:hover,
body.il-theme-caliza .fluent-cart-checkout-page button[type="submit"]:hover,
body.il-theme-caliza .fluent-cart-checkout-page .fct-button-primary:hover,
body.il-theme-caliza .fluent-cart-checkout-page .fluent-cart-primary-button:hover {
    background-color: var(--il-tapial-600);
    border-color: var(--il-tapial-600);
    color: var(--il-limestone-50);
}

body.il-theme-caliza .fct-cart-drawer .fct-secondary-button,
body.il-theme-caliza .fluent-cart-checkout-page .fct-secondary-button {
    min-height: var(--il-touch);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-sm);
    background-color: transparent;
    color: var(--il-forest-900);
}

body.il-theme-caliza .fct-cart-drawer .fct-primary-button:focus-visible,
body.il-theme-caliza .fct-cart-drawer button:focus-visible,
body.il-theme-caliza .fluent-cart-checkout-page .fct-primary-button:focus-visible,
body.il-theme-caliza .fluent-cart-checkout-page button:focus-visible {
    outline: 2px solid var(--il-henequen-400);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .il-matrix__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .il-matrix__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 400px) {
    .il-matrix { padding-inline: 1.125rem; }

    .il-matrix__snapshot { grid-template-columns: minmax(0, 1fr); }

    .il-matrix__title,
    .il-matrix__hero h1 { font-size: clamp(1.75rem, 8vw, 2.125rem); }

    .il-matrix__table { min-width: 560px; }
}

/* === SDD 016: Bitácora de la Aldea (Newsletter Segmentada) === */

.il-newsletter-hub,
.il-newsletter-single {
    color: var(--il-ink-900);
}

/* --- 16.1 Hero editorial del directorio --- */

.il-newsletter-hub__inner,
.il-newsletter-hub__hero,
.il-newsletter-hub__filters,
.il-newsletter-hub__grid-wrap {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: var(--il-gutter);
}

.il-newsletter-hub__hero {
    padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
}

.il-newsletter-hub__kicker {
    margin: 0 0 0.75rem;
    font-family: var(--il-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-newsletter-hub__title {
    margin: 0 0 0.75rem;
    font-family: var(--il-font-display);
    font-weight: 600;
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    line-height: 1.12;
    color: var(--il-forest-900);
    overflow-wrap: anywhere;
}

.il-newsletter-hub__lede {
    margin: 0;
    max-width: var(--il-measure);
    font-family: var(--il-font-serif);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.65;
    color: var(--il-ink-600);
}

/* --- 16.2 Barra de filtros de serie --- */

.il-newsletter-hub__filters {
    padding-block: 0.5rem clamp(1rem, 2.5vw, 1.75rem);
}

.il-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.il-filter-group__label {
    flex: 0 0 auto;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--il-ink-600);
}

.il-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--il-touch);
    padding: 0.5rem 1rem;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    line-height: 1.2;
    color: var(--il-forest-900);
    background-color: transparent;
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-pill);
    text-decoration: none;
    cursor: pointer;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.il-filter-chip:hover {
    background-color: var(--il-limestone-100);
}

.il-filter-chip[aria-pressed="true"],
.il-filter-chip.is-active,
.il-filter-chip[aria-current="true"] {
    background-color: var(--il-forest-900);
    border-color: var(--il-forest-900);
    color: var(--il-limestone-50);
}

.il-filter-chip:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

/* --- 16.3 Rejilla de cards 1 / 2 / 3 columnas --- */

.il-newsletter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.il-newsletter-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-md);
    box-shadow: var(--il-shadow-soft);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.il-newsletter-card:hover,
.il-newsletter-card:focus-within {
    box-shadow: var(--il-shadow-lift);
}

.il-newsletter-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: rgba(27, 59, 43, 0.08);
}

.il-newsletter-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.il-newsletter-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.il-newsletter-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--il-ink-600);
}

.il-newsletter-card__series {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-newsletter-card__title {
    margin: 0;
    font-family: var(--il-font-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 2.6vw, 1.5rem);
    line-height: 1.25;
    color: var(--il-forest-900);
    overflow-wrap: anywhere;
}

.il-newsletter-card__title a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.il-newsletter-card__title a:hover,
.il-newsletter-card__title a:focus-visible {
    border-bottom-color: var(--il-henequen-400);
}

.il-newsletter-card__title a:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 3px;
    border-radius: 3px;
}

.il-newsletter-card__summary {
    margin: 0;
    font-family: var(--il-font-serif);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--il-ink-600);
    overflow-wrap: anywhere;
}

.il-newsletter-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.il-newsletter-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: var(--il-touch);
    padding: 0.5rem 1rem;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--il-radius-sm);
    border: 1px solid transparent;
}

.il-newsletter-card__cta:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

/* Card restringida (`show_card`): el candado acompaña al texto, nunca lo sustituye. */
.il-newsletter-card--locked {
    border-style: dashed;
    border-color: rgba(160, 82, 45, 0.45);
}

.il-newsletter-card--locked .il-newsletter-card__media {
    filter: saturate(0.55);
}

.il-newsletter-card--locked .il-newsletter-card__summary {
    color: var(--il-ink-600);
}

.il-newsletter-card__lock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--il-tapial-600);
}

/* --- 16.4 Insignias de nivel de acceso (texto + ícono) --- */

.il-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.3rem 0.7rem;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    border-radius: var(--il-radius-pill);
    border: 1px solid currentColor;
    max-width: 100%;
}

.il-stage-badge__icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.il-stage-badge__icon svg {
    display: block;
}

.il-stage-badge__label {
    overflow-wrap: anywhere;
}

.il-stage-badge--stage-0 {
    background-color: #E6F0E8;
    color: #1B3B2B; /* ~10.6:1 sobre el fondo */
}

.il-stage-badge--stage-1 {
    background-color: #F3EBD9;
    color: #4F3D16; /* ~8.9:1 */
}

.il-stage-badge--stage-2 {
    background-color: #F7E7DA;
    color: #6E3313; /* ~7.4:1 */
}

.il-stage-badge--stage-3 {
    background-color: #F0DFD2;
    color: #5A2A12; /* ~8.1:1 */
}

.il-stage-badge--stage-4 {
    background-color: var(--il-forest-900);
    border-color: var(--il-forest-900);
    color: var(--il-limestone-50); /* ~12.9:1 */
}

/* --- 16.5 Teaser de desbloqueo dentro del single --- */

.il-newsletter-teaser {
    margin-block: clamp(1.5rem, 4vw, 2.5rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-left: 4px solid var(--il-tapial-600);
    border-radius: var(--il-radius-md);
    max-width: var(--il-measure);
}

.il-newsletter-teaser__icon {
    display: inline-flex;
    margin-bottom: 0.5rem;
    color: var(--il-tapial-600);
}

.il-newsletter-teaser__title {
    margin: 0 0 0.5rem;
    font-family: var(--il-font-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    line-height: 1.25;
    color: var(--il-forest-900);
}

.il-newsletter-teaser__text {
    margin: 0 0 1rem;
    font-family: var(--il-font-serif);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--il-ink-600);
}

.il-newsletter-teaser__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.il-newsletter-teaser__actions .il-btn {
    min-height: var(--il-touch);
}

/* --- 16.6 Single de la edición --- */

.il-newsletter-single {
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.il-newsletter-single__header,
.il-newsletter-single__hero,
.il-newsletter-single__body,
.il-newsletter-single__footer {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: var(--il-gutter);
}

.il-newsletter-single__header {
    padding-top: clamp(1rem, 3vw, 2rem);
    padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.il-newsletter-single__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--il-ink-600);
}

.il-newsletter-single__issue {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-newsletter-single__series {
    margin: 0;
}

.il-newsletter-single__series-label {
    font-weight: 600;
    color: var(--il-ink-900);
}

.il-newsletter-single__date {
    margin: 0;
}

.il-newsletter-single .il-single-editorial__title {
    overflow-wrap: anywhere;
}

.il-newsletter-single__header .il-stage-badge {
    margin-top: 0.75rem;
}

.il-newsletter-single__hero {
    margin-block: 0 clamp(1.5rem, 3vw, 2rem);
}

.il-newsletter-single__hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: var(--il-radius-md);
}

.il-newsletter-single__body {
    padding-top: clamp(0.5rem, 2vw, 1rem);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.il-newsletter-single__body > * {
    max-width: var(--il-measure);
    margin-inline: auto;
}

.il-newsletter-single__footer {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.il-newsletter-single__signature-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(214, 186, 123, 0.6);
}

.il-newsletter-single__signature-row .il-single-editorial__signature {
    margin: 0;
}

.il-newsletter-single__signature-row .il-btn {
    min-height: var(--il-touch);
}

/* --- 16.7 Caja y formulario de suscripción --- */

.il-newsletter-subscribe {
    max-width: 640px;
    padding: clamp(1.25rem, 3vw, 2rem);
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-md);
    box-shadow: var(--il-shadow-soft);
}

.il-newsletter-subscribe__title {
    margin: 0 0 0.5rem;
    font-family: var(--il-font-display);
    font-weight: 600;
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    line-height: 1.2;
    color: var(--il-forest-900);
}

.il-newsletter-subscribe__lede {
    margin: 0 0 1.25rem;
    font-family: var(--il-font-serif);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--il-ink-600);
}

.il-newsletter-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.il-newsletter-subscribe__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.il-newsletter-subscribe__field label {
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--il-ink-900);
}

.il-newsletter-subscribe__field input[type="email"] {
    width: 100%;
    min-height: var(--il-touch);
    max-width: 100%;
    box-sizing: border-box;
}

.il-newsletter-subscribe__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    min-height: var(--il-touch);
    padding-block: 0.25rem;
}

.il-newsletter-subscribe__consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    accent-color: var(--il-forest-900);
}

.il-newsletter-subscribe__consent label {
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--il-ink-600);
}

.il-newsletter-subscribe__consent a {
    color: var(--il-tapial-600);
    text-underline-offset: 2px;
}

.il-newsletter-subscribe__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.il-newsletter-subscribe__actions .il-btn,
.il-newsletter-subscribe__actions button {
    min-height: var(--il-touch);
}

.il-newsletter-subscribe__feedback {
    margin: 0;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--il-ink-600);
    overflow-wrap: anywhere;
}

.il-newsletter-subscribe__feedback:empty {
    display: none;
}

.il-newsletter-subscribe__feedback[data-state="ok"] {
    color: #1B3B2B;
    font-weight: 600;
}

.il-newsletter-subscribe__feedback[data-state="warn"] {
    color: #5F4A17;
}

.il-newsletter-subscribe__feedback[data-state="error"] {
    color: #8A2B12;
    font-weight: 600;
}

.il-newsletter-subscribe__field input[type="email"]:focus-visible,
.il-newsletter-subscribe__consent input[type="checkbox"]:focus-visible,
.il-newsletter-subscribe__consent a:focus-visible,
.il-newsletter-subscribe__actions .il-btn:focus-visible,
.il-newsletter-subscribe__actions button:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

/* --- 16.8 Responsivo --- */

@media (min-width: 768px) {
    .il-newsletter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .il-newsletter-subscribe-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 0.75rem 1rem;
    }

    .il-newsletter-subscribe__field {
        grid-column: 1 / -1;
    }

    .il-newsletter-subscribe__consent {
        grid-column: 1 / -1;
    }

    .il-newsletter-subscribe__actions {
        grid-column: 1 / -1;
    }

    .il-newsletter-subscribe__feedback {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .il-newsletter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .il-newsletter-hub__hero,
    .il-newsletter-hub__filters,
    .il-newsletter-hub__grid-wrap,
    .il-newsletter-single__header,
    .il-newsletter-single__hero,
    .il-newsletter-single__body,
    .il-newsletter-single__footer {
        padding-inline: 1.125rem;
    }

    .il-newsletter-subscribe {
        padding: 1.125rem;
    }

    .il-newsletter-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .il-newsletter-card__cta {
        justify-content: center;
    }

    .il-stage-badge {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .il-newsletter-card,
    .il-filter-chip {
        transition: none;
    }
}

/* === SDD 017: Bóveda del Participante (/mi-cuenta/) === */
/*
   Portal único ES/EN sobre los tokens "Caliza, Selva y Tapial".
   Cabecera editorial, línea de tiempo 1→4 accesible, paneles sobrios,
   tablas semánticas de Derechos/Pagos/Contratos y formularios de
   Preferencias y Reportes de Bioconstrucción. Sin dependencias, sin
   imágenes de fondo, contraste AA y 0 px de overflow en 360/390/768/1440.
*/

/* --- 17.1 Contenedor editorial --- */

.il-vault {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: var(--il-gutter);
    padding-block: clamp(1.5rem, 4vw, 3rem);
    color: var(--il-ink-900);
    overflow-x: clip;
}

.il-vault,
.il-vault *,
.il-vault *::before,
.il-vault *::after {
    box-sizing: border-box;
}

.il-vault img,
.il-vault svg {
    max-width: 100%;
    height: auto;
}

.il-vault :focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

.il-vault a {
    color: var(--il-tapial-600);
    text-underline-offset: 2px;
}

.il-vault a:focus-visible {
    color: var(--il-forest-900);
}

/* --- 17.2 Cabecera: saludo, arquetipos y cierre de sesión --- */

.il-vault__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    margin: 0 0 clamp(1.25rem, 3vw, 2rem);
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-md);
    box-shadow: var(--il-shadow-soft);
}

.il-vault__identity {
    flex: 1 1 20rem;
    min-width: 0;
}

.il-vault__greeting {
    margin: 0 0 0.5rem;
    font-family: var(--il-font-display);
    font-weight: 600;
    font-size: clamp(1.625rem, 4.5vw, 2.5rem);
    line-height: 1.15;
    color: var(--il-forest-900);
    overflow-wrap: anywhere;
}

.il-vault__meta {
    margin: 0;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--il-ink-600);
    overflow-wrap: anywhere;
}

.il-vault__archetypes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.il-vault__archetype {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 100%;
    padding: 0.3rem 0.75rem;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--il-forest-900);
    background-color: var(--il-limestone-50);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-pill);
    overflow-wrap: anywhere;
}

.il-vault__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.il-vault__logout,
.il-vault-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--il-touch);
    padding: 0.5rem 1.125rem;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--il-forest-900);
    background-color: transparent;
    border: 1px solid var(--il-forest-900);
    border-radius: var(--il-radius-pill);
    text-decoration: none;
    cursor: pointer;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.il-vault__logout:hover,
.il-vault-logout:hover {
    background-color: var(--il-forest-900);
    color: var(--il-limestone-50);
}

.il-vault__logout:focus-visible,
.il-vault-logout:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

/* --- 17.3 Línea de tiempo 1→4 (vertical en móvil, 4 columnas en desktop) --- */

.il-vault-timeline {
    counter-reset: il-vault-step;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
    padding: 0;
    list-style: none;
}

.il-vault-step {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 0.875rem;
    row-gap: 0.25rem;
    min-width: 0;
    padding: 0.875rem 1rem;
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-left: 4px solid var(--il-henequen-400);
    border-radius: var(--il-radius-sm);
    color: var(--il-ink-600);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.il-vault-step::before {
    counter-increment: il-vault-step;
    content: counter(il-vault-step);
    grid-column: 1;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    color: var(--il-ink-600);
    background-color: var(--il-limestone-50);
    border: 1px solid var(--il-henequen-400);
    border-radius: 50%;
}

.il-vault-step__label {
    grid-column: 2;
    min-width: 0;
    font-family: var(--il-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--il-forest-900);
    overflow-wrap: anywhere;
}

.il-vault-step__state {
    grid-column: 2;
    min-width: 0;
    font-family: var(--il-font-sans);
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--il-ink-600);
    overflow-wrap: anywhere;
}

/* Estado completado */
.il-vault-step--done {
    background-color: var(--il-limestone-50);
    border-left-color: var(--il-forest-900);
}

.il-vault-step--done::before {
    content: "\2713";
    color: var(--il-limestone-50);
    background-color: var(--il-forest-900);
    border-color: var(--il-forest-900);
}

/* Estado actual (clase y aria-current="step") */
.il-vault-step--current,
.il-vault-step[aria-current="step"] {
    background-color: var(--il-limestone-100);
    border-color: var(--il-forest-900);
    border-left-color: var(--il-forest-900);
    box-shadow: inset 0 0 0 1px rgba(27, 59, 43, 0.25);
}

.il-vault-step--current::before,
.il-vault-step[aria-current="step"]::before {
    color: var(--il-forest-900);
    background-color: var(--il-henequen-400);
    border: 2px solid var(--il-forest-900);
}

.il-vault-step--current .il-vault-step__label,
.il-vault-step[aria-current="step"] .il-vault-step__label {
    color: var(--il-forest-900);
    font-weight: 700;
}

/* Estado futuro */
.il-vault-step--upcoming {
    background-color: var(--il-limestone-100);
    border-left-color: var(--il-henequen-400);
}

.il-vault-step--upcoming::before {
    color: var(--il-ink-600);
    background-color: var(--il-limestone-50);
}

/* Pasos enfocables por teclado */
.il-vault-step[tabindex]:focus-visible,
.il-vault-step a:focus-visible,
.il-vault-step button:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

/* Conector vertical entre pasos (móvil) */
.il-vault-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(1rem + 0.875rem - 1px);
    bottom: -0.75rem;
    width: 2px;
    height: 0.75rem;
    background-color: var(--il-henequen-400);
}

/* --- 17.4 Rejilla y paneles --- */

.il-vault__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: start;
}

.il-vault__grid > * {
    min-width: 0;
}

.il-vault-panel {
    display: flow-root;
    min-width: 0;
    padding: clamp(1.125rem, 2.5vw, 1.75rem);
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-md);
    box-shadow: var(--il-shadow-soft);
    color: var(--il-ink-900);
}

.il-vault-panel + .il-vault-panel {
    margin-top: 0;
}

.il-vault-panel__title {
    margin: 0 0 0.5rem;
    font-family: var(--il-font-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 2.6vw, 1.625rem);
    line-height: 1.2;
    color: var(--il-forest-900);
    overflow-wrap: anywhere;
}

.il-vault-panel__lede {
    margin: 0 0 1rem;
    max-width: var(--il-measure);
    font-family: var(--il-font-serif);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--il-ink-600);
}

.il-vault-panel__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(214, 186, 123, 0.6);
}

.il-vault-empty {
    margin: 0;
    padding: 1rem 1.125rem;
    font-family: var(--il-font-serif);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--il-ink-600);
    background-color: var(--il-limestone-50);
    border-left: 3px solid var(--il-tapial-600);
    border-radius: var(--il-radius-sm);
    overflow-wrap: anywhere;
}

.il-vault-empty a {
    color: var(--il-tapial-600);
}

/* Insignias de estado dentro de paneles y tablas */
.il-vault-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    padding: 0.2rem 0.6rem;
    font-family: var(--il-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--il-ink-600);
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-pill);
    overflow-wrap: anywhere;
}

.il-vault-status[data-state="ok"] {
    color: var(--il-forest-900);
    background-color: rgba(214, 186, 123, 0.35);
    border-color: var(--il-forest-900);
}

.il-vault-status[data-state="warn"] {
    color: #5F4A17;
    background-color: rgba(214, 186, 123, 0.2);
    border-color: var(--il-henequen-400);
}

.il-vault-status[data-state="error"] {
    color: #8A2B12;
    background-color: #FBEEE8;
    border-color: #8A2B12;
}

/* --- 17.5 Tablas semánticas: Derechos, Pagos y Contratos --- */

.il-vault-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background-color: var(--il-limestone-50);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-sm);
}

.il-vault-table-wrap:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

.il-vault-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--il-ink-900);
    text-align: left;
}

.il-vault-table caption {
    caption-side: top;
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: var(--il-font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--il-forest-900);
}

.il-vault-table th,
.il-vault-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(214, 186, 123, 0.55);
    overflow-wrap: anywhere;
}

.il-vault-table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--il-forest-900);
    background-color: var(--il-limestone-50);
    border-bottom: 2px solid var(--il-henequen-400);
    white-space: nowrap;
}

.il-vault-table tbody th[scope="row"] {
    font-weight: 600;
    color: var(--il-forest-900);
}

.il-vault-table tbody tr:nth-child(even) {
    background-color: var(--il-limestone-100);
}

.il-vault-table tbody tr:last-child th,
.il-vault-table tbody tr:last-child td {
    border-bottom: 0;
}

.il-vault-table a:focus-visible,
.il-vault-table button:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

.il-vault-table .il-vault-contract-download {
    margin-block: -0.35rem;
}

/* --- 17.6 Formularios: Preferencias y Reportes de Bioconstrucción --- */

.il-vault-form {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.il-vault-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    min-width: 0;
}

.il-vault-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.il-vault-field > label,
.il-vault-label {
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--il-ink-900);
    overflow-wrap: anywhere;
}

.il-vault-field input:not([type="checkbox"]):not([type="radio"]),
.il-vault-field select,
.il-vault-field textarea {
    width: 100%;
    max-width: 100%;
    min-height: var(--il-touch);
    padding: 0.625rem 0.75rem;
    font-family: var(--il-font-sans);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--il-ink-900);
    background-color: var(--il-limestone-50);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-sm);
}

.il-vault-field textarea {
    min-height: 8rem;
    resize: vertical;
}

.il-vault-field input:focus-visible,
.il-vault-field select:focus-visible,
.il-vault-field textarea:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
    border-color: var(--il-forest-900);
}

.il-vault-field input[aria-invalid="true"],
.il-vault-field select[aria-invalid="true"],
.il-vault-field textarea[aria-invalid="true"] {
    border-color: #8A2B12;
}

.il-vault-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    min-height: var(--il-touch);
    padding-block: 0.25rem;
    min-width: 0;
}

.il-vault-check input[type="checkbox"],
.il-vault-check input[type="radio"] {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    accent-color: var(--il-forest-900);
}

.il-vault-check label {
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--il-ink-600);
    overflow-wrap: anywhere;
}

.il-vault-help {
    margin: 0;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--il-ink-600);
    overflow-wrap: anywhere;
}

.il-vault-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.il-vault-form__actions button,
.il-vault-form__actions .il-btn,
.il-vault-form button[type="submit"] {
    min-height: var(--il-touch);
}

.il-vault-form[aria-busy="true"] {
    opacity: 0.85;
}

.il-vault-form button[type="submit"]:disabled {
    cursor: progress;
}

/* Descarga auditada de contratos */
.il-vault-contract-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--il-touch);
    padding: 0.45rem 1rem;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--il-forest-900);
    background-color: transparent;
    border: 1px solid var(--il-forest-900);
    border-radius: var(--il-radius-pill);
    cursor: pointer;
    text-decoration: none;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.il-vault-contract-download:hover {
    background-color: var(--il-forest-900);
    color: var(--il-limestone-50);
}

.il-vault-contract-download:focus-visible {
    outline: 3px solid var(--il-tapial-600);
    outline-offset: 2px;
}

.il-vault-contract-download[aria-busy="true"],
.il-vault-contract-download:disabled {
    cursor: progress;
    opacity: 0.75;
}

/* Región de retroalimentación de formularios y descargas */
[data-il-vault-feedback] {
    margin: 0;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--il-ink-600);
    overflow-wrap: anywhere;
}

[data-il-vault-feedback]:empty {
    display: none;
}

[data-il-vault-feedback][data-state="ok"] {
    color: #1B3B2B;
    font-weight: 600;
}

[data-il-vault-feedback][data-state="warn"] {
    color: #5F4A17;
}

[data-il-vault-feedback][data-state="error"] {
    color: #8A2B12;
    font-weight: 600;
}

/* --- 17.7 Responsivo --- */

@media (min-width: 640px) {
    .il-vault-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .il-vault-field--full,
    .il-vault-form__actions,
    [data-il-vault-feedback] {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .il-vault-timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .il-vault-step {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0.375rem;
        padding: 1.125rem;
        border-left-width: 1px;
        border-top: 4px solid var(--il-henequen-400);
    }

    .il-vault-step::before {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0.25rem;
    }

    .il-vault-step__label,
    .il-vault-step__state {
        grid-column: 1;
    }

    .il-vault-step--done {
        border-top-color: var(--il-forest-900);
    }

    .il-vault-step--current,
    .il-vault-step[aria-current="step"] {
        border-top-color: var(--il-forest-900);
    }

    .il-vault-step--upcoming {
        border-top-color: var(--il-henequen-400);
    }

    /* Conector horizontal entre columnas */
    .il-vault-step:not(:last-child)::after {
        left: auto;
        right: -1rem;
        bottom: auto;
        top: calc(1.125rem + 0.875rem - 1px);
        width: 1rem;
        height: 2px;
    }

    .il-vault__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .il-vault-panel--wide,
    .il-vault__grid > .il-vault-panel:only-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .il-vault {
        padding-inline: 1.125rem;
    }

    .il-vault__header,
    .il-vault-panel {
        padding: 1.125rem;
    }

    .il-vault-table {
        font-size: 0.8125rem;
    }

    .il-vault-table th,
    .il-vault-table td {
        padding: 0.625rem 0.75rem;
    }

    .il-vault-table caption {
        padding: 0.625rem 0.75rem;
    }

    .il-vault-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .il-vault-form__actions button,
    .il-vault-form__actions .il-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .il-vault-step,
    .il-vault__logout,
    .il-vault-logout,
    .il-vault-contract-download {
        transition: none;
    }
}

/* === OLA P: Pulido Visual UI/UX Pro Max (P0/P1/P2) === */
/*
   Correcciones quirúrgicas sobre los hallazgos verificados en las capturas
   reales: contraste marfil/dorado sobre superficies oscuras, header en una
   fila, botones planos (cero gradientes heredados de Elementor/Aksa Yoga),
   temporizador de la Bóveda 1→4, Bitácora centrada y galería sin recortes.
*/

/*
   El shell global imprime su propio `:root` en el cuerpo del documento y
   re-declara `--il-tapial-600` con el tapial heredado: esta declaración con
   especificidad `html:root` gana siempre y propaga el tapial accesible (6.2:1).
*/
html:root {
    --il-tapial-600: #8D4322;
    --il-on-dark: #FBF9F5;
    --il-on-dark-muted: #D9D3C4;
    --il-on-dark-gold: #E4CB92;
}

/* --- P0 · Header global: texto marfil sobre selva (>= 10:1) --- */

body .il-site-header,
body .il-site-header a,
body .il-site-header .il-brand,
body .il-site-header .il-brand__title,
body .il-site-header .il-brand__name,
body .il-site-header h1,
body .il-site-header h2,
body .il-site-header h3,
body .il-site-header h4,
body .il-site-header h5,
body .il-site-header h6,
body .il-site-header strong {
    color: var(--il-on-dark) !important;
    text-decoration: none;
}

body .il-site-header .il-brand__sub,
body .il-site-header .il-brand > span,
body .il-site-header .il-brand small,
body .il-site-header .il-brand__tagline {
    color: var(--il-on-dark-gold) !important;
}

body .il-site-header .il-site-nav a,
body .il-site-header .il-site-nav .menu-item > a {
    color: var(--il-on-dark) !important;
}

body .il-site-header .il-site-nav a:hover,
body .il-site-header .il-site-nav a:focus-visible,
body .il-site-header .il-site-nav .current-menu-item > a,
body .il-site-header .il-site-nav a[aria-current="page"] {
    color: var(--il-on-dark-gold) !important;
    background-color: transparent !important;
}

body .il-site-header .il-header-lang a {
    color: var(--il-on-dark) !important;
}

body .il-site-header .il-header-lang a[aria-current="page"] {
    color: var(--il-forest-900) !important;
    background-color: var(--il-on-dark) !important;
}

/* --- P0 · Footer global: títulos dorados, cuerpo caliza atenuada --- */

body .il-site-footer h1,
body .il-site-footer h2,
body .il-site-footer h3,
body .il-site-footer h4,
body .il-site-footer h5,
body .il-site-footer h6,
body .il-site-footer .il-footer__title,
body .il-site-footer strong {
    color: var(--il-on-dark-gold) !important;
}

body .il-site-footer p,
body .il-site-footer a,
body .il-site-footer li,
body .il-site-footer .il-site-footer__legal {
    color: var(--il-on-dark-muted) !important;
}

body .il-site-footer a:hover,
body .il-site-footer a:focus-visible {
    color: var(--il-on-dark) !important;
}

/* --- P0 · Header en una sola fila limpia (Desktop) --- */

/* Breakpoint único del header global: 1240px. Por debajo el header pasa a
   layout de dos filas (marca + CTA + ☰ + ES/EN / nav desplegable) para que
   ningún enlace se monte sobre el logo ni sobre «Comenzar participación». */
@media (min-width: 1240px) {
    body .il-site-header .il-nav-toggle,
    body button.il-nav-toggle {
        display: none !important;
    }

    body .il-site-header .il-site-header__inner {
        flex-wrap: nowrap !important;
        min-height: 82px;
        justify-content: space-between;
        align-items: center;
        gap: clamp(0.75rem, 1.4vw, 1.5rem);
    }

    body .il-site-header .il-site-nav {
        flex: 1 1 auto;
        display: flex !important;
        justify-content: center;
        margin: 0;
        min-width: 0;
    }

    body .il-site-header .il-site-nav ul {
        flex-wrap: nowrap;
        gap: 1.15rem;
    }

    body .il-site-header .il-site-nav a {
        white-space: nowrap;
        font-size: 0.92rem;
        padding: 0.35rem 0.15rem;
    }

    body .il-site-header .il-cta {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 44px;
        padding: 0.7rem 1.15rem;
        border-radius: var(--il-radius-sm);
        background-image: none !important;
        background-color: var(--il-tapial-600) !important;
        border: 1.5px solid var(--il-tapial-600) !important;
        color: var(--il-on-dark) !important;
        text-decoration: none !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.9rem;
    }

    body .il-site-header .il-cta:hover,
    body .il-site-header .il-cta:focus-visible {
        background-color: #6F341A !important;
        border-color: var(--il-henequen-400) !important;
        color: var(--il-on-dark) !important;
    }

    body .il-site-header .il-header-lang {
        flex-shrink: 0;
        margin-left: 0;
    }
}

/* Ventana intermedia 1024–1260 px: eliminada. Bajo 1240 px el header usa el
   layout compacto de dos filas definido en «OLA P3 · Header Responsive». */

/* --- P0/P1 · Botones planos: anular gradientes de Elementor / Aksa Yoga --- */

button.il-nav-toggle,
.il-filter-btn,
.il-gallery-tabs button,
.il-btn,
a.il-btn,
button.il-btn,
.il-vault-form button,
.il-newsletter-subscribe button,
.il-module--newsletter button,
.il-product-shell button,
body.il-theme-caliza .fluent-cart-checkout-page button {
    background-image: none !important;
    text-decoration: none !important;
    box-shadow: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

/* Botón primario */
.il-btn--primary,
a.il-btn--primary,
a.il-btn--primary:visited,
.il-vault-form button[type="submit"],
.il-newsletter-subscribe button[type="submit"],
.il-module--newsletter button[type="submit"] {
    background-image: none !important;
    background-color: var(--il-forest-900) !important;
    color: var(--il-limestone-50) !important;
    border: 1.5px solid var(--il-forest-900) !important;
    text-decoration: none !important;
    min-height: 44px;
    padding: 0.72rem 1.35rem;
    border-radius: var(--il-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.il-btn--primary:hover,
.il-btn--primary:focus-visible,
a.il-btn--primary:hover,
a.il-btn--primary:focus-visible,
.il-vault-form button[type="submit"]:hover,
.il-newsletter-subscribe button[type="submit"]:hover,
.il-module--newsletter button[type="submit"]:hover {
    background-color: #12291D !important;
    border-color: #12291D !important;
    color: var(--il-limestone-50) !important;
}

/* Primario sobre superficie oscura (banda/bitácora) */
.il-module--newsletter .il-btn--primary,
.il-module--newsletter a.il-btn--primary,
.il-module--newsletter button {
    background-color: var(--il-tapial-600) !important;
    border-color: var(--il-henequen-400) !important;
    color: var(--il-on-dark) !important;
}

.il-module--newsletter .il-btn--primary:hover,
.il-module--newsletter a.il-btn--primary:hover,
.il-module--newsletter button:hover {
    background-color: #6F341A !important;
    border-color: var(--il-on-dark-gold) !important;
    color: var(--il-on-dark) !important;
}

/* Botón fantasma */
.il-btn--ghost,
a.il-btn--ghost,
a.il-btn--ghost:visited {
    background-image: none !important;
    background-color: transparent !important;
    color: var(--il-forest-900) !important;
    border: 1.5px solid var(--il-forest-900) !important;
    text-decoration: none !important;
    min-height: 44px;
    padding: 0.68rem 1.25rem;
    border-radius: var(--il-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.il-btn--ghost:hover,
.il-btn--ghost:focus-visible,
a.il-btn--ghost:hover,
a.il-btn--ghost:focus-visible {
    background-color: var(--il-forest-900) !important;
    color: var(--il-limestone-50) !important;
    border-color: var(--il-forest-900) !important;
}

/* Botones de filtro / pestañas: inactivo caliza, activo selva */
.il-filter-group,
.il-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.il-filter-btn,
.il-gallery-tabs button,
[data-il-filter-group] button {
    background-image: none !important;
    background-color: var(--il-limestone-100) !important;
    color: var(--il-forest-900) !important;
    border: 1.5px solid var(--il-henequen-400) !important;
    border-radius: var(--il-radius-pill);
    min-height: 44px;
    padding: 0.55rem 1.05rem;
    font-family: var(--il-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.il-filter-btn:hover,
.il-gallery-tabs button:hover,
[data-il-filter-group] button:hover {
    border-color: var(--il-forest-900) !important;
}

.il-filter-btn[aria-pressed="true"],
.il-gallery-tabs button[aria-pressed="true"],
[data-il-filter-group] button[aria-pressed="true"] {
    background-color: var(--il-forest-900) !important;
    color: var(--il-limestone-50) !important;
    border-color: var(--il-forest-900) !important;
}

.il-filter-btn .il-filter-count,
.il-gallery-tabs button .il-filter-count {
    margin-left: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
}

/* Botones Elementor legacy (Aksa Yoga): gradientes y azul heredado fuera */
body.il-theme-caliza .elementor-button,
body.il-theme-caliza .elementor-kit-16 .elementor-button {
    background-image: none !important;
    background-color: var(--il-forest-900) !important;
    color: var(--il-limestone-50) !important;
    border: 1.5px solid var(--il-forest-900) !important;
    border-radius: var(--il-radius-sm) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

body.il-theme-caliza .elementor-button:hover,
body.il-theme-caliza .elementor-button:focus-visible,
body.il-theme-caliza .elementor-kit-16 .elementor-button:hover,
body.il-theme-caliza .elementor-kit-16 .elementor-button:focus-visible {
    background-image: none !important;
    background-color: #12291D !important;
    border-color: #12291D !important;
    color: var(--il-limestone-50) !important;
}

/* --- P0 · Bóveda /mi-cuenta/: contenedor, timeline 1→4 y grilla --- */

.il-vault {
    max-width: 1120px;
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3.5rem) var(--il-gutter);
}

.il-vault-timeline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
    padding: 0;
    list-style: none;
}

.il-vault-timeline__item,
.il-vault-step {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.2rem;
    min-width: 0;
    padding: 0.85rem 1rem;
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-sm);
    color: var(--il-ink-600);
}

.il-vault-timeline__num,
.il-vault-step::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    font-family: var(--il-font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    color: var(--il-forest-900);
    background-color: var(--il-limestone-50);
    border: 1.5px solid var(--il-henequen-400);
    border-radius: 50%;
}

.il-vault-timeline__label,
.il-vault-step__label {
    min-width: 0;
    font-family: var(--il-font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--il-forest-900);
    overflow-wrap: anywhere;
}

.il-vault-timeline__state,
.il-vault-step__state {
    grid-column: 2;
    min-width: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--il-ink-600);
    overflow-wrap: anywhere;
}

/* Paso completado */
.il-vault-timeline__item.is-complete,
.il-vault-step--done {
    background-color: var(--il-limestone-100);
    border-color: var(--il-forest-900);
}

.il-vault-timeline__item.is-complete .il-vault-timeline__num,
.il-vault-step--done::before {
    background-color: var(--il-limestone-50);
    border-color: var(--il-forest-900);
    color: var(--il-forest-900);
}

/* Paso actual: selva plena, texto marfil, anillo henequén */
.il-vault-timeline__item.is-current,
.il-vault-timeline__item[aria-current="step"],
.il-vault-step--current,
.il-vault-step[aria-current="step"] {
    background-color: var(--il-forest-900) !important;
    border-color: var(--il-forest-900) !important;
    box-shadow: 0 0 0 2px var(--il-henequen-400);
    color: var(--il-on-dark);
}

.il-vault-timeline__item.is-current .il-vault-timeline__num,
.il-vault-timeline__item[aria-current="step"] .il-vault-timeline__num,
.il-vault-step--current::before,
.il-vault-step[aria-current="step"]::before {
    background-color: var(--il-henequen-400) !important;
    border-color: var(--il-on-dark) !important;
    color: var(--il-forest-900) !important;
}

.il-vault-timeline__item.is-current .il-vault-timeline__label,
.il-vault-timeline__item[aria-current="step"] .il-vault-timeline__label,
.il-vault-timeline__item.is-current .il-vault-timeline__state,
.il-vault-step--current .il-vault-step__label,
.il-vault-step[aria-current="step"] .il-vault-step__label,
.il-vault-step--current .il-vault-step__state {
    color: var(--il-on-dark) !important;
}

/* Pasos futuros: sobrios */
.il-vault-timeline__item.is-upcoming,
.il-vault-step--upcoming {
    background-color: var(--il-limestone-100);
    border-color: var(--il-henequen-400);
}

.il-vault-timeline__item.is-upcoming .il-vault-timeline__num,
.il-vault-step--upcoming::before {
    color: var(--il-ink-600);
    background-color: var(--il-limestone-50);
}

@media (min-width: 768px) {
    .il-vault-timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.85rem;
        align-items: stretch;
    }

    .il-vault-timeline__item,
    .il-vault-step {
        grid-template-columns: auto minmax(0, 1fr);
        align-content: start;
    }

    .il-vault-timeline__item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        right: -0.85rem;
        width: 0.85rem;
        height: 2px;
        background-color: var(--il-henequen-400);
    }
}

/* --- P0-Micro · Bóveda /mi-cuenta/: timeline 1→4 sin círculo duplicado ---
   `14-G-boveda-es-full.png` mostró el pseudo-elemento numerado dibujando un
   segundo círculo sobre `<span class="il-vault-step__num">` y partiendo el
   estado (`E-n-c-u-r-s-o`) letra por letra. Un solo círculo limpio de 32×32. */

.il-vault-step::before {
    content: none !important;
    display: none !important;
}

.il-vault-timeline__item,
.il-vault-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    min-width: 0;
    padding: 1.1rem 1.15rem !important;
}

.il-vault-timeline__num,
.il-vault-step__num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    line-height: 1 !important;
    border-radius: 50% !important;
}

.il-vault-timeline__state,
.il-vault-step__state {
    white-space: nowrap;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
    color: var(--il-ink-600);
}

.il-vault-timeline__item.is-complete .il-vault-timeline__state,
.il-vault-step--done .il-vault-step__state,
.il-vault-timeline__item.is-upcoming .il-vault-timeline__state,
.il-vault-step--upcoming .il-vault-step__state {
    color: var(--il-ink-600) !important;
}

.il-vault-timeline__item.is-current .il-vault-timeline__state,
.il-vault-timeline__item[aria-current="step"] .il-vault-timeline__state,
.il-vault-step--current .il-vault-step__state,
.il-vault-step[aria-current="step"] .il-vault-step__state {
    color: var(--il-on-dark-gold) !important;
}

/* Píldoras vacías sueltas en la cabecera de la Bóveda (contenedores sin texto) */
.il-vault__archetypes:empty,
.il-vault__archetype:empty,
.il-vault-status:empty,
.il-vault__meta:empty {
    display: none !important;
}

.il-vault__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    align-items: start;
}

/* --- P1 · Bitácora /newsletter/: centrada, aireada y sin badges pegados --- */

.il-newsletter-hub {
    max-width: 1120px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3.5rem) var(--il-gutter);
}

/* Directorio real de la Bitácora (`[inlakech_newsletter_directory]`) */
.il-newsletter-directory {
    max-width: 1120px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3.5rem) var(--il-gutter) clamp(2.5rem, 6vw, 4rem);
}

.il-newsletter-directory__hero {
    padding-block: 0 clamp(1.25rem, 3vw, 2rem);
}

.il-newsletter-directory__title {
    margin: 0 0 0.75rem;
    font-family: var(--il-font-display);
    font-weight: 600;
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    line-height: 1.12;
    color: var(--il-forest-900);
    text-wrap: balance;
}

.il-newsletter-directory__intro {
    margin: 0;
    max-width: var(--il-measure);
    font-family: var(--il-font-serif);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.65;
    color: var(--il-ink-600);
}

.il-newsletter-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.5rem;
}

.il-newsletter-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    margin: 1.5rem 0 3rem;
}

.il-newsletter-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background-color: var(--il-limestone-100);
    border: 1px solid var(--il-henequen-400);
    border-radius: var(--il-radius-md);
}

.il-newsletter-card__meta-top,
.il-newsletter-card__badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.il-stage-badge,
.il-newsletter-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-family: var(--il-font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    background-color: var(--il-limestone-50);
    border: 1px solid var(--il-henequen-400);
    color: var(--il-forest-900);
}

.il-newsletter-card__issue {
    margin-left: auto;
    font-family: var(--il-font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--il-ink-600);
}

.il-newsletter-subscribe {
    max-width: 680px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    margin-top: 2.5rem;
}

/* --- P1 · Hub editorial, galería y fichas de producto --- */

.il-editorial-grid .il-editorial-card h3,
.il-editorial-card__title {
    color: var(--il-forest-900) !important;
    font-weight: 600;
    font-size: clamp(1.3rem, 1.7vw, 1.55rem);
    line-height: 1.2;
    text-wrap: balance;
}

.il-gallery-card--emblem .il-gallery-card__media {
    background: #0F1411;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.il-gallery-card--emblem .il-gallery-card__media img {
    object-fit: contain !important;
    padding: 0.5rem;
    width: 100%;
    height: 100%;
}

.il-product-shell {
    max-width: 1120px;
    margin-inline: auto;
    padding: clamp(1.75rem, 4vw, 3rem) var(--il-gutter);
}

.il-product-shell__article {
    max-width: 100%;
}

/* Breadcrumb alineado con el shell (sin doble gutter ni solapamiento) */
.il-product-shell .il-breadcrumb {
    max-width: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.il-product-shell .il-breadcrumb__list {
    justify-content: flex-start;
}

.il-product-shell__kicker {
    margin: 0 0 0.5rem;
    font-family: var(--il-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--il-tapial-600);
}

.il-product-shell__title {
    margin: 0 0 1.5rem;
    font-family: var(--il-font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.12;
    color: var(--il-forest-900);
    text-wrap: balance;
}

.il-product-shell__body {
    color: var(--il-ink-900);
}

.il-product-shell .fct-buy-now-button,
.il-product-shell .fct-add-to-cart-button,
.il-product-shell .fluent-cart-checkout-page button,
.il-product-shell button {
    background-image: none !important;
    box-shadow: none !important;
    border-radius: var(--il-radius-sm) !important;
    min-height: 44px;
    font-weight: 600;
    text-decoration: none !important;
}

.il-product-shell .fct-buy-now-button,
.il-product-shell .fct-add-to-cart-button {
    background-color: var(--il-forest-900) !important;
    border: 1.5px solid var(--il-forest-900) !important;
    color: var(--il-limestone-50) !important;
}

.il-product-shell .fct-buy-now-button:hover,
.il-product-shell .fct-add-to-cart-button:hover {
    background-color: var(--il-tapial-600) !important;
    border-color: var(--il-tapial-600) !important;
    color: var(--il-on-dark) !important;
}

/* --- Umbral Legado: encabezados marfil/dorado, jamás selva --- */

body.il-legado-page #il-legado :is(h1, h2, h3, h4, h5, h6):not(.text-gold):not(.text-amber) {
    color: var(--il-on-dark);
}

/* --- P2 · Home (portadas 2/1065/1524/1967): scrim y marfil SOLO en fotografía real ---
   Nunca más selectores ciegos por overlay: las secciones claras con
   mandala llevan overlay decorativo y quedaban blanco-sobre-blanco.
   Portabilidad Staging: además de los IDs conocidos se usa
   `body.page:not(.page-template-page-umbral-legado)` para que la Home EN
   (publicada 1524 o cualquier borrador con ID nuevo) herede las mismas
   reglas; los `elementor-element-*` son exclusivos de la maqueta Home. */

/* A. Las 3 secciones fotográficas oscuras (IDs estables en las 4 portadas) */
body.il-theme-caliza.home :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d),
body.il-theme-caliza.page:not(.page-template-page-umbral-legado) :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) {
    isolation: isolate;
}

body.il-theme-caliza.home :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) > .elementor-background-overlay::after,
body.il-theme-caliza.page:not(.page-template-page-umbral-legado) :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) > .elementor-background-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(8, 12, 10, 0.22) 0%, rgba(8, 12, 10, 0.58) 100%);
    pointer-events: none;
}

body.il-theme-caliza.home :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) .elementor-heading-title,
body.il-theme-caliza.page:not(.page-template-page-umbral-legado) :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) .elementor-heading-title {
    color: var(--il-on-dark) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

body.il-theme-caliza.home :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) :is(h1, h2, h3, h4, h5, h6),
body.il-theme-caliza.page:not(.page-template-page-umbral-legado) :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) :is(h1, h2, h3, h4, h5, h6) {
    color: var(--il-on-dark) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

body.il-theme-caliza.home :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) .elementor-widget-heading p,
body.il-theme-caliza.page:not(.page-template-page-umbral-legado) :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) .elementor-widget-heading p {
    color: var(--il-on-dark) !important;
}

body.il-theme-caliza.home :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) .elementor-widget-text-editor,
body.il-theme-caliza.home :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) .elementor-widget-text-editor p,
body.il-theme-caliza.page:not(.page-template-page-umbral-legado) :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) .elementor-widget-text-editor,
body.il-theme-caliza.page:not(.page-template-page-umbral-legado) :is(.elementor-element-37b29699, .elementor-element-5c6f1d3, .elementor-element-56f4049d) .elementor-widget-text-editor p {
    color: var(--il-on-dark-muted) !important;
}

/* B. Secciones claras con mandala: tinta verde selva profunda, sin sombra.
   En 79341742 se limita a los encabezados de primer nivel para no pintar de
   oscuro el texto que vive sobre las 4 tarjetas fotográficas internas. */
body.il-theme-caliza.home :is(.elementor-element-49cc0436, .elementor-element-4af25310, .elementor-element-165abb17) :is(.elementor-heading-title, .elementor-icon-box-title, h1, h2, h3, h4, h5, h6),
body.il-theme-caliza.home .elementor-element-79341742 > .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title,
body.il-theme-caliza.home .elementor-element-79341742 > .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget-heading :is(h1, h2, h3, h4, h5, h6),
body.il-theme-caliza.page:not(.page-template-page-umbral-legado) :is(.elementor-element-49cc0436, .elementor-element-4af25310, .elementor-element-165abb17) :is(.elementor-heading-title, .elementor-icon-box-title, h1, h2, h3, h4, h5, h6),
body.il-theme-caliza.page:not(.page-template-page-umbral-legado) .elementor-element-79341742 > .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title,
body.il-theme-caliza.page:not(.page-template-page-umbral-legado) .elementor-element-79341742 > .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget-heading :is(h1, h2, h3, h4, h5, h6) {
    color: #1B3B2B !important;
    text-shadow: none !important;
}

/* === OLA P2: Header Claro con Logo Oficial + Botones Modernos Pill Ámbar/Selva === */
/*
   Directiva del propietario: conservar el logotipo oficial `InLakech-web.png`
   sobre superficie clara (#FFFFFF) y sustituir los CTAs planos/cuadrados por
   cápsulas modernas con el ADN de la píldora `STAGING · SANDBOX`
   (terracota/cobre + ribete ámbar, o selva profunda + ribete oro henequén).
   Prefijo `body` para ganar a las reglas P0 que blindan texto marfil sobre
   selva; `:not(.page-template-page-umbral-legado)` preserva intacto el canvas
   cinematográfico de /participa/.
*/

/* --- 1. Header global claro con logotipo oficial --- */

body .il-site-header {
    background: rgba(255, 255, 255, 0.97) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    color: var(--il-forest-900) !important;
    border-bottom: 1px solid rgba(27, 59, 43, 0.11) !important;
    box-shadow: 0 2px 16px rgba(27, 59, 43, 0.05);
    position: sticky;
    top: 0;
    z-index: 900;
}

body.admin-bar .il-site-header { top: 32px; }

@media (max-width: 782px) {
    body.admin-bar .il-site-header { top: 46px; }
}

body .il-site-header a,
body .il-site-header .il-brand,
body .il-site-header .il-brand__title,
body .il-site-header .il-brand__name {
    color: var(--il-forest-900) !important;
    text-decoration: none;
}

body .il-site-header .il-site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

@media (min-width: 1240px) {
    body .il-site-header .il-site-header__inner {
        flex-wrap: nowrap !important;
    }
}

/* Ventana intermedia 1024–1279.98 px eliminada: se resuelve con el layout
   compacto de «OLA P3 · Header Responsive» (< 1240 px). */

@media (max-width: 1239.98px) {
    body .il-site-header .il-site-header__inner {
        flex-wrap: wrap;
        min-height: 0;
        padding: 0.55rem var(--il-gutter);
        row-gap: 0.35rem;
    }
}

/* Logotipo oficial: nítido, sin deformar, siempre sobre claro */
body .il-site-header .il-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 0;
}

body .il-site-header .il-brand__logo {
    display: block !important;
    height: 56px !important;
    width: auto !important;
    max-width: 190px !important;
    max-height: 56px !important;
    object-fit: contain;
    border-radius: 0;
}

/* Si el logo oficial ya está presente, el rótulo heredado no compite con él
   (`font-size: 0` neutraliza el nodo de texto suelto «In Lak'ech» del shell). */
body .il-site-header .il-brand:has(.il-brand__logo) {
    font-size: 0 !important;
    gap: 0;
    line-height: 0;
}

body .il-site-header .il-brand:has(.il-brand__logo) > span {
    display: none !important;
}

@media (max-width: 1239.98px) {
    body .il-site-header .il-brand__logo {
        height: 42px !important;
        max-width: 140px !important;
        max-height: 42px !important;
    }
}

/* Navegación: tinta selva sobre caliza, subrayado ámbar al activar */
body .il-site-header .il-site-nav a,
body .il-site-header .il-site-nav .menu-item > a {
    color: #1B3B2B !important;
    font-family: var(--il-font-sans);
    font-weight: 500;
    font-size: 0.93rem;
    letter-spacing: 0.005em;
    line-height: 1.2;
    padding: 0.45rem 0.25rem;
    border-bottom: 2px solid transparent;
    text-decoration: none !important;
    background-color: transparent !important;
    transition: color 180ms ease, border-color 180ms ease;
}

body .il-site-header .il-site-nav a:hover,
body .il-site-header .il-site-nav a:focus-visible,
body .il-site-header .il-site-nav .current-menu-item > a,
body .il-site-header .il-site-nav a[aria-current="page"] {
    color: #E05310 !important;
    border-bottom-color: #F57328 !important;
    font-weight: 600;
    background-color: transparent !important;
}

@media (max-width: 1239.98px) {
    body .il-site-header .il-site-nav a {
        padding: 0.7rem 0.25rem;
        border-bottom: 1px solid rgba(27, 59, 43, 0.10);
    }
}

/* Toggle móvil: píldora limpia sobre claro */
@media (min-width: 1240px) {
    body .il-site-header .il-nav-toggle,
    body button.il-nav-toggle {
        display: none !important;
    }
}

body .il-site-header .il-nav-toggle,
body button.il-nav-toggle {
    border-radius: 999px !important;
    background: #FBF9F5 !important;
    background-image: none !important;
    color: #1B3B2B !important;
    border: 1.5px solid rgba(27, 59, 43, 0.28) !important;
    padding: 0.6rem 0.95rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

body .il-site-header .il-nav-toggle:hover,
body .il-site-header .il-nav-toggle:focus-visible,
body button.il-nav-toggle:hover,
body button.il-nav-toggle:focus-visible {
    border-color: #E05310 !important;
    color: #E05310 !important;
}

body .il-site-header .il-nav-toggle[aria-expanded="true"] {
    background: #1B3B2B !important;
    color: #FBF9F5 !important;
    border-color: #D6BA7B !important;
}

/* Selector ES/EN inline: cápsula oscura idéntica a Staging */
body .il-site-header .il-header-lang {
    background: #1B3B2B !important;
    border: 1.5px solid #D6BA7B !important;
    border-radius: 999px !important;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 0;
}

body .il-site-header .il-header-lang a {
    color: #FBF9F5 !important;
    border-radius: 999px;
    padding: 3px 9px;
    font-weight: 600;
    text-decoration: none !important;
    background: transparent !important;
    transition: background-color 180ms ease, color 180ms ease;
}

body .il-site-header .il-header-lang a:hover,
body .il-site-header .il-header-lang a:focus-visible {
    color: #F7E8C7 !important;
}

body .il-site-header .il-header-lang a[aria-current="page"],
body .il-site-header .il-header-lang a.is-active {
    background: #F7E8C7 !important;
    color: #1B3B2B !important;
    font-weight: 700;
}

/* --- 2. Sistema moderno de botones (pill + ribete ámbar/oro) --- */

/* A. Conversión / acento principal — Naranja Vivo In Lak'ech (cero marrón) */
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-site-header .il-cta,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .elementor-button,
body.il-theme-caliza:not(.page-template-page-umbral-legado) a.elementor-button,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-module--newsletter button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #F57328 0%, #E05310 100%) !important;
    border: 1.5px solid #FDBA74 !important;
    color: #FFFFFF !important;
    font-family: var(--il-font-sans);
    font-weight: 600 !important;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
    line-height: 1.2;
    padding: 0.68rem 1.45rem !important;
    min-height: 44px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(224, 83, 16, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-site-header .il-cta:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-site-header .il-cta:focus-visible,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .elementor-button:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .elementor-button:focus-visible,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-module--newsletter button[type="submit"]:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-module--newsletter button[type="submit"]:focus-visible {
    background: linear-gradient(135deg, #FF8138 0%, #EA580C 100%) !important;
    border-color: #FED7AA !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(224, 83, 16, 0.36) !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-site-header .il-cta:focus-visible,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .elementor-button:focus-visible,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-module--newsletter button[type="submit"]:focus-visible {
    outline: 2px solid #F57328 !important;
    outline-offset: 3px !important;
}

/* B. Primario institucional / fiduciario — selva profunda + ribete oro henequén */
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-btn--primary,
body.il-theme-caliza:not(.page-template-page-umbral-legado) a.il-btn--primary,
body.il-theme-caliza:not(.page-template-page-umbral-legado) a.il-btn--primary:visited,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-vault-form button[type="submit"],
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-newsletter-subscribe button[type="submit"],
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-product-shell .fct-buy-now-button,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-product-shell .fct-add-to-cart-button {
    border-radius: 999px !important;
    background: linear-gradient(135deg, #1F5137 0%, #153A27 100%) !important;
    border: 1.5px solid #D6BA7B !important;
    color: #FBF9F5 !important;
    font-family: var(--il-font-sans);
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.7rem 1.45rem !important;
    min-height: 44px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 4px 12px rgba(27, 59, 43, 0.20), inset 0 1px 0 rgba(251, 249, 245, 0.14) !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-btn--primary:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-btn--primary:focus-visible,
body.il-theme-caliza:not(.page-template-page-umbral-legado) a.il-btn--primary:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) a.il-btn--primary:focus-visible,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-vault-form button[type="submit"]:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-vault-form button[type="submit"]:focus-visible,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-newsletter-subscribe button[type="submit"]:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-newsletter-subscribe button[type="submit"]:focus-visible,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-product-shell .fct-buy-now-button:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-product-shell .fct-add-to-cart-button:hover {
    background: linear-gradient(135deg, #285A41 0%, #1B3B2B 100%) !important;
    border-color: #F59E0B !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(27, 59, 43, 0.28) !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-btn--primary:focus-visible,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-vault-form button[type="submit"]:focus-visible,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-newsletter-subscribe button[type="submit"]:focus-visible {
    outline: 2px solid #F59E0B !important;
    outline-offset: 3px !important;
}

/* C. Secundario / fantasma sobre caliza */
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-btn--ghost,
body.il-theme-caliza:not(.page-template-page-umbral-legado) a.il-btn--ghost,
body.il-theme-caliza:not(.page-template-page-umbral-legado) a.il-btn--ghost:visited {
    border-radius: 999px !important;
    background: #FFFFFF !important;
    color: #1B3B2B !important;
    border: 1.5px solid rgba(27, 59, 43, 0.35) !important;
    padding: 0.68rem 1.35rem !important;
    min-height: 44px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 180ms ease;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-btn--ghost:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-btn--ghost:focus-visible,
body.il-theme-caliza:not(.page-template-page-umbral-legado) a.il-btn--ghost:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) a.il-btn--ghost:focus-visible {
    border-color: #E05310 !important;
    color: #E05310 !important;
    background: #FFFBF4 !important;
    transform: translateY(-1px);
}

body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-btn--ghost:focus-visible {
    outline: 2px solid #F57328 !important;
    outline-offset: 3px !important;
}

/* D. Filtros y pestañas */
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-filter-btn,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-gallery-tabs button,
body.il-theme-caliza:not(.page-template-page-umbral-legado) [data-il-filter-group] button {
    border-radius: 999px !important;
    background-image: none !important;
    background-color: var(--il-limestone-100) !important;
    border: 1.5px solid rgba(27, 59, 43, 0.18) !important;
    color: #1B3B2B !important;
    font-family: var(--il-font-sans);
    font-weight: 600;
    min-height: 44px;
    padding: 0.58rem 1.15rem;
    transition: all 180ms ease;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-filter-btn:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-gallery-tabs button:hover,
body.il-theme-caliza:not(.page-template-page-umbral-legado) [data-il-filter-group] button:hover {
    border-color: #E05310 !important;
    color: #E05310 !important;
    background-color: #FFFBF4 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-filter-btn[aria-pressed="true"],
body.il-theme-caliza:not(.page-template-page-umbral-legado) .il-gallery-tabs button[aria-pressed="true"],
body.il-theme-caliza:not(.page-template-page-umbral-legado) [data-il-filter-group] button[aria-pressed="true"] {
    background: linear-gradient(135deg, #214B36 0%, #163325 100%) !important;
    border-color: #D6BA7B !important;
    color: #FBF9F5 !important;
    box-shadow: 0 4px 12px rgba(27, 59, 43, 0.18) !important;
}

/* Movimiento reducido: sin micro-elevación */
@media (prefers-reduced-motion: reduce) {
    body.il-theme-caliza:not(.page-template-page-umbral-legado) :is(.il-cta, .elementor-button, .il-btn--primary, .il-btn--ghost, .il-filter-btn, .il-gallery-tabs button):hover {
        transform: none !important;
    }
}

/* === OLA P3: Header Responsive Multi-Resolución (320px → 2560px) === */
/*
   Un único breakpoint de header: 1240px. Sustituye la mezcla anterior
   (900px del shell, 1024px y 1024–1279.98px de OLA P/P2) que provocaba que
   «Soberanía Regenerativa» y «Caminos de Participación» se desbordaran entre
   1024px y 1239px montándose sobre el logo y sobre «Comenzar participación».
   No toca breakpoints de grids de contenido ni del single editorial.
   Orden en el DOM: brand(1) · toggle(3) · nav(10) · cta(2) · lang(4).
*/

/* --- Desktop amplio: una sola fila, cero solapamiento (1240px → 2560px) --- */

@media (min-width: 1240px) {
    body .il-site-header .il-nav-toggle,
    body button.il-nav-toggle {
        display: none !important;
    }

    body .il-site-header .il-site-header__inner {
        max-width: 1340px;
        margin: 0 auto;
        padding: 0.6rem clamp(1rem, 2vw, 1.75rem);
        min-height: 82px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: clamp(0.75rem, 1.4vw, 1.5rem);
        flex-wrap: nowrap !important;
    }

    body .il-site-header .il-brand,
    body .il-site-header .il-cta,
    body .il-site-header .il-header-lang {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }

    body .il-site-header .il-brand__logo {
        height: clamp(44px, 3.5vw, 54px) !important;
        width: auto !important;
        max-width: 175px !important;
    }

    body .il-site-header .il-site-nav {
        display: flex !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        justify-content: center;
        overflow: hidden;
    }

    body .il-site-header .il-site-nav ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: center;
        gap: clamp(0.65rem, 1.15vw, 1.35rem) !important;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    body .il-site-header .il-site-nav a {
        font-size: clamp(0.84rem, 0.88vw, 0.93rem) !important;
        white-space: nowrap !important;
        padding: 0.45rem 0.2rem !important;
    }

    body .il-site-header .il-cta {
        white-space: nowrap !important;
        padding: 0.62rem clamp(1rem, 1.25vw, 1.4rem) !important;
        font-size: clamp(0.84rem, 0.88vw, 0.9rem) !important;
    }
}

/* --- Tablet, iPad landscape, laptops compactas y móvil (< 1240px) --- */

@media (max-width: 1239.98px) {
    body .il-site-header .il-site-header__inner {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.6rem !important;
        padding: 0.55rem 1rem !important;
        min-height: 68px !important;
    }

    body .il-site-header .il-brand {
        order: 1;
        flex: 0 0 auto !important;
        margin-right: auto !important;
    }

    body .il-site-header .il-brand__logo {
        height: 42px !important;
        width: auto !important;
        max-width: 140px !important;
    }

    body .il-site-header .il-cta {
        order: 2;
        flex: 0 0 auto !important;
        padding: 0.5rem 1.05rem !important;
        font-size: 0.84rem !important;
        min-height: 40px !important;
        white-space: nowrap !important;
    }

    body .il-site-header .il-nav-toggle {
        order: 3;
        display: inline-flex !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        min-height: 40px !important;
        padding: 0.45rem 0.9rem !important;
    }

    body .il-site-header .il-header-lang {
        order: 4;
        flex: 0 0 auto !important;
    }

    body .il-site-header .il-site-nav {
        order: 10 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        display: none !important;
        margin: 0 !important;
        padding-top: 0.65rem !important;
        border-top: 1px solid rgba(27, 59, 43, 0.10);
    }

    body .il-site-header .il-site-nav.is-open {
        display: block !important;
    }

    body .il-site-header .il-site-nav ul {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.2rem !important;
    }

    body .il-site-header .il-site-nav a {
        display: block !important;
        padding: 0.7rem 0.25rem !important;
        border-bottom: 1px solid rgba(27, 59, 43, 0.08);
    }

    /* Un solo CTA: el shell inyecta «Comenzar participación» como último ítem
       del menú (`li.il-nav-cta`); se oculta para no duplicar la píldora del
       header (fila 1 en tablet, fila propia bajo el menú en móvil). */
    body .il-site-header .il-site-nav .il-nav-cta {
        display: none !important;
    }
}

/* --- Bonus: botones de producto FluentCart como píldoras limpias --- */

body.il-theme-caliza .fct-single-product-page button,
body.il-theme-caliza .fct-product-buttons a,
body.il-theme-caliza .fct-product-buttons button,
body.il-theme-caliza .fct-add-to-cart-button,
body.il-theme-caliza .fct-buy-now-button,
body.il-theme-caliza .fluent-cart-add-to-cart-button {
    border-radius: 999px !important;
}

/* 360 / 390 / 480 px: barra superior SIEMPRE en 1 fila limpia
   Logo (~96px) + ☰ Menú (~86px) + ES/EN (~74px) ≈ 256px < 360px.
   El CTA naranja sale de la barra y aparece centrado, a todo el ancho, solo
   cuando el menú móvil está abierto. */
@media (max-width: 639.98px) {
    body .il-site-header .il-site-header__inner {
        gap: 0.45rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    body .il-site-header .il-brand__logo {
        height: 36px !important;
        max-width: 112px !important;
        max-height: 36px !important;
    }

    body .il-site-header .il-cta {
        display: none !important;
    }

    body .il-site-header:has(.il-site-nav.is-open) .il-cta {
        display: inline-flex !important;
        order: 11 !important;
        width: 100% !important;
        justify-content: center !important;
        margin: 0.6rem 0 0.25rem !important;
    }

    body .il-site-header .il-nav-toggle,
    body button.il-nav-toggle {
        padding: 0.5rem 0.7rem;
        gap: 0.35rem;
    }

    body .il-site-header .il-header-lang {
        padding: 3px 5px;
        gap: 2px;
    }

    body .il-site-header .il-header-lang a {
        padding: 2px 7px;
        min-width: 30px;
        font-size: 10.5px;
    }
}

/* Producto FluentCart en móvil: la rejilla de 2 columnas deja el CTA de
   add-to-cart en ~126px con `white-space: nowrap` y la etiqueta se escapaba
   de la píldora. Una sola columna y etiqueta que envuelve: píldora limpia. */
@media (max-width: 639.98px) {
    .fct-product-buttons-wrap {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.6rem !important;
    }

    .fct-product-buttons-wrap > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .fluent-cart-add-to-cart-button,
    .fct-add-to-cart-button,
    .fct-buy-now-button,
    .fluent-cart-direct-checkout-button {
        max-width: 100% !important;
        white-space: normal !important;
    }

    .fluent-cart-add-to-cart-button .text,
    .fct-add-to-cart-button .text {
        white-space: normal !important;
        text-align: center;
    }
}

/* === OLA P3 · Contraste sobre tarjetas fotográficas (CTA skin-cover / flip-box) ===
   El selector global `body.il-theme-caliza h3` pinta `--il-forest-900` y dejaba
   ilegible el título sobre foto oscura (solo la descripción era blanca).
   Aquí se fuerza blanco ÚNICAMENTE dentro de overlays fotográficos; las
   secciones claras conservan su verde selva. */
body.il-theme-caliza .elementor-cta--skin-cover .elementor-cta__title,
body.il-theme-caliza .elementor-cta--skin-cover :is(h1, h2, h3, h4, h5, h6),
body.il-theme-caliza .elementor-cta--skin-cover .elementor-cta__description {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* El 0.18→0.72 original dejaba la 2.ª tarjeta en ~7.3:1 sobre foto clara.
   0.30→0.80 asegura ≥ 9:1 en las cuatro sin apagar la fotografía. */
body.il-theme-caliza .elementor-cta--skin-cover .elementor-cta__bg-overlay {
    background: linear-gradient(180deg, rgba(10, 18, 14, 0.36) 0%, rgba(10, 18, 14, 0.84) 100%) !important;
}

/* Reverso de flip-box (degradado terracota oscuro): el título heredaba
   `--il-forest-900` y quedaba en ~1.8:1. Blanco + sombra lo lleva a ~6.6:1
   en el extremo oscuro. `!important` porque la regla del kit añade `:not()`
   y gana por especificidad. */
body.il-theme-caliza .elementor-flip-box__back :is(h1, h2, h3, h4, h5, h6),
body.il-theme-caliza .elementor-flip-box__back :is(.elementor-flip-box__layer__title, .elementor-flip-box__layer__description) {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* Velo sobre el degradado terracota→arena: sin él el blanco solo alcanzaba
   ~3.6:1. Con el scrim se mantiene el terracota y sube a ~5:1. */
body.il-theme-caliza .elementor-flip-box__back .elementor-flip-box__layer__overlay {
    background: linear-gradient(180deg, rgba(10, 18, 14, 0.35) 0%, rgba(10, 18, 14, 0.68) 100%) !important;
}

/* =========================================================================
   OLA 6 · SDD 019 — Home: reverso de flip-box Naranja Vivo y footer legible
   =========================================================================
   Medición previa (Staging rc.5, 1440×900): el reverso heredaba del kit el
   degradado terracota→arena (rgb(160,82,45) → rgb(214,186,123)) con velo
   oscuro y texto blanco; los h2 del footer heredaban del kit 40px Cormorant
   600 #E4CB92, al mismo tamaño que los h2 de sección.

   Contraste calculado (WCAG 2.1, luminancia relativa):
     #0A120E sobre #F57328 = 6.66:1   (AA normal y grande)
     #0A120E sobre #E05310 = 4.90:1   (AA normal y grande)
     #FFFFFF sobre #F57328 = 2.85:1   (falla AA) → se descarta el texto claro
     #D9D3C4 sobre #1B3B2B = 8.24:1   (enlaces del footer)
     #E4CB92 sobre #1B3B2B = 7.77:1   (rótulos del footer)
   ========================================================================= */

/* F1 · Guard del reverso: el Naranja Vivo de los botones, aislado del kit y de
   una posible regeneración de CSS de Elementor (riesgo R4). `body.home` cubre
   el Home ES y su par EN sin enumerar IDs de página. */
body.il-theme-caliza.home .elementor-widget-flip-box .elementor-flip-box__back {
    background-image: linear-gradient(135deg, #F57328 0%, #E05310 100%) !important;
}

/* F1 · El velo oscuro de OLA P3 (0.35 → 0.68) apagaba el gradiente a marrón;
   se neutraliza para que el reverso muestre el naranja puro. */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back .elementor-flip-box__layer__overlay {
    background: transparent !important;
}

/* F1 · Texto del reverso en tinta selva: 4.90:1 en el extremo más oscuro del
   gradiente (4.90–6.66:1). Especificidad (0,5,2) para ganar a la regla del kit
   con `:not()` y a la regla de títulos del Home que fija `--il-forest-900`. */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back
    :is(h1, h2, h3, h4, h5, h6,
        .elementor-flip-box__layer__title,
        .elementor-flip-box__layer__description) {
    color: #0A120E !important;
    text-shadow: none !important;
}

/* F2 · Rótulos del footer: etiquetas de 17px, mayúsculas y tracking amplio.
   Los h2 de sección del Home (40px display) no se tocan: el selector exige
   `footer.il-site-footer .il-footer-col`. Sin `clamp()`: idéntico a 390px. */
footer.il-site-footer .il-footer-col > h2,
footer.il-site-footer .il-footer-col > .il-footer-title {
    font-family: var(--il-font-sans) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.14em !important;       /* ≥ 0.08em */
    text-transform: uppercase !important;
    color: var(--il-on-dark-gold, #E4CB92) !important;
    margin: 0 0 0.875rem !important;
}

/* F2 · Enlaces del footer: 15px, caliza apagada, 8.24:1 sobre selva. */
footer.il-site-footer .il-footer-col a {
    font-size: 0.9375rem !important;         /* 15px */
    color: var(--il-on-dark-muted, #D9D3C4) !important;
    line-height: 1.6;
}

footer.il-site-footer .il-footer-col a:hover,
footer.il-site-footer .il-footer-col a:focus-visible {
    color: var(--il-on-dark-gold, #E4CB92) !important;
}

/* =========================================================================
   OLA 8 · SDD 021 — Home: reverso de flip-box en texto claro, hero con
   fotografía y footer de 4 columnas refinado
   =========================================================================
   Bloque ADITIVO: no sustituye ninguna regla anterior (OLA 6 · SDD 019 sigue
   vigente y estas reglas ganan por orden de aparición con igual especificidad).

   F1 · Reverso de flip-box con texto CLARO sobre el Naranja Vivo
   ---------------------------------------------------------------------
   Se conserva el degradado `linear-gradient(135deg,#F57328 0%,#E05310 100%)`
   y el frente `rgb(251,249,245)`. El texto claro necesita un velo porque el
   blanco puro sobre el naranja crudo solo alcanza 2.85:1 (falla AA):

     #FFFFFF sobre #F57328 (sin velo)              = 2.85:1  ✗
     #FFFFFF sobre #E05310 (sin velo)              = 3.88:1  (solo grande)
     #FFFFFF sobre compuesto rgb(198,96,35)        = 4.12:1  ✓ AA grande
     #FFFFFF sobre compuesto rgb(181,70,16)        = 5.46:1  ✓ AA grande

   Velo `rgba(10,18,14,0.20)`: el máximo permitido por el requisito. No llega
   a 4.5:1 para texto normal (4.12:1), por eso el CUERPO pasa a 18.67px/700
   (14pt bold = umbral WCAG de texto grande) y ambos roles cumplen 1.4.3 AA
   (>= 3:1). El título ya es grande: 25px/500 (>= 24px). Se descarta la tinta
   `#0A120E` de OLA 6 (6.66:1) porque el requisito pide texto claro.

   F2 · Hero fotográfico (Hamaca-Cabania) en la sección superior del Home
   ---------------------------------------------------------------------
   La estructura real de Elementor (`data-elementor-type="wp-page"`) ya trae
   `.elementor-background-overlay` en la primera `.elementor-top-section`; se
   usa ese nodo (no un `::before` duplicado) con `!important` para impedir que
   el editor lo revierta. `:has()` cubre el caso de un hero sin overlay en el
   tema regenerado. Orden de capas del hero (de atrás a adelante):
   fondo de la sección -> overlay de imagen (opacity 0.57) -> scrim `::after`
   (z-index 1) -> `.elementor-container` (z-index 2, contenido interactivo).

   F3 · Footer de 4 columnas (mismo markup y shortcode)
   ---------------------------------------------------------------------
   Rótulos 17px uppercase 0.12em `#E4CB92` (7.77:1), enlaces 15px `#D9D3C4`
   (8.24:1), hover `#FFF7ED` con subrayado Naranja Vivo (texto 11.59:1),
   copyright `rgba(251,249,245,.82)` (8.44:1) sobre Selva `#1B3B2B`.
   ========================================================================= */

/* F1 · Velo sutil (alpha 0.20, el máximo permitido) para que el texto claro
   cumpla AA grande sin apagar el Naranja Vivo. */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back
    .elementor-flip-box__layer__overlay {
    background: rgba(10, 18, 14, 0.20) !important;
}

/* F1 · Texto del reverso en blanco puro (mejor contraste disponible). */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back
    :is(h1, h2, h3, h4, h5, h6,
        .elementor-flip-box__layer__title,
        .elementor-flip-box__layer__description) {
    color: #FFFFFF !important;
}

/* F1 · El cuerpo se eleva a 18.67px/700 (14pt bold) para entrar en el umbral
   de "texto grande" de WCAG: 4.12:1 >= 3:1. El título conserva 25px/500. */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back
    .elementor-flip-box__layer__description {
    font-size: 1.1875rem !important;   /* 19px = 14.25pt bold (texto grande WCAG) */
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

/* F2 · Altura mínima de hero en desktop (el contenido no se desplaza: la
   imagen vive en el overlay absoluto, no en el flujo). */
@media (min-width: 992px) {
    body.il-theme-caliza.home
        [data-elementor-type="wp-page"] > .elementor-top-section:first-of-type {
        min-height: 700px;
    }
}

/* F2 · Overlay fotográfico real del hero: top right, cover, opacidad 0.57.
   Ruta relativa a uploads (Zero-Secrets). */
body.il-theme-caliza.home
    [data-elementor-type="wp-page"] > .elementor-top-section:first-of-type
    > .elementor-background-overlay {
    background-image: url("/wp-content/uploads/2022/01/Hamaca-Cabania.jpg") !important;
    background-image: image-set(
        url("/wp-content/uploads/2022/01/Hamaca-Cabania-1024x683.webp") type("image/webp") 1x,
        url("/wp-content/uploads/2022/01/Hamaca-Cabania.jpg") type("image/jpeg") 1x
    ) !important;
    background-position: right top !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    opacity: 0.57 !important;
}

/* F2 · El scrim de P2 vive en `.elementor-background-overlay::after` y queda
   atenuado por la `opacity: 0.57` del overlay (efectivo ~0.12→0.33). Se
   neutraliza ahí y se repinta a fuerza plena sobre la sección para que el H1
   conserve AA (>= 4.5:1) sobre las zonas claras de la fotografía. */
body.il-theme-caliza.home
    .elementor-element-37b29699 > .elementor-background-overlay::after {
    content: none !important;
}

body.il-theme-caliza.home .elementor-element-37b29699::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: linear-gradient(180deg, rgba(8, 12, 10, 0.40) 0%, rgba(8, 12, 10, 0.72) 100%);
}

body.il-theme-caliza.home .elementor-element-37b29699 > .elementor-container {
    position: relative;
    z-index: 2;
}

/* F2 · Respaldo para un hero sin `.elementor-background-overlay` (tema
   regenerado): misma fotografía en `::before` absoluto, sin tocar el flujo. */
body.il-theme-caliza.home
    [data-elementor-type="wp-page"] > .elementor-top-section:first-of-type:not(:has(> .elementor-background-overlay))::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("/wp-content/uploads/2022/01/Hamaca-Cabania.jpg");
    background-image: image-set(
        url("/wp-content/uploads/2022/01/Hamaca-Cabania-1024x683.webp") type("image/webp") 1x,
        url("/wp-content/uploads/2022/01/Hamaca-Cabania.jpg") type("image/jpeg") 1x
    );
    background-position: right top;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.57;
}

/* F2 · Móvil: se centra el encuadre y se baja la opacidad al mínimo del
   rango (0.55) para no competir con el titular. */
@media (max-width: 767px) {
    body.il-theme-caliza.home
        [data-elementor-type="wp-page"] > .elementor-top-section:first-of-type
        > .elementor-background-overlay {
        background-position: center top !important;
        opacity: 0.55 !important;
    }

    body.il-theme-caliza.home
        [data-elementor-type="wp-page"] > .elementor-top-section:first-of-type:not(:has(> .elementor-background-overlay))::before {
        background-position: center top;
        opacity: 0.55;
    }
}

/* F3 · Línea superior divisoria sutil del footer. */
footer.il-site-footer {
    border-top: 1px solid rgba(228, 203, 146, 0.24) !important;
}

/* F3 · Separación consistente entre columnas (y filas cuando el grid cae a 2). */
footer.il-site-footer .il-site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: clamp(1.75rem, 3.2vw, 3.25rem) !important;
    row-gap: clamp(1.75rem, 4vw, 2.5rem) !important;
}

@media (max-width: 1023px) {
    footer.il-site-footer .il-site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 599px) {
    footer.il-site-footer .il-site-footer__grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* F3 · Rótulos: 17px, mayúsculas, tracking 0.12em, oro AA (7.77:1). */
footer.il-site-footer .il-footer-col > h2,
footer.il-site-footer .il-footer-col > .il-footer-title {
    font-family: var(--il-font-sans) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: rgb(228, 203, 146) !important;
    margin: 0 0 0.875rem !important;
}

/* F3 · Enlaces 15px caliza apagada (8.24:1) con subrayado Naranja Vivo al
   pasar el cursor (texto #FFF7ED, 11.59:1) y transición suave. */
footer.il-site-footer .il-footer-col a {
    font-size: 15px !important;
    color: rgb(217, 211, 196) !important;
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

footer.il-site-footer .il-footer-col a:hover,
footer.il-site-footer .il-footer-col a:focus-visible {
    color: #E4CB92 !important;
    text-decoration-color: #F57328;
}

/* F3 · Barra de copyright: separador propio, 13px y contraste 8.44:1. */
footer.il-site-footer .il-site-footer__legal {
    border-top: 1px solid rgba(228, 203, 146, 0.22);
    margin-top: clamp(1.5rem, 3vw, 2rem);
    padding-top: 1rem;
    font-size: 0.8125rem !important;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: rgba(251, 249, 245, 0.82) !important;
}

/* =========================================================================
   OLA 9 · SDD 022 — Home: flip-cards con el estilo ORIGINAL de Producción
   =========================================================================
   Decisión del propietario (26-nov-2026): las flip-cards del Home vuelven al
   aspecto de Producción, por encima del reverso naranja oscurecido de
   OLA 6 · SDD 019 y del texto claro con velo de OLA 8 · SDD 021.

   Bloque ADITIVO: no borra ni reescribe ningún bloque anterior. Las reglas de
   OLA 6/OLA 8 sobre `.elementor-flip-box__back` siguen en el archivo y estas
   ganan por orden de aparición con igual especificidad (0,4,2) `!important`.

   Valores originales MEDIDOS en Producción (referencia exacta):
     frente           background-color  rgb(255, 255, 255)
     reverso          linear-gradient(135deg, rgb(247, 71, 30) 0%,
                                                rgb(247, 151, 47) 100%)
     texto del reverso                  rgb(84, 89, 95)   (#54595F)
     text-shadow                        none

   Contraste WCAG 2.1 (luminancia relativa) — DOCUMENTADO, NO BLOQUEANTE:
     #54595F sobre #F7471E = 1.98:1   (bajo; decisión explícita del propietario)
     #54595F sobre #F7972F = 3.17:1   (bajo; decisión explícita del propietario)
     #54595F sobre #FFFFFF = 7.07:1   (frente, referencia)
   El requisito de accesibilidad se subordina aquí a la paridad visual con
   Producción; 3.17:1 sí alcanza AA para texto grande en el extremo claro del
   degradado, 1.98:1 no alcanza ningún nivel. Riesgo aceptado y registrado.

   El velo de OLA 8 (`rgba(10,18,14,0.20)`) se anula en el reverso: el overlay
   queda transparente y el degradado se ve tal cual. La imagen del hero
   (`Hamaca-Cabania`) NO se toca en este bloque.
   ========================================================================= */

/* 1 · Reverso: degradado original Naranja Vivo → Ámbar (Producción). */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back {
    background-image: linear-gradient(135deg, rgb(247, 71, 30) 0%, rgb(247, 151, 47) 100%) !important;
}

/* 2 · Velo de OLA 8 neutralizado: overlay completamente transparente. */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back
    .elementor-flip-box__layer__overlay {
    background: transparent !important;
}

/* 3 · Texto del reverso en gris pizarra original y sin sombra. Se incluye
   `__inner` para cortar la herencia de blanco que fijaba el bloque P3. */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back
    :is(h1, h2, h3, h4, h5, h6,
        .elementor-flip-box__layer__inner,
        .elementor-flip-box__layer__title,
        .elementor-flip-box__layer__description) {
    color: rgb(84, 89, 95) !important;
    text-shadow: none !important;
}

/* 4 · Frente intacto en blanco puro (antes caliza rgb(251,249,245)). */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__front {
    background-color: rgb(255, 255, 255) !important;
}

/* -------------------------------------------------------------------------
   OLA 9-bis · SDD 022 — Ajuste del propietario (26-nov-2026):
   reverso de flip-cards en BLANCO y con tipografía MÁS PEQUEÑA
   -------------------------------------------------------------------------
   Segunda decisión del propietario sobre el mismo reverso: sobre el gradiente
   original de Producción el texto pasa de gris pizarra `rgb(84,89,95)` a
   blanco puro, y baja de tamaño para que quepa sin apretar el contenido.

   Bloque ADITIVO: no borra ni reescribe nada de OLA 6 / OLA 8 / OLA 9. Estas
   reglas ganan por orden de aparición con igual especificidad `(0,5,1)`.

   Valores finales (medidos en Local tras aplicar):
     color del reverso (título + descripción + `__inner`)   rgb(255, 255, 255)
     título    20px / 500 / line-height 1.3
     descripción 16px / 700 / line-height 1.5
     fondo     linear-gradient(135deg, rgb(247,71,30) 0%, rgb(247,151,47) 100%)
     overlay   transparente · text-shadow none · frente rgb(255,255,255)

   Contraste WCAG 2.1 — DESVIACIÓN ACEPTADA POR EL PROPIETARIO, NO BLOQUEANTE:
     #FFFFFF sobre #F7471E = ~3.0:1  (estimación del propietario; recálculo
                                       WCAG con luminancia relativa: 3.58:1)
     #FFFFFF sobre #F7972F = ~1.9:1  (estimación del propietario; recálculo: 2.23:1)
   Ambos quedan por debajo de AA (4.5:1 / 3:1 para texto grande) en el extremo
   ámbar; se aceptan con el MISMO criterio que el texto gris anterior
   (#54595F: 1.98:1 y 3.17:1), cuya prioridad declarada era la paridad visual
   con Producción y no el ratio de contraste. Riesgo registrado y asumido.
   ------------------------------------------------------------------------- */

/* 5 · Texto del reverso en blanco puro (título, descripción e `__inner`). */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back
    :is(h1, h2, h3, h4, h5, h6,
        .elementor-flip-box__layer__inner,
        .elementor-flip-box__layer__title,
        .elementor-flip-box__layer__description) {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

/* 6 · Título del reverso a 20px (antes 25px del kit), peso 500 intacto. */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back
    :is(h1, h2, h3, h4, h5, h6, .elementor-flip-box__layer__title) {
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

/* 7 · Descripción del reverso a 16px (antes 19px de OLA 8), peso 700 intacto. */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back
    .elementor-flip-box__layer__description {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

/* =========================================================================
   OLA 10 · SDD 023 — Home: flip-cards equilibradas y rótulos de sección en
   el verde institucional del logotipo
   =========================================================================
   Referencia visual del propietario (26-nov-2026): las tarjetas de la
   sección "CONSTRUIR LA VISIÓN" deben mostrar títulos de sección en verde
   institucional, títulos de tarjeta más grandes y descripciones SIN negrita.

   Valores medidos y aprobados sobre la referencia:
     rótulo de sección   Inter 15px / 700 / tracking 0.16em / #7DAA40
                         (#7DAA40 es el verde exacto del logotipo oficial)
     frente de tarjeta   título 30px / 500 / 1.2   descripción 17px / 400 / 1.6
     reverso de tarjeta  título 28px / 500 / 1.25  descripción 17px / 400 / 1.6
     alto de tarjeta     424px en 3 columnas (>=1280),
                         420px apilada (768–1279) y 480px en móvil (<=767)

   Decisiones:
     · La descripción del reverso deja de ser negrita (700 -> 400) y crece a
       17px con 1.6 de interlineado: es el defecto visual que reportó el
       propietario en la captura "antes".
     · El rótulo usa #7DAA40 (verde del logotipo) en lugar del verde selva
       #1B3B2B. Contraste sobre caliza #FBF9F5: 2.59:1. Es una desviación AA
       CONSCIENTE y aceptada por el propietario, igual que las anteriores de
       esta superficie (el criterio declarado es la paridad con la referencia
       visual, no el ratio de contraste).
     · En 768–1279 las tres tarjetas se apilan a todo el ancho: con 3
       columnas estrechas el texto desbordaba la tarjeta (defecto previo
       medido: +130px en 768px). El apilado elimina el desbordamiento.
     · Se conservan intactos el degradado naranja, el frente blanco, el
       overlay transparente, el icono y el efecto 3D de OLA 9 / OLA 9-bis.

   Bloque ADITIVO: no borra ni reescribe OLA 6 / OLA 8 / OLA 9 / OLA 9-bis.
   Gana por orden de aparición y por especificidad (0,8,1) con !important.
   ========================================================================= */

/* A · Rótulos de sección sobre fondo claro: verde institucional del logo.
   Se apunta a los tres widgets concretos para no teñir los rótulos que viven
   sobre la fotografía del hero (blancos) ni el de la sección de vídeo (oscura).
   El selector replica la especificidad de la regla de "secciones claras"
   (design-system.css §5476) para poder sustituir su color. */
body.il-theme-caliza.home
    .elementor-element.elementor-widget.elementor-widget-heading:is(
        .elementor-element-51ff0aaa,   /* ¿QUÉ OFRECEMOS? */
        .elementor-element-276733d5,   /* CONSTRUIR LA VISIÓN */
        .elementor-element-71c8b2eb    /* GALERÍA */
    )
    .elementor-heading-title.elementor-size-default {
    font-family: var(--il-font-sans) !important;
    font-size: 0.9375rem !important;   /* 15px */
    font-weight: 700 !important;
    letter-spacing: 0.16em !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    color: #7DAA40 !important;
    text-shadow: none !important;
}

/* B · Frente de tarjeta: título serif a 30px y descripción con más aire. */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__front
    .elementor-flip-box__layer__title {
    font-size: 30px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}

body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__front
    .elementor-flip-box__layer__description {
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* C · Reverso de tarjeta: título a 28px y descripción LEGIBLE (400, no 700). */
body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back
    :is(h1, h2, h3, h4, h5, h6, .elementor-flip-box__layer__title) {
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    color: #FFFFFF !important;
}

body.il-theme-caliza.home
    .elementor-widget-flip-box .elementor-flip-box__back
    .elementor-flip-box__layer__description {
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #FFFFFF !important;
}

/* D · Alturas responsivas. El alto es fijo por el efecto 3D (las caras se
   posicionan en absoluto), así que se ajusta por rango para que el contenido
   nunca se recorte. En 768–1279 las columnas se apilan a todo el ancho. */
@media (min-width: 1280px) {
    body.il-theme-caliza.home
        .elementor-widget-flip-box .elementor-flip-box {
        height: 424px !important;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    body.il-theme-caliza.home
        .elementor-element-28574e27 > .elementor-container {
        flex-wrap: wrap !important;
    }

    body.il-theme-caliza.home
        .elementor-element-28574e27 > .elementor-container
        > .elementor-column {
        width: 100% !important;
    }

    body.il-theme-caliza.home
        .elementor-widget-flip-box .elementor-flip-box {
        height: 420px !important;
    }
}

@media (max-width: 767px) {
    body.il-theme-caliza.home
        .elementor-widget-flip-box .elementor-flip-box {
        height: 480px !important;
    }
}

/* =========================================================================
   OLA 11 · SDD 024 — Armonía tipográfica del ecosistema
   =========================================================================
   Revisión del propietario (26-nov-2026): «revisa el tamaño de títulos y
   textos y corrige varios títulos de secciones que no están igual» sobre el
   Home y las páginas del proyecto.

   Diagnóstico medido con Playwright en Staging 0.148.1-rc.10:
     1. El Home mezclaba un H5 en Heebo 20px (estilo inline heredado) con el
        resto en Inter, y H6 de 13px Cormorant en el hero frente a los
        rótulos de 15px Inter de OLA 10.
     2. Las tarjetas del hub editorial heredaban el H2 global de 40px en
        lugar de sus 21–25px de diseño: el título de cada tarjeta competía
        con el titular de la página.
     3. Las tarjetas de la Bitácora heredaban el H3 global de 28px en lugar
        de sus 20–24px.
     4. Los artículos traían H2 con tamaños inline mezclados (40px y 28.8px)
        y párrafos a 17.6px.
     5. El cuerpo de texto oscilaba entre 14px y 17.6px según la página.
     6. El CPT `inlakech_newsletter` no recibía el sistema de diseño (H1 de
        49px y footer Cormorant 19px del kit antiguo). Se corrige en
        `functions.php` (`inlakech_child_design_system_active()`).

   Escala editorial única (desktop / móvil):
     H1 56 / 35 · H2 40 / 28 · H3 28 / 24 · H4 20 · H5 17 · H6 15
     cuerpo 17px / 1.7 · excerpt de tarjeta 16px / 1.6 · captions 15px

   Bloque ADITIVO: no borra OLA 6/8/9/10. Restituye los tamaños que las
   reglas globales de `h1..h6` pisaban por especificidad y normaliza el
   texto. El Umbral Legado queda excluido (canvas cinematográfico autónomo).
   ========================================================================= */

/* A · Home y páginas interiores: el H5 (antetítulo del hero y de la página
   de comunidad) deja el Heebo inline heredado y usa Inter 16–17px. */
body.il-theme-caliza:not(.page-template-page-umbral-legado) h5 {
    font-family: var(--il-font-sans) !important;
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.0625rem) !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    letter-spacing: 0.02em !important;
}

body.il-theme-caliza.home h6 {
    font-family: var(--il-font-sans) !important;
    font-size: clamp(0.75rem, 0.45rem + 0.55vw, 0.9375rem) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: clamp(0.12em, 0.04em + 0.12vw, 0.16em) !important;
}

/* B · Cuerpo de texto unificado a 17px/1.7. Se limita a prosa real: los
   párrafos de widgets de texto, el contenido nativo directo y el módulo de
   afiliados. NO se usa `.page-content p` a secas porque también capturaba
   kickers y captions de las plantillas propias (galería, hub, tarjetas). */
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    :is(.elementor-widget-text-editor, .entry-content) :is(p, li),
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .page-content > p,
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .page-content > :is(ul, ol) li,
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-module--affiliates :is(p, li),
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .elementor-cta__description {
    font-family: var(--il-font-sans) !important;
    font-size: 1.0625rem !important;   /* 17px */
    line-height: 1.7 !important;
}

/* C · Prosa editorial: cuerpo y jerarquía interna sin tamaños inline
   mezclados (los artículos traían H2 de 40px y 28.8px en la misma página). */
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-editorial-prose p,
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-editorial-prose li {
    font-size: 1.0625rem !important;
    line-height: 1.7 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-editorial-prose h2 {
    font-size: clamp(1.75rem, 3.6vw, 2.5rem) !important;   /* 28–40px */
    line-height: 1.15 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-editorial-prose h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem) !important;   /* 21.6–28px */
    line-height: 1.2 !important;
}

/* D · Restitución de la escala de cada componente de tarjeta. Las reglas
   globales `body.il-theme-caliza h2/h3` (0,1,2) ganaban a las clases
   (0,1,0); con `!important` recuperan el tamaño con el que se diseñaron. */
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-editorial-card__title {
    font-size: clamp(1.3rem, 1.7vw, 1.55rem) !important;    /* 20.8–24.8px */
    line-height: 1.2 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-editorial-featured__title {
    font-size: clamp(1.5rem, 2.8vw, 2.25rem) !important;    /* 24–36px */
    line-height: 1.16 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-newsletter-card__title {
    font-size: clamp(1.25rem, 2.6vw, 1.5rem) !important;    /* 20–24px */
    line-height: 1.25 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-newsletter-band__title {
    font-size: clamp(1.625rem, 3.2vw, 2.375rem) !important; /* 26–38px */
    line-height: 1.12 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-newsletter-subscribe__title {
    font-size: clamp(1.375rem, 3vw, 1.75rem) !important;    /* 22–28px */
    line-height: 1.2 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-newsletter-teaser__title {
    font-size: clamp(1.25rem, 3vw, 1.625rem) !important;    /* 20–26px */
    line-height: 1.25 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-archetype-card__title {
    font-size: clamp(1.25rem, 2vw, 1.5rem) !important;      /* 20–24px */
    line-height: 1.2 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-gallery-card__title,
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-gallery-video__title {
    font-size: 1.125rem !important;                         /* 18px */
    line-height: 1.25 !important;
}

/* E · Excerpts y captions: el texto pequeño sube a 16/15px para que no haya
   saltos de 14px a 17px entre páginas. */
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-editorial-card__excerpt,
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-newsletter-card__summary,
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-newsletter-subscribe__lede,
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-archetype-card__lede {
    font-size: 1rem !important;        /* 16px */
    line-height: 1.6 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-editorial-featured__excerpt {
    font-size: 1.0625rem !important;   /* 17px */
    line-height: 1.65 !important;
}

body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-gallery-card__caption,
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-gallery-video__summary p,
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-gallery-video__text {
    font-size: 0.9375rem !important;   /* 15px */
    line-height: 1.6 !important;
}

/* F · Tarjetas CTA del Home al mismo tamaño que las flip-cards (30px). */
body.il-theme-caliza.home .elementor-cta__title {
    font-size: 1.875rem !important;
    line-height: 1.2 !important;
}

/* F2 · Título de la matriz de participación al tamaño de las demás
   cabeceras de página (56px desktop / 35px móvil). */
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-matrix__title,
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-matrix__hero h1,
body.il-theme-caliza:not(.page-template-page-umbral-legado)
    .il-matrix__hero .il-matrix__title {
    font-size: clamp(2.125rem, 5vw, 3.5rem) !important;
    line-height: 1.08 !important;
}

/* G · Páginas nativas: el H1 quedaba pegado al header y el módulo de
   afiliados repetía el mismo título de la página en un H2 de 40px. */
body.il-theme-caliza.page .page-header {
    padding: clamp(1.75rem, 4vw, 2.75rem) var(--il-gutter) 0 !important;
}

body.il-theme-caliza.page .il-module--affiliates > h2 {
    display: none !important;
}
