
:root {
    --azul-oscuro: #004a99;
    --azul-fondo: #e0f0f5;
    --gris-caja: #f0f0f0;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Arial, sans-serif; 
}

body { 
    background-color: var(--azul-fondo); 
}


.navbar {
    background-color: #004a99;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
}

.logo-container {
    background-color: white;
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

.menu { 
    display: flex; 
    list-style: none; 
    gap: 40px; 
}

.menu a {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.menu a:hover {
    color: #e0f0f5;
}

.cesta-container {
    display: flex;
    align-items: center;
    padding-right: 20px;
}

.btn-cesta-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.2s ease;
    cursor: pointer;
    background-color: white; 
    padding: 5px;
}

.btn-cesta-img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* --- 3. Layout Lateral (Sidebar + Grid) --- */
.main-container {
    display: flex;
    padding: 30px 50px;
    gap: 40px;
    align-items: flex-start;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-box {
    background-color: var(--gris-caja);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

.sidebar h3 {
    margin-bottom: 15px;
    font-style: italic;
    font-weight: bold;
    font-size: 1.2rem;
}

#lista-categorias { list-style: none; }
#lista-categorias li { padding: 10px 0; border-bottom: 1px solid #ddd; }
#lista-categorias a { text-decoration: none; color: var(--azul-oscuro); font-weight: 500; }


.grid-productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  
    gap: 24px;
    flex-grow: 1;
    padding: 0 8px;

  
    @media (max-width: 1250px) {
        grid-template-columns: repeat(3, 1fr);
    }

    @media (max-width: 920px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 580px) {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.producto-card {
    background-color: white;
    border: 3px solid var(--azul-oscuro);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    min-height: 340px;          
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.producto-card img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 14px;
}

.precio {
    color: var(--azul-oscuro);
    font-weight: bold;
    font-size: 1.65rem;
    margin: 10px 0 16px;
}

.btn-detalle {
    background-color: var(--azul-oscuro);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: auto;           
}


footer {
    background-color: #004a99;
    color: white;
    padding: 20px 50px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    background-color: white;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
}

.footer-copyright {
    font-size: 1.4rem;
    font-weight: bold;
}


#lista-categorias li { 
    padding: 0; 
    border-bottom: 1px solid #ddd; 
    transition: all 0.3s ease;
}

#lista-categorias a { 
    display: block;
    padding: 10px 15px; 
    text-decoration: none; 
    color: var(--azul-oscuro); 
    font-weight: bold; 
    transition: all 0.3s ease;
}


#lista-categorias li:hover {
    background-color: #d1e8ff;
}

#lista-categorias li:hover a {
    color: #003366; 
    padding-left: 25px; 
}



.filter-group {
    padding: 10px 15px;     
    border-radius: 4px;   
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;       
    flex-direction: column;  
    gap: 5px;
}


.filter-group:hover {
    background-color: #d1e8ff; 
}


.filter-group:hover label {
    padding-left: 10px;      
    color: #003366 !important; 
}


.filter-group:hover select {
    border: 1px solid var(--azul-oscuro);
}