@font-face {
    font-family: 'Season Mix';
    src: url('../fonts/SeasonMix-TRIAL-Heavy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Basic Sans';
    src: url('../fonts/fonnts.com-Basic_Sans_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Basic Sans';
    src: url('../fonts/fonnts.com-Basic_Sans_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}


html {
    scroll-padding-top: 7rem;
    height: 100%;
}

body {
    font-family: 'Season Mix', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
}

main {
    flex: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-size: 2.1rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1rem;
}

.suTitulo {
    color: red
}

.my-navbar {
    width: 100%;
    background-color: #990012;
    height: 7rem;
    /* padding-top: 20px; */
    padding-bottom: 5px;
    padding-left: 10rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* justify-content: space-evenly; */
    column-gap: 10%;
}

.my-navbar-items {
    margin-top: 20px;
    font-size: larger;
    color: white;
    display: flex;
    flex-direction: row;
    /* width: 100%; */
    justify-content: center;
    column-gap: 5rem;
    list-style-type: none;
    align-items: center;
}

.my-navbar-items li a {
    position: relative;
    display: inline-block;
}

.nav-active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -40px;
    /* distancia respecto al texto */
    width: 170%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
}

.navbar-logo {
    width: auto;
    height: 80px;
}

.navbar-shop-logo {
    width: auto;
    height: 55px;
    margin-left: 10%;
    cursor: pointer;
    display: none;
}

/* .main-image{

} */

/* .main-section {
  height: 100vh;
  background-image: url("src/vaso_cafe.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
} */

/* El slider toma solo el ancho que necesita la imagen a su proporción real
   (altura fija -> ancho automático). El resto lo ocupa el texto. */
.slider-container {
    flex: 0 0 auto;
    height: calc(100dvh - 7rem);
    aspect-ratio: 1440 / 959;
    /* proporción real de las fotos (1440x959) */
}

.slider-wrapper {
    position: relative;
    height: 100%;
    margin: 0 auto;
}

.slider {
    display: flex;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
}

.slider img {
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    object-fit: cover;
}


.slider-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.slider-nav a {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.75;
    transition: opacity ease 250ms;
}

.slider-nav a:hover {
    opacity: 1;

}



.main-section-aboutus {
    display: flex;
    background-color: #f1edea;
    width: 100%;
}

/* El texto ocupa automáticamente el espacio restante */
.aboutus-text {
    flex: 1;
    min-width: 0;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
}


.aboutus-p {
    text-align: justify;
    max-width: 300px;
    font-family: 'Basic Sans', sans-serif;
    font-weight: 700;
    /* controla el ancho del bloque */
}


/* Artículo */


/* Footer */

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: black;
    padding: 100px 0px;
}


.footer-main-menu {
    display: flex;
    flex-direction: column;
    color: white;
    gap: 1rem;
    margin-right: 80px;
}


#footer-logo {
    width: 200px;
    height: 200px;
}

.footer-socialmedia {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}


.footer-socialmedia img {
    width: 16px;
    height: 34px;
}

.footer-socialmedia a:first-child img {
    width: 34px;
}



/* Sidebar shopping cart */



.offcanvas {
    width: 380px;
    background-color: #f3efeb;
}

.offcanvas-header {
    border-bottom: 2px solid #d8c7b8;
}

.offcanvas-body {
    padding: 2rem;
}


#hmb_Navbar {
    font-size: 1.5rem;
}


/* responsividad */
@media (max-width: 768px) {

    .my-navbar {
        flex-direction: row;
        height: 70px;
        padding: 1rem;
        /* gap: 1rem; */
        justify-content: space-between;
        align-items: center;
    }


    .my-navbar-items {
        display: none;
    }

    .navbar-logo {
        height: 40px;
    }


    .navbar-shop-logo {
        /* height: 40px;
        margin-left: 0; */
        display: none;
    }

    .slider img {
        object-fit: cover;
    }


    /* Layout principal */
    .main-section-aboutus {
        flex-direction: column;
    }

    /* Slider ocupa todo el ancho */
    .slider-container {
        width: 100%;
        height: calc(100dvh - 10rem);
        aspect-ratio: auto;
        /* anula la proporción fija del escritorio */
    }

    .slider {
        height: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .slider img {
        object-position: left center;
    }

    /* Texto abajo del slider */
    .aboutus-text {
        flex: none;
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .text-container {
        align-items: center;
        text-align: center;
    }

    .aboutus-p {
        max-width: 100%;
        text-align: justify;
    }


    footer {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 50px 20px;
        text-align: center;
    }

    #footer-logo {
        width: 80px;
        height: auto;
    }

    .footer-main-menu {
        margin-right: 0;
    }

    .footer-socialmedia {
        flex-direction: row;
        gap: 1.5rem;
    }

    .footer-socialmedia img {
        width: auto;
        height: 20px;
    }

    #footer-insta {
        height: 25px !important;
    }

}

/* Dropdown store navbar item */

.nav-item.dropdown {
    position: relative;
}


.dropdown-menu {
    background-color: #cbb59c;
    border: none;
    padding: 10px 0;
    position: absolute;
    left: -50px !important;
    /* transform: translateX(-30px); */
    top: 40px !important;
    margin-top: 10px;
    min-width: 200px;
    opacity: 0.95;
    border-radius: 0px;
}

.dropdown-item {
    color: #1b0e06;
    /* font-size: 0.9rem; */
    padding: 10px 20px;
    text-align: center;
    height: 22px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: transparent !important;
    color: inherit;
    text-decoration: underline;
}