:root {
    --radius: 16px;
    --border: #ececec;
    /* Paleta sutil */
    --ink: #111;
    --muted: #667085;
    /* Fondos */
    --surface: #ffffff;
    --surface-2: #f7f7f8; /* gris muy suave */
    --surface-3: #f1f3f5; /* un pelín más */
    --tint: #fff7ed; /* “champagne” muy sutil (toque) */

    --shadow: 0 10px 30px rgba(0,0,0,.06);
    --shadow-sm: 0 6px 18px rgba(0,0,0,.06);
}

body {
    color: var(--ink);
    background: var(--surface-2); /* ya quita el “todo blanco” */
}

.text-secondary {
    color: var(--muted) !important;
}

/* Secciones con fondo */
.section-band {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-white {
    background: var(--surface);
}

.section-tint {
    background: var(--tint);
    border: 1px solid #f5e6d3;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.hero {
    background: linear-gradient(180deg, #fff, #fbfbfb);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--ink);
    display: inline-block;
}


.card-soft {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

    .card-soft:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
        border-color: #dedede;
    }

.img-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f3f3f3;
}

.spec-dl dt {
    color: #555;
    font-weight: 600;
}

.spec-dl dd {
    margin-bottom: .75rem;
}

.prose {
    font-size: 0.95rem;
    line-height: 1.7;
}

    .prose p {
        margin-bottom: 1rem;
    }

/* Gris editorial para textos largos */
.section-editorial {
    background: #f5f6f7; /* gris muy suave, neutro */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Separación consistente entre secciones */
.page-sections > section,
.page-sections > div.section-band,
.page-sections > div.section-editorial,
.page-sections > div.section-white {
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .page-sections > section,
    .page-sections > div.section-band,
    .page-sections > div.section-editorial,
    .page-sections > div.section-white {
        margin-top: 3.25rem;
    }
}

/* ==============================
   Enlaces editoriales (global)
   ============================== */

a {
    color: #111; /* negro suave, no puro */
    text-decoration: none;
}

    a:hover,
    a:focus {
        color: #000;
        text-decoration: underline;
    }

    /* Enlaces secundarios (facets, metadata, etc.) */
    .text-secondary a,
    a.text-secondary {
        color: #555;
    }

        .text-secondary a:hover,
        a.text-secondary:hover {
            color: #222;
        }

/* Cards de cámaras */
.card a {
    color: inherit;
    text-decoration: none;
}

    .card a:hover {
        text-decoration: none;
    }

/* Sidebar facets: forzar underline aunque haya text-decoration-none (Bootstrap usa !important) */
/*.cameras-sidebar a:hover,
.cameras-sidebar a:focus {
    text-decoration: underline !important;
}*/

/* Facets sidebar */
.facet-item {
    padding: .15rem .5rem;
    border-radius: .5rem;
}

/* Activo: editorial, sin símbolos raros */
.facet-active {
    background: rgba(0,0,0,.04);
    /*border-left: 3px solid #111;*/
    padding-left: .5rem;
}

    .facet-active > a {
        font-weight: 600;
        color: #111;
        text-decoration: none; /* evita subrayado permanente */
    }

        .facet-active > a:hover {
            text-decoration: underline; /* solo al hover */
        }

.cameras-sidebar .card-body {
    max-height: 75vh;
    overflow: auto;
}

.cameras-sidebar .fw-semibold {
    position: sticky;
    top: 0;
    background: #fff;
    padding-top: .25rem;
}

.facet-count {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.badge-soft {
    background: rgba(0,0,0,.04);
    border: 1px solid var(--border);
    color: var(--ink);
    border-radius: 999px;
    padding: .45rem .75rem;
    font-weight: 500;
}
    .badge-soft a {
        color: var(--muted);
        text-decoration: underline;
    }

        .badge-soft a:hover {
            color: var(--ink);
        }

.hero .badge-soft {
    line-height: 1.4;
}

.cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}

    .cat-icon svg {
        width: 22px;
        height: 22px;
        stroke: var(--ink);
        stroke-width: 1.8;
        fill: none;
        opacity: .9;
    }


/* Icono categoría (lado derecho) */
.cat-icon-lg {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .cat-icon-lg svg {
        width: 32px;
        height: 32px;
        stroke: var(--ink);
        stroke-width: 1.8;
        fill: none;
        opacity: .9;
    }

@media (max-width: 576px) {
    .cat-icon-lg {
        width: 48px;
        height: 48px;
    }

        .cat-icon-lg svg {
            width: 24px;
            height: 24px;
        }
}

.mono-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 650;
    letter-spacing: .02em;
    color: var(--ink);
    font-size: 1.1rem;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 576px) {
    .mono-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1rem;
    }
}

.dir-card:hover .mono-icon {
    background: rgba(0,0,0,.06);
}

a.home-cta {
    color: var(--muted);
    text-decoration: none;
}

    a.home-cta:hover {
        color: var(--ink);
        text-decoration: underline;
    }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.chip-clear {
    margin-left: .4rem;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: .9em;
}

    .chip-clear:hover {
        color: var(--ink);
        text-decoration: underline;
    }


.hero-home-dark {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

    /* Capa de imagen (antes era parte del background del ::after) */
    .hero-home-dark .hero-media {
        position: absolute;
        inset: 0;
        z-index: 0;
        display: block;
    }

    .hero-home-dark .hero-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        /* lo que antes aplicabas al ::after */
        filter: grayscale(100%) contrast(1.05);
    }

    /* Capa de overlay negro (antes era el linear-gradient del ::after) */
    .hero-home-dark .hero-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.60));
    }

    /* Contenido arriba */
    .hero-home-dark .hero-content {
        position: relative;
        z-index: 2;
        height: 100%;
    }

