:root {
    --primary-blue: #2c3e50;
    --accent-blue: #3498db;
    --success-green: #27ae60;
    --light-bg: #f4f7f6;
    --text-dark: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* Header y Navegación */
header {
    background-color: var(--primary-blue);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.search-bar {
    flex-grow: 1;
    margin: 0 40px;
    display: flex;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.main-nav {
    background-color: #1a252f;
    padding: 0 5%;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    transition: 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    background-color: var(--accent-blue);
    color: white;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 5% 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li { margin-bottom: 10px; }

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #3e4f5f;
    font-size: 0.8rem;
}

/* Mejoras en Tarjetas de Producto */
.producto-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.producto-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.btn-secundario {
    background-color: #95a5a6;
}

/* ... (mantener lo anterior) ... */

/* Grid de Productos */
#contenedor-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 5%;
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Estilos del Modal (Faltaban) */
#modal-carrito {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; /* Cambiado de 'hidden' a flex para controlarlo con JS */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modal-carrito.hidden {
    display: none; /* Ahora sí funciona la clase hidden */
}

.contenido-carrito {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Botones */
button {
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: var(--accent-blue);
    color: white;
    transition: 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.carrusel-container {
    position: relative;
    width: 100%;
    height: 400px; /* Altura fija para banners profesionales */
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Oscurece un poco la imagen para que el texto resalte */
}

.info-banner {
    position: absolute;
    left: 10%;
    color: white;
    max-width: 400px;
}

.info-banner h2 { font-size: 2.5rem; margin-bottom: 10px; }

/* Botones de navegación del slider */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    padding: 15px;
    border-radius: 50%;
    transition: 0.3s;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Añadir al final de style.css */

.item-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.btn-eliminar {
    background-color: #e74c3c;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-eliminar:hover {
    background-color: #c0392b;
}

/* Efecto suave para el modal */
#modal-carrito {
    transition: opacity 0.3s ease;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        gap: 15px;
    }
    .search-bar {
        margin: 0;
        width: 100%;
    }
    .carrusel-container {
        height: 250px;
    }
    .info-banner h2 {
        font-size: 1.5rem;
    }
}