/* ==========================================
   BASE (Mobile First)
   320px - 479px
   Celulares chicos
========================================== */
body {
    font-family: 'Noto Serif', serif;
    background-color: #ffffff;
    text-align: center;
}

/* Noto Serif – Regular 400 */
@font-face {
    font-family: 'Noto Serif';
    src: url('../tipografia-Noto-Serif/NotoSerif-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/*light*/
@font-face {
    font-family: 'Noto Serif';
    src: url('../tipografia-Noto-Serif/NotoSerif-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


/* Noto Serif – Bold 700 */
@font-face {
    font-family: 'Noto Serif';
    src: url('../tipografia-Noto-Serif/NotoSerif-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: bold;
    font-display: swap;
}


.margin-nav-fixed-top {
    padding-top: calc(var(--navbar-height) - 1rem) !important;
}

.boton-caract-producto {
    color: rgb(122, 121, 121);
    margin-bottom: 1rem;
}

.precio-tarjeta {
    font-size: 1.4rem;
    display: inline-block;
}

.o {
    color: rgb(86, 171, 86);
    font-size: 1.1rem;
}

.descuento {
    font-size: 0.9rem;
    color: rgb(86, 171, 86);
    padding: 0rem 0.5rem;
    display: inline-block;
    font-style: italic;
}

/* PRECIOS NUEVOS */
.precio-base {
    font-size: 2rem;
    color: rgb(86, 171, 86);
    display: inline-block;
}


.cuotas {
    margin: 1rem 2rem 0.8rem 2rem;
    opacity: 75%;
}

.cantidad-cuotas {
    opacity: 75%;
}

.tamaño-mensaje-stock {
    margin: 2.5rem 0rem 1.3rem 0rem;
}


.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 400;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* COMIENZO CONTROL VISUAL DE ALERTA DE STOCK */

/* ICONO */
.stock-badge i {
    font-size: 1rem;
}

/* 🟢 STOCK OK */
.stock-ok {
    background: linear-gradient(135deg, #28c76f, #48da89);
}

/* 🟡 POCO STOCK */
.poco-stock {
    background: linear-gradient(135deg, #28c76f, #48da89);
}

/* 🔴 ultima unidad y SIN STOCK Y 🔥 ULTIMA UNIDAD (URGENTE) */
.ultima-unidad {
    background: linear-gradient(135deg, #d4af37, #f7e7a0);
    color: #4a3b00;
}

.sin-stock {
    background: linear-gradient(135deg, #ea5455, #ff7676);
}

/* ✨ EFECTO HOVER PRO */
.stock-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* FIN CONTROL VISUAL DE ALERTA DE STOCK */

.card-body {
    margin-top: 3rem;
    border: 0.0625rem solid #e5e5e5;
    border-radius: 1rem;
}

.contenedor-sobre-el-producto h2 {
    padding: 4rem 0rem 1rem 0rem;
}
.contenedor-sobre-el-producto{
        margin-bottom: 4rem;
}

/* INICIO SECCION FORMAS DE RETIRO Y ENVIOS */
.gratis {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    background-color: rgb(76, 156, 76);
}

.costo {
    background-color: rgb(38, 38, 130);
}

.puntos-retiro {
    font-weight: 700;
}

/* ocultar contenido */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* WRAPPER → centra todo */
.info-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* CONTENEDOR */
.info-box {
    width: 100%;
    border: 0.0625rem solid #e5e5e5;
    border-radius: 1rem;
    padding: 1rem;
    background: #ffffff;
}

/* TABS CONTENEDOR */
.tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 999rem;
    padding: 0.25rem;
    margin-bottom: 1rem;
}

/* BOTONES */
.tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    border-radius: 999rem;

    font-size: 0.8rem;
    font-weight: 500;
    color: #888;

    cursor: pointer;
    transition: all 0.25s ease;
}

/* HOVER */
.tab:hover {
    color: #444;
}

/* ACTIVO */
.tab.active {
    background: #ffffff;
    color: #2d2d2d;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.08);
}

/* CONTENIDO */
.contenido-tab {
    position: relative;
}

/* TEXTO */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(0.3125rem);
    transition: all 0.3s ease;

    font-size: 0.875rem;
    color: #444;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.gratis,
.costo {
    padding: 0.4rem 0.9rem;
    border-radius: 1rem;
    color: #e5e5e5;
    font-weight: 700;
}

/* FIN SECCION FORMAS DE RETIRO Y ENVIOS */

/*FOOTER*/
.footer-custom {
    background: #f7f0e8;
    border-top: 1px solid #dbc8b5;
}

.footer-logo {
    max-width: 150px;
}

.footer-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-info-item {
    display: flex;
    align-items: center;
}

.footer-icon {
    font-size: 1.4rem;
    color: #976241;
    transition: 0.3s;
}

.footer-icon-link {
    text-decoration: none;
}

.footer-info-text {
    font-size: 1rem;
    color: #6f5a48;
    transition: 0.3s;
}

.footer-icon-link:hover .footer-icon,
.footer-icon-link:hover .footer-info-text {
    color: #ff9857;
}

.footer-text {
    color: #6f5a48;
    font-size: 0.9rem;
}

/* MODAL */

.modal-carrito-overlay {
    position: fixed;
    top: 15px;
    left: 0;
    right: 0;
    z-index: 9999;
    /* centra horizontalmente */
    display: flex;
    justify-content: center;
    /* arranca oculto */
    visibility: hidden;
    opacity: 0;
    transition: .3s ease;
    pointer-events: none;
}

/* estado visible */

.modal-carrito-overlay.activo {

    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

/* ======================================
CAJA BLANCA DEL MODAL

- ancho máximo controlado
- mismo margen izquierda y derecha
====================================== */

.modal-carrito-card {

    background: white;
    /* margen simétrico */
    width: 90%;
    margin: 0 2rem 0 2rem;
    /* evita que sea gigante */
    max-width: 360px;
    text-align: start;
    border-radius: 1rem;

    padding: 1.2rem 1.2rem 1.2rem 1.2rem;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, .15);

    transform: translateY(-20px);

    transition: .3s ease;
}

.modal-carrito-overlay.activo .modal-carrito-card {
    transform: translateY(0);
}

/*HEADER */

.modal-carrito-header {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    align-items: center;
    margin-bottom: 0.2rem;
}

.modal-carrito-header h6 {
    /* color: #EF9E56; */
    color: #EF9E56;
    font-weight: 700;
    margin: 0rem 0 1rem 0;
    font-size: 1.1rem;
}

.modal-carrito-close {
    width: 2.125rem;
    height: 2.125rem;
    border: none;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #888;
    transition: .25s ease;
    padding: 0;
}

.modal-carrito-close i {
    font-size: 1rem;
    line-height: 1;
}

/* PRODUCTO */
.modal-carrito-producto {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-carrito-img {
    width: 80px;
    /* 100 */
    flex-shrink: 0;
}

.modal-carrito-img img {
    width: 100%;
    display: block;
}

.modal-carrito-info {
    flex: 1;
}

.modal-carrito-info h4 {
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
    line-height: 1.3;
}

.modal-carrito-info p {
    margin: 0;
}

.cantidad {
    font-size: 0.7rem;
}

#modalProductoPrecio {
    font-weight: 400;
    margin-top: 0.2rem;
}

/*TOTAL*/

.modal-carrito-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/*BOTON*/

.modal-carrito-btn {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    text-align: center;
    background: #8A6248;
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    padding: 0.6rem;
    font-weight: 700;
}

.modal-carrito-btn:hover {
    color: white;
}

/* BOTÓN AGREGAR + SELECTOR CANTIDAD*/

.contenedor-compra {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 5rem;
}

/* BOTÓN PRINCIPAL */
.agregar-carrito {
    flex: 1;
    min-height: 3.15rem;
    border: 0.0625rem solid #8A6248;
    border-radius: 1rem;
    background-color: #8A6248;
    color: #FDF7EF;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    cursor: pointer;

}

/* ESTADO AGREGADO */
.agregar-carrito.producto-agregado {
    background-color: #FDF7EF;
    color: #8A6248;
    border-color: #8A6248;
}

/* SELECTOR HORIZONTAL */
.selector-cantidad {
    flex: 0 0 6.5rem;
    min-height: 3.15rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0.0625rem solid #D8C4B3;
    border-radius: 1rem;

    background-color: #FFFDF9;

    overflow: hidden;
}

/* BOTONES + Y - */
.cantidad-menos,
.cantidad-mas {
    width: 2rem;
    height: 100%;

    border: none;
    background-color: transparent;
    color: #8A6248;

    font-size: 1.1rem;
    font-weight: 500;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

/* NÚMERO */
.cantidad-valor {
    min-width: 1.8rem;

    text-align: center;

    color: #4B3A30;

    font-size: 1rem;
    font-weight: 600;

    user-select: none;
}

/* LÍMITE DE STOCK */
.cantidad-valor.cantidad-limite {
    color: #B9B0AA;
}

/* ======================================================
   MICROANIMACIONES - BOTÓN AGREGAR + CANTIDAD
====================================================== */

/* Base animable */
.agregar-carrito,
.selector-cantidad,
.cantidad-menos,
.cantidad-mas,
.cantidad-valor {
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

/* Hover botón principal */
.agregar-carrito:hover {
    transform: translateY(-0.08rem);
    box-shadow: 0 0.45rem 1.15rem rgba(138, 98, 72, 0.16);
}

/* Click físico */
.agregar-carrito:active {
    transform: translateY(0);
    box-shadow: 0 0.2rem 0.55rem rgba(138, 98, 72, 0.12);
}

/* Hover cápsula cantidad */
.selector-cantidad:hover {
    border-color: #C49A7A;
    box-shadow: 0 0.35rem 0.9rem rgba(138, 98, 72, 0.08);
}

/* Hover + y - */
.cantidad-menos:hover,
.cantidad-mas:hover {
    background-color: #FDF7EF;
    color: #EF9E56;
}

/* Click + y - */
.cantidad-menos:active,
.cantidad-mas:active {
    transform: scale(0.92);
}

/* Estado agregado con personalidad */
.agregar-carrito.producto-agregado {
    position: relative;
    overflow: hidden;
}

/* Brillito sutil al quedar agregado */
.agregar-carrito.producto-agregado::after {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(239, 158, 86, 0.18),
            transparent);
    transform: skewX(-18deg);
    animation: brillo-agregado 0.75s ease;
}

@keyframes brillo-agregado {
    from {
        left: -35%;
    }

    to {
        left: 120%;
    }
}

/* Número cuando llega al límite */
.cantidad-valor.cantidad-limite {
    animation: limite-stock 0.22s ease;
}

@keyframes limite-stock {
    0% {
        transform: translateX(0);
    }

    35% {
        transform: translateX(-0.12rem);
    }

    70% {
        transform: translateX(0.12rem);
    }

    100% {
        transform: translateX(0);
    }
}

/* Alerta stock */
.alert-stock {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    z-index: 9999;

    transform: translate(-50%, -0.6rem);
    opacity: 0;

    background-color: #4B3A30;
    color: #FDF7EF;

    padding: 0.7rem 1rem;
    border-radius: 1rem;

    font-size: 0.9rem;
    font-weight: 500;

    box-shadow: 0 0.55rem 1.4rem rgba(0, 0, 0, 0.18);

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.alert-stock.activo {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Accesibilidad: reduce movimiento */
@media (prefers-reduced-motion: reduce) {

    .agregar-carrito,
    .selector-cantidad,
    .cantidad-menos,
    .cantidad-mas,
    .cantidad-valor,
    .alert-stock {
        transition: none;
        animation: none;
    }

    .agregar-carrito:hover,
    .cantidad-menos:active,
    .cantidad-mas:active {
        transform: none;
    }
}

/* BREAKPOINTS*/
/* Celulares grandes 480px+*/

@media (min-width:480px) {
    .nombre-producto {
        font-size: 1.7rem;
        margin-top: 1.4rem;
    }

    .precio-base {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .marg-iconos {
        margin-top: 2rem;
    }

    .margenes-retiros {
        margin-top: 2rem;
    }

    .contenedor-compra {
        margin-bottom: 0rem;
    }
}

@media (min-width:768px) {
    body {
        text-align: start;
    }

    .margin-nav-fixed-top {
        padding-top: calc(var(--navbar-height) + 0.5rem) !important;
    }

    .nombre-producto {
        margin: 0.3rem 0 0.3rem 0rem;
        font-size: 1.3rem;
        padding: 0rem;
    }

    .boton-caract-producto {
        font-size: 0.8rem;
        color: #a09e9e;
    }

    .precio-tarjeta {
        font-size: 1.6rem;
    }

    .o {
        font-size: 1.2rem;
    }

    .descuento {
        font-size: 0.8rem;
    }

    .precio-base {
        font-size: 2.1rem;
        margin-top: 0rem;
    }


    .cuotas {
        margin: 1.7rem 0rem 0rem 0rem;
        opacity: 75%;
    }

    .cantidad-cuotas {
        font-size: 0.8rem;
    }

    .stock-badge {
        margin-top: 1.5rem;
        font-size: 0.7rem;
    }

    /* CONTENEDOR */
    .info-box {
        width: 100%;
        max-width: 50rem;
        /* 👈 controla el ancho tipo mobile elegante */
    }

    .tab {
        font-size: 1.3rem;
    }

    .tabs {
        margin-bottom: 2rem;
    }

    .gratis {
        font-size: 1rem;
    }

    .puntos-retiro {
        font-size: 1.2rem;

    }

    .textos-retiros {
        font-size: 1rem;
    }

    .costo {
        font-size: 1rem;
    }

    #modalCarrito .modal-carrito-card {
        max-width: 26rem;
        padding: 1.6rem;
        border-radius: 1.2rem;
    }

    #modalCarrito .modal-carrito-header {
        margin-bottom: .6rem;
    }

    #modalCarrito .modal-carrito-header h6 {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    #modalCarrito .modal-carrito-close {
        width: 2.5rem;
        height: 2.5rem;
    }

    #modalCarrito .modal-carrito-close i {
        font-size: 1.15rem;
    }

    #modalCarrito .modal-carrito-producto {
        gap: 1.2rem;
        margin-bottom: 1.5rem;
    }

    #modalCarrito .modal-carrito-img {
        width: 6rem;
    }

    #modalCarrito .modal-carrito-info h4 {
        font-size: 1rem;
        margin-bottom: .45rem;
    }

    #modalCarrito .modal-carrito-info p {
        font-size: .9rem;
    }

    #modalCarrito .cantidad {
        font-size: .90rem;
    }

    #modalCarrito #modalProductoPrecio {
        margin-top: .35rem;
        font-size: .95rem;
    }

    #modalCarrito .modal-carrito-total {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    #modalCarrito .modal-carrito-btn {
        min-height: 2.3rem;
        font-size: .95rem;
        border-radius: 1rem;
    }



}

