/* FlexCatalog CMS - skin "Petrol"
   Taller tecnico inspirado en el sistema de diseno de Autixir
   (#071c1f petroleo + #e53e29 bermellon, radio 0, titulares Rajdhani,
   sombra 0 16px 32px). Hoja independiente: no hereda public.css, solo
   las plantillas de liquid-glass (ver "extends" en theme.json).

   Variables que llegan de fuera:
     --primary --secondary --radius                (Apariencia)
     --p-accent --p-accent-dark                    (opcion "accent")
     --p-display --p-display-track
     --p-display-weight                            (opcion "headingFont")
     --p-radius                                    (opcion "corners")
     --p-band --p-line                             (opcion "surfaceTint")
     --p-shadow --p-shadow-hover                   (opcion "shadowDepth")
     --container                                   (opcion "containerWidth") */

/* Rajdhani auto-alojada: cero peticiones a terceros. Subconjunto latin,
   que cubre por completo el espanol. SIL Open Font License 1.1. */
@font-face {
    font-family: "Rajdhani";
    src: url("../fonts/rajdhani-600.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Rajdhani";
    src: url("../fonts/rajdhani-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 */
    --p-accent: #e53e29;
    --p-accent-dark: #cb3421;
    --p-display: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    --p-display-track: .01em;
    --p-display-weight: 700;
    --p-radius: 0px;
    --p-band: #f2f6f7;
    --p-line: #e5eaee;
    --p-shadow: 0 16px 32px 0 rgba(7, 28, 31, .1);
    --p-shadow-hover: 0 22px 44px 0 rgba(7, 28, 31, .18);
    --container: 1200px;

    --p-ink: #071c1f;
    --p-ink-2: #133236;
    --p-mist: #8cb2b2;

    --bg: #ffffff;
    --surface: #ffffff;
    --text: var(--p-ink);
    --muted: #5d7275;
    --border: var(--p-line);
    --card: var(--surface);
    --header-h: 74px;
}

html[data-theme="dark"] {
    --bg: #071c1f;
    --surface: #0d2a2e;
    --p-band: #061719;
    --p-line: #163b40;
    --text: #eef5f6;
    --muted: #8cb2b2;
    --border: var(--p-line);
    --card: var(--surface);
    --p-shadow: 0 16px 32px 0 rgba(0, 0, 0, .45);
    --p-shadow-hover: 0 22px 44px 0 rgba(0, 0, 0, .6);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --bg: #071c1f;
        --surface: #0d2a2e;
        --p-band: #061719;
        --p-line: #163b40;
        --text: #eef5f6;
        --muted: #8cb2b2;
        --border: var(--p-line);
        --card: var(--surface);
        --p-shadow: 0 16px 32px 0 rgba(0, 0, 0, .45);
        --p-shadow-hover: 0 22px 44px 0 rgba(0, 0, 0, .6);
    }
}

* { 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;
}

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

/* Rajdhani es condensada y de caja alta: pide interlineado corto y un
   punto mas de tamano que una grotesca normal. */
h1, h2, h3 {
    font-family: var(--p-display);
    font-weight: var(--p-display-weight);
    letter-spacing: var(--p-display-track);
    color: var(--text); line-height: 1.15; margin-top: 0;
    text-transform: uppercase;
}
/* El contenido redactado (paginas legales, descripciones) conserva su
   capitalizacion: gritar un aviso de privacidad no ayuda a leerlo. */
.prose h1, .prose h2, .prose h3 { text-transform: none; }

.container { max-width: var(--container, 1200px); margin: 0 auto; padding: 0 1.2rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.glass { background: var(--card); border: 1px solid var(--border); border-radius: var(--p-radius); }

/* Etiqueta de seccion en mayusculas sobre el titulo, marca de la casa */
.section-head h2::before,
.detail-card h1::before { content: none; }

/* ---- Cabecera ---- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 0 4px rgba(7, 28, 31, .08);
}
.site-header .container { display: flex; align-items: center; gap: 1.2rem; height: 100%; }
.site-header .brand {
    display: flex; align-items: center; gap: .7rem; color: var(--text);
    font-family: var(--p-display); font-weight: var(--p-display-weight);
    font-size: 1.42rem; letter-spacing: var(--p-display-track); text-transform: uppercase;
}
.site-header .brand img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--p-radius); }
.site-header .brand-mark {
    width: 40px; height: 40px; flex: none; display: grid; place-items: center;
    background: var(--p-accent); color: #fff; border-radius: var(--p-radius);
}
@media (max-width: 620px) { .site-header .brand-name { display: none; } }

.site-header nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.site-header nav a:not(.lang-btn) {
    color: var(--text); font-family: var(--p-display);
    font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
    padding: .5rem .95rem; border-radius: var(--p-radius);
    border-bottom: 3px solid transparent; transition: color .3s, border-color .3s;
}
.site-header nav a:not(.lang-btn):hover { color: var(--p-accent); }
.site-header nav a:not(.lang-btn).active { color: var(--p-accent); border-bottom-color: var(--p-accent); }

.theme-btn, .lang-btn {
    background: var(--p-band); border: 1px solid var(--border); color: var(--text); cursor: pointer;
    border-radius: var(--p-radius); padding: .5rem .6rem; display: grid; place-items: center;
    transition: background .3s, color .3s;
}
.lang-btn { font-family: var(--p-display); font-size: .92rem; font-weight: 700; padding: .5rem .75rem; }
.theme-btn:hover, .lang-btn:hover { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }

/* 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: 0 0 3rem;
    padding: clamp(3rem, 8vw, 6.5rem) clamp(1.4rem, 5vw, 3.4rem);
    border-radius: var(--p-radius); color: #fff;
    background: var(--p-ink);
    border-left: 6px solid var(--p-accent);
}
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(7, 28, 31, .92) 0%, rgba(7, 28, 31, .38) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5.6vw, 3.6rem); margin: 0 0 .7rem; color: #fff; max-width: 17ch; text-transform: uppercase; }
.hero p { font-size: clamp(.98rem, 2vw, 1.15rem); color: var(--p-mist); max-width: 54ch; margin: 0 0 2rem; }

/* ---- Secciones ---- */
.section { margin: 3.4rem 0; }
.section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-bottom: 1.8rem; padding-left: 1rem; border-left: 5px solid var(--p-accent);
}
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 0; text-transform: uppercase; }
.section-head a {
    font-family: var(--p-display); font-size: 1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}

