/* ==== Configuración Global y Variables ==== */
:root {
    /* Nueva paleta: Naranja (del letrero) sobre un fondo oscuro */
    --color-primario: #F97316;    /* Naranja vivo (del letrero) */
    --color-fondo-oscuro: #2C3E50; /* Azul pizarra oscuro */
    --color-tarjeta: #FFFFFF;     /* Blanco para las "tarjetas" */
    --color-texto-oscuro: #333;   /* Texto para dentro de las tarjetas */
    --color-texto-claro: #F4F7F9;  /* Texto para sobre el fondo oscuro */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    /* El fondo de toda la página es ahora oscuro */
    background-color: var(--color-fondo-oscuro);
    /* El color de texto por defecto (fuera de las tarjetas) es claro */
    color: var(--color-texto-claro);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    /* Los títulos de sección son ahora del color naranja vivo */
    color: var(--color-primario);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

/* ==== Encabezado y Navegación (Tema Oscuro) ==== */
.header {
    /* El header se integra con el fondo oscuro */
    background: var(--color-fondo-oscuro);
    border-bottom: 1px solid #485b6f; /* Borde sutil */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    /* El logo ahora es naranja */
    color: var(--color-primario);
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar a {
    text-decoration: none;
    /* Texto de navegación claro */
    color: var(--color-texto-claro);
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--color-primario);
}

/* ==== Sección Hero (Sin cambios) ==== */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/interior-1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 0;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* ==== Sección Productos (Diseño de Tarjetas) - MODIFICADO para simetría ==== */
.productos {
    /* El fondo de la sección es transparente (usa el del body) */
    background-color: transparent;
}

.productos-grid {
    display: grid;
    /* Por defecto (Móviles): 1 columna, 8 filas. Simétrico. */
    grid-template-columns: repeat(1, 1fr); 
    gap: 1.5rem;
    list-style: none;
}

/* Tabletas (>= 600px): 2 columnas, 4 filas. Simétrico. */
@media (min-width: 600px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Escritorio (>= 992px): 4 columnas, 2 filas. Simétrico. */
@media (min-width: 992px) { 
    .productos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.productos-grid li {
    /* ¡Aquí está la tarjeta! Fondo blanco */
    background: var(--color-tarjeta);
    /* Texto oscuro dentro de la tarjeta */
    color: var(--color-texto-oscuro);
    border: none;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.productos-grid li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.productos-grid li i {
    font-size: 2rem;
    color: var(--color-primario);
    display: block;
    margin-bottom: 1rem;
}
/* ==== FIN DE MODIFICACIÓN DE .productos-grid ==== */


/* ==== Sección Galería (Fotos sobre fondo oscuro) ==== */
.galeria {
    background-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    /* La sombra es más pronunciada sobre el fondo oscuro */
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* ==== Sección Info (Diseño de Tarjetas) ==== */
.info {
    background-color: transparent;
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-box {
    /* ¡Otra tarjeta! Fondo blanco */
    background: var(--color-tarjeta);
    /* Texto oscuro dentro */
    color: var(--color-texto-oscuro);
    border: none;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.info-box i {
    font-size: 3rem;
    color: var(--color-primario);
    margin-bottom: 1rem;
}

.info-box h3 {
    font-size: 1.5rem;
}

.map-container {
    text-align: center;
}

.map-container p {
    font-style: italic;
    color: var(--color-texto-claro); /* Texto claro */
    margin-bottom: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

/* ==== Pie de Página (Oscuro) ==== */
.footer {
    background: #1a2530; /* Un tono más oscuro que el fondo */
    color: white;
    text-align: center;
    padding: 2.5rem 0; /* Aumentamos el padding */
    margin-top: 2rem;
}

.footer p {
    margin-bottom: 0.5rem; /* Ajustamos el espacio */
}

/* ESTILOS PARA TU CRÉDITO */
.developer-credit {
    font-size: 0.9rem; /* Un poco más pequeño para ser sutil */
    color: #aaa;      /* Un gris claro, no compite con el copyright */
    margin-top: 1.5rem; /* Lo separa del copyright */
}

.developer-credit a {
    color: #ddd; /* Un poco más brillante que el texto gris */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--color-primario); /* ¡Se ilumina en naranja! */
}

/* ==== Animaciones Dinámicas (Sin cambios) ==== */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==== Responsividad (Sin cambios, solo agregamos las media queries necesarias arriba) ==== */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 2.5rem 0;
    }
}