/* Importación de módulos CSS */
@import 'variables.css';
@import 'animations.css';
@import 'base.css';

/* Importación de secciones */
@import 'sections/hero.css';
@import 'sections/header.css';
@import 'sections/history.css';
@import 'sections/contact.css';
@import 'sections/products.css';
@import 'sections/footer.css';
@import 'sections/store.css';
@import 'sections/cookies.css';
@import 'sections/legal.css';

/* Contenedor principal */
.main-wrapper {
    background-color: var(--background-color);
    min-height: 100vh;
    width: 100%;
}

/* Estilos comunes de secciones */
section {
    margin: var(--section-spacing) 0;
}

section:first-of-type {
    margin-top: 0;
}

section:last-of-type {
    margin-bottom: 0;
}

/* Contenedores de sección */
.hero-container,
.history-section,
.products-section,
.contact-section,
.store-section,
.section-wrapper {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

/* Contenido de las secciones */
.hero,
.history-content,
.products-wrapper,
.contact-wrapper,
.store-wrapper {
    max-width: 1400px;
    margin: 2rem auto;
}

/* Excepciones para barras completas */
.denomination-seal,
.store-cta {
    position: relative;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 3rem 0;
    left: 50%;
    right: 50%;
    width: 100vw;
}

.denomination-seal > *,
.store-cta > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Media queries */
@media (max-width: 768px) {
    :root {
        --section-spacing: 3rem;
    }

    .hero,
    .history-content,
    .products-wrapper,
    .contact-wrapper,
    .store-wrapper {
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    :root {
        --section-spacing: 2rem;
    }

    .hero,
    .history-content,
    .products-wrapper,
    .contact-wrapper,
    .store-wrapper {
        margin: 0.5rem auto;
    }
}
