/* ==========================================================================
   Portal de Avisos Legales — El Marino / Publilegales · Bienes Nacionales
   Índice: 1 Tokens y temas · 2 Base · 3 Footer del diario · 4 Header · 5 Buscador y portada
           6 Resultados · 7 Aviso (publicacion.php) · 8 Utilidades · 9 Impresión

   TEMAS: cada tema es un bloque  :root[data-theme="clave"]  que sólo redefine variables
   (y unos pocos ajustes puntuales). Se elige desde Administración > Configuración.
   Para crear uno nuevo: copiar un bloque, cambiar la clave y registrarla en PORTAL_THEMES
   (portal.php).
   ========================================================================== */

/* ---------- 1. Tokens y temas ---------- */
@font-face { font-family: 'GobCL'; src: url('gobCL_Light.otf') format('opentype');   font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'GobCL'; src: url('gobCL_Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'GobCL'; src: url('gobCL_Bold.otf') format('opentype');    font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'GobCL'; src: url('gobCL_Heavy.otf') format('opentype');   font-weight: 900; font-style: normal; font-display: swap; }

/* Tema "moderno" (predeterminado) */
:root {
    --bs-body-font-family: 'GobCL', Arial, sans-serif;
    --bb-font-head: inherit;

    --bb-navy: #1a3c6e;          /* color de acción: botones, cabeceras de tarjeta */
    --bb-navy-dark: #0d2b4a;     /* hover de botones */
    --bb-title: #1a3c6e;         /* títulos y textos de énfasis */
    --bb-link: #0f69c4;
    --bb-red: #d9303e;

    --bb-bg: #f4f6f9;
    --bb-surface: #fff;
    --bb-border: #e1e7ef;
    --bb-ink: #1f2a37;
    --bb-muted: #5b6675;
    --bb-zebra: #f7f9fc;
    --bb-chip-bg: #eef2f8;
    --bb-chip-ink: #1a3c6e;
    --bb-field-bg: #fff;
    --bb-field-border: #cfd8e3;

    --bb-head-bg: #fff;
    --bb-head-border: #e1e7ef;
    --bb-head-border-w: 1px;
    --bb-logo-filter: none;

    --bb-hero-bg: linear-gradient(135deg, #0d2b4a 0%, #1a3c6e 55%, #26538f 100%);
    --bb-hero-ink: #fff;
    --bb-hero-chip: rgba(255, 255, 255, .14);
    --bb-hero-pad: 2.25rem 0 4.5rem;
    --bb-panel-lift: -2.5rem;

    --bb-radius: 14px;
    --bb-btn-radius: 10px;
    --bb-card-accent: var(--bb-navy);
    --bb-shadow: 0 1px 2px rgba(16, 32, 64, .05), 0 4px 16px rgba(16, 32, 64, .06);
    --bb-shadow-hover: 0 2px 4px rgba(16, 32, 64, .06), 0 10px 28px rgba(26, 60, 110, .14);
}

/* Tema "clasico": paleta y estilo del portal original (fondo gris claro, cabecera blanca con línea azul, listado plano) */
:root[data-theme="clasico"] {
    --bb-bg: #f8f9fa;
    --bb-link: #0d6efd;
    --bb-head-border: #1a3c6e;
    --bb-head-border-w: 2px;
    --bb-radius: 10px;
    --bb-btn-radius: .375rem;
    --bb-panel-lift: 0rem;
    --bb-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    --bb-shadow-hover: 0 2px 10px rgba(0, 0, 0, .1);
}

/* Tema "institucional": sobrio, esquinas rectas, portada clara */
:root[data-theme="institucional"] {
    --bb-navy: #0a4d9c;
    --bb-navy-dark: #073a78;
    --bb-title: #0a3f7a;
    --bb-link: #0a4d9c;
    --bb-bg: #f3f5f8;
    --bb-border: #d5dce6;
    --bb-chip-bg: #e8eef7;
    --bb-head-border: #c7d1de;
    --bb-hero-bg: #e6eef9;
    --bb-hero-ink: #0a3f7a;
    --bb-hero-chip: rgba(10, 63, 122, .1);
    --bb-hero-pad: 2rem 0 4rem;
    --bb-radius: 4px;
    --bb-btn-radius: 3px;
    --bb-card-accent: #d9303e;
    --bb-shadow: 0 1px 2px rgba(16, 32, 64, .08);
    --bb-shadow-hover: 0 3px 12px rgba(16, 32, 64, .14);
}

/* Tema "editorial": aire de diario impreso */
:root[data-theme="editorial"] {
    --bb-font-head: Georgia, 'Times New Roman', serif;
    --bb-navy: #7d1f2e;
    --bb-navy-dark: #5c1420;
    --bb-title: #7d1f2e;
    --bb-link: #7d1f2e;
    --bb-bg: #faf6ee;
    --bb-surface: #fffdf8;
    --bb-border: #e4dccb;
    --bb-ink: #211d18;
    --bb-muted: #6a6358;
    --bb-zebra: #f6f0e3;
    --bb-chip-bg: #f1e9d8;
    --bb-chip-ink: #5c1420;
    --bb-field-bg: #fff;
    --bb-field-border: #d3c8b0;
    --bb-head-bg: #faf6ee;
    --bb-head-border: #211d18;
    --bb-head-border-w: 3px;
    --bb-hero-bg: #faf6ee;
    --bb-hero-ink: #211d18;
    --bb-hero-chip: rgba(33, 29, 24, .07);
    --bb-hero-pad: 2rem 0 4rem;
    --bb-radius: 2px;
    --bb-btn-radius: 2px;
    --bb-shadow: 0 1px 0 rgba(33, 29, 24, .06);
    --bb-shadow-hover: 0 4px 14px rgba(33, 29, 24, .14);
}

/* Tema "oscuro": lectura nocturna (el aviso legal se mantiene en blanco) */
:root[data-theme="oscuro"] {
    --bb-navy: #2f6fd6;
    --bb-navy-dark: #2559ad;
    --bb-title: #9cc5ff;
    --bb-link: #7db4ff;
    --bb-bg: #0e1621;
    --bb-surface: #17212e;
    --bb-border: #263449;
    --bb-ink: #e6edf5;
    --bb-muted: #9fb0c3;
    --bb-zebra: #1b2735;
    --bb-chip-bg: #22324a;
    --bb-chip-ink: #bcd6ff;
    --bb-field-bg: #101a27;
    --bb-field-border: #33455f;
    --bb-head-bg: #111b28;
    --bb-head-border: #263449;
    --bb-logo-filter: invert(1);
    --bb-hero-bg: linear-gradient(135deg, #0a1220 0%, #12233b 60%, #183055 100%);
    --bb-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --bb-shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .4);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 1rem; background: var(--bb-bg); }
body { background: var(--bb-bg); }
main { color: var(--bb-ink); }
main a:not(.btn) { color: var(--bb-link); }
main .text-muted { color: var(--bb-muted) !important; }
:focus-visible { outline: 3px solid rgba(15, 105, 196, .55); outline-offset: 2px; }
.btn { --bs-btn-border-radius: var(--bb-btn-radius); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--bb-navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

.btn-bb { --bs-btn-color: #fff; --bs-btn-bg: var(--bb-navy); --bs-btn-border-color: var(--bb-navy);
          --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--bb-navy-dark); --bs-btn-hover-border-color: var(--bb-navy-dark);
          --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--bb-navy-dark); --bs-btn-active-border-color: var(--bb-navy-dark);
          --bs-btn-focus-shadow-rgb: 26, 60, 110; font-weight: 700; }
.btn-outline-bb { --bs-btn-color: var(--bb-title); --bs-btn-border-color: var(--bb-border); --bs-btn-bg: var(--bb-surface);
                  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--bb-navy); --bs-btn-hover-border-color: var(--bb-navy);
                  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--bb-navy-dark); --bs-btn-active-border-color: var(--bb-navy-dark);
                  --bs-btn-focus-shadow-rgb: 26, 60, 110; font-weight: 700; border-width: 1.5px; }
