:root {
    --card1: #ffffff;
    --bg: #f7f7f7;
    ---shad: #e9e9e9;
    --card2: #000000;
    --muted: #666666;
    --accent: #2b7a78;
    --principal: #333ccc;
    --title1: #7530c8;
    --title2: #fb2424;
    --title: #48ff1a;
    --btnVolver: #d6f9d6;
    --btnComprar: #d3daf8;
    --danger: #fbbdb3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: Inter, Segoe UI, Arial, Helvetica, sans-serif;
    font-size: 11px;
}

/* index */
body {
    width: 100%;
    background: var(--bg);
    color: black;
}

/* =========================
    Header
========================= */

/* Header general */
.site-header {
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    align-items: center;
    padding: .3rem;
    border-bottom: 1px solid var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: #f9f9f9;
}

/* Logo con enlace */
.site-header .logo {
    width: 2.5rem;
    cursor: pointer;
}


/* Brand con enlace */
.site-header .brand a {
    color: var(--accent);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: bold;
}

/* Acciones (buscador + carrito) */
.site-header .actions {
    width: 45%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* solo para el home */
.site-header .part {
    display: flex;
}

/* Input de búsqueda */
.search {
    min-width: 130px;
    padding: .3rem;
    font-size: 1.1rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
}

/* Botón carrito */
.btn-abrir-carrito {
    padding: .3rem .7rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    cursor: pointer;
    color: white;
    position: relative;
    background: var(--accent);
}

/* Ícono carrito */
.fas.fa-shopping-cart {
    font-size: 1.1rem;
    color: white;
}

/* Número del carrito estilo badge */
#cart-count {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Input de búsqueda */
.search {
    max-width: 140px;
}

/* =========================
    HOME
========================= */


/* =========================
    Main
========================= */


/* Enlace que envuelve la sección clickeable */
.main-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Fondo navideño en el main */
.main-content {
    background-image: url('../images/branding/fondoNavideñoapaisado.png');
    /* ajustá la ruta */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sección que contiene la imagen */
.oferta-navidad {
    width: 100%;
    max-width: 600px;
    /* ajustable según diseño */
    margin: auto;
    text-align: center;
}

/* Imagen clickeable */
.img-oferta {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 12px;
    /* opcional: bordes redondeados */
}

/*Efecto hover */
.img-oferta:hover {
    transform: scale(1.05);
}





/* Contenedor de productos */
/* .carrito-container de linea 372 */
.productos-container,
.carrito-container {
    margin-top: 4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

/* 🔹 ultra-chico: 1 columna */
.productos-lista {
    width: 100%;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

/* Tarjeta productos */
.producto-tarjeta {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45%;
    max-width: 240px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px -10px rgba(0, 0, 0, 0.700),
        0px 0px 20px -15px rgba(0, 0, 0, 0.700);
}

/* Imagen con proporción fija 3:4 */
/* aspect-ratio: 2 / 3; Mantiene proporción vertical */
.producto-imagen {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
    /* necesario para que el badge se posicione dentro */
}

/* object-fit: cover; Ajusta sin deformar */
.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto */
.producto-titulo {
    font-size: 1.3rem;
    line-height: 1;
    color: var(--accent);
    font-weight: 500;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.producto-precio {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.producto-talle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--muted);
}



/* Estilo para pagina detalles */

.detalle-titulo {
    margin-top: 4rem;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent);
    /* background: #48ff1a;    */
}

.detalle-container {
    /* margin-top: 5rem; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    color: var(--accent);
}

.detalle-carrusel {
    margin-top: 5rem;
    width: 75%;
    display: flex;
    position: relative;
    margin: 0 auto;
}

.detalle-carrusel img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.detalle-carrusel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--card1);
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
}

/* para efecto de la imagen de detalle */
#main-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.slide-left {
    transform: translateX(-100%);
    opacity: 0;
}

.slide-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Estilos para el overlay y el zoom */
.image-viewer {
    display: none;
    /* oculto por defecto */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.image-viewer img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease;
    /* usamos 0.3s para que sea más suave */
    cursor: zoom-in;
    /* cursor cambia al pasar por la imagen */
    touch-action: none;
    /* 🔑 necesario para capturar gestos táctiles */
    position: relative;
    /* base para poder moverla */
}

.image-viewer img.zoomed {
    transform: scale(2);
    /* zoom */
    cursor: zoom-out;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}





.detalle-carrusel .prev {
    left: -35px;
}

.detalle-carrusel .next {
    right: -35px;
}

.detalle-info {
    padding: 1rem;
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: .3rem;
    line-height: 1.2;
}

.detail-info-title {
    font-size: 1.3rem;
}

.detail-info-description {
    font-size: 1.3rem;
    max-width: 90%;
}

.detail-info-size,
.detail-info-code {
    font-size: 1.2rem;
}

.detail-price {
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-price strong,
.detail-price span {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Contenedor para los botones */
.detalle-footer {
    padding: .5rem 0 1rem 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* Botón volver*/
.volver {
    padding: .5rem;
    width: 150px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    background: var(--btnVolver);
}

.volver:hover {
    background: var(--accent);
    color: var(--card1);
}

.agregar {
    padding: .5rem;
    width: 150px;
    border: 1px solid var(--principal);
    border-radius: 12px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    background: var(--btnComprar);
}

.agregar:hover {
    background: var(--principal);
    color: var(--card1);
}

/* Mensaje producto de agregado al carrito */
.notificacion-flotante {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card1);
    color: var(--principal);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s ease;
    /* z-index: 9999; */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notificacion-flotante.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.notificacion-flotante.hide {
    opacity: 0;
    transform: translate(-50%, -50px);
}

.notificacion-flotante .icon {
    font-size: 2.5rem;
}

.notificacion-flotante .text {
    white-space: pre-line;
    color: var(--accent);
    font-size: 1.5rem;
}




/* Estilos para el Carrito */

/* .carrito-container = .productos-container l.85 */
.carrito-header-titulo {
    font-size: 1.5rem;
    color: var(--accent);
}

/* Cuando el carrito no tiene nada */
.cart-empty {
    width: 100vw;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    font-style: italic;
}

.no-product {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    /* gris suave */
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 2rem;
    margin: 3rem;
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0px 0px 30px -20px rgba(0, 0, 0, 0.700),
        0px 0px 30px -20px rgba(0, 0, 0, 0.700);
}

.no-product::before {
    content: "⚠️ ";
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}


/* Lista de productos en el carrito */
.carrito-lista {
    width: 90%;
    padding: .5rem;
    list-style: none;
    border-bottom: 2px solid var(--accent);
}

.carrito-item {
    display: flex;
    gap: 4%;
    padding: .5rem;
    border-bottom: 1px solid var(--accent);
}

.carrito-item img {
    width: 18%;
    object-fit: cover;
    border-radius: 8px;
}

.carrito-item-info {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.item-info {
    font-size: 1.2rem;
}

/* similar a .vaciar en linea  */
.item-eliminar {
    padding: .2rem 1.5rem;
    border: 1px solid var(--title2);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--danger);
}

.item-eliminar:hover,
.vaciar:hover {
    background: var(--title2);
    color: var(--card1);
}


/* container para Botones del carrito*/
/* usan las clases .vover y .remove lin. 177*/

.carrito-footer {
    width: 80%;
    align-items: center;
}

.carrito-footer1,
.carrito-footer2 {
    padding: .5rem 0 1rem 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* .volver = linea 290 */

/* similar a .item-eliminar en linea 423*/
.vaciar {
    padding: .4rem;
    width: 150px;
    border: 1px solid var(--title2);
    border-radius: 12px;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    background: var(--danger);
}

/* .vaciar:hover en linea 434 */

.price-total {
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
}

.price-total strong,
.price-total span {
    font-size: 1.7rem;
    font-weight: 700;
}

/* .agregar en linea 307*/

/* Carrito Customer datos del cliente formulario */

.cart-customer {
    display: none;
    padding: 3rem;
    width: 100%;
}

.customer-mensaje {
    width: 90%;
    display: flex;
    margin: auto;
}

.mensaje {
    padding: 1rem;
    text-align: justify;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--accent);
    font-style: italic;
}

.checkout-form {
    padding: 1rem;
    width: 100%;
    background: var(---shad);
    border-radius: 12px;
}

.cart-customer h3 {
    font-size: 1.3rem;
    height: 2rem;
    color: var(--accent);
    text-align: center;
}

.cart-customer label {
    padding: .5rem;
    display: block;
    text-align: center;
}

.cart-customer input {
    width: 95%;
    padding: .7rem;
    font-size: 1.3rem;
    border: 1px solid var(--card2);
    border-radius: 6px;
}

.cart-customer button:hover {
    background: var(--principal);
    color: var(--card1);
}

/* estilos site footer */
.site-footer {
    width: 100%;
    padding: .5rem 0;
    background: var(--accent);
    text-align: center;
    bottom: 0;
}

.footer-text {
    color: var(--card1);
    font-size: 1rem;
}

.badge-reservado {
    position: absolute;
    right: .5rem;
    bottom: 2rem;
    background: rgba(245, 133, 48, 0.845);
    color: #fff;
    padding: .5rem 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    transform: rotate(-25deg);
    /* 🔑 inclinación */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border-radius: 7px;
}





/* =========================
    Footer
========================= */
.site-footer {
    /* background: #222; */
    color: #eee;
    padding: 1rem;
    background: #2b7a78;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;

}

.footer-brand p {
    font-size: 1.1rem;
}

.footer-logo {
    height: 3rem;
}


.footer-nav ul {
    padding: 1rem;
    list-style: none;
    display: flex;
    gap: 1rem;
}

.footer-nav a {
    color: #eee;
    font-size: 1.1rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-social a i {
    color: #eee;
    font-size: 1.5rem;
    margin: 0 8px;
    /* background: #2b7a78; */
}

.fab.fa-instagram:hover {
    color: rgb(232, 15, 15);
    transform: scale(1.5);
}

.fab.fa-facebook:hover {
    color: rgb(91, 161, 242);
    transform: scale(1.5);
}

.fab.fa-whatsapp:hover {
    color: rgb(33, 245, 17);
    transform: scale(1.5);
}







/*(min-width: 480px)*/

/* 📱 Adaptación para pantallas más grandes */
/* Estilos para pantallas desde 480px en adelante */

@media screen and (min-width: 480px) {

    * {
        font-size: 12px;
    }

    /* Input de búsqueda */
    .search {
        min-width: 160px;
    }

    /* Tarjeta productos */
    .producto-tarjeta {
        height: 80%;
    }

    .detalle-carrusel img {
        max-height: 80vh;
        object-fit: contain;
        border-radius: 8px;
    }

    .customer-mensaje {
        max-width: 480px;
    }

    .checkout-form {
        max-width: 480px;
        margin: auto;
    }
}



/*(min-width: 768px)*/
@media screen and (min-width: 820px) {

    * {
        font-size: 13px;
    }

    /* Input de búsqueda */
    .search {
        min-width: 290px;
    }

    /* Estiloss para pagina detalles */
    .detalle-titulo {
        height: 75px;
        font-size: 1.7rem;
    }

    .detalle-container {
        width: 95%;
        flex-direction: row;
        justify-content: center;
    }

    .detalle-carrusel {
        width: 50%;
    }

    .detalle-carrusel img {
        max-height: 90vh;
        object-fit: contain;
        border-radius: 8px;
    }

    .detalle-info {
        padding: 1rem;
        width: 50%;
        gap: 1rem;
        line-height: 1.5;
    }

    /* Estilos para el carrito min-width: 768px */
    .cart-empty {
        width: 50vw;
        font-size: 1.6rem;
    }

    .productos-container,
    .carrito-container {
        width: 100%;
        padding-top: .6rem;
        flex-direction: row;
        justify-content: center;
    }

    .carrito-lista {
        width: 50%
    }

    .carrito-footer {
        width: 45%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .volver {
        width: 170px;
        font-size: 1.3rem;
    }

    .vaciar {
        width: 130px;
        font-size: 1.3rem;
    }

    .agregar {
        padding: .6rem;
        width: 150px;
        border: 2px solid var(--principal);
        border-radius: 15px;
        font-size: 1.3rem;
        font-weight: 600;
    }
}




/*(min-width: 1024px)*/

@media screen and (min-width: 1024px) {
    * {
        font-size: 13px;
    }

   
    /* header */
    .site-header {
        height: 4rem;
    }

    .logo {
        width: 3rem;
    }

    .brand {
        font-size: 2rem;
    }

    /* #search {
        width: 60%;
        padding: .5rem;
        font-size: 1.2rem;
    } */

     /* Input de búsqueda */
    .search {
        min-width: 350px;        
    }

    .btn-abrir-carrito {
        padding: .4rem 1rem;
        font-size: 1.3rem;
    }

    .productos-lista {
        padding: 2rem 0;
        gap: 2rem;
    }

    /* Estilos para página detalles */

    .detalle-container {
        width: 98%;
    }

    .detalle-carrusel {
        width: 50%;
    }

    .detalle-info {
        padding: 1rem;
        width: 50%;
        gap: 1rem;
        line-height: 1.5;

    }

    .volver {
        width: 200px;
    }

    .agregar {
        padding: .7rem;
        width: 180px;
    }

    .vaciar {
        width: 160px;
        font-size: 1.3rem;
    }
}