/* Opcional: si quieres que el hero tenga una altura mínima estable */
.hero-home-dark {
    min-height: 240px;
}

@media (min-width: 992px) {
    .hero-home-dark {
        min-height: 280px;
    }
}


/* Sidebar facets */
.cameras-sidebar .facet-item > a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .5rem;
    border-radius: .6rem;
    color: #111;
    text-decoration: none;
}

    .cameras-sidebar .facet-item > a:hover {
        background: rgba(0,0,0,.035);
    }

/* Activo */
.cameras-sidebar .facet-item.facet-active > a {
    background: rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.14);
    position: relative;
}

    /* Indicador activo */
    .cameras-sidebar .facet-item.facet-active > a::before {
        content: "";
        width: .45rem;
        height: .45rem;
        border-radius: 999px;
        background: #111;
        opacity: .65;
    }

/* contador a la derecha */
.cameras-sidebar .facet-item > a .facet-count {
    margin-left: auto;
    white-space: nowrap;
}


/* Cards */
.card-soft {
    border: 1px solid rgba(0,0,0,.08);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

    .card-soft:hover {
        transform: translateY(-1px);
        border-color: rgba(0,0,0,.16);
        box-shadow: 0 10px 28px rgba(0,0,0,.08);
    }

    /* Si hay links dentro, que el foco sea visible */
    .card-soft:focus-within {
        outline: 2px solid rgba(0,0,0,.35);
        outline-offset: 2px;
        border-radius: .75rem;
    }

/* Links en contenido: negro/gris, no azul */
.page-sections a.text-decoration-none {
    color: inherit;
}

    .page-sections a.text-decoration-none:hover {
        text-decoration: underline !important;
        text-underline-offset: 2px;
    }

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.14);
    background: rgba(0,0,0,.04);
    color: #111;
    font-weight: 400;
}

    .chip .chip-clear {
        margin-left: .35rem;
        padding-left: .45rem;
        border-left: 1px solid rgba(0,0,0,.12);
        color: #111;
        text-decoration: none;
        opacity: .75;
    }

        .chip .chip-clear:hover {
            opacity: 1;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

.alert.alert-light.border {
    border-color: rgba(0,0,0,.12) !important;
    border-radius: 1rem;
}

/* Facet activo: no clicable */
.cameras-sidebar .facet-item.facet-active > a {
    pointer-events: none; /* no se puede clicar */
    cursor: default;
}

    /* Quitamos cualquier efecto hover residual */
    .cameras-sidebar .facet-item.facet-active > a:hover {
        background: rgba(0,0,0,.06);
    }

.sidebar-actions .btn {
    border-color: rgba(0,0,0,.16);
}

    .sidebar-actions .btn:hover {
        border-color: rgba(0,0,0,.26);
    }

@media (min-width: 992px) {
    .cameras-sidebar {
        position: sticky;
        top: calc(76px + 1rem); /* ajusta 72 si tu header es más alto */
        align-self: flex-start;
    }
}

/* Header sticky */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff; /* por si acaso */
    transition: box-shadow .15s ease;
}

    .site-header.is-stuck {
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }



/* Page loading */
.page-loading {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(2px);
    z-index: 2000;
    display: grid;
    place-items: center;
}

.page-loading__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #111;
    opacity: .55;
    animation: pulse 0.75s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% {
        transform: scale(1);
        opacity: .35;
    }

    50% {
        transform: scale(1.6);
        opacity: .75;
    }
}


.card .stretched-link {
    text-decoration: none;
}

/* ===== Paginación estilo Sonria ===== */

.pagination {
    gap: .35rem;
}

    .pagination .page-link {
        border: 1px solid #e5e5e5;
        background: #fff;
        color: #222;
        padding: .45rem .75rem;
        border-radius: 999px; /* pill minimal */
        font-size: .9rem;
        transition: all .15s ease;
    }

        .pagination .page-link:hover {
            background: #111;
            color: #fff;
            border-color: #111;
        }

    .pagination .page-item.active .page-link {
        background: #111;
        border-color: #111;
        color: #fff;
    }

    .pagination .page-item.disabled .page-link {
        background: #f5f5f5;
        color: #aaa;
        border-color: #eee;
        pointer-events: none;
    }

