@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --purple: #894695;
    --purple-dark: #66346e;
    --purple-light: #f3eaf5;
    --purple-soft: #eadcf0;

    --white: #fff;
    --text: #29252b;
    --muted: #77717a;
    --bg: #f7f5f8;
    --border: #e6e0e8;

    --danger: #c63b4d;
}


/* =========================================================
   RESET / BASE
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    text-decoration: none;
}


/* =========================================================
   HEADER
========================================================= */

.site-header,
.admin-header {
    background: var(--purple);
}

.site-header .navbar {
    min-height: 84px;
}

.logo-slot {
    width: 230px;
    height: 58px;
    display: block;
    flex: 0 0 230px;
}

.logo-slot img{
    width: 150px;
    height: 58px;
    padding: 0 25px;

   
}


.site-header .nav-link {
    color: #fff !important;
    font-weight: 600;
}

.site-header .nav-link.active {
    font-weight: 800;
}

.user-pill {
    font-size: 0.82rem;
    opacity: 0.95;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--purple-dark),
        var(--purple)
    );

    padding: 72px 0 88px;
}

.hero-content {
    max-width: 850px;
}

.eyebrow {
    display: inline-block;
    color: var(--purple);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
}

.hero .eyebrow {
    color: #fff;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero p {
    max-width: 680px;
    color: #f0e8f2;
    font-size: 1.06rem;
}


/* =========================================================
   BUSCADOR
========================================================= */

.search-box {
    margin-top: 34px;
    height: 62px;

    background: #fff;
    border-radius: 14px;

    display: flex;
    align-items: center;

    padding: 0 20px;

    color: var(--purple);

    box-shadow: 0 16px 40px rgba(59, 24, 66, 0.25);
}

.search-box i {
    font-size: 22px;
}

.search-box input {
    border: 0;
    outline: 0;

    flex: 1;
    height: 100%;

    padding: 0 14px;

    font-size: 1rem;
}

.clear-search {
    border: 0;
    background: transparent;
    color: #8e8791;
    font-size: 18px;
}


/* =========================================================
   TOOLBAR / FILTROS
========================================================= */

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
    margin-bottom: 22px;
}

