/* ---------------------------------------------------------
   ESTILOS GENERALES
--------------------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
    background-color: #252850;
    color: #D0AA65;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* ← Cambiado */
    background-color: #252850;
    padding: 10px 15px;
    position: fixed;
    width:100%;
    z-index: 999;
    top:0;
    left: 0;
}

/* Logo KOL */
.logo-kol {
    height: clamp(60px, 8vw, 90px);
    margin-left: 5px;
    object-fit: contain;
}

/* BSD */
.bsd {
    height: 40px;
    margin-right: 10px;
}

.titulo-header {
    flex: 1;
    text-align: center;
    font-size: 30px;   /* ← Aumenta el tamaño */
    font-weight: bold;
    color: #D0AA65;
}


/* Selector de idioma */
.selector-idioma-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
}

.selector-idioma-header select {
    background-color: #000000;
    color: #D0AA65;
    border: 1px solid #444;
    padding: 4px 6px;
    border-radius: 4px;
}

/* Barra inferior */

header {
    
    border-bottom: 3px solid #D0AA65
}
/* ---------------------------------------------------------
   TÍTULOS PRINCIPALES
--------------------------------------------------------- */

h1 {
    text-align: center;
    margin-top: 20px;
    color: #D0AA65;
}

.subtitulo {
    text-align: center;
    margin-bottom: 20px;
    color: #D0AA65;
}

/* ---------------------------------------------------------
   BARRA SUPERIOR (BUSCADOR + FILTROS)
--------------------------------------------------------- */

.top-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.top-bar label {
    display: block;
    margin-bottom: 5px;
    color: #D0AA65;
}

.top-bar input,
.top-bar select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #D0AA65;
    background-color: #FFFFFF;  
    color: #252850;            
}




/* ---------------------------------------------------------
   TABS DE CATEGORÍAS
--------------------------------------------------------- */

.tabs-categorias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-categoria {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #D0AA65;
    background-color: transparent;
    color: #D0AA65;
    cursor: pointer;
    transition: 0.2s;
}

.tab-categoria:hover {
    background-color: #D0AA65;
    color: #000;
}

.tab-categoria.activa {
    background-color: #D0AA65;
    color: #000;
}

/* ---------------------------------------------------------
   GRID DE TARJETAS
--------------------------------------------------------- */

.contenedor-principal {
    display: flex;
    justify-content: center;
}

.grid {
    width: 95%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ---------------------------------------------------------
   TARJETAS
--------------------------------------------------------- */

.card {
    background-color: #ffffff;
    border: 1px solid #000000;
    padding: 15px;
    border-radius: 8px;
    transition: 0.2s;
    color: #000; /* ← TEXTO NEGRO DENTRO DE LA TARJETA */

}

.card:hover {
    border-color: #D0AA65;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.titulo {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

.categoria-tag {
    background-color: #D0AA65;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.campo {
    margin-bottom: 6px;
    font-size: 14px;
}

/* ---------------------------------------------------------
   COLORES DE PSAK
--------------------------------------------------------- */

.psak {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.psak-recomendado {
    background-color: #4CAF50;
    color: #000;
}

.psak-autorizado {
    background-color: #2196F3;
    color: #000;
}

.psak-norecomendado {
    background-color: #FF9800;
    color: #000;
}

.psak-noautorizado {
    background-color: #F44336;
    color: #000;
}

/* ---------------------------------------------------------
   PAGINACIÓN
--------------------------------------------------------- */

.paginacion {
    display: flex;
    justify-content: space-between; /* Botón izq y der */
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
}

.paginacion button {
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #D0AA65;
    background-color: transparent;
    color: #D0AA65;
    cursor: pointer;
}

.paginacion button:hover {
    background-color: #D0AA65;
    color: #000;
}

/* Texto de paginación debajo, centrado y grande */
#infoPaginacion {
    font-size: 20px;
    font-weight: bold;
    color: #D0AA65;
    text-align: center;
    margin-top: 10px;
    display: block;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.footer-lejaim {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #252850;
    color: #D0AA65;
    font-size: 14px;
}

.footer-accesibilidad {
    margin-bottom: 15px;
    color: #D0AA65;
}

/* Enlaces convertidos en botones */
.footer-lejaim a {
    display: inline-block;
    background-color: #D0AA65;
    color: #252850;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-lejaim a:hover {
    background-color: #F2D8A7;
    color: #1A1C3A;
}