@media (min-width: 48rem) and (max-width: 61.9375rem) {
    .margin-nav-fixed-top {
        padding-top: calc(var(--navbar-height) + 0.5rem) !important;
    }

    .contenedor-compra {
        flex-direction: column;
        gap: .6rem;
    }

    .agregar-carrito {
        width: 100%;
        min-height: 3.2rem;
    }

    .selector-cantidad {
        width: 100%;
        flex: none;
        min-height: 2.8rem;
    }

    .cantidad-menos,
    .cantidad-mas {
        flex: 1;
        font-size: 1rem;
    }

    .cantidad-valor {
        flex: 1;
        font-size: .95rem;
        text-align: center;
    }


}

@media (min-width:992px) {
    body {
        text-align: start;
    }

    .margin-nav-fixed-top {
        padding-top: calc(var(--navbar-height) + 0.8rem) !important;
    }

    .nombre-producto {
        font-size: 1.8rem;
    }

    .boton-caract-producto {
        margin-top: 0.4rem;
        font-size: 1.2rem;
    }

    .precio-base {
        font-size: 2.8rem;
    }

    .descuento {
        font-size: 1rem;
    }

    .o {
        font-size: 1.2rem;
    }

    .cantidad-cuotas {
        font-size: 0.9rem;
    }

    .cuotas {
        font-size: 1.1rem;
        opacity: 75%;
    }

    .stock-badge {
        margin-top: 1.7rem;
        font-size: 0.9rem;
    }

    /* CONTENEDOR */
    .info-box {
        width: 100%;
        max-width: 50rem;
        /* 👈 controla el ancho tipo mobile elegante */
    }

    .tab {
        font-size: 1rem;
    }

    .gratis {
        font-size: 0.9rem;
    }

    .costo {
        font-size: 0.9rem;
    }

    .margenes-retiros {
        margin-top: 3rem;
    }

    .textos-caracteristicas {
        font-size: 1.2rem;
    }
}

