/* Minification failed. Returning unminified contents.
(2,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(4,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(5,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(6,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(15,28): run-time error CSS1039: Token not allowed after unary operator: '-bg'
(17,17): run-time error CSS1039: Token not allowed after unary operator: '-text-main'
(36,32): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(46,17): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(119,28): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(125,28): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(148,28): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(214,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(224,28): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(240,16): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(249,17): run-time error CSS1039: Token not allowed after unary operator: '-text-main'
(280,28): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(323,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(325,17): run-time error CSS1039: Token not allowed after unary operator: '-text-main'
(337,28): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(338,21): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(343,26): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(345,28): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(375,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(387,28): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(401,17): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(444,17): run-time error CSS1039: Token not allowed after unary operator: '-primary'
(456,17): run-time error CSS1039: Token not allowed after unary operator: '-text-header'
(484,17): run-time error CSS1039: Token not allowed after unary operator: '-primary'
 */
:root {
    --primary: #005691;
    --bg: #f8f9fa;
    --border: #e2e8f0;
    --text-main: #333333;
    --text-header: #18529D;
}

/* ==========================================================================
   1. ESTILOS BASE Y ESTRUCTURA GENERAL
   ========================================================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--bg) !important;
    font-family: 'Segoe UI', 'Roboto', sans-serif !important;
    color: var(--text-main) !important;
    font-weight: normal !important;
    overflow-x: hidden;
}

body {
    padding: 20px !important;
    box-sizing: border-box !important;
}

#page, #usuarios, #menu, .editor, .main-content, .container {
    max-width: 1100px !important;
    width: 95% !important;
    margin: 20px auto !important;
    padding: 30px !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    border: none !important;
    border-top: 5px solid var(--primary) !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   2. TIPOGRAFÍAS Y ENCABEZADOS
   ========================================================================== */
h1, h2, .e-libro-title, .encabezado, .search-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    background: none !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
}

.search-title {
    font-size: 2.2rem !important;
    margin-bottom: 25px !important;
    font-weight: 800 !important;
}

h3 {
    font-size: 1.4em !important;
    color: #444 !important;
    text-align: center !important;
}

p, .nota-informativa, .instrucciones li {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    font-weight: 300 !important;
    color: #555 !important;
    margin-bottom: 15px !important;
}

.card-desc {
    font-size: 1.05rem !important;
    font-weight: 300 !important;
}

/* ==========================================================================
   3. ELEMENTOS DE FORMULARIO Y BOTONES TRADICIONALES
   ========================================================================== */
fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.editor-label, .display-label, .tr-etiquetas td {
    color: #444 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    text-transform: none !important;
    margin-bottom: 5px !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
}

.editor-field, .display-field, .td-centros {
    width: 100% !important;
    display: block !important;
    margin-bottom: 15px !important;
}

input[type="text"], input[type="password"], input[type="email"], select, textarea, .txt-login {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-family: 'Segoe UI', sans-serif !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
}

    input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
        outline: none !important;
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 3px rgba(0, 86, 145, 0.15) !important;
    }

input[type="submit"], .btns input, .btnValidacion, .boton {
    width: 100% !important;
    background-color: var(--primary) !important;
    color: #ffffff !important;
    padding: 14px 20px !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    float: none !important;
    transition: background 0.3s !important;
}

    input[type="submit"]:hover, .btnValidacion:hover, .boton:hover {
        background-color: #003d66 !important;
    }

.tbl-mainContents, #usuarios table {
    border: none !important;
    width: 100% !important;
}

#tr-heads, .header {
    background-color: var(--primary) !important;
    height: auto !important;
    padding: 10px !important;
    color: white !important;
}

#usuarios td, #usuarios th, .td-centros, .td-bordes {
    border: none !important;
    background: transparent !important;
    padding: 10px !important;
}

/* ==========================================================================
   4. COMPONENTE DEL BUSCADOR Y AUTENTICACIÓN
   ========================================================================== */
.search-sticky-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    padding: 5px 30px 0px 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}

    .search-sticky-wrapper::after {
        content: "";
        position: absolute;
        bottom: -25px;
        left: 0;
        right: 0;
        height: 25px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)) !important;
        pointer-events: none !important;
    }

.search-flex-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 780px !important;
    margin: 0 auto !important;
}

.search-main-column {
    flex-grow: 1 !important;
    max-width: 600px !important;
}

.search-container {
    max-width: 650px !important;
    margin: 0 auto !important;
    text-align: center !important;
    position: relative !important;
    z-index: 100 !important;
}

.search-bar-wrapper {
    display: flex !important;
    align-items: center !important;
    background: white !important;
    border: 2px solid var(--border) !important;
    border-radius: 50px !important;
    height: 54px !important;
    padding: 0 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
}

    .search-bar-wrapper:focus-within {
        border-color: var(--primary) !important;
        box-shadow: 0 8px 24px rgba(0, 86, 145, 0.12) !important;
    }