.category-scroll {
    display: flex;
    gap: 8px;

    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-chip {
    border: 1px solid var(--border);
    background: #fff;

    border-radius: 100px;

    padding: 10px 16px;

    white-space: nowrap;

    color: #5e5960;

    transition: 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

.filter-chip i {
    color: var(--purple);
}

.filter-chip.active i {
    color: #fff;
}

.sort-control {
    display: flex;
    align-items: center;

    gap: 9px;
    white-space: nowrap;
}

.sort-control label {
    font-size: 0.8rem;
    color: var(--muted);
}

.sort-control select {
    width: 100%;
    height: 44px;

    background: #fff;

 
    color: var(--muted);
    font-size: 0.84rem;

    outline: none;
    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

    border: 1px solid var(--border);
    padding: 10px 13px;
    border-radius: 9px;
}


.sort-control select:focus {
    border-color: var(--purple);

    box-shadow:
        0 0 0 3px rgba(91, 45, 145, 0.10);
}


.results-info {
    color: var(--muted);
    font-size: 0.84rem;
    margin-bottom: 14px;
}

/* =========================================================
   GRID DE DOCUMENTOS
========================================================= */

.documents-grid {
    display: grid;

    /*
     * 5 columnas en pantallas grandes.
     * Esto hace las cards más compactas.
     */
    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   PREVIEW DOCUMENTO — PROPORCIÓN A4
========================================================= */

.document-preview {

    /*
     * A4 vertical:
     *
     * 210 × 297
     *
     * aspect-ratio = 0.707
     */
    aspect-ratio: 210 / 297;

    width: 100%;

    /*
     * Ya no usamos una altura fija.
     * La altura se calcula automáticamente
     * según el ancho de la card.
     */

    height: auto;

    background: #eee9ef;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* =========================================================
   MINIATURA PDF
========================================================= */

.document-preview img {

    width: 100%;
    height: 100%;

    /*
     * CONTAIN es importante:
     *
     * muestra la hoja completa
     * sin recortarla.
     */
    object-fit: contain;

    display: block;

    background: #fff;
}


/* =========================================================
   PLACEHOLDER PDF
========================================================= */

.pdf-placeholder,
.no-thumb {

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    color: #c9c2cc;

    width: 100%;
    height: 100%;
}


.pdf-placeholder i,
.no-thumb i {
    font-size: 55px;
}


.pdf-placeholder span {

    font-weight: 800;

    letter-spacing: 0.12em;

    font-size: 0.85rem;
}









/* =========================================================
   BADGES DOCUMENTOS
========================================================= */

.pdf-badge {

    position: absolute;

    top: 9px;
    right: 9px;

    background: #fff;

    color: var(--purple);

    border-radius: 6px;

    padding: 4px 7px;

    font-size: 0.58rem;

    font-weight: 800;

    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


.featured-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    background: #fff;
width: 25px;
height: 25px;
border-radius: 50%;
color: var(--purple);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}




.access-corner {

    position: absolute;

    left: 9px;
    bottom: 9px;

    background:
        rgba(137, 70, 149, 0.95);

    color: #fff;

    border-radius: 6px;

    padding: 4px 7px;

    font-size: 0.58rem;

    font-weight: 700;

    z-index: 2;
}


/* =========================================================
   CUERPO DOCUMENTO
========================================================= */

.document-body {
    padding: 14px;
}


.document-category {

    color: var(--purple);

    font-size: 0.65rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


.document-body h3 {

    font-size: 0.88rem;

    line-height: 1.3;

    margin: 6px 0;
}


.document-body p {

    color: var(--muted);

    font-size: 0.74rem;

    line-height: 1.4;

    height: 34px;

    overflow: hidden;

    margin-bottom: 10px;
}


.document-meta {

    display: flex;

    justify-content: space-between;

    color: #918b93;

    font-size: 0.65rem;

    margin-bottom: 11px;
}

/* =========================================================
   ACCIONES DOCUMENTO
========================================================= */

.document-actions {

    display: flex;

    gap: 6px;
}


.btn-preview,
.btn-download {

    border-radius: 7px;

    min-height: 35px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    font-size: 0.7rem;

    font-weight: 700;

    text-decoration: none;
}


.btn-preview {

    flex: 1;

    border: 1px solid var(--purple);

    background: var(--purple);

    color: #fff;
}


.btn-preview:hover {

    background: var(--purple-dark);

    color: #fff;
}


.btn-download {

    width: 38px;

    background: var(--purple-light);

    color: var(--purple);
}


.btn-download:hover {

    background: var(--purple);

    color: #fff;
}



/* =========================================================
   BOTONES GENERALES
========================================================= */

.btn-farmat {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

.btn-farmat:hover {
    background: var(--purple-dark);
    border-color: var(--purple-dark);
    color: #fff;
}


/* =========================================================
   ESTADOS
========================================================= */

.loading-state,
.empty-state,
.error-state {
    min-height: 220px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: var(--muted);
}

.empty-state i,
.error-state i {
    font-size: 45px;
    margin-bottom: 10px;

    color: var(--purple);
}

.empty-state h3,
.error-state h3 {
    color: var(--text);
}

.scroll-sentinel {
    height: 2px;
    margin-top: 10px;
}


/* =========================================================
   VISOR PDF
========================================================= */

.pdf-modal {
    background: #18141a;
    color: #fff;
    height: 100%;
}

.pdf-modal .modal-header {
    border-bottom: 1px solid #383039;
}

.modal-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

}


.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
   padding: 20px 0px;
}

.pdf-toolbar {
    min-height: 52px;

    background: #241e27;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 8px 14px;

    font-size: 0.85rem;
}

.pdf-tool {
    border: 1px solid #4a3f4d;

    background: #302833;
    color: #fff;

    width: 36px;
    height: 36px;

    border-radius: 7px;
}

.pdf-tool:hover {
    border-color: var(--purple);
    color: #fff;
    background: var(--purple);
}

.toolbar-separator {
    width: 1px;
    height: 24px;

    background: #4a3f4d;
}

.pdf-viewer {
    height: calc(100% - 110px);
    min-height: 500px;

    overflow: auto;

    background: #4a454c;

    padding: 25px;

    text-align: center;
}

#pdfCanvas {
    background: #fff;

    box-shadow:
        0 4px 25px rgba(0, 0, 0, 0.4);

    max-width: 100%;
}


/* =========================================================
   DETALLE DOCUMENTO
========================================================= */

.document-detail {
    background: #fff;

    border-radius: 20px;

    padding: clamp(25px, 5vw, 60px);

    display: grid;

    grid-template-columns: 1fr 320px;

    gap: 60px;

    align-items: center;
}

.document-detail h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;

    color: var(--muted);

    font-size: 0.85rem;
}

.detail-preview {
    height: 420px;

    background: #eee9ef;

    border-radius: 12px;

    overflow: hidden;
}

.detail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   ADMINISTRACIÓN - HEADER
========================================================= */

.admin-header {
    color: #fff;
}

.admin-header-inner {
    min-height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.admin-header-right {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 0.82rem;
}

.admin-page {
    background: var(--bg);
}


/* =========================================================
   ADMINISTRACIÓN - TÍTULO
========================================================= */

.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}

.page-title-row h1 {
    font-size: 2rem;
    font-weight: 800;

    margin: 0;
}


/* =========================================================
   ADMINISTRACIÓN - NAVEGACIÓN
========================================================= */

.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-nav a {
    display: inline-flex;
    gap: 7px;
    align-items: center;

    padding: 10px 15px;

    border-radius: 9px;

    color: #615a63;
    background: #fff;

    border: 1px solid var(--border);

    font-size: 0.84rem;
    font-weight: 700;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}


/* =========================================================
   ADMINISTRACIÓN - ESTADÍSTICAS
========================================================= */

.mini-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-stats > div {
    background: #fff;

    border: 1px solid var(--border);
    border-radius: 10px;

    padding: 9px 14px;

    display: flex;
    align-items: center;

    gap: 8px;

    min-width: 125px;
}

.mini-stats i {
    color: var(--purple);
}

.mini-stats strong {
    font-size: 1rem;
}

.mini-stats span {
    font-size: 0.72rem;
    color: var(--muted);
}


/* =========================================================
   ADMINISTRACIÓN - TABLAS
========================================================= */

.admin-table-card,
.form-card {
    background: #fff;

    border: 1px solid var(--border);
    border-radius: 15px;
}

.admin-table-card {
    overflow: hidden;
}

.admin-table-card .table {
    font-size: 0.82rem;
}

.admin-table-card th {
    font-size: 0.7rem;

    text-transform: uppercase;
    letter-spacing: 0.04em;

    color: #77717a;

    background: #fbfafc;

    border-bottom-color: var(--border);
}

.admin-table-card td {
    border-bottom-color: var(--border);
}


/* =========================================================
   BADGES ADMINISTRACIÓN
========================================================= */

.code-badge,
.order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--purple-light);
    color: var(--purple-dark);

    border-radius: 7px;

    padding: 5px 8px;

    font-weight: 800;
    font-size: 0.72rem;
}