/* Botones grandes de acción (aviso): icono y texto siempre centrados, también cuando el texto se parte en dos líneas */
.btn-act { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .6rem 1rem; line-height: 1.2; text-align: center; }
.btn-act i { flex: none; }

/* ---------- 3. FOOTER DEL DIARIO — NO MODIFICAR ----------
   Estilos idénticos a los del footer de diarioelmarino.cl. */
.cs-footer { background: #111; color: #aaa; font-size: 14px; padding: 40px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.cs-footer a { color: #fff; text-decoration: none; }
.cs-footer a:hover { color: #00a8ff; }
.cs-logo img { max-width: 180px; margin-bottom: 15px; }
.pk-social-links-item { display: inline-block; margin-right: 10px; }
.pk-icon { font-size: 18px; }
.footer-nav-menu ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 15px; }
.footer-nav-menu li { margin-bottom: 5px; }
.cs-footer__desc { line-height: 1.6; }
/* Antes el portal forzaba GobCL en todos los div/a/span de la página, footer incluido.
   Se mantiene sólo dentro del footer para que se vea exactamente igual. */
.cs-footer div, .cs-footer a, .cs-footer span { font-family: 'GobCL', Arial, sans-serif !important; }

/* ---------- 4. Header ---------- */
.site-header { background: var(--bb-head-bg); border-bottom: var(--bb-head-border-w) solid var(--bb-head-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; min-width: 0; }
.brand__logo { height: 64px; width: auto; flex: none; }
.brand__title { display: block; color: var(--bb-title); font-family: var(--bb-font-head); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1.25; }
.brand__subtitle { display: block; color: var(--bb-muted); font-size: .85rem; margin-top: .15rem; }
.partners { display: flex; align-items: center; gap: 1rem; padding-left: 1.5rem; border-left: 1px solid var(--bb-border); flex: none; }
.partners img { height: 26px; width: auto; filter: var(--bb-logo-filter); }
@media (max-width: 767.98px) {
    .site-header__inner { flex-direction: column; gap: .9rem; text-align: center; padding: .9rem 0; }
    .brand { flex-direction: column; gap: .5rem; }
    .brand__logo { height: 56px; }
    .partners { border-left: 0; padding-left: 0; }
}

/* ---------- 5. Portada y buscador ---------- */
.hero { background: var(--bb-hero-bg); color: var(--bb-hero-ink); padding: var(--bb-hero-pad); }
.hero h1 { font-family: var(--bb-font-head); font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 700; margin: 0 0 .4rem; }
.hero p { margin: 0; opacity: .85; max-width: 60ch; }
.hero__meta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .3rem .8rem; border-radius: 999px; background: var(--bb-hero-chip); font-size: .82rem; }

.search-panel { position: relative; z-index: 5; background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow-hover); padding: 1.1rem; margin: var(--bb-panel-lift) 0 1.75rem; }
.search-bar { display: flex; align-items: center; gap: .5rem; background: var(--bb-field-bg); border: 1.5px solid var(--bb-field-border); border-radius: var(--bb-btn-radius); padding: .3rem .3rem .3rem 1rem; transition: border-color .15s, box-shadow .15s; }
.search-bar:focus-within { border-color: var(--bb-link); box-shadow: 0 0 0 .2rem rgba(15, 105, 196, .16); }
.search-bar__icon { color: var(--bb-muted); }
.search-bar__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--bb-ink); font-size: 1.05rem; padding: .6rem .25rem; }
.search-bar__input:focus { outline: none; }
.search-bar__input::placeholder { color: var(--bb-muted); opacity: .8; }
.search-bar__btn { padding-inline: 1.5rem; }
.search-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .75rem; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: .25rem 0; color: var(--bb-title); font-weight: 700; }
.link-btn:hover { text-decoration: underline; }
.link-btn .fa-chevron-down { transition: transform .2s; font-size: .75em; margin-left: .35rem; }
.link-btn[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.search-tools a { color: var(--bb-muted) !important; }

.search-panel .form-label { font-size: .74rem; font-weight: 700; color: var(--bb-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.search-panel .form-control, .search-panel .form-select { background-color: var(--bb-field-bg); color: var(--bb-ink); border-color: var(--bb-field-border); border-radius: var(--bb-btn-radius); }
.search-panel .form-control:focus, .search-panel .form-select:focus { border-color: var(--bb-link); box-shadow: 0 0 0 .2rem rgba(15, 105, 196, .16); }
.search-panel .form-select:disabled { opacity: .6; }
.filters-actions { display: flex; justify-content: flex-end; gap: .5rem; padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px solid var(--bb-border); }

/* Autocompletado de solicitantes */
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .25rem; list-style: none; background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: 10px; box-shadow: var(--bb-shadow-hover); max-height: 260px; overflow-y: auto; }
.ac-item { padding: .45rem .7rem; border-radius: 6px; cursor: pointer; font-size: .9rem; color: var(--bb-ink); }
.ac-item[aria-selected="true"], .ac-item:hover { background: var(--bb-chip-bg); }
.ac-empty { padding: .5rem .7rem; color: var(--bb-muted); font-size: .88rem; }

/* ---------- 6. Resultados ---------- */
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .9rem; }
.results-head h2 { font-family: var(--bb-font-head); font-size: 1.3rem; font-weight: 700; color: var(--bb-title); margin: 0; }
.results-head small { color: var(--bb-muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }

.result-card { background: var(--bb-surface); border: 1px solid var(--bb-border); border-left: 4px solid var(--bb-card-accent); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); padding: 1.1rem 1.25rem; margin-bottom: .9rem; transition: box-shadow .2s ease, transform .2s ease; }
.result-card:hover { box-shadow: var(--bb-shadow-hover); transform: translateY(-1px); }
.result-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.result-card__title { font-family: var(--bb-font-head); font-size: 1.05rem; font-weight: 700; text-transform: uppercase; margin: 0; line-height: 1.3; }
.result-card__title a { color: var(--bb-title) !important; text-decoration: none; }
.result-card__title a:hover { text-decoration: underline; }
.result-card__date { flex: none; font-size: .8rem; font-weight: 700; color: var(--bb-muted); white-space: nowrap; }
.result-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 .6rem; }
.result-card__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--bb-muted); font-size: .9rem; line-height: 1.6; margin: 0; }
.result-card__actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .9rem; }
.result-card__actions .btn { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .95rem; }

