/* style.css */
:root {
    --primary-color: #DD052C; /* Rojo Gamma/Tobal */
    --text-color: #333333;
    --bg-light: #f4f4f4;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }

body { color: var(--text-color); line-height: 1.6; }

.container { width: 90%; max-width: 1200px; margin: auto; }

/* Header & Nav */
header { background: #fff; padding: 20px 0; border-bottom: 2px solid var(--primary-color); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo img { 
    width:500px; /* Forzamos el ancho base */
    max-width: 100%; /* Evita que se desborde en teléfonos móviles */
    height: auto; 
}

nav ul { list-style: none; display: flex; gap: 20px; }
nav a { text-decoration: none; color: var(--text-color); font-weight: bold; }
nav a:hover { color: var(--primary-color); }

/* Hero Section con Imagen de Fondo */
.hero { 
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('portada.jpg') center/cover no-repeat;
    padding: 80px 0; 
    text-align: center; 
    color: #ffffff; /* Texto en blanco para contrastar */
}
.hero h1 { 
    font-size: 2.8rem; 
    margin-bottom: 15px; 
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
.hero p { 
    font-size: 1.3rem; 
    max-width: 800px; 
    margin: auto; 
    color: #f0f0f0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Cards Section (Tienda y Catálogo) */
.cards-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 50px 0; }
.card { display: flex; background: #fff; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.card-img { flex: 1; background: #ccc; min-height: 200px; } /* Aquí irán las fotos */
.card-content { flex: 1; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.card-content h3 { color: var(--primary-color); margin-bottom: 15px; }
.btn { display: inline-block; background: var(--primary-color); color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 4px; margin-top: 15px; text-align: center; }
.btn:hover { background: #b00423; }

/* Listados de Productos y Servicios */
.lists-section { 
    padding: 60px 0; 
    background: #ffffff; 
}
.lists-container {
    display: flex; 
    gap: 30px; 
    flex-wrap: wrap; /* Se apila automáticamente en móviles */
}
.list-box {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border-top: 4px solid var(--primary-color); /* Línea roja corporativa arriba */
}
.list-box h3 {
    color: #222;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}
ul.custom-list { 
    list-style-type: none; 
    padding-left: 0; 
}
ul.custom-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}
ul.custom-list li::before {
    content: "■"; 
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 0.8rem;
}

/* Footer */
footer { background: #222; color: #fff; padding: 40px 0; text-align: center; }
footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; text-align: left; margin-bottom: 20px; }

/* Móvil */
@media (max-width: 768px) {
    nav ul { display: none; /* Aquí iría el JS del menú hamburguesa */ }
    .card { flex-direction: column; }
    .lists-section { grid-template-columns: 1fr; }
}
/* --- Aviso de Cookies --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1e293b; /* Fondo oscuro elegante */
    color: #f8fafc;
    padding: 20px 40px;
    display: none; /* Oculto por defecto, el JS lo mostrará si hace falta */
    justify-content: space-between;
    align-items: center;
    z-index: 9999; /* Asegura que esté por encima de todo */
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 80%;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.cookie-banner a:hover {
    color: #fff;
}

.cookie-banner .btn {
    margin: 0;
    white-space: nowrap; /* Evita que el texto del botón se parta en dos líneas */
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .cookie-banner p {
        max-width: 100%;
    }
    .cookie-banner .btn {
        width: 100%;
    }
}