.site-logo {
    height: 36px;
    width: auto;
}

.footer-logo {
    height: 48px;
    width: auto;
    opacity: 0.9;
}

    .footer-logo:hover {
        opacity: 1;
    }

footer {
    border-top: 1px solid #eee;
}

.footer-logo {
    filter: grayscale(100%);
}

.hamburger {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: #111;
    position: relative;
    border-radius: 2px;
}

    .hamburger::before,
    .hamburger::after {
        content: "";
        position: absolute;
        left: 0;
        width: 22px;
        height: 2px;
        background: #111;
        border-radius: 2px;
    }

    .hamburger::before {
        top: -7px;
    }

    .hamburger::after {
        top: 7px;
    }

.site-header .btn:focus {
    box-shadow: none;
}

@media (max-width: 991px) {
    .sidebar-panel {
        margin-bottom: 1.5rem;
    }
}

html {
    scroll-behavior: smooth;
}

.badge.opacity-50 {
    pointer-events: none;
    cursor: default;
}

.cameras-sidebar .facet-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #6c6c6c;
    color: #fff;
    /* Compensa el padding del .card-body (1rem) para que el header “toque” los bordes internos */
    margin: 0 -1rem .5rem -1rem;
    padding: .5rem 1rem;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

    /* Separación suave para que no se mezclen los items al pasar por detrás */
    .cameras-sidebar .facet-heading::after {
        content: "";
        display: block;
        height: 8px;
        margin: 0 -1rem -8px -1rem; /* mismo ancho que el heading */
        background: linear-gradient(to bottom, rgba(108,108,108,1), rgba(108,108,108,0));
        pointer-events: none;
    }




/*.home-collection {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.25rem;
}

.home-collection-prose {
    max-width: 78ch;*/ /* ancho de lectura cómodo */
    /*line-height: 1.7;
}

.home-collection {
    position: relative;
}

    .home-collection::before {
        content: "";
        position: absolute;
        left: 0;
        top: 14px;
        bottom: 14px;
        width: 4px;
        background: #111;*/ /* toque editorial, muy sobrio */
        /*border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
        opacity: .85;
    }

.home-collection-toggle {
    text-decoration: none;
}

    .home-collection-toggle:hover {
        text-decoration: underline;
    }*/


/*
.home-collection {
    padding: 2rem 0;
}

.home-collection-prose {
    max-width: 78ch;
    line-height: 1.8;
    font-size: 1.05rem;
}

    .home-collection-prose p:first-child {
        font-size: 1.15rem;
        color: #333;
    }


*/


.home-collection {
    background: #fafafa;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    padding: 2rem;
}

.home-collection-prose {
    max-width: 78ch;
    line-height: 1.75;
}

/* ---- Mono pills (Home) ---- */
.nav-pills.nav-pills-mono .nav-link {
    background: transparent;
    border: 1px solid rgba(0,0,0,.18);
    color: #111;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-weight: 600;
}

    .nav-pills.nav-pills-mono .nav-link:hover {
        border-color: rgba(0,0,0,.35);
        background: rgba(0,0,0,.03);
        color: #111;
    }

    .nav-pills.nav-pills-mono .nav-link.active {
        background: #111;
        border-color: #111;
        color: #fff;
    }

/* ---- Links "mono" (evita azul por defecto) ---- */
.link-mono {
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,.25);
}

    .link-mono:hover {
        color: #111;
        border-bottom-color: rgba(0,0,0,.55);
    }

/* ---- Botón tipo link para "Leer la historia completa" ---- */
.btn-link.home-link-mono {
    color: #0e0e0e;
    text-decoration: none;
    padding-left: 0;
    font-weight:600;
}

    .btn-link.home-link-mono:hover {
        color: #111;
        text-decoration: none;
    }

    .btn-link.home-link-mono:focus {
        box-shadow: none;
    }


.site-logo, .footer-logo {
    height: auto;
    max-width: 294px;
}

@media (max-width: 991.98px) {
    .site-logo {
        max-width: 180px;
    }
}

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    gap: .35rem; /* equivalente a me-1 aprox */
}

    .nav-link-icon svg {
        width: 1em;
        height: 1em;
        flex: 0 0 auto;
        vertical-align: -0.125em; /* “truco” de Bootstrap Icons */
    }

/* Hace que el collapse móvil ocupe toda la fila cuando se abre */
.site-header #mobileNav.collapse.show {
    flex: 0 0 100%;
}

.site-header #mobileNav {
    width: 100%;
}

