/* ======== VARIABLES DE COLOR Y CONFIGURACIÓN BÁSICA ======== */
:root {
    --bg-color: #FFFAF5;  /* Blanco cremoso */
    --text-color: #000000; /* Negro */
    --primary-accent: #C13D13; /* Rojo-naranja */
    --secondary-accent: #A04F34; /* Marrón-rojizo */
    --font-main: 'Poppins', sans-serif;
}

/* Reseteo básico y smooth scroll */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    /* Fondo de siluetas de utensilios */
    background-image: url("img/fondo.png");
    background-repeat: repeat    ;
}

/* Asegura que las secciones tengan fondo sólido sobre el patrón del body */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem;
    text-align: center;
    background-color: var(--bg-color); /* Fondo sólido */
}

/* Párrafos dentro del container */
.container p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* NUEVO: Párrafo introductorio para secciones */
.section-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 300;
    color: #333;
}

#about {
    margin-top: -30px;
    position: relative;
    z-index: 5;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding-top: 5rem;
}

#about p {
    text-align: center;
}


h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-accent);
}
h3 {
    font-size: 1.5rem;
    color: var(--secondary-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ======== ESTILOS DE BOTONES ======== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: var(--bg-color);
    color: var(--primary-accent);
    border-color: var(--primary-accent);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(193, 61, 19, 0.3);
}

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--primary-accent);
}

.btn-secondary:hover {
    background-color: var(--primary-accent);
    color: var(--bg-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 250, 245, 0.3);
}

/* ======== NAVEGACIÓN FIJA (STICKY) ======== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--bg-color);
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}
/* ICONOS REDES SOCIALES */
.nav-socials {
    display: flex;
    gap: 1.2rem;
}

.nav-socials a {
    color: var(--bg-color);
    font-size: 1.2rem;
    transition: transform 0.3s, color 0.3s;
}

.nav-socials a:hover {
    color: var(--primary-accent);
    transform: translateY(-3px);
}
.btn-nav {
    background-color: var(--primary-accent);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: var(--bg-color);
    color: var(--primary-accent);
}
.btn-nav:hover::after {
    width: 0;
}


/* ======== ENCABEZADO Y HERO CON VIDEO ======== */
.hero {
    height: 100vh;
    color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-title {
    font-size: 5rem;
    color: var(--primary-accent);
    letter-spacing: 5px;
    animation: slideInFromTop 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    animation: slideInFromBottom 1s ease-out;
}

.hero .btn {
    animation: slideInFromBottom 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.hero-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-color);
    letter-spacing: 1px;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    animation: slideInFromBottom 1s ease-out 0.2s;
    animation-fill-mode: backwards;
}

/* Estilos de la Cuenta Regresiva */
#countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    animation: slideInFromBottom 1s ease-out 0.4s;
    animation-fill-mode: backwards;
}

.countdown-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--primary-accent);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    min-width: 80px;
    backdrop-filter: blur(5px);
}

.countdown-item span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-color);
}

.countdown-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--bg-color);
    opacity: 0.8;
}

/* ======== GALERÍA ======== */
#gallery {
    background-color: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(160, 79, 52, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item h3 {
    padding: 1.5rem;
    color: var(--primary-accent);
}

/* ======== NUEVO: SECCIONES DE CONTENIDO PARTIDO (Texto + Imagen) ======== */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas por defecto */
    gap: 3rem;
    align-items: center;
    text-align: left; /* Sobrescribe el text-align: center del .container */
}

.content-split h2 {
    text-align: left; /* Título alineado a la izquierda */
    margin-bottom: 1.5rem;
}

/* Párrafos dentro del split, alineados a la izquierda */
.content-split p {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
}

.content-images {
    display: grid;
    gap: 1.5rem;
}

/* Para la sección "História" con 2 imágenes */
.content-images:not(.single) {
    grid-template-columns: 1fr 1fr;
}

/* Para la sección "Sustentabilidade" con 1 imagen */
.content-images.single {
    grid-template-columns: 1fr;
}

.content-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-images img:hover {
    transform: scale(1.03); /* Ligero zoom al pasar el mouse */
}

/* NUEVO: Clase para invertir el orden (Imagen | Texto) */
.content-split.reverse {
    /* Mueve la columna de texto a la segunda posición en el grid */
    .content-text {
        order: 2;
    }
    .content-images {
        order: 1;
    }
}


/* ======== SECCIÓN "REGISTRO" (CTA) ======== */
.cta-section {
    background-color: var(--secondary-accent);
    color: var(--bg-color);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 5;
}

.cta-section h2 {
    color: var(--bg-color);
    font-size: 2.8rem;
}

/* ======== FOOTER ======== */
.footer {
    background-color: var(--text-color);
    color: var(--bg-color);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 5;
}

/* ======== ANIMACIONES (Keyframes) ======== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ======== RESPONSIVE DESIGN (Para móviles) ======== */
@media (max-width: 900px) {
    /* NUEVO: Apila las columnas en pantallas más pequeñas */
    .content-split {
        grid-template-columns: 1fr; /* Una sola columna */
    }
    
    .content-split h2,
    .content-split p {
        text-align: center; /* Centramos el texto en móvil */
    }

    /* Resetea el orden en móvil para la clase .reverse */
    .content-split.reverse {
        .content-text {
            order: 1;
        }
        .content-images {
            order: 2;
        }
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .nav-links li {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .btn-nav {
        padding: 0.4rem 0.8rem;
    }

    #countdown {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .countdown-item {
        min-width: 70px;
        padding: 0.5rem;
    }

    .countdown-item span {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 2rem;
    }
}