/* =================================================================
   BASE Y VARIABLES DEL NUEVO DISEÑO
   ================================================================= */

/* --- Paleta de Colores Inspirada en el Ejemplo --- */
:root {
    --color-primary: #CD7F32;   /* Verde oscuro para elementos principales */
    --color-secondary: #A4BE7B; /* Verde claro para acentos */
    --color-accent: #E5D9B6;    /* Un tono beige/dorado para botones y ofertas */
    --color-dark: #1E1E1E;      /* Negro suave para textos principales */
    --color-light: #FFFFFF;     /* Blanco */
    --color-gray: #F5F5F5;      /* Gris muy claro para fondos de sección */
    
    --font-family: 'Manrope', sans-serif; /* Nueva tipografía */
}

/* --- Reseteo Básico y Estilos Globales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
}

.container {
    max-width: 1280px; /* <-- Reducimos el ancho máximo aquí */
    margin: 0 auto;   /* Esto lo mantiene centrado */
    padding: 0 20px;  /* Esto asegura que no se pegue a los bordes en móvil */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800; /* Letra más gruesa para títulos */
    color: var(--color-primary);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Estilos Base para Botones --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
}
.btn-primary:hover {
    background-color: #1a3820; /* Versión más oscura del verde */
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* =================================================================
   1. ENCABEZADO PRINCIPAL (HEADER)
   ================================================================= */

.main-header {
    background-color: var(--color-light); /* Fondo blanco */
    padding: 15px 0;
    border-bottom: 1px solid #EAEAEA; /* Línea divisoria sutil */
    
    /* Efecto "pegajoso" para que se quede fijo arriba al hacer scroll */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000; /* Asegura que esté por encima de otro contenido */
}

.main-nav {
    display: flex;
    justify-content: space-between; /* Distribuye el espacio: logo a la izq, iconos a la der */
    align-items: center; /* Centra verticalmente todos los elementos */
}

.logo img {
    height: 50px; /* Ajusta la altura de tu logo */
    width: auto;
}

/* --- Menú de Navegación --- */
.nav-menu {
    display: flex; /* Pone los elementos del menú en horizontal */
    align-items: center;
    gap: 35px; /* Espacio entre cada palabra del menú */
}

.nav-menu a {
    font-weight: 700; /* Texto en negritas */
    color: var(--color-dark);
    padding: 10px 0;
    position: relative; /* Necesario para el efecto de la línea de abajo */
    transition: color 0.3s ease;
}

/* Efecto al pasar el mouse sobre los enlaces del menú */
.nav-menu a:hover {
    color: var(--color-primary); /* Cambia el texto a verde */
}

/* Línea animada que aparece debajo del enlace al pasar el mouse */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* --- Iconos de la Derecha --- */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icons a {
    font-size: 1.2rem;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.nav-icons a:hover {
    color: var(--color-primary);
}

/* --- Botón Hamburguesa (para móvil) --- */
.hamburger {
    display: none; /* Oculto por defecto en pantallas grandes */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
}

/* =================================================================
   DISEÑO RESPONSIVO PARA EL HEADER (TABLETS Y MÓVILES)
   ================================================================= */
@media (max-width: 992px) {
    .nav-menu,
    .nav-icons {
        display: none; /* Ocultamos el menú y los iconos en pantallas pequeñas */
    }

    .hamburger {
        display: block; /* Mostramos el botón de hamburguesa */
    }
}

/* =================================================================
   ESTILOS ADICIONALES PARA EL MENÚ MÓVIL ACTIVO
   ================================================================= */

@media (max-width: 992px) {
    /* Estilos para el menú cuando está abierto/activo */
    .nav-menu.active {
        display: flex; /* Lo hacemos visible */
        flex-direction: column; /* Apilamos los enlaces verticalmente */
        justify-content: center; /* Centramos verticalmente */
        align-items: center; /* Centramos horizontalmente */
        gap: 40px; /* Espacio entre los enlaces */

        /* Lo posicionamos como una capa sobre toda la página */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* 100% de la altura de la ventana */
        background-color: var(--color-light); /* Fondo blanco */
        z-index: 999; /* Justo por debajo del header para que no tape el logo */
        
        /* Animación de entrada */
        animation: fadeIn 0.3s ease-in-out;
    }

    /* Hacemos los enlaces más grandes para que sean fáciles de tocar */
    .nav-menu.active a {
        font-size: 2rem;
    }

    /* Definimos la animación */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

/* =================================================================
   2. SECCIÓN HERO
   ================================================================= */

.hero-section {
    background-color: var(--color-light); /* Fondo blanco */
    padding: 80px 0; /* Espacio vertical amplio */
}

.hero-section .container {
    display: flex; /* Activa el layout de 2 columnas */
    align-items: center; /* Centra verticalmente el contenido */
    gap: 40px; /* Espacio entre el texto y la imagen */
}

/* --- Columna Izquierda: Contenido de Texto --- */
.hero-content {
    flex: 1; /* Permite que el contenido ocupe el espacio disponible */
}

.hero-content h1 {
    font-size: 3.8rem; /* Tamaño de letra grande e impactante */
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #555; /* Un gris ligeramente más suave para el párrafo */
    margin-bottom: 30px;
    max-width: 500px; /* Evita que las líneas de texto sean demasiado largas */
}

.hero-buttons {
    display: flex;
    gap: 15px; /* Espacio entre los botones */
}

/* --- Columna Derecha: Imagen Principal --- */
.hero-image {
    flex: 1; /* Permite que la imagen ocupe el espacio disponible */
    /* Temporalmente, le damos un fondo y altura para que veas el espacio */
    background-color: var(--color-gray);
    min-height: 450px;
    border-radius: 12px;
}

/* =================================================================
   DISEÑO RESPONSIVO PARA LA SECCIÓN HERO
   ================================================================= */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column; /* Apila las columnas en vertical */
        text-align: center; /* Centra el texto en pantallas pequeñas */
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center; /* Centra los botones */
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 3rem; /* Reducimos el tamaño del título */
    }
}

/* =================================================================
   3. BARRA DE BENEFICIOS
   ================================================================= */

.benefits-section {
    background-color: var(--color-gray); /* Fondo gris claro para diferenciarla */
    padding: 60px 0; /* Espacio vertical */
}

.benefits-section .container {
    display: flex; /* Alinea los beneficios en horizontal */
    justify-content: space-around; /* Distribuye el espacio entre ellos */
    gap: 20px; /* Espacio mínimo entre elementos */
}

.benefit-item {
    flex: 1; /* Cada beneficio ocupa un tercio del espacio */
    text-align: center; /* Centra el texto */
    max-width: 300px; /* Evita que el texto se estire demasiado en pantallas muy grandes */
}

.benefit-item i { /* El ícono (camión, regla, etc.) */
    font-size: 2.8rem; /* Tamaño del ícono */
    color: var(--color-primary); /* Color verde oscuro */
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}


/* =================================================================
   DISEÑO RESPONSIVO PARA LA BARRA DE BENEFICIOS
   ================================================================= */
@media (max-width: 768px) {
    .benefits-section .container {
        flex-direction: column; /* Apila los beneficios en vertical en móviles */
        gap: 50px; /* Aumenta el espacio vertical entre ellos */
    }
}

/* =================================================================
   4. SECCIÓN DE CATEGORÍAS
   ================================================================= */

.categories-section {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    /* Creamos una rejilla de 3 columnas */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Espacio entre las tarjetas */
}

.category-item {
    position: relative; /* Esencial para posicionar el texto dentro */
    min-height: 250px;
    border-radius: 12px;
    overflow: hidden; /* Oculta lo que se salga de los bordes redondeados */
    display: flex;
    align-items: flex-end; /* Alinea el contenido de texto abajo */
    padding: 25px;
    
    /* Efecto de transición suave */
    transition: transform 0.3s ease;
    
    /* === IMPORTANTE: AÑADE TUS IMÁGENES DE FONDO AQUÍ === */
    background-size: cover;
    background-position: center;
}

/* Ponemos un fondo oscuro semitransparente para que el texto resalte */
.category-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

/* --- Imágenes de fondo para cada categoría --- */
/* Debes reemplazar estas URLs por las de tus propias imágenes */
.category-item:nth-child(1) { 
    background-image: url('https://images.unsplash.com/photo-1600862432658-2958a1127154?q=80&w=2070&auto=format&fit=crop');
}
.category-item:nth-child(2) { 
    background-image: url('https://images.unsplash.com/photo-1556740772-1a741367b93e?q=80&w=2070&auto=format&fit=crop');
}
.category-item:nth-child(3) { 
    background-image: url('https://images.unsplash.com/photo-1612036782180-6f0b6cd84627?q=80&w=2070&auto=format&fit=crop');
}
.category-item:nth-child(4) { 
    background-image: url('https://images.unsplash.com/photo-1600862432658-2958a1127154?q=80&w=2070&auto=format&fit=crop');
}
.category-item:nth-child(5) { 
    background-image: url('https://images.unsplash.com/photo-1556740772-1a741367b93e?q=80&w=2070&auto=format&fit=crop');
}
.category-item:nth-child(6) { 
    background-image: url('https://images.unsplash.com/photo-1612036782180-6f0b6cd84627?q=80&w=2070&auto=format&fit=crop');
}


.category-item:hover {
    transform: translateY(-5px); /* Efecto de "levantarse" al pasar el mouse */
}

/* Clase especial para que la primera categoría ocupe 2 columnas */
.category-item--large {
    grid-column: span 2;
}

.category-item-content {
    position: relative;
    z-index: 2; /* Pone el texto por encima de la capa oscura */
    color: var(--color-light);
}

.category-item-content h3 {
    color: var(--color-light);
    font-size: 2rem;
}

.category-item-content span {
    font-weight: 700;
    font-size: 1.1rem;
}

/* =================================================================
   DISEÑO RESPONSIVO PARA LAS CATEGORÍAS
   ================================================================= */
@media (max-width: 768px) {
    .categories-grid {
        /* En móvil, la rejilla se convierte en una sola columna */
        grid-template-columns: 1fr;
    }

    .category-item--large {
        /* En móvil, la tarjeta grande ya no ocupa 2 columnas */
        grid-column: span 1;
    }
    
    .category-item-content h3 {
        font-size: 1.8rem;
    }
}

/* =================================================================
   5. SECCIÓN DE COLECCIONES (MODELOS)
   ================================================================= */

.collections-section {
    padding: 80px 0;
    background-color: var(--color-gray);
}

/* --- Filtros --- */
.collection-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--color-dark);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* --- Rejilla de Productos --- */
.product-grid {
    display: grid;
    /* Rejilla responsiva: crea tantas columnas como quepan de 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* --- Tarjeta de Producto --- */
.product-card {
    background-color: var(--color-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-image {
    position: relative; /* Necesario para el efecto de superposición */
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* --- Capa de superposición con el botón --- */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Efectos de transición */
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1; /* Se hace visible al pasar el mouse sobre la tarjeta */
}

.product-overlay .btn {
    transform: translateY(20px); /* Empieza un poco abajo */
    transition: transform 0.3s ease;
}

.product-card:hover .product-overlay .btn {
    transform: translateY(0); /* Sube a su posición final */
}

/* --- Información del Producto --- */
.product-info {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 5px;
}

.product-category {
    font-size: 0.9rem;
    color: #777;
}

/* =================================================================
   6. SECCIÓN DE PROMOCIÓN ESPECIAL (FLASH SALE)
   ================================================================= */
.flash-sale-section {
    padding: 80px 0;
}

.flash-sale-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--color-gray);
    padding: 50px;
    border-radius: 12px;
}

/* --- Columna Izquierda: Texto y Contador --- */
.flash-sale-text {
    flex: 1;
}

.promo-subtitle {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.promo-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.flash-sale-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

/* --- Contador Regresivo --- */
.countdown-timer {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.time-box {
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.time-box span:first-child { /* El número */
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.time-box span:last-child { /* El texto (Días, Horas, etc.) */
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
}

/* --- Columna Derecha: Imagen --- */
.flash-sale-image {
    flex: 1;
}

.flash-sale-image img {
    width: 100%;
    border-radius: 12px;
    height: auto;
}

/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .flash-sale-content {
        flex-direction: column;
        padding: 30px;
    }
    .promo-title {
        font-size: 2.5rem;
    }
}

/* =================================================================
   7. SECCIÓN MODELO DEL MES (DEALS)
   ================================================================= */
.deals-section {
    padding: 80px 0;
    background-color: var(--color-light); /* Fondo blanco */
}

.deal-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas de igual tamaño */
    align-items: center;
    gap: 50px;
}

.deal-image img {
    width: 100%;
    border-radius: 12px;
}

.deal-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.deal-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.deal-features {
    list-style: none;
    margin-bottom: 25px;
}

.deal-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #333;
}

.deal-features i {
    color: var(--color-primary);
}

.deal-offer {
    background-color: var(--color-accent); /* Fondo de color beige/dorado */
    color: var(--color-dark);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 700;
}

.deal-offer strong {
    color: var(--color-primary);
}

/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .deal-container {
        grid-template-columns: 1fr; /* Una sola columna en pantallas pequeñas */
    }
    
    .deal-image {
        order: -1; /* Mueve la imagen arriba en móviles */
        margin-bottom: 30px;
    }

    .deal-title {
        font-size: 2.2rem;
    }
}

/* =================================================================
   8. BLOQUES DE PROMOCIÓN
   ================================================================= */
.promo-blocks-section {
    padding: 80px 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas */
    gap: 30px; /* Espacio entre los bloques */
}

.promo-block {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinea el contenido de texto abajo */
    min-height: 400px;
    padding: 30px;
    border-radius: 12px;
    overflow: hidden; /* Oculta lo que se salga de los bordes */
    background-size: cover;
    background-position: center;
    color: var(--color-light);
    transition: transform 0.3s ease;
}

/* Capa oscura para que el texto sea legible */
.promo-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    transition: background-color 0.3s ease;
}

