/* ==============================
   ESTILOS GLOBALES
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Chau Philomene One', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* ==============================
   TIPOGRAFÍA Y TEXTOS
   ============================== */
h1, h2, h3, p, nav a, button, input, textarea {
    font-family: 'Chau Philomene One', sans-serif;
}

h1, h2, h3 {
    color: #1B5E20;
    text-align: center;
    margin-bottom: 15px;
}

p {
    text-align: center;
    margin-bottom: 20px;
}

.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==============================
   ENCABEZADO Y NAVEGACIÓN
   ============================== */
header {
    background-color: #f5f5f5;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    max-height: 90px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #1B5E20;
    font-size: 26px;
    transition: color 0.3s;
}

nav a:hover {
    color: #FF6F61;
}

/* ==============================
   SECCIÓN HERO (Carrusel de inicio)
   ============================== */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 25px 35px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.hero-text h1 {
    font-size: 2.2rem;
    color: #1B5E20;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

/* ==============================
   SECCIONES GENERALES
   ============================== */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos específicos para la sección "Sobre Nosotros" */
#nosotros p {
    font-size: 1.3rem;
    text-align: justify;
    margin-bottom: 20px;
}

/* ==============================
   NUESTROS PRODUCTOS
   ============================== */
.productos-container {
    display: flex;
    justify-content: center; /* Alinea los productos en el centro */
    flex-wrap: wrap; /* Permite que los productos se envuelvan a la siguiente línea */
    gap: 25px;
    margin-top: 30px;
}

.producto {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    flex: 1 1 45%; /* Flex-basis para que ocupen casi la mitad del espacio */
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.producto:hover {
    transform: scale(1.05);
}

.producto-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ==============================
   SECCIÓN CONTACTO
   ============================== */
#contacto {
    background-color: #f9f9f9;
    padding-bottom: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px; /* AÑADIDO: Margen inferior para separar del footer */
}

.contacto-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.info, form {
    flex: 1 1 45%;
    min-width: 300px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

form button {
    background-color: #1B5E20;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    width: 100%;
}

form button:hover {
    background-color: #145214;
}

/* ==============================
   PIE DE PÁGINA
   ============================== */
footer {
    background-color: #1B5E20;
    color: #fff;
    padding: 15px 0; /* MODIFICADO: Reducido el padding vertical */
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Estilos para el modo responsive, aplican en pantallas pequeñas */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .productos-container, .contacto-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .producto, .info, form {
        width: 100%;
    }

    .hero-text {
        padding: 15px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Estilos del pie de página para móviles */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 8px; /* MODIFICADO: Reducido un poco el gap para mantener la altura reducida */
    }

    /* Estilos para la sección "Sobre Nosotros" en móvil */
    #nosotros p {
        text-align: justify;
    }
}

/* ==============================
   BANNER DE COOKIES
   ============================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #212529;
    color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.cookie-banner .banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner p {
    margin: 0;
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner a {
    color: #f8b400;
    text-decoration: underline;
}

.cookie-banner .banner-buttons {
    display: flex;
    gap: 10px;
}

.cookie-banner button {
    background-color: #1B5E20;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Chau Philomene One', sans-serif;
    font-size: 14px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cookie-banner button:hover {
    background-color: #000;
}