/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    /* Fondo con imagen borrosa y blanquecina */
    background-image: url('images/fondo-blog.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay blanquecino sobre la imagen */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Filtro blanquecino */
    backdrop-filter: blur(8px); /* Efecto borroso */
    -webkit-backdrop-filter: blur(8px); /* Para Safari */
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1479px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
/* Fix 3: background-attachment para móviles */
@media (max-width: 768px) {
    body { 
        background-attachment: scroll; 
    }
}
/* Fix 5: Estados de foco para accesibilidad */
a:focus, button:focus {
    outline: 3px solid rgba(45,55,72,0.12);
    outline-offset: 2px;
}
/* Fix 6: Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    * { 
        transition: none !important; 
        animation: none !important; 
    }
}
/* Consolidación de .category-modal-content y .close-btn eliminando duplicados:
.category-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.category-modal.show .category-modal-content {
    transform: scale(1);
}
.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Buscador: ajustado para evitar layout shift */
.search-input {
    width: 100%;
    max-width: 200px;
    transition: box-shadow 0.2s ease, max-width 0.25s ease;
}
.search-input:focus {
    max-width: 320px;
    outline: 3px solid rgba(45,55,72,0.12);
}