/* --- Imágenes de fondo para cada bloque --- */
/* Debes reemplazar estas URLs por las de tus propias imágenes */
.promo-block:nth-child(1) { /* Alta Seguridad */
    background-image: url('https://images.unsplash.com/photo-1596461404969-9ae70f2830c1?q=80&w=1974&auto=format&fit=crop');
}
.promo-block:nth-child(2) { /* Minimalistas */
    background-image: url('https://images.unsplash.com/photo-1533090481720-856c6e3c1fdc?q=80&w=1974&auto=format&fit=crop');
}


.promo-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.promo-block:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.promo-block-content {
    position: relative;
    z-index: 2; /* Pone el texto por encima de la capa oscura */
}

.promo-block-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent); /* Color beige/dorado para el subtítulo */
}

.promo-block-title {
    font-size: 2.2rem;
    color: var(--color-light);
    margin: 5px 0 15px 0;
}

.promo-block-cta {
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: underline;
}

/* --- Diseño Responsivo --- */
@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
    }

    .promo-block-title {
        font-size: 1.8rem;
    }
}

/* =================================================================
   9. SECCIÓN DE TESTIMONIOS
   ================================================================= */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--color-gray); /* Fondo gris para destacar las tarjetas */
}

.testimonials-grid {
    display: grid;
    /* Rejilla responsiva: 2 columnas en desktop, 1 en móvil */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-light); /* Tarjetas blancas */
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.testimonial-header img {
    width: 70px;
    height: 70px;
    border-radius: 50%; /* Foto circular */
    object-fit: cover; /* Evita que la imagen se deforme */
}

