@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body{
    font-family: 'montserrat';
    background-color: #f5f0e6;
    width: 100%;
    min-height: 100%;
}


/*--- seccion header ---*/

.header{
    background-color: #441f03;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    font-size: 1.2rem;
    color: #f5f0e6;
    width: 100%;
    z-index: 20;
}

.header__nav{
    margin-right: 10px;
}

.header__nav-list{
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: auto;
    height: auto;
    list-style: none;
}

.header__nav-item{
    padding: 6px 13px;
}

.header__nav-item a{
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    font-weight: 700;
}

.header__nav-item:hover{
    background-color: #B07C59 ;
    color: #441f03;
    border-radius: 6px;
    padding: 6px 13px;
}


.header__logo{
    width: 64px;
    border-radius: 50%;
    margin-left: 10px;
}

/*----------------------------------------------*/

/*--- seccion main ---*/

.main__wrapper{
    width: 100dvw;
    height: auto;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

.main__data-container{
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-wrap: balance;
    color: #3E2C23;
}


.main__titulo{
    text-transform: uppercase;
    font-size: clamp(52px, 9dvw, 80px);
}

.main__description{
    margin-top: 20px;
    font-size: clamp(14px, 2vw, 18px);
}

/*-----------------------------------------------*/

/*--- seccion img ---*/

.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 50px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px #441f03;
}

.carousel-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen para que llene el espacio */
    flex-shrink: 0;
}


@media (max-width: 780px) {
    .carousel {
        height: auto;           /* que la altura se ajuste automáticamente */
        aspect-ratio: 4 / 3;    /* mantiene relación proporcional */
    }

    .carousel-images img {
        object-fit: cover;      /* sigue rellenando bien el contenedor */
    }

    .main__titulo {
        font-size: clamp(36px, 8vw, 60px);
    }

    .main__description {
        font-size: clamp(12px, 4vw, 16px);
    }

    .header {
        font-size: 15px;
        flex-direction: column;
        align-items: center;
    }

    .header__logo{
        width: 40px;
    }

    .header__nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 450px) {

    .carousel {
        aspect-ratio: 1 / 1; /* cuadrado para pantallas muy pequeñas */
    }

    .main__titulo {
        font-size: clamp(28px, 10vw, 48px);
    }

    .main__description {
        font-size: clamp(10px, 3.5vw, 14px);
    }

    .header{
        flex-direction: column;
        align-items: center;
        font-size: small;
    }

    .header__logo{
        width: 40px;
    }
}
