/* FlexCatalog CMS - skin "Ember"
   Calido y aireado, inspirado en el sistema de diseno de Impel
   (#FF5536 con degradado a #FF8D59, radio 10px, sombra 2px 4px 12.9px,
   tinte de hover #FFF3EA, Arimo). Hoja independiente: no hereda
   public.css, solo las plantillas de liquid-glass ("extends").

   Variables que llegan de fuera:
     --primary --secondary --radius                    (Apariencia)
     --e-accent --e-accent-dark --e-accent-fill        (opcion "accentStyle")
     --e-hover-tint                                    (opcion "warmHover")
     --e-radius                                        (opcion "radius")
     --e-shadow --e-shadow-hover                       (opcion "cardShadow")
     --e-body                                          (opcion "bodyFont")
     --container                                       (opcion "containerWidth") */

/* Arimo auto-alojada: cero peticiones a terceros. Subconjunto latin,
   que cubre por completo el espanol. Apache License 2.0. */
@font-face {
    font-family: "Arimo";
    src: url("../fonts/arimo-400.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Arimo";
    src: url("../fonts/arimo-700.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
}

:root {
    /* Respaldos por si el skin se sirve sin sus opciones guardadas */
    --e-accent: #ff5536;
    --e-accent-dark: #e63d1f;
    --e-accent-fill: linear-gradient(84.1deg, #ff5536 0%, #ff8d59 100%);
    --e-hover-tint: #fff3ea;
    --e-radius: 10px;
    --e-shadow: 2px 4px 12.9px 0 rgba(0, 0, 0, .05);
    --e-shadow-hover: 2px 8px 22px 0 rgba(0, 0, 0, .1);
    --e-body: "Arimo", Helvetica, Arial, sans-serif;
    --container: 1280px;

    --bg: #ffffff;
    --surface: #ffffff;
    --band-bg: #f8f8f8;
    --text: #222222;
    --muted: #797979;
    --border: #ececec;
    --card: var(--surface);
    --header-h: 78px;
}

html[data-theme="dark"] {
    --bg: #1c1c1c;
    --surface: #262626;
    --band-bg: #202020;
    --text: #f4f4f4;
    --muted: #a6a6a6;
    --border: #363636;
    --card: var(--surface);
    --e-hover-tint: #3a2a22;
    --e-shadow: 2px 4px 12.9px 0 rgba(0, 0, 0, .4);
    --e-shadow-hover: 2px 8px 22px 0 rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --bg: #1c1c1c;
        --surface: #262626;
        --band-bg: #202020;
        --text: #f4f4f4;
        --muted: #a6a6a6;
        --border: #363636;
        --card: var(--surface);
        --e-hover-tint: #3a2a22;
        --e-shadow: 2px 4px 12.9px 0 rgba(0, 0, 0, .4);
        --e-shadow-hover: 2px 8px 22px 0 rgba(0, 0, 0, .55);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0; min-height: 100vh;
    background: var(--bg); color: var(--muted);
    font-size: 16px; line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
/* Especificidad 0,0,2: gana al `body { font-family }` que theme_head()
   emite en linea despues del <link>, para que la opcion bodyFont mande. */
html body { font-family: var(--e-body); }

a { color: var(--e-accent); text-decoration: none; transition: all .3s; }
a:hover { color: var(--e-accent-dark); }
img { max-width: 100%; }

h1, h2, h3 { color: var(--text); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-top: 0; }

.container { max-width: var(--container, 1280px); margin: 0 auto; padding: 0 1.3rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.glass { background: var(--card); border-radius: var(--e-radius); box-shadow: var(--e-shadow); }

/* ---- Cabecera ---- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: var(--surface); box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
}
.site-header .container { display: flex; align-items: center; gap: 1.4rem; height: 100%; }
.site-header .brand { display: flex; align-items: center; gap: .7rem; color: var(--text); font-weight: 700; font-size: 1.24rem; letter-spacing: -.02em; }
.site-header .brand img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--e-radius); }
.site-header .brand-mark {
    width: 40px; height: 40px; flex: none; display: grid; place-items: center;
    background: var(--e-accent-fill); color: #fff; border-radius: var(--e-radius);
}
@media (max-width: 620px) { .site-header .brand-name { display: none; } }

.site-header nav { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.site-header nav a:not(.lang-btn) {
    color: var(--text); font-size: .96rem; font-weight: 700;
    padding: .45rem .2rem; position: relative; transition: color .3s;
}
.site-header nav a:not(.lang-btn)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: var(--e-accent-fill); transition: right .3s;
}
.site-header nav a:not(.lang-btn):hover { color: var(--e-accent); }
.site-header nav a:not(.lang-btn):hover::after, .site-header nav a:not(.lang-btn).active::after { right: 0; }
.site-header nav a:not(.lang-btn).active { color: var(--e-accent); }

.theme-btn, .lang-btn {
    background: var(--band-bg); border: 0; color: var(--text); cursor: pointer;
    border-radius: 5px; min-height: 40px; padding: .4rem .6rem;
    display: grid; place-items: center; transition: all .3s;
}
.lang-btn { font-size: .82rem; font-weight: 700; padding: .5rem .8rem; }
.theme-btn:hover, .lang-btn:hover { background: var(--e-accent-fill); color: #fff; transform: scale(.95); }

/* Los dos botones de la cabecera comparten caja. Sin esto el de idioma
   sale mas alto que el del tema por dos motivos: hereda el interlineado
   del cuerpo (el del tema solo contiene un SVG) y, al ser un <a> dentro
   de la navegacion, le gana `.site-header nav a` (0,2,1) a `.lang-btn`
   (0,1,0) e impone su relleno. De ahi que aqui se use un selector de
   tres clases. */
.site-header nav .theme-btn,
.site-header nav .lang-btn {
    height: 40px; box-sizing: border-box; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 .7rem;
}
.site-header nav .theme-btn { width: 40px; padding: 0; }

/* ---- Hero ---- */
.hero {
    position: relative; overflow: hidden; margin: 1.6rem 0 3rem; text-align: center;
    padding: clamp(3rem, 8vw, 5.5rem) clamp(1.4rem, 5vw, 3rem);
    border-radius: var(--e-radius); color: var(--text);
    background: var(--band-bg);
}
.hero::after {
    /* Halo calido, eco del degradado del original */
    content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%; z-index: 0;
    background: radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--e-accent) 22%, transparent), transparent 70%);
    pointer-events: none;
}
.hero.has-image { background-size: cover; background-position: center; color: #fff; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(28, 20, 16, .55); }
.hero.has-image::after { content: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); margin: 0 auto .8rem; color: inherit; max-width: 20ch; }
.hero.has-image h1 { color: #fff; }
.hero p { font-size: clamp(.98rem, 2vw, 1.15rem); color: inherit; opacity: .85; max-width: 58ch; margin: 0 auto 2rem; }

/* ---- Secciones ---- */
.section { margin: 3.4rem 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin: 0; }
.section-head a { font-size: .94rem; font-weight: 700; }

/* ---- Botones ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 45px; min-width: 140px; padding: .55rem 1.5rem;
    border-radius: 5px; cursor: pointer; font-family: inherit;
    font-size: .95rem; font-weight: 700;
    background: var(--e-accent-fill); color: #fff; border: 0;
    transition: all .3s;
}
.btn:hover { color: #fff; transform: scale(.95); }
.btn.outline { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn.outline:hover { background: var(--e-accent-fill); color: #fff; box-shadow: none; }
.btn.whatsapp { background: #1fb355; }
.btn.block { width: 100%; }

/* ---- Categorias ---- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.category-card {
    display: flex; align-items: center; gap: .7rem; justify-content: center;
    padding: 1.1rem 1rem; color: var(--text); font-weight: 700; font-size: .95rem;
    background: var(--surface); border-radius: var(--e-radius); box-shadow: var(--e-shadow);
    transition: all .3s;
}
.category-card:hover { background: var(--e-hover-tint); color: var(--e-accent); transform: translateY(-3px); box-shadow: var(--e-shadow-hover); }
.category-card .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---- Tarjetas ---- */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.6rem; }
.item-card {
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    background: var(--card); border-radius: var(--e-radius); box-shadow: var(--e-shadow);
    transition: all .3s;
}
.item-card:hover { transform: translateY(-5px); box-shadow: var(--e-shadow-hover); }
.item-card .thumb { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--band-bg); }
.item-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.item-card:hover .thumb img { transform: scale(1.06); }
.item-card .thumb .placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); opacity: .4; }

