html,
body{
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Bree Serif", serif;
}

body, h5, h6{
    font-family: "Nunito Sans", sans-serif;
}

body{
    font-size: 1.5rem;
    transition: opacity 0.6s ease;    
}


h1{
    font-size: 3rem;
}

/* ---- Botón sticky "Ir a la orden" (pill) ---- */

.barra-carrito {
    position: fixed;
    top: 1.25rem;
    right: 2rem;
    z-index: 2000;
    background-color: #210100;
    color: #FDF6E3;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    border: 2px solid #E6A341;
    font-family: "Bree Serif", serif;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(33, 1, 0, 0.35);
    transform: translateY(-150%);
    transition: transform 0.35s ease, box-shadow 0.3s ease;
}

.barra-carrito.visible {
    transform: translateY(0);
}

.barra-carrito:hover {
    box-shadow: 0 0 0 3px rgba(230, 163, 65, 0.5), 0 10px 24px rgba(33, 1, 0, 0.45);
}

.pantalla-carga {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #210100;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

@keyframes pulso {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.pantalla-carga img {
    width: 200px;
    animation: pulso 1.2s ease-in-out infinite;
}


.hero-intro{
    position: relative;
    background-color: #FDF6E3;
    color: #1A1A1A;
    padding-bottom: 4rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    clip-path: ellipse(100% 94% at 50% 0%);
}

.hero-img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.hero-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

header .navbar{
    background-color: #210100;
    --bs-navbar-color: #FDF6E3;
    --bs-nav-link-color: #FDF6E3;
    --bs-navbar-active-color: #FDF6E3;
    --bs-navbar-hover-color: #E6A341;
    padding: 1rem 0
}

.navbar-nav img{
    height: 70px;
    width: auto;
}

.navbar-toggler-icon{
    background-color:#FECE79;
    border-radius: 5px;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    margin-left: 15px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e29624;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}



/* ---- Volver al inicio ---- */

.volver-inicio{
    display: inline-block;
    color: #210100;
    font-family: "Bree Serif", serif;
    font-size: 1.1rem;
    text-decoration: none;
    margin: 1.5rem 0;
    transition: color 0.3s ease;
}

.volver-inicio:hover{
    color: #8C0902;
}

.volver-inicio-hero{
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    margin: 0;
    font-size: 1rem;
}

.volver-inicio-abajo{
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* ---- Navegación por sección ---- */

.catalogo-nav-section{
    margin-bottom: 1.5rem;
}

.catalogo-nav .nav-link{
    font-family: "Bree Serif", serif;
    font-size: 1.1rem;
    color: #210100;
    background-color: #FEF9F0;
    border: 1px solid #e0d6c0;
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    margin-left: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.catalogo-nav .nav-link::after{
    display: none;
}

.catalogo-nav .nav-link:hover,
.catalogo-nav .nav-link.active{
    background-color: #E6A341;
    color: #210100;
}

/* ---- Texto introductorio de cada sección ---- */

.seccion-intro{
    max-width: 750px;
    margin: 0 auto 2rem;
    color: #1A1A1A;
    font-size: 1.3rem;
    line-height: 1.4;
}

div.seccion-titulo{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
}

.seccion-catalogo{
    margin-bottom: 4rem;
}

.seccion-titulo img{
    height: 60px;
    width: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
}


.producto-card{
    height: 100%;
    background-color: #210100; /* primario */
    color: #FDF6E3;
    border-radius: 20px;
    overflow: hidden;
    transition: background-color 0.4s ease, transform 0.6s ease;
    padding:1.5rem;
    display:flex;
    flex-direction:column
}

.producto-card .producto-nombre{
    color: #FDF6E3;
}

.producto-card .producto-descripcion,
.producto-card .producto-precio{
    color: #FDF6E3;
}

.producto-descripcion{
    flex-grow:1;
}

.producto-card:hover {
    background-color: #8C0902; /* rojo, hover */
    transform: translateY(-5px)
}

.producto-card:hover .boton-carrito{
    background-color: #FECE79;
}

.producto-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem
}

.producto-footer{
    display: flex;
    justify-content: space-between;
    align-items:center
}

.boton-carrito{
    height: 2.7rem;
    width: 2.7rem;
    background-color: #FDF6E3;
    border: none;
    border-radius: 45%;
    padding:0.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(33, 1, 0, 0.25);
    transition: background-color 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.boton-carrito-icon{
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.boton-carrito:hover{
    transform: scale(1.15) rotate(-6deg);
    box-shadow: 0 6px 14px rgba(33, 1, 0, 0.4);
}

.boton-carrito:focus-visible{
    outline: 3px solid #E6A341;
    outline-offset: 3px;
}

.producto-card:hover .boton-carrito:hover{
    background-color: #E6A341;
}

/* ---- Control de cantidad del carrito ---- */

.carrito-control{
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.qty-selector{
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #FDF6E3;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.qty-btn{
    border: none;
    background-color: #E6A341;
    color: #210100;
    width: 1.8rem;
    height: 1.8rem;
    line-height: 1;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.qty-btn:hover{
    background-color: #FECE79;
}

.qty-btn:focus-visible{
    outline: 3px solid #210100;
    outline-offset: 2px;
}

.qty-num{
    min-width: 1.2rem;
    text-align: center;
    color: #210100;
    font-size: 1.1rem;
}

.pantalla-carga.oculto {
    opacity: 0;
    pointer-events: none;
}


body.visible {
    opacity: 1;
}

footer{
    height: auto;
    background-color:#FDF6E3;
    padding-left: 10rem;
    padding-right: 10rem;
    font-size: 1rem;
}

footer h3{
    font-size: 1.3rem;
}

footer p{
    font-size: 0.95rem;
}

footer .info img, footer .redes img{
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.redes-iconos {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-whatsapp-icon{
    width: 22px;
    height: 22px;
    margin: 0 0 0 6px;
    vertical-align: middle;
}

.footer-whatsapp-link{
    display: inline-block;
}

.logo-miel{
    margin-top: 10%;
    width: 80%;
    height:auto;
}

.cierre-titulo{
    font-size: 3rem;
}

.cierre-img{
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* ==========================
   LAPTOP (993px - 1440px)
========================== */

@media (min-width: 993px) and (max-width: 1440px) {

    body{
        font-size: 1.3rem;
    }
}

/* ==========================
   TABLETS (<=992px)
========================== */

@media (max-width: 992px) {

    body{
        font-size: 1.2rem;
    }

    h1{
        font-size: 2.5rem;
    }

    .cierre-titulo{
        font-size: 2.5rem;
    }

    .hero-img{
        width: 100%;
        margin-top: 2rem;
    }

    .cierre-img{
        width: 100%;
        height: auto;
        margin-top: 2rem;
    }

    footer{
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .logo-miel{
        width: 60%;
        max-width: 220px;
        height: auto;
    }

}

/* ==========================
   CELULARES (<=768px)
========================== */

@media (max-width:768px){

    .barra-carrito {
        top: 0.85rem;
        right: 1rem;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    body{
        font-size:1rem;
    }

    h1{
        font-size:2rem;
        text-align:center;
    }

    .cierre-titulo{
        font-size:2rem;
        text-align:center;
    }

    h2{
        font-size:1.8rem;
    }

    h3{
        font-size:1.4rem;
    }

    .volver-inicio-hero{
        position: static;
        display: block;
        text-align: left;
        margin: 0 0 1.5rem;
        padding-left: 1rem;
    }

    .hero-intro{
        text-align:center;
        margin-bottom:3rem;
        padding-top:1.5rem;
        clip-path: ellipse(100% 90% at 50% 0%);
    }

    .hero-img{
        width:100%;
        margin-top:2rem;
    }

    .producto-img{
        height:200px;
    }

    .producto-card{
        padding:1.2rem;
    }

    .seccion-titulo img{
        width:45px;
        height:45px;
    }

    .navbar-nav img{
        height:55px;
    }

    .nav-link{
        margin-left:0;
        margin-top:.5rem;
        margin-bottom:.5rem;
        text-align:center;
    }

    footer{
        padding:2rem 1rem;
        text-align:center;
    }

    footer h3{
        font-size:1rem;
    }

    footer p{
        font-size:.8rem;
    }

    footer .info img,
    footer .redes img{
        width:35px;
        height:35px;
        margin-bottom:10px;
    }

    .redes-iconos {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1.25rem;
    }

    .redes-iconos img {
        margin-bottom: 0;
    }

    .logo-miel{
        width:100%;
        max-width:170px;
        height:auto;
        margin-top: 25%;
    }

    .cierre{
        text-align:center;
    }

    .cierre-subtitulo{
        margin-bottom: 0;
    }

    .cierre-img{
        width:100%;
        height:auto;
        margin-top:0;
    }

    .pantalla-carga img{
        width:150px;
    }

}