.search-icon, svg.search-icon, img.search-icon {
    width: 20px !important;
    height: 20px !important;
    margin-right: 14px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    fill: #94a3b8 !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.search-bar-wrapper:focus-within .search-icon {
    fill: var(--primary) !important;
}

.search-input, input[type="text"].search-input {
    flex-grow: 1 !important;
    width: auto !important;
    border: none !important;
    outline: none !important;
    font-size: 1.05rem !important;
    color: var(--text-main) !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    box-shadow: none !important;
}

.auth-widget-box {
    min-width: 150px !important;
    max-width: 180px !important;
    text-align: center !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-self: flex-start !important;
    margin-top: 5px !important;
}

.auth-widget-text {
    font-family: 'Segoe UI', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.auth-widget-btn {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 5px 15px !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    transition: background 0.2s ease !important;
    display: inline-block !important;
    align-self: flex-end !important;
    text-decoration: none !important;
    text-align: center !important;
}

    .auth-widget-btn:hover {
        background-color: #003d66 !important;
        color: #ffffff !important;
    }

.pills-container {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding: 5px !important;
    width: 100% !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

    .pills-container.show {
        max-height: 200px;
        opacity: 1;
    }

.pill, button.pill, input[type="button"].pill {
    width: auto !important;
    padding: 8px 18px !important;
    border-radius: 25px !important;
    border: 1px solid var(--border) !important;
    background: white !important;
    color: var(--text-main) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    display: inline-block !important;
    text-transform: none !important;
    float: none !important;
}

    .pill:hover {
        border-color: var(--primary) !important;
        color: var(--primary) !important;
        transform: translateY(-1px) !important;
    }

    .pill.active {
        background: var(--primary) !important;
        color: white !important;
        border-color: var(--primary) !important;
        box-shadow: 0 4px 10px rgba(0, 86, 145, 0.2) !important;
    }

/* ==========================================================================
   5. GRID DE RECURSOS Y CARDS
   ========================================================================== */
.resources-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    padding: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
    transition: margin-top 0.3s ease;
}

.resource-card.d-none {
    display: none !important;
}

.card {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
    overflow: hidden !important;
    height: 100% !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    cursor: pointer !important;
    position: relative !important;
    box-sizing: border-box !important;
}

    .card:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important;
        border-color: var(--primary) !important;
    }

.card-arrow {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 32px !important;
    height: 32px !important;
    background: #eff6ff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--primary) !important;
    font-size: 0.9rem !important;
    opacity: 0 !important;
    transform: scale(0.8) !important;
    transition: all 0.25s ease !important;
    z-index: 10 !important;
}

.card:hover .card-arrow {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.card-header {
    height: 160px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
}

    .card-header img, .card-img-top {
        max-width: 90% !important;
        max-height: 70% !important;
        object-fit: contain !important;
        transition: transform 0.3s ease !important;
    }

.card:hover .card-header img {
    transform: scale(1.05) !important;
}

.card-body {
    padding: 0px 10px 10px 10px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.tag {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    background: #eff6ff !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    align-self: flex-start !important;
    text-transform: uppercase !important;
}

.card-title {
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
    color: var(--text-header) !important;
    font-weight: 700 !important;
}

.card-desc {
    font-size: 1.05rem !important;
    color: #64748b !important;
    text-align: justify !important;
}

.resource-meta {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    margin-top: auto !important;
    padding-top: 7px !important;
    border-top: 1px dashed #e2e8f0 !important;
}

/* ==========================================================================
   6. VALIDACIONES Y MISCELÁNEOS
   ========================================================================== */
.field-validation-error, .validation-summary-errors, #estado {
    color: #d9534f !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
}

.enlace, .a-linkLogin, .div-linkLogin a {
    color: var(--primary) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 5px 0 !important;
}

    .enlace:hover {
        text-decoration: underline !important;
    }

hr {
    border: 0 !important;
    border-top: 1px solid #eee !important;
    margin: 20px 0 !important;
}

#lazy-sentinel {
    height: 1px;
    width: 100%;
    clear: both;
}

/* ==========================================================================
   7. MEDIA QUERIES 
   ========================================================================== */
@media (max-width: 992px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .search-flex-row {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .auth-widget-box {
        text-align: center !important;
        align-items: center !important;
    }

    .auth-widget-btn {
        align-self: center !important;
    }

    .resources-grid {
        grid-template-columns: 1fr !important;
    }

    #page, #usuarios, #menu, .editor {
        margin: 10px auto !important;
        padding: 20px !important;
    }

    h1, h2 {
        font-size: 1.5rem !important;
    }
}