@media (min-width:1200px) {
    .margin-nav-fixed-top {
        padding-top: calc(var(--navbar-height) + 2rem) !important;
    }

    .cantidad-cuotas {
        font-size: 1rem;
    }

    .boton-caract-producto {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .puntos-retiro {
        font-size: 1rem;
    }

    .textos-caracteristicas {
        font-size: 1rem;
    }

    .iconos-retiros {
        font-size: 1.2rem;
    }

    #modalCarrito .modal-carrito-card {
        max-width: 40rem;
        padding: 1.6rem;
        border-radius: 1.2rem;
    }

    #modalCarrito .modal-carrito-header {
        margin-bottom: .6rem;
    }

    #modalCarrito .modal-carrito-header h6 {
        font-size: 1.35rem;
        margin-bottom: 1.12rem;
    }

    #modalCarrito .modal-carrito-img {
        width: 8rem;
    }

    #modalCarrito .modal-carrito-info h4 {
        font-size: 1.2rem;
    }

    #modalCarrito .modal-carrito-info p {
        font-size: .9rem;
    }

    #modalCarrito .cantidad {
        font-size: 1.5rem;
    }

    #modalCarrito #modalProductoPrecio {
        margin-top: 1rem;
        font-size: 1.1rem;
    }

    #modalCarrito .modal-carrito-total {
        font-size: 1.3rem;
    }


}

