/* ============================================== */
/* ESTILOS ORIGINALES DEL BLOQUE DE ARTÍCULOS DESTACADOS */
/* (ESTOS SE MANTIENEN INTACTOS) */
/* ============================================== */

.bloque-articulos {
    background: linear-gradient(135deg, #0a0f25, #010101);
    color: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-width: 1200px;
    margin: 2rem auto;
}

.titulo-bloque {
    text-align: center;
    background: linear-gradient(90deg, #ffcc00, #ff6600);
    -webkit-background-clip: text;
    color: transparent;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contenedor-articulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.articulo {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.articulo:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.6);
}

.articulo img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.articulo .contenido {
    padding: 1rem;
}

.articulo h3 {
    color: #ffcc00;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.articulo p {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.3;
}


/* ============================================== */
/* ESTILOS PARA EL MENÚ DESPLEGABLE POR CATEGORÍA */
/* (Colores y fuentes nuevos) */
/* ============================================== */

/* Cargar la fuente Poppins desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.menu-categorias-barra {
    width: 100%;
    margin: 30px auto;
}

.contenedor-menu {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    /* background: #000080; Azul oscuro del menú - ahora se define en .boton-categoria */
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    max-width: 1200px;
    margin: 0 auto;
    position: relative; 
    z-index: 10;
}

.menu-item-categoria {
    position: relative;
    padding: 0;
    flex-grow: 1; 
    text-align: center;
}

.boton-categoria {
    /* Estilo del botón NO seleccionado */
    background: #000080; /* Azul rey */
    color: #FFA500; /* Naranja base para el degradado */
    /* Degradado naranja-amarillo */
    background: linear-gradient(90deg, #FFA500, #FFFF00);
    -webkit-background-clip: text;
    color: transparent;
    border: 1px solid #0000ff; /* Borde azul brillante */
    padding: 15px 10px;
    width: 100%;
    font-size: 1.1rem;
    /* font-weight: bold; - Quitado */
    font-weight: 300; /* Poppins Light */
    font-family: 'Poppins', sans-serif; /* Fuente Poppins */
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border-right: none;
    border-left: none;
}

.menu-item-categoria:hover .boton-categoria {
    /* Estilo del botón AL PASAR EL MOUSE (seleccionado) */
    background: #4682B4; /* Azul claro */
    color: #DDFF00; /* Amarillo limón vivo */
    -webkit-background-clip: initial; /* Reiniciar el clip para que el color sea sólido */
    background-clip: initial;
}

/* --- SUBMENÚ DESPLEGABLE --- */

.submenu-desplegable {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%; 
    background: #DDFF00; /* Fondo del menú desplegado (Amarillo limón) */
    box-shadow: 0 5px 15px rgba(0,0,0,0.7);
    padding: 10px 0;
    min-width: 250px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

/* Estilo para la flecha de cierre */
.cerrar-submenu {
    position: absolute;
    top: 5px;
    right: 10px; /* Cambié 'left' por 'right' para que esté a la derecha */
    background: transparent;
    border: none;
    color: #00008B; /* Azul fuerte */
    font-size: 1.2rem;
    font-weight: bold; /* Negrita para la X */
    cursor: pointer;
    z-index: 1001;
}

.submenu-scroll,
.todos-articulos {
    list-style: none;
    padding: 0 10px;
    margin: 0;
}

.submenu-scroll li,
.todos-articulos li {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 0, 139, 0.1); /* Azul oscuro para la línea */
}

.submenu-scroll li:last-child,
.todos-articulos li:last-child {
    border-bottom: none;
}

.submenu-scroll li a,
.todos-articulos li a {
    color: #00008B; /* Azul fuerte para el texto de artículos */
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: color 0.3s;
    display: block;
}

.submenu-scroll li a:hover,
.todos-articulos li a:hover {
    color: #4682B4; /* Azul más claro al pasar el mouse */
}

.bullet {
    display: inline-block;
    width: 12px; /* Ancho para la X */
    height: 12px; /* Alto para la X */
    color: #00008B; /* Azul fuerte para la X */
    font-weight: bold; /* Negrita */
    font-size: 0.9rem; /* Tamaño de la X */
    margin-right: 8px;
    vertical-align: middle;
    text-align: center;
    line-height: 1; /* Ajustar altura de línea */
}

.ver-mas-li {
    text-align: center;
    padding: 8px;
    border-top: 1px solid rgba(0, 0, 139, 0.2); /* Azul oscuro para la línea superior */
}

.ver-mas-link {
    color: #00008B; /* Azul fuerte */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    display: block;
}

.ver-mas-link:hover {
    color: #4682B4; /* Azul más claro */
}

/* --- Adaptación móvil --- */
@media (max-width: 768px) {
    .contenedor-menu {
        flex-direction: column; 
    }
    .menu-item-categoria {
        width: 100%;
    }
    .submenu-desplegable {
        position: relative; 
    }
}