.testimonial-author h3 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--color-dark);
}

.testimonial-author p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.testimonial-rating {
    margin-bottom: 20px;
    color: var(--color-accent); /* Estrellas en color dorado/beige */
    font-size: 1.1rem;
}

.testimonial-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr; /* Una sola columna */
    }
}

/* =================================================================
   10. SECCIÓN DE INSTAGRAM
   ================================================================= */

.instagram-section {
    padding: 80px 0;
}

.instagram-grid {
    display: grid;
    /* ESTA LÍNEA ES LA CLAVE: */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.instagram-photo {
    position: relative;
    display: block;
    overflow: hidden; /* Oculta el zoom de la imagen */
    border-radius: 12px;
}

.instagram-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 84, 48, 0.7); /* Verde primario semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.4s ease;
}

.instagram-overlay i {
    color: white;
    font-size: 2.5rem;
}

/* Efectos al pasar el mouse */
.instagram-photo:hover .instagram-overlay {
    opacity: 1; /* Muestra la capa de color */
}

.instagram-photo:hover img {
    transform: scale(1.1); /* Efecto de zoom en la imagen */
}

.instagram-follow {
    text-align: center;
    margin-top: 40px;
}

/* =================================================================
   11. SECCIÓN DE PREGUNTAS FRECUENTES (FAQ)
   ================================================================= */