@media (min-width:1400px) {
        .margin-nav-fixed-top {
        padding-top: calc(var(--navbar-height) + 2.6rem) !important;
    }

    .precio-tarjeta {
        font-size: 1.9rem;
    }

    .precio-base {
        font-size: 2.2rem;
    }

    .descuento {
        font-size: 1rem;
    }

    .cantidad-cuotas {
        font-size: 1rem;
    }

    .stock-badge {
        margin-top: 2.1rem;
        font-size: 1.2rem;
    }

    .tab {
        font-size: 1.3rem;
    }

    .contenido-tab {
        margin-top: 2.3rem;
    }

    .mt-retiros {
        margin-top: 3rem;
    }

    .puntos-retiro {
        font-size: 1.2rem;
    }

    .textos-retiros {
        font-size: 1.2rem;
    }

    .textos-caracteristicas {
        font-size: 1.2rem;
    }

    .sobre-este-producto {
        font-size: 1.7rem;
    }

    .descripcion-seo {
        font-size: 1.2rem;
    }
}

@media (min-width:1800px) {
            .margin-nav-fixed-top {
        padding-top: calc(var(--navbar-height) + 3rem) !important;
    }
    .nombre-producto {
        font-size: 2.2rem;
        margin-top: 1rem;
    }

    .slide {
        margin-top: 1rem;
    }

    .boton-caract-producto {
        font-size: 1.3rem;
    }

    .precio-tarjeta {
        margin-top: 2.5rem;
        font-size: 2.2rem;
    }

    .precio-base {
        font-size: 2.7rem;
    }

    .descuento {
        font-size: 1.1rem;
    }

    .cantidad-cuotas {
        font-size: 1.1rem;
    }

    .agregar-carrito {
        font-size: 1.2rem;
    }





}

@media (min-width:1900px) {
    .nombre-producto {
        font-size: 2.4rem;
        margin-top: 1.5rem;
    }

    .precio-tarjeta {
        margin-top: 1.5rem;
    }

    .descuento {
        font-size: 1.3rem;
    }
}