.order-badge {
    min-width: 30px;
}

.access-badge,
.type-badge {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 5px 8px;

    border-radius: 7px;

    background: #f0edf1;
    color: #655f67;

    font-size: 0.7rem;
    font-weight: 700;
}

.access-badge.special,
.type-badge.special {
    background: var(--purple-light);
    color: var(--purple-dark);
}


/* =========================================================
   ESTADO
========================================================= */

.status-dot {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    font-size: 0.7rem;
    color: #8b858c;
}

.status-dot:before {
    content: '';

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #aaa;
}

.status-dot.on:before {
    background: var(--purple);
}

.category-icon {
    color: var(--purple);
    font-size: 1.1rem;
}


/* =========================================================
   FORMULARIOS
========================================================= */

.form-card {
    padding: clamp(22px, 4vw, 45px);
}

.form-card h1 {
    font-weight: 800;
}

.form-intro {
    color: var(--muted);
}

.code-field {
    background: #f4edf6 !important;
    color: var(--purple-dark);
    font-weight: 800;
}


/* =========================================================
   PANEL DE ACCESO
========================================================= */

.access-panel {
    background: #fbf9fc;

    border: 1px solid var(--border);
    border-radius: 12px;

    padding: 20px;
}

.choice-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.choice-card {
    position: relative;
    display: block;

    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
}