.faq-section {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.faq-accordion {
    max-width: 800px; /* Limitamos el ancho para mejorar la legibilidad */
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    
    /* Reseteamos los estilos de botón */
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    /* Ocultamos la respuesta por defecto con max-height 0 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
    padding: 0 10px 25px 10px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* --- Estilos para cuando el acordeón está ACTIVO --- */
.faq-item.active .faq-question i {
    transform: rotate(45deg); /* Gira el ícono '+' para parecer una 'x' */
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Altura máxima que puede tener la respuesta, ajústala si tienes textos más largos */
}

/* =================================================================
   12. PIE DE PÁGINA (FOOTER)
   ================================================================= */

.main-footer {
    background-color: var(--color-primary); /* Fondo verde oscuro */
    color: #E0E0E0; /* Texto gris claro, no blanco puro */
    padding: 80px 0 20px 0;
}

.footer-grid {
    display: grid;
    /* Rejilla responsiva */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col-title {
    font-size: 1.3rem;
    color: var(--color-light); /* Títulos en blanco */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Línea de acento debajo de los títulos */
.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent); /* Color dorado/beige */
}

/* --- Columna "Acerca de" --- */
.footer-logo img {
    max-width: 100px; /* Ajusta el tamaño de tu logo en el footer */
    margin-bottom: 20px;
}

.footer-about-text {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    border-radius: 50%;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.footer-social a:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}


/* --- Columnas de Enlaces y Contacto --- */
.footer-col-links ul li,
.footer-col-contact ul li {
    margin-bottom: 15px;
}

.footer-col-links ul a {
    transition: color 0.3s ease;
}

.footer-col-links ul a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-col-contact ul {
    font-size: 1rem;
}

.footer-col-contact i {
    margin-right: 10px;
    width: 20px;
}
.footer-col-contact a:hover {
    color: var(--color-accent);
}

/* --- Sub-Footer con Copyright --- */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #A0A0A0;
}

/* =================================================================
   ESTILOS PÁGINA DE PROYECTOS
   ================================================================= */

.projects-section {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.projects-grid {
    display: grid;
    /* Rejilla responsiva: 2 columnas en desktop, 1 en móvil */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.project-portfolio-card {
    display: block; /* Para que el enlace ocupe todo el espacio */
    background-color: var(--color-light);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden; /* Mantiene los bordes redondeados con la imagen */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card-content {
    padding: 25px;
}

.project-card-category {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.project-card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.project-card-content p {
    color: #555;
    margin-bottom: 20px;
}

.project-card-cta {
    font-weight: 700;
    color: var(--color-primary);
    transition: padding-left 0.3s ease;
}

.project-portfolio-card:hover .project-card-cta {
    padding-left: 5px; /* Pequeño efecto de movimiento en el texto */
}

/* =================================================================
   ESTILOS PÁGINA SOBRE NOSOTROS
   ================================================================= */

.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* --- Sección de Valores --- */
.values-section {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.values-section .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-item {
    text-align: center;
}

.value-item i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value-item p {
    color: #555;
}


/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr; /* Una sola columna */
    }
    
    .about-text {
        order: 2; /* Mueve el texto debajo de la imagen en móviles */
    }
    .about-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    .values-section .container {
        grid-template-columns: 1fr; /* Una sola columna */
    }
}

/* =================================================================
   ESTILOS PÁGINA DE CONTACTO
   ================================================================= */

.contact-page-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Columna de info más delgada, form más ancho */
    gap: 60px;
}

.contact-details h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.contact-details p {
    margin-bottom: 30px;
    color: #555;
    line-height: 1.7;
}

.contact-list {
    list-style: none;
    margin-bottom: 40px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-list a {
    color: var(--color-dark);
    font-weight: 700;
}
.contact-list a:hover {
    color: var(--color-primary);
}

.contact-form-wrapper {
    background-color: var(--color-gray);
    padding: 40px;
    border-radius: 12px;
}
.contact-form-wrapper h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* --- Estilos para el Formulario (reutilizables) --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(40, 84, 48, 0.1);
}

/* --- Sección del Mapa --- */
.map-section iframe {
    display: block; 
    width: 70%; 
    height: 450px;
    border: 0;
    border-radius: 15px;
    padding-bottom: 30px;
    margin: 0 auto; 
}


/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Una sola columna */
    }
}

/* =================================================================
   ESTILOS PÁGINA DE DETALLE DE MODELO
   ================================================================= */
.product-detail-section {
    padding: 80px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* --- Galería de Imágenes --- */
.main-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}
.thumbnail {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.thumbnail:hover,
.thumbnail.active {
    border-color: var(--color-primary);
}


/* --- Información del Producto --- */
.product-details-info h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}
.product-short-description {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}
.product-details-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-gray);
    padding-bottom: 10px;
}
.spec-list {
    list-style: none;
    margin-bottom: 30px;
}
.spec-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.spec-list i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.cta-block {
    background-color: var(--color-gray);
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
}
.cta-block h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Sección de Productos Relacionados --- */
.related-products-section {
    padding: 80px 0;
    background-color: var(--color-gray);
}