/* ---- Botones: rectos, altos y en tipografia de titular ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 1rem 2.5rem; border-radius: var(--p-radius); cursor: pointer;
    font-family: var(--p-display); font-size: 1.05rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    background: var(--p-accent); color: #fff; border: 2px solid var(--p-accent);
    transition: background .3s ease 0s, border-color .3s, color .3s;
}
.btn:hover { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn.outline:hover { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
.btn.whatsapp { background: #1fb355; border-color: #1fb355; }
.btn.whatsapp:hover { background: var(--p-ink); border-color: var(--p-ink); }
.btn.block { width: 100%; }
html[data-theme="dark"] .btn:hover { background: #fff; border-color: #fff; color: var(--p-ink); }

/* ---- Categorias ---- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.category-card {
    display: flex; align-items: center; gap: .7rem; padding: 1.15rem 1.1rem;
    background: var(--surface); color: var(--text);
    font-family: var(--p-display); font-size: 1.05rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .03em;
    transition: background .3s, color .3s;
}
.category-card:hover { background: var(--p-accent); color: #fff; }
.category-card:hover .dot { background: #fff !important; }
.category-card .dot { width: 10px; height: 10px; flex: none; }

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

.item-card .tags { position: absolute; top: 0; left: 0; display: flex; gap: 0; flex-wrap: wrap; }
.tag {
    font-family: var(--p-display); font-size: .88rem; font-weight: 700; line-height: 1;
    text-transform: uppercase; letter-spacing: .05em;
    padding: .55rem 1.1rem; color: #fff; background: var(--p-accent);
}
.tag.new { background: var(--p-accent); }
.tag.featured { background: #e08a0b; }
.tag.sold { background: var(--p-ink); }
.tag.soon { background: #1c8f8f; }

.item-card .body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.item-card h3 { margin: 0; font-size: 1.4rem; text-transform: uppercase; }
.item-card h3 a { color: var(--text); }
.item-card h3 a:hover { color: var(--p-accent); }
.item-card .meta { color: var(--muted); font-size: .88rem; }
.item-card .attrs {
    display: flex; flex-wrap: wrap; gap: .3rem 1.4rem;
    padding-top: .8rem; border-top: 1px solid var(--border);
    font-size: .84rem; color: var(--muted);
}
.item-card .attrs strong {
    display: block; color: var(--text);
    font-family: var(--p-display); font-size: 1.22rem; font-weight: 700; letter-spacing: .01em;
}
.item-card .cta { margin-top: auto; padding-top: 1rem; }

.color-swatches { display: inline-flex; gap: .3rem; vertical-align: middle; }
.color-swatch { display: inline-block; width: 15px; height: 15px; border: 1px solid var(--border); }

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

.catalog-toolbar {
    display: flex; gap: .8rem; 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; padding: 1rem 1.2rem; font-size: 1rem; font-family: inherit;
    background: var(--surface); color: var(--text); outline: none;
    border: 1px solid var(--border); border-radius: var(--p-radius);
    box-shadow: var(--p-shadow);
}
.catalog-toolbar input[type="search"]:focus { border-color: var(--p-accent); }
.filters-btn { flex: none; position: relative; }
.filters-badge {
    background: var(--p-accent); color: #fff; font-size: .72rem; font-weight: 700;
    min-width: 18px; height: 18px; 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.5rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--p-radius);
    border-top: 4px solid var(--p-accent);
    box-shadow: var(--p-shadow);
}
@media (min-width: 900px) { .filter-panel { position: sticky; top: calc(var(--header-h) + 5.5rem); } }
.filter-panel h3 { margin: 0 0 .7rem; font-size: 1.2rem; text-transform: uppercase; }
.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-family: var(--p-display); font-size: 1.08rem; font-weight: 700; color: var(--text);
    text-transform: uppercase; letter-spacing: .03em;
    cursor: pointer; list-style: none; display: flex; justify-content: space-between;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "+"; color: var(--p-accent); font-weight: 700; }
.filter-group[open] summary::after { content: "\2212"; }
.filter-group label { display: flex; align-items: center; gap: .5rem; font-size: .92rem; 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: .6rem .8rem; font-size: .92rem; font-family: inherit;
    background: var(--p-band); color: var(--text); outline: none;
    border: 1px solid var(--border); border-radius: var(--p-radius);
}
.filter-panel input:focus, .filter-panel select:focus { border-color: var(--p-accent); }
.filter-apply { margin-top: 1.2rem; }

/* 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: 0; border-bottom: 0;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
        transform: translateY(105%); transition: transform .3s ease-out;
    }
    .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(7, 28, 31, .7);
    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.3rem; padding: .8rem 1.1rem;
    background: var(--p-band); border-left: 4px solid var(--p-accent);
    color: var(--muted); font-size: .92rem; flex-wrap: wrap;
}
.results-meta span { font-family: var(--p-display); font-size: 1.1rem; font-weight: 700; color: var(--text); text-transform: uppercase; }

/* ---- Paginacion ---- */
.pagination { display: flex; justify-content: center; gap: .4rem; margin: 2.8rem 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 48px; height: 48px; display: grid; place-items: center; padding: 0 .7rem;
    font-family: var(--p-display); font-size: 1.05rem; font-weight: 700; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--p-radius);
    transition: background .3s, color .3s, border-color .3s;
}
.pagination a:hover { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
.pagination .current { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }

/* ---- Ficha ---- */
.detail-layout { display: grid; gap: 2rem; 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: 3/2; overflow: hidden; display: grid; place-items: center; cursor: zoom-in;
    background: var(--p-band); border: 1px solid var(--border);
    border-radius: var(--p-radius); box-shadow: var(--p-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(84px, 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: 2px solid var(--border); border-radius: var(--p-radius);
    transition: border-color .3s;
}
.gallery-thumbs button:hover { border-color: var(--p-mist); }
.gallery-thumbs button.active { border-color: var(--p-accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-card {
    padding: 1.8rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--p-radius);
    border-top: 4px solid var(--p-accent); box-shadow: var(--p-shadow);
    position: sticky; top: calc(var(--header-h) + 1rem);
}
.detail-card h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 .4rem; text-transform: uppercase; }
.detail-card .crumb { font-size: .82rem; color: var(--muted); margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.detail-card .contact-actions { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.4rem; }

.spec-section { margin-top: 2.8rem; }
.spec-section h2 { font-size: 1.5rem; margin: 0 0 1rem; padding-left: 1rem; border-left: 5px solid var(--p-accent); text-transform: uppercase; }
.spec-table {
    width: 100%; border-collapse: collapse;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--p-radius);
}
.spec-table td { padding: .9rem 1.2rem; border-bottom: 1px solid var(--border); font-size: .94rem; }
.spec-table tr:nth-child(even) td { background: var(--p-band); }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child {
    color: var(--text); width: 40%;
    font-family: var(--p-display); font-size: 1.05rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .03em;
}
.prose { line-height: 1.85; }
.prose img { border-radius: var(--p-radius); }

.vendor-box { display: flex; gap: 1rem; align-items: center; margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--border); }
.vendor-box img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--p-accent); }
.vendor-box .role { color: var(--muted); font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; }
.doc-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.doc-list li { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.doc-list li:last-child { border-bottom: 0; }

/* ---- Formulario de contacto ---- */
.inquiry { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.inquiry input[type="text"], .inquiry input[type="tel"], .inquiry textarea {
    width: 100%; margin-bottom: .6rem; padding: .8rem 1rem;
    font-size: .94rem; font-family: inherit; color: var(--text);
    background: var(--p-band); border: 1px solid var(--border); border-radius: var(--p-radius); outline: none;
}
.inquiry input:focus, .inquiry textarea:focus { border-color: var(--p-accent); background: var(--surface); }
.inquiry textarea { resize: vertical; min-height: 86px; }
.inquiry-ok, .inquiry-error { padding: .8rem 1rem; margin: 0 0 .6rem; font-size: .89rem; border-left: 4px solid; }
.inquiry-ok { border-color: #1fb355; background: color-mix(in srgb, #1fb355 12%, transparent); color: #147d3a; }
.inquiry-error { border-color: var(--p-accent); background: color-mix(in srgb, var(--p-accent) 12%, transparent); color: var(--p-accent-dark); }
html[data-theme="dark"] .inquiry-ok { color: #56d98a; }
html[data-theme="dark"] .inquiry-error { color: #ff8b7f; }

/* ---- Vendedores ---- */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem; }
.vendor-card {
    text-align: center; padding: 1.8rem 1.2rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--p-radius);
    border-bottom: 4px solid var(--p-accent); box-shadow: var(--p-shadow);
    transition: box-shadow .3s, transform .3s;
}
.vendor-card:hover { box-shadow: var(--p-shadow-hover); transform: translateY(-4px); }
.vendor-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: .9rem; }
.vendor-card h3 { margin: 0; font-size: 1.2rem; text-transform: uppercase; }
.vendor-card .role { color: var(--muted); font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---- Superpuestos ---- */
.floating-buttons { position: fixed; right: 1.2rem; bottom: 1.2rem; display: flex; flex-direction: column; gap: .5rem; z-index: 90; }
.floating-buttons a {
    width: 52px; height: 52px; display: grid; place-items: center; color: #fff;
    background: var(--p-accent); border-radius: var(--p-radius);
    box-shadow: var(--p-shadow); transition: background .3s;
}
.floating-buttons a:hover { background: var(--p-ink); }
.floating-buttons a.whatsapp { background: #1fb355; }
.floating-buttons a.phone { background: var(--p-accent); }
.floating-buttons a.map { background: #e08a0b; }
.floating-buttons a.email { background: #1c8f8f; }

.cookie-banner {
    position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 60;
    width: min(1200px, 100vw); display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
    padding: 1.2rem 1.5rem; background: var(--p-ink); color: var(--p-mist);
    border-top: 4px solid var(--p-accent); border-radius: 0;
}
.cookie-banner-text { flex: 1 1 250px; }
.cookie-banner-text strong { color: #fff; font-family: var(--p-display); font-size: 1.1rem; text-transform: uppercase; }
.cookie-banner-text p { margin: .3rem 0 0; font-size: .87rem; color: var(--p-mist); }
.cookie-banner-actions { display: flex; gap: .6rem; margin-left: auto; }
.cookie-banner .btn { padding: .65rem 1.4rem; font-size: .92rem; }
.cookie-banner .btn.outline { color: #fff; border-color: rgba(255, 255, 255, .35); }

.lightbox {
    position: fixed; inset: 0; z-index: 200; display: none;
    align-items: center; justify-content: center; flex-direction: column; padding: 1rem;
    background: rgba(7, 28, 31, .94);
}
.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;
    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: 48px; height: 48px; cursor: pointer;
    display: grid; place-items: center; color: #fff;
    background: var(--p-accent); border: 0; border-radius: var(--p-radius);
    transition: background .3s;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: #fff; color: var(--p-ink); }
.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; font-family: var(--p-display); font-size: 1rem; font-weight: 700;
    background: var(--p-accent); padding: .3rem .9rem;
}

/* ---- Pie ---- */
.site-footer {
    margin-top: 4rem; padding: 3rem 0 5.5rem;
    color: var(--p-mist); font-size: .9rem;
    background: var(--p-ink); border-top: 4px solid var(--p-accent);
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-footer strong { color: #fff; font-family: var(--p-display); font-size: 1.2rem; text-transform: uppercase; }
.site-footer a { color: var(--p-mist); }
.site-footer a:hover { color: var(--p-accent); }

/* ---- Paginas legales y estados ---- */
.legal-page { max-width: 72ch; margin: 2rem auto 4rem; }
.legal-page h1 { margin-bottom: 1.3rem; text-transform: uppercase; }
.empty-state {
    text-align: center; color: var(--muted); padding: 3.5rem 1rem;
    background: var(--p-band); border-top: 4px solid var(--p-accent);
}

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

:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; padding: .8rem 1.4rem; background: var(--p-accent); color: #fff; font-family: var(--p-display); text-transform: uppercase; }
.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; } }