.choice-card span {
    display: flex;
    flex-direction: column;

    gap: 4px;

    border: 1px solid var(--border);
    border-radius: 11px;

    padding: 15px;

    background: #fff;

    min-height: 110px;
}

.choice-card input:checked + span {
    border-color: var(--purple);

    box-shadow:
        0 0 0 2px rgba(137, 70, 149, 0.12);

    background: var(--purple-light);
}

.choice-card i {
    font-size: 1.2rem;
    color: var(--purple);
}

.choice-card strong {
    font-size: 0.86rem;
}

.choice-card small {
    color: var(--muted);
    font-size: 0.72rem;
}


/* =========================================================
   USUARIOS ESPECIALES
========================================================= */

.special-users-box {
    margin-top: 15px;

    padding: 15px;

    border-radius: 10px;

    background: #fff;

    border: 1px dashed #d9c9dd;
}

.special-users-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}

.special-users-grid label {
    font-size: 0.78rem;
}

.special-users-grid small {
    color: var(--muted);
}


/* =========================================================
   THUMBNAIL ACTUAL
========================================================= */

.current-thumb {
    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--muted);

    font-size: 0.75rem;
}

.current-thumb img {
    width: 70px;
    height: 90px;

    object-fit: cover;

    border-radius: 6px;

    border: 1px solid var(--border);
}


/* =========================================================
   LOGIN
========================================================= */

.login-page {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            var(--purple-dark),
            var(--purple)
        );

    display: grid;
    place-items: center;

    padding: 25px;
}

.login-card {
    width: min(100%, 440px);

    background: #fff;

    border-radius: 20px;

    padding: 38px;

    box-shadow:
        0 25px 70px rgba(56, 24, 63, 0.28);
}

.login-logo-slot {
    height: 65px;
    width: 100%;

    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo-slot img{

  
    width: 140px;
    margin-bottom: 20px;
}


.login-card h1 {
    font-weight: 800;
}

.login-card p {
    color: var(--muted);
}

.login-back {
    display: block;

    text-align: center;

    margin-top: 18px;

    color: var(--purple);

    font-size: 0.82rem;
    font-weight: 700;
}


/* =========================================================
   ADMINISTRACIÓN - BUSCADOR
========================================================= */

.admin-search {
    height: 48px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 10px;

    display: flex;
    align-items: center;

    padding: 0 14px;

    color: var(--purple);

    max-width: 760px;
}

.admin-search i {
    font-size: 18px;
}

.admin-search input {
    border: 0;
    outline: 0;

    flex: 1;
    height: 100%;

    padding: 0 10px;

    font-size: 0.88rem;
}

.admin-search button {
    border: 0;
    background: transparent;

    color: var(--muted);

    font-size: 16px;
}

.admin-loading {
    min-height: 130px;
}

.admin-page .scroll-sentinel {
    height: 20px;
}

.admin-table-card .table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   BOTÓN SALIR
========================================================= */

.btn_salir {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 16px;
    margin-left: 40px;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;

    font-size: 0.78rem;
    font-weight: 700;

    line-height: 1;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.btn_salir:hover {
    background: #fff;
    border-color: #fff;

    color: var(--purple) !important;

    transform: translateY(-1px);
}

.btn_salir:active {
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1200px) {

    .documents-grid {

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 18px;
    }

}


/* =========================================================
   RESPONSIVE - TABLET PEQUEÑO
========================================================= */

@media (max-width: 900px) {

    .documents-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 16px;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 600px) {

    .documents-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }


    .document-body {

        padding: 11px;
    }


    .document-preview {

        /*
         * Mantenemos siempre A4.
         */
        aspect-ratio: 210 / 297;

        height: auto;
    }


    .document-body h3 {

        font-size: 0.8rem;
    }


    .document-body p {

        font-size: 0.68rem;

        height: 30px;
    }


    .btn-preview,
    .btn-download {

        min-height: 32px;

        font-size: 0.65rem;
    }


    .btn-preview span {

        display: none;
    }

}

/* =========================================================
   VISOR PDF - ADMINISTRADOR
========================================================= */

.admin-pdf-modal {
    background: #1c1c1c;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    height: 90vh;
}


/* HEADER */

.admin-pdf-header {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #ffffff;
}

.admin-pdf-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #222;
}