.item-card .tags { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.tag {
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    padding: .32rem .8rem; border-radius: 5px; color: #fff; background: var(--e-accent-fill);
}
.tag.featured { background: #f2a20c; }
.tag.sold { background: #333333; }
.tag.soon { background: #6d55ff; }

.item-card .body { padding: 1.2rem 1.3rem .5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.item-card h3 { margin: 0; font-size: 1.15rem; }
.item-card h3 a { color: var(--text); transition: color .3s; }
.item-card:hover h3 a { color: var(--e-accent); }
.item-card .meta { color: var(--muted); font-size: .86rem; }
.item-card .attrs { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .84rem; color: var(--muted); }
.item-card .attrs strong { color: var(--text); font-weight: 700; font-size: 1.05rem; }
/* Pie de tarjeta que se tine al pasar, como el original */
.item-card .cta {
    margin: auto -1.3rem -0.5rem; padding: 1rem 1.3rem;
    border-top: 1px solid var(--border); transition: background .3s;
}
.item-card:hover .cta { background: var(--e-hover-tint); }

.color-swatches { display: inline-flex; gap: .3rem; vertical-align: middle; }
.color-swatch { display: inline-block; width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border); }

/* ---- Catalogo ---- */
.catalog-layout { display: grid; gap: 1.6rem; margin: 1.4rem 0 3rem; }
@media (min-width: 900px) { .catalog-layout { grid-template-columns: 280px 1fr; align-items: start; } }

.catalog-toolbar {
    display: flex; gap: .7rem; align-items: center;
    position: sticky; top: calc(var(--header-h) + .7rem); z-index: 45; margin-bottom: 1.2rem;
}
.catalog-toolbar input[type="search"] {
    flex: 1; min-width: 0; min-height: 48px; padding: .7rem 1.2rem; font-size: .98rem; font-family: inherit;
    background: var(--surface); color: var(--text); outline: none;
    border: 0; border-radius: var(--e-radius); box-shadow: var(--e-shadow);
}
.catalog-toolbar input[type="search"]:focus { box-shadow: var(--e-shadow), 0 0 0 2px color-mix(in srgb, var(--e-accent) 45%, transparent); }
.filters-btn { flex: none; position: relative; min-width: auto; }
.filters-badge {
    background: #fff; color: var(--e-accent); font-size: .68rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 5px;
    display: inline-grid; place-items: center; padding: 0 5px; margin-left: .3rem;
}
@media (min-width: 900px) { .filters-btn { display: none !important; } }

.filter-panel { padding: 1.4rem; background: var(--surface); border-radius: var(--e-radius); box-shadow: var(--e-shadow); }
@media (min-width: 900px) { .filter-panel { position: sticky; top: calc(var(--header-h) + 5rem); } }
.filter-panel h3 { margin: 0 0 .7rem; font-size: 1.1rem; }
.filter-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
@media (min-width: 900px) { .filter-panel-head [data-filters-close] { display: none !important; } }
.filter-group { border-top: 1px solid var(--border); padding: .9rem 0; }
.filter-group summary { font-size: .96rem; font-weight: 700; color: var(--text); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "\25be"; color: var(--e-accent); transition: transform .3s; }
.filter-group[open] summary::after { transform: rotate(180deg); }
.filter-group label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; padding: .3rem 0; cursor: pointer; }
.filter-group .count { color: var(--muted); font-size: .82rem; margin-left: auto; }
.filter-group .range-row { display: flex; gap: .5rem; margin-top: .5rem; }
.filter-panel input[type="number"], .filter-panel input[type="search"], .filter-panel select {
    width: 100%; padding: .55rem .8rem; font-size: .9rem; font-family: inherit;
    background: var(--band-bg); color: var(--text); outline: none;
    border: 0; border-radius: 5px;
}
.filter-panel input:focus, .filter-panel select:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--e-accent) 40%, transparent); }
.filter-apply { margin-top: 1.1rem; }