.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; line-height: 1.2; padding: .28rem .65rem; border-radius: 999px; background: var(--bb-chip-bg); color: var(--bb-chip-ink); }
.chip--primera { background: #e5f4ec; color: #146c43; }
.chip--segunda { background: #fff2dc; color: #8a5a00; }
:root[data-theme="oscuro"] .chip--primera { background: #16382a; color: #7fd8a6; }
:root[data-theme="oscuro"] .chip--segunda { background: #3c3015; color: #f2c66d; }
.chip--filter { background: var(--bb-surface); border: 1px solid var(--bb-border); color: var(--bb-ink); text-decoration: none; padding: .3rem .4rem .3rem .7rem; }
.chip--filter:hover { border-color: var(--bb-link); }
.chip--filter i { color: var(--bb-muted); font-size: .7rem; padding: .2rem; }

.pagination { --bs-pagination-color: var(--bb-title); --bs-pagination-bg: var(--bb-surface); --bs-pagination-border-color: var(--bb-border); --bs-pagination-hover-color: var(--bb-title); --bs-pagination-hover-bg: var(--bb-chip-bg); --bs-pagination-hover-border-color: var(--bb-border); --bs-pagination-disabled-bg: var(--bb-surface); --bs-pagination-disabled-border-color: var(--bb-border); --bs-pagination-active-bg: var(--bb-navy); --bs-pagination-active-border-color: var(--bb-navy); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(26, 60, 110, .2); }

.notice-state { max-width: 560px; background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); padding: 2.5rem 1.5rem; }
.notice-state__icon { display: block; font-size: 2.5rem; color: var(--bb-link); margin-bottom: 1rem; }
.notice-state--warning .notice-state__icon { color: #e0a800; }

@media (max-width: 575.98px) {
    .search-panel { padding: .8rem; }
    .result-card { padding: 1rem; }
    .result-card__top { flex-direction: column; gap: .3rem; }
    .result-card__actions .btn { flex: 1; justify-content: center; }
}

/* ---- Variantes por tema (estructura) ---- */
/* Clásico: sin banda de título (el h1 sigue existiendo para lectores de pantalla) y listado plano en una sola tarjeta blanca */
:root[data-theme="clasico"] .hero { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root[data-theme="clasico"] .search-panel { margin-top: 1.5rem; box-shadow: var(--bb-shadow); }
:root[data-theme="clasico"] .results-list { background: var(--bb-surface); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); padding: 0 1.25rem; }
:root[data-theme="clasico"] .result-card { background: transparent; border: 0; border-bottom: 1px solid #eee; border-radius: 0; box-shadow: none; margin: 0; padding: 15px 0; }
:root[data-theme="clasico"] .result-card:last-child { border-bottom: 0; }
:root[data-theme="clasico"] .result-card:hover { transform: none; box-shadow: none; }
:root[data-theme="clasico"] .result-card__title a { color: var(--bb-link) !important; }
:root[data-theme="clasico"] .chip { border-radius: 4px; }
:root[data-theme="clasico"] .result-card__date { background: #6c757d; color: #fff; padding: .15rem .55rem; border-radius: 4px; }
/* Institucional / Editorial: bordes de sección */
:root[data-theme="institucional"] .hero { border-bottom: 1px solid #c7d1de; }
:root[data-theme="institucional"] .chip, :root[data-theme="editorial"] .chip { border-radius: 3px; }
:root[data-theme="editorial"] .hero { border-bottom: 1px solid #211d18; }
:root[data-theme="editorial"] .hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
:root[data-theme="editorial"] .result-card__title { text-transform: none; font-size: 1.15rem; }
:root[data-theme="editorial"] .search-panel { border-color: #211d18; }
/* Oscuro: flecha del select visible sobre fondo oscuro */
:root[data-theme="oscuro"] .search-panel .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }

/* ---------- 7. Aviso (publicacion.php) ---------- */
/* El aviso es un documento legal: se mantiene con colores fijos (papel blanco) en todos los temas */
.doc-paper { --bb-ink: #1f2a37; --bb-muted: #5b6675; --bb-border: #e1e7ef; --bb-navy: #1a3c6e; --bb-title: #1a3c6e; --bb-link: #0f69c4;
             color: var(--bb-ink); background: #fff; border: 1px solid var(--bb-border); border-radius: 6px; box-shadow: var(--bb-shadow); padding: clamp(1.25rem, 4vw, 3.25rem); }
.doc-paper__logo { max-height: 100px; width: auto; }
.doc-paper__heading { color: var(--bb-navy); }
.doc-paper__body { text-align: justify; hyphens: auto; line-height: 1.75; color: #2b3440; font-size: 1rem; }
.doc-paper__body p:last-child { margin-bottom: 0; }
.doc-paper__legal { text-align: justify; font-size: .85rem; color: var(--bb-muted); line-height: 1.55; }
.doc-paper hr { border-top: 1px solid #cfd6df; opacity: 1; color: inherit; }
.doc-paper__foot { font-size: .75rem; line-height: 1.5; color: var(--bb-muted); }

.side-card { background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); margin-bottom: 1rem; overflow: hidden; }
.side-card__head { background: var(--bb-navy); color: #fff; font-family: var(--bb-font-head); font-weight: 700; padding: .75rem 1rem; margin: 0; font-size: 1rem; }
.side-card__body { padding: 1.1rem; }
.facts { margin: 0; font-size: .88rem; }
.facts > div { display: grid; grid-template-columns: 38% 1fr; gap: .5rem; padding: .55rem 1rem; }
.facts > div:nth-child(odd) { background: var(--bb-zebra); }
.facts dt { color: var(--bb-muted); font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts .is-due dt, .facts .is-due dd { color: #d9303e; font-weight: 700; }
:root[data-theme="oscuro"] .facts .is-due dt, :root[data-theme="oscuro"] .facts .is-due dd { color: #ff8b95; }
.qr-box { width: 150px; height: 150px; border: 1px solid var(--bb-border); border-radius: 8px; padding: 4px; background: #fff; }
@media (min-width: 992px) { .aside-sticky { position: sticky; top: 1rem; } }

.share-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff !important; border: 0; text-decoration: none; transition: transform .15s ease, opacity .15s ease; }
.share-btn:hover { transform: translateY(-2px); opacity: .9; }
.share-btn--wa { background: #25d366; } .share-btn--fb { background: #3b5998; } .share-btn--x { background: #000; } .share-btn--copy { background: #6c757d; }
:root[data-theme="oscuro"] .share-btn--x { background: #333; }

/* Botones de acción sobre el aviso en pantallas pequeñas */
.mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.back-link { color: var(--bb-muted) !important; text-decoration: none; font-size: .9rem; }
.back-link:hover { color: var(--bb-link) !important; }

/* ---------- 8. Utilidades ---------- */
.toast-lite { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); background: #1f2a37; color: #fff; padding: .65rem 1.1rem; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 2000; }
.toast-lite.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- 9. Impresión ---------- */
@media print {
    html, body { background: #fff; }
    .site-header, .no-print, .cs-footer, .skip-link, .toast-lite { display: none !important; }
    .doc-paper { border: 0; box-shadow: none; padding: 0; }
}