.admin-pdf-title i {
    font-size: 20px;
    color: #dc3545;
}

.admin-pdf-close {
    border: 0;
    background: transparent;
    color: #555;
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
}

.admin-pdf-close:hover {
    background: #f1f1f1;
}


/* TOOLBAR */

.admin-pdf-toolbar {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background: #292929;
    color: #fff;
}

.admin-pdf-toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-pdf-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.admin-pdf-btn:hover {
    background: rgba(255,255,255,.12);
}

.admin-pdf-btn:disabled {
    opacity: .35;
    cursor: default;
}

.admin-pdf-page-info {
    min-width: 70px;
    text-align: center;
    font-size: 14px;
}

.admin-pdf-zoom {
    min-width: 50px;
    text-align: center;
    font-size: 13px;
}


/* PDF VIEWER */

.admin-pdf-viewer {
    position: relative;
    height: calc(90vh - 110px);
    overflow: auto;
    background: #525659;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#adminPdfCanvas {
    display: block;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.35);
    max-width: none;
}


/* LOADING */

.admin-pdf-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    z-index: 5;
}

.admin-pdf-loading.d-none {
    display: none;
}


/* RESPONSIVE */

@media (max-width: 768px) {

    .admin-pdf-modal {
        height: 100vh;
        border-radius: 0;
    }

    .admin-pdf-viewer {
        height: calc(100vh - 110px);
        padding: 15px;
    }

    .admin-pdf-toolbar {
        padding: 0 8px;
    }

    .admin-pdf-toolbar-group {
        gap: 2px;
    }

    .admin-pdf-btn {
        width: 34px;
        height: 34px;
    }

    .admin-pdf-zoom {
        display: none;
    }
}

.btn_volver{

    display: flex;
    align-items: center;
    color: var(--purple);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-top: 20px;
    cursor: pointer;
}

.btn_volver:hover{


    color: #000;

  
}


.icono_flecha{
    width: 20px;
    margin-right: 10px;
}

/* =========================================================
   FILTRO DE CATEGORÍAS MOBILE
========================================================= */




.category-mobile-select {
    display: none;
}

.category-mobile-select label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}



.category-mobile-select select {
    width: 100%;
    height: 44px;

    background: #fff;

 
    color: var(--muted);
    font-size: 0.84rem;

    outline: none;
    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

    border: 1px solid var(--border);
    padding: 10px 13px;
    border-radius: 9px;


    }

.category-mobile-select select:focus {
    border-color: var(--purple);

    box-shadow:
        0 0 0 3px rgba(91, 45, 145, 0.10);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .category-scroll {
        display: none;
    }

    .category-mobile-select {
        display: block;
        width: 100%;
    }


    .category-filter{

    width: 50%;
}

    .sort-control{
        display: unset;
        white-space: unset;
    }

    .logo-slot {
     flex: 0 0 0px; 
}
}