/* Hoja inferior en movil */
@media (max-width: 899px) {
    .filter-panel.sheet-mode {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 96;
        max-height: 82vh; overflow-y: auto; margin: 0;
        border-radius: var(--e-radius) var(--e-radius) 0 0;
        padding-bottom: max(1.4rem, env(safe-area-inset-bottom));
        transform: translateY(105%); transition: transform .3s ease-out;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
    }
    .filter-panel.sheet-mode.open { transform: translateY(0); }
    .filter-panel.sheet-mode .filter-apply { position: sticky; bottom: 0; }
}
.filters-backdrop {
    position: fixed; inset: 0; z-index: 95; background: rgba(28, 20, 16, .5);
    opacity: 0; pointer-events: none; transition: opacity .3s;
}
.filters-backdrop.show { opacity: 1; pointer-events: auto; }
body.sheet-open { overflow: hidden; }

.results-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-bottom: 1.2rem; color: var(--muted); font-size: .92rem; flex-wrap: wrap;
}
.results-meta span { font-weight: 700; color: var(--text); }

/* ---- Paginacion ---- */
.pagination { display: flex; justify-content: center; gap: .5rem; margin: 2.6rem 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 45px; height: 45px; display: grid; place-items: center; padding: 0 .7rem;
    font-size: .92rem; font-weight: 700; color: var(--text);
    background: var(--surface); border-radius: 5px; box-shadow: var(--e-shadow);
    transition: all .3s;
}
.pagination a:hover { background: var(--e-hover-tint); color: var(--e-accent); transform: scale(.95); }
.pagination .current { background: var(--e-accent-fill); color: #fff; }

/* ---- Ficha ---- */
.detail-layout { display: grid; gap: 1.8rem; margin: 1.6rem 0 3rem; }
@media (min-width: 960px) { .detail-layout { grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr); align-items: start; } }
.gallery-main {
    aspect-ratio: 4/3; overflow: hidden; display: grid; place-items: center; cursor: zoom-in;
    background: var(--band-bg); border-radius: var(--e-radius); box-shadow: var(--e-shadow);
}
.gallery-main img, .gallery-main iframe, .gallery-main video { width: 100%; height: 100%; object-fit: cover; border: 0; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: .6rem; margin-top: .7rem; }
.gallery-thumbs button {
    aspect-ratio: 1; padding: 0; cursor: pointer; overflow: hidden;
    display: grid; place-items: center; color: var(--muted);
    background: var(--surface); border: 0; border-radius: var(--e-radius);
    box-shadow: inset 0 0 0 2px var(--border); transition: all .3s;
}
.gallery-thumbs button:hover { transform: scale(.95); }
.gallery-thumbs button.active { box-shadow: inset 0 0 0 2px var(--e-accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-card {
    padding: 1.6rem; background: var(--surface);
    border-radius: var(--e-radius); box-shadow: var(--e-shadow);
    position: sticky; top: calc(var(--header-h) + 1rem);
}
.detail-card h1 { font-size: clamp(1.4rem, 3vw, 1.95rem); margin: 0 0 .35rem; }
.detail-card .crumb { font-size: .86rem; color: var(--muted); margin-bottom: .8rem; }
.detail-card .contact-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.3rem; }

.spec-section { margin-top: 2.6rem; }
.spec-section h2 { font-size: 1.4rem; margin: 0 0 1rem; }
.spec-table {
    width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden;
    background: var(--surface); border-radius: var(--e-radius); box-shadow: var(--e-shadow);
}
.spec-table td { padding: .85rem 1.2rem; border-bottom: 1px solid var(--border); font-size: .93rem; }
.spec-table tr:nth-child(even) td { background: var(--band-bg); }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { color: var(--text); width: 40%; font-weight: 700; }
.prose { line-height: 1.8; }
.prose img { border-radius: var(--e-radius); }

.vendor-box { display: flex; gap: .9rem; align-items: center; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.vendor-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.vendor-box .role { color: var(--muted); font-size: .85rem; }
.doc-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.doc-list li { padding: .55rem 0; border-bottom: 1px solid var(--border); }
.doc-list li:last-child { border-bottom: 0; }

/* ---- Formulario de contacto ---- */
.inquiry { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.inquiry input[type="text"], .inquiry input[type="tel"], .inquiry textarea {
    width: 100%; margin-bottom: .6rem; padding: .7rem 1rem;
    font-size: .93rem; font-family: inherit; color: var(--text);
    background: var(--band-bg); border: 0; border-radius: 5px; outline: none;
}
.inquiry input:focus, .inquiry textarea:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--e-accent) 40%, transparent); }
.inquiry textarea { resize: vertical; min-height: 84px; border-radius: var(--e-radius); }
.inquiry-ok, .inquiry-error { padding: .7rem 1rem; margin: 0 0 .6rem; font-size: .88rem; border-radius: 5px; }
.inquiry-ok { background: color-mix(in srgb, #1fb355 14%, transparent); color: #147d3a; }
.inquiry-error { background: var(--e-hover-tint); color: var(--e-accent-dark); }
html[data-theme="dark"] .inquiry-ok { color: #56d98a; }
html[data-theme="dark"] .inquiry-error { color: #ff9d84; }

/* ---- Vendedores ---- */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; }
.vendor-card {
    text-align: center; padding: 1.7rem 1.2rem;
    background: var(--surface); border-radius: var(--e-radius); box-shadow: var(--e-shadow);
    transition: all .3s;
}
.vendor-card:hover { background: var(--e-hover-tint); transform: translateY(-4px); box-shadow: var(--e-shadow-hover); }
.vendor-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: .8rem; }
.vendor-card h3 { margin: 0; font-size: 1.05rem; }
.vendor-card .role { color: var(--muted); font-size: .86rem; }

/* ---- Superpuestos ---- */
.floating-buttons { position: fixed; right: 1.3rem; bottom: 1.3rem; display: flex; flex-direction: column; gap: .6rem; z-index: 90; }
.floating-buttons a {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: var(--e-accent-fill); box-shadow: 0 6px 18px rgba(255, 85, 54, .35);
    transition: all .3s;
}
.floating-buttons a:hover { transform: scale(.92); }
.floating-buttons a.whatsapp { background: #1fb355; box-shadow: 0 6px 18px rgba(31, 179, 85, .35); }
.floating-buttons a.phone { background: var(--e-accent-fill); }
.floating-buttons a.map { background: #f2a20c; box-shadow: 0 6px 18px rgba(242, 162, 12, .35); }
.floating-buttons a.email { background: #6d55ff; box-shadow: 0 6px 18px rgba(109, 85, 255, .35); }

.cookie-banner {
    position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 60;
    width: min(760px, calc(100vw - 1.6rem)); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
    padding: 1.1rem 1.4rem; background: var(--surface);
    border-radius: var(--e-radius); box-shadow: 0 10px 40px rgba(0, 0, 0, .16);
}
.cookie-banner-text { flex: 1 1 250px; }
.cookie-banner-text strong { color: var(--text); }
.cookie-banner-text p { margin: .3rem 0 0; font-size: .86rem; color: var(--muted); }
.cookie-banner-actions { display: flex; gap: .5rem; margin-left: auto; }
.cookie-banner .btn { min-height: 40px; min-width: auto; padding: .45rem 1.1rem; font-size: .86rem; }

.lightbox {
    position: fixed; inset: 0; z-index: 200; display: none;
    align-items: center; justify-content: center; flex-direction: column; padding: 1rem;
    background: rgba(28, 20, 16, .92);
}
.lightbox.open { display: flex; }
.lightbox .lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.lightbox img {
    max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: var(--e-radius);
    touch-action: none; cursor: zoom-in; will-change: transform;
    -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
    position: absolute; z-index: 2; width: 45px; height: 45px; cursor: pointer;
    display: grid; place-items: center; color: #fff;
    background: rgba(255, 255, 255, .16); border: 0; border-radius: 5px; transition: all .3s;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: var(--e-accent-fill); transform: scale(.95); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .8rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-counter {
    position: absolute; z-index: 2; left: 50%; transform: translateX(-50%);
    bottom: max(1rem, env(safe-area-inset-bottom));
    color: #fff; opacity: .85; font-size: .85rem; font-weight: 700;
    background: rgba(0, 0, 0, .4); padding: .25rem .8rem; border-radius: 5px;
}

/* ---- Pie ---- */
.site-footer {
    margin-top: 3.6rem; padding: 3rem 0 5.5rem;
    color: var(--muted); font-size: .9rem; background: var(--band-bg);
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1.8rem; justify-content: space-between; }
.site-footer strong { color: var(--text); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--e-accent); }

/* ---- Paginas legales y estados ---- */
.legal-page { max-width: 74ch; margin: 2rem auto 4rem; }
.legal-page h1 { margin-bottom: 1.2rem; }
.empty-state {
    text-align: center; color: var(--muted); padding: 3.5rem 1rem;
    background: var(--surface); border-radius: var(--e-radius); box-shadow: var(--e-shadow);
}

/* ---- Esqueletos y accesibilidad ---- */
.skeleton {
    border-radius: 5px;
    background: linear-gradient(90deg, var(--band-bg), color-mix(in srgb, var(--band-bg) 40%, transparent), var(--band-bg));
    background-size: 200% 100%; animation: ember-shimmer 1.3s infinite;
}
.skeleton-card { background: var(--card); box-shadow: var(--e-shadow); }
@keyframes ember-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

:focus-visible { outline: 2px solid var(--e-accent); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; padding: .7rem 1.3rem; background: var(--e-accent); color: #fff; border-radius: 0 0 5px 0; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

html[data-anim="off"] * { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