/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr; /* Una sola columna */
    }
}

/* =================================================================
   ESTILOS PÁGINA DE DETALLE DE PROYECTO
   ================================================================= */

.project-hero {
    /* CAMBIA ESTA IMAGEN DE FONDO PARA CADA PROYECTO */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1610419702002-511470438a78?q=80&w=1932&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-light);
}

.project-hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-light);
}
.project-hero-content p {
    font-size: 1.2rem;
    color: var(--color-light);
}

.project-detail-section {
    padding: 80px 0;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Columna de historia más ancha que la barra lateral */
    gap: 60px;
}

.project-story h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    margin-top: 20px;
}
.project-story p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}
.project-story blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 5px solid var(--color-accent);
    background-color: var(--color-gray);
    border-radius: 0 5px 5px 0;
}
.project-story blockquote footer {
    font-style: normal;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1rem;
    color: var(--color-primary);
}

.project-sidebar {
    background-color: var(--color-gray);
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
}
.project-sidebar h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.sidebar-list {
    list-style: none;
}
.sidebar-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.sidebar-list li i {
    color: var(--color-primary);
    margin-top: 5px;
}
.sidebar-list ul {
    list-style: disc;
    padding-left: 20px; /* Sangría para la lista anidada */
    margin-top: 5px;
}
.sidebar-list ul li {
    margin-bottom: 5px;
}

.project-gallery-section {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .project-detail-grid {
        grid-template-columns: 1fr; /* Una sola columna */
    }
}

/* =================================================================
   ESTILOS PÁGINA DE DETALLE DE CATEGORÍA
   ================================================================= */
.category-feature-section {
    padding: 80px 0;
    background-color: var(--color-light);
}

/* Hacemos un pequeño ajuste para el título en esta sección */
.category-feature-section .deal-title {
    font-size: 2.2rem;
}