:root {
    --color-fondo: #fcfcfc;
    --color-texto: #0a0a0a;
    --color-acento: #0a0a0a;
    --color-whatsapp: #25D366;
    --borde-mano: 255px 15px 225px 15px/15px 225px 15px 255px;
    --borde-mano-alt: 15px 225px 15px 255px/255px 15px 225px 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: 'Syne', sans-serif; /* Fuente Y2K/Streetwear */
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ruido y manchas de fondo para darle toque informal/callejero */
.ruido-fondo {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: -2;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.manchas-fondo {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.mancha {
    position: absolute;
    background-color: #e0e0e0;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
}

.mancha1 { width: 300px; height: 300px; top: -50px; left: -100px; }
.mancha2 { width: 400px; height: 400px; bottom: 10%; right: -150px; }
.mancha3 { width: 250px; height: 250px; top: 40%; left: 30%; opacity: 0.3; }

/* Header y Logo */
.cabecera-principal { display: flex; flex-direction: column; align-items: center; padding: 0; margin-top: 2rem; margin-bottom: 2rem; }
.logo-contenedor { 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-contenedor a {
    display: block;
}
.logo-principal { 
    width: 300px; 
    margin-top: -80px; /* Come el espacio vacío superior */
    margin-bottom: -80px; /* Come el espacio vacío inferior */
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.8)); 
}

/* Layout con Sidebar */
.layout-tienda { display: flex; max-width: 1800px; width: 95%; margin: 0 auto; gap: 4rem; align-items: flex-start; }
.sidebar-filtros { width: 220px; flex-shrink: 0; position: sticky; top: 3rem; }
.filtros-vertical { display: flex; flex-direction: column; gap: 1rem; }

.btn-filtro { 
    background: none; 
    border: none; 
    text-align: left; 
    font-size: 1.5rem; 
    font-weight: 700; 
    cursor: pointer; 
    padding: 0.5rem 0;
    transition: 0.3s;
    font-family: 'Kalam', cursive;
    text-transform: uppercase;
}
.btn-filtro:hover, .btn-filtro.activo { 
    font-weight: 700; 
    transform: translateX(10px); 
    border-left: 4px solid #000; 
    padding-left: 10px; 
}

/* Grilla Asimétrica de Productos */
.main-productos { flex-grow: 1; }
.grilla-desordenada {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    justify-content: center;
    padding-bottom: 5rem;
}

.producto-tarjeta {
    width: 100%; /* Ocupa la celda del grid */
    background: #fff;
    border: 3px solid #000;
    border-radius: var(--borde-mano);
    padding: 1.5rem;
    box-shadow: 6px 6px 0px #000;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: #000;
}

/* Desorden asimÃ©trico leve */
.producto-tarjeta:nth-child(even) { transform: translateY(15px) rotate(1deg); }
.producto-tarjeta:nth-child(odd) { transform: translateY(-5px) rotate(-1deg); }
.producto-tarjeta:nth-child(3n) { transform: translateY(10px) rotate(-2deg); }

/* Efecto armonioso en hover (Sway/FlotaciÃ³n suave) */
@keyframes shakeLeve {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(-1deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(4px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.producto-tarjeta:hover {
    animation: shakeLeve 3s ease-in-out infinite;
    z-index: 10;
    box-shadow: 8px 8px 0px var(--color-acento);
}

.img-contenedor {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 2px solid var(--color-acento);
    border-radius: var(--borde-mano);
    margin-bottom: 1rem;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-producto {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover para que llene todo el espacio sin dejar huecos blancos */
}

.info-producto {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nombre-producto {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-family: 'Kalam', cursive;
}

.desc-producto {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: 'Kalam', cursive;
    line-height: 1.2;
    color: #444;
}

.detalles-producto {
    margin-top: auto;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.precio {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--color-acento);
    padding-bottom: 0.2rem;
    margin-bottom: 0.5rem;
}

.stock-si { color: #000; }
.stock-no { color: #d00000; text-decoration: line-through; }

/* BotÃ³n WhatsApp */
.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 2px solid var(--color-acento);
    border-radius: var(--borde-mano-alt);
    box-shadow: 2px 2px 0px var(--color-acento);
    transition: all 0.2s ease;
    display: block;
    margin-top: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: scale(1.02);
}

.agotado-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    background: #e63946; /* Rojo */
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    pointer-events: none;
    /* Efecto de cinta rota */
    clip-path: polygon(
        0% 5%, 3% 20%, 0% 40%, 4% 60%, 1% 80%, 3% 100%, 
        97% 100%, 100% 80%, 96% 60%, 100% 40%, 97% 20%, 100% 5%, 
        96% 0%, 4% 0%
    );
    filter: drop-shadow(3px 3px 0px #000);
    opacity: 0;
    transform: translate(-50%, -50%) scale(5) rotate(-30deg);
}

/* En la grilla, esperar a que tenga .visible */
.producto-tarjeta.visible .agotado-overlay {
    animation: stamp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.2s;
}

/* En la página de producto, animar directamente */
.img-principal-contenedor .agotado-overlay {
    animation: stamp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.1s;
}

@keyframes stamp {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3) rotate(-30deg);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.9) rotate(-12deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(-15deg);
    }
}
/* =========================================
   ESTILOS PÁGINA DE DETALLE (producto.html)
   ========================================= */

.cabecera-detalle { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 1rem 2rem; 
    margin: 0 auto 1rem auto;
    position: relative;
    max-width: 1400px;
    width: 100%;
}
.btn-volver-raro { 
    position: absolute;
    left: 2rem;
    font-family: 'Caveat', cursive; 
    font-weight: 700; 
    font-size: 1.6rem; 
    text-decoration: none; 
    color: #555; 
    border-bottom: 2px solid #555; 
    transform: rotate(-4deg);
    transition: 0.2s; 
    padding-bottom: 0.2rem;
}
.btn-volver-raro:hover { 
    color: #000; 
    transform: rotate(0deg) scale(1.1); 
    border-bottom: 4px solid var(--color-whatsapp);
}
.logo-chico { 
    width: 250px;
}
.logo-chico .logo-principal {
    width: 200px;
    margin-top: -50px;
    margin-bottom: -50px;
}

.detalle-oculto { display: none; }
.detalle-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 5rem; 
    margin: 0 auto 4rem auto; 
    max-width: 1400px; 
    width: 95%;
    align-items: start;
}

/* Galeria */
.detalle-galeria { display: flex; flex-direction: column; gap: 1rem; }
.img-principal-contenedor { width: 100%; aspect-ratio: 4 / 5; border: 4px solid #000; border-radius: var(--borde-mano); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: transparent; box-shadow: 10px 10px 0 #000; }
.img-principal-contenedor img { width: 100%; height: 100%; object-fit: cover; }
.img-miniaturas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.miniatura { width: 60px; height: 60px; border: 2px solid #000; border-radius: 6px; cursor: pointer; object-fit: contain; padding: 5px; transition: 0.2s; background: transparent; }
.miniatura:hover { transform: scale(1.1); box-shadow: 3px 3px 0 #000; }
.miniatura.activa { border-color: var(--color-whatsapp); border-width: 3px; }

/* Info */
.detalle-info { display: flex; flex-direction: column; gap: 2rem; padding-top: 1rem; }
.tag-categoria { display: inline-block; background: #000; color: #fff; padding: 0.3rem 0.8rem; font-family: 'Syne'; font-weight: bold; border-radius: 5px; text-transform: uppercase; font-size: 1rem; align-self: flex-start; }
#detalle-nombre { font-size: 3.5rem; font-weight: 700; font-family: 'Kalam', cursive; text-transform: uppercase; line-height: 1.1; letter-spacing: -1px; }
.precio-grande { font-size: 2.5rem; font-weight: 800; border-bottom: 5px solid #000; border-radius: 20px 50px 10px 40px; padding-bottom: 0.5rem; display: inline-block; transform: rotate(1deg); }

.detalle-bloque h3 { 
    font-size: 1.2rem; 
    font-weight: 800; 
    margin-bottom: 0.5rem; 
    border-bottom: 4px solid #000; 
    border-radius: var(--borde-mano-alt); 
    padding-bottom: 0.3rem; 
    display: inline-block; 
    transform: rotate(-1deg);
}
.texto-handwritten { font-family: 'Caveat', cursive; font-size: 2rem; line-height: 1.3; color: #333; white-space: pre-wrap; }

.detalle-bloque-corto { display: flex; flex-direction: column; gap: 0.4rem; background: #fafafa; border: 3px solid #000; border-radius: var(--borde-mano); padding: 1rem; font-size: 1rem; box-shadow: 4px 4px 0 #000; }
.info-row strong { font-weight: 800; margin-right: 0.5rem; }

/* Boton WSP Gigante */
.detalle-accion { margin-top: auto; }
.btn-whatsapp-gigante { display: flex; align-items: center; justify-content: center; gap: 1rem; background-color: var(--color-whatsapp); color: white; text-decoration: none; padding: 1.5rem; font-size: 1.6rem; font-weight: 800; text-transform: uppercase; border: 4px solid #000; border-radius: var(--borde-mano-alt); box-shadow: 6px 6px 0 #000; transition: 0.2s; }
.btn-whatsapp-gigante:hover { background-color: #1ebe5d; transform: scale(1.02) translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
.icono-wsp { font-size: 2rem; }
.nota-wsp { font-family: 'Caveat', cursive; font-size: 1.3rem; text-align: center; margin-top: 1rem; color: #555; }

/* Responsivo / Mobile */
@media (max-width: 1024px) {
    .grilla-desordenada { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

/* =========================================
   ESTILOS FEEDBACK CARRUSEL
   ========================================= */
.seccion-feedback {
    margin-top: 5rem;
    padding: 4rem 0;
    background-color: transparent;
    color: #000;
    overflow: hidden;
}
.titulo-feedback {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: 5px;
    font-family: 'Kalam', cursive;
}
.carrusel-contenedor {
    position: relative;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.btn-carrusel {
    background: #fff;
    color: #000;
    border: 3px solid #000;
    border-radius: var(--borde-mano);
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 4px 4px 0 #000;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.btn-carrusel:hover {
    transform: scale(1.1);
}
.carrusel-track-contenedor {
    flex-grow: 1;
    overflow: hidden;
}
.carrusel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: feedback-marquee 25s linear infinite;
}

@keyframes feedback-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-10%); }
}

.carrusel-track:hover {
    animation-play-state: paused;
}

.feedback-img-card {
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    border: 3px solid #000;
    border-radius: var(--borde-mano);
    overflow: hidden;
    background: #fff;
    box-shadow: 6px 6px 0 #000;
}
.feedback-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Banner Infinito */
.banner-infinito {
    background-color: rgba(10, 10, 10, 0.95);
    width: 100%;
    margin: 0;
    overflow: hidden;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border: none;
    border-bottom: 1px solid #333;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(5px);
}
.banner-track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 3px;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* Animaciones de Scroll */
.animacion-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.animacion-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Botones de flecha en Producto */
.btn-flecha-foto {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-family: 'Kalam', cursive;
    font-size: 4rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    z-index: 10;
    padding: 0 1rem;
    transition: 0.2s;
    text-shadow: 2px 2px 0px #fff, -2px -2px 0px #fff, 2px -2px 0px #fff, -2px 2px 0px #fff;
}
.btn-flecha-foto:hover {
    transform: translateY(-50%) scale(1.2);
    color: var(--color-whatsapp);
}
#btn-foto-prev {
    left: 0;
}
#btn-foto-next {
    right: 0;
}



@media (max-width: 768px) {
    /* Inicio */
    .layout-tienda { 
        flex-direction: column; 
        gap: 1.5rem; 
        padding: 0 0.5rem; 
        align-items: center;
    }
    
    .sidebar-filtros { 
        width: 100%; 
        border-right: none; 
        border-bottom: 2px dashed #000; 
        padding-bottom: 1rem;
        position: static;
        margin-top: 0;
    }
    
    .filtros-vertical { 
        display: flex; 
        flex-wrap: wrap; 
        gap: 0.5rem; 
        justify-content: center;
        flex-direction: row;
    }
    
    .btn-filtro { 
        width: auto; 
        padding: 0.4rem 0.8rem; 
        font-size: 1rem;
        border: 2px solid #000;
        border-radius: var(--borde-mano);
        background: #fff;
        text-align: center;
    }
    .btn-filtro:hover, .btn-filtro.activo {
        transform: scale(1.05);
        border: 2px solid #000;
        border-left: 2px solid #000;
        background: #000;
        color: #fff;
        padding-left: 0.8rem;
    }
    
    .main-productos {
        width: 100%;
        max-width: 100%;
    }

    .grilla-desordenada { 
        grid-template-columns: repeat(2, 1fr); /* 2x2 en celulares */
        gap: 0.8rem; 
        justify-content: center;
        padding-bottom: 2rem;
    }
    
    /* Pequeño ajuste para que las tarjetas de producto no se vean deformes en 2x2 celular */
    .producto-tarjeta {
        padding: 0.5rem;
        box-shadow: 3px 3px 0 #000;
        border-width: 2px;
    }
    .producto-tarjeta:hover {
        box-shadow: 4px 4px 0 var(--color-whatsapp);
    }
    .img-contenedor {
        border-width: 1px;
        margin-bottom: 0.5rem;
    }
    .nombre-producto {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
        line-height: 1.1;
    }
    .desc-producto {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .precio {
        font-size: 1rem;
        border-bottom: 1px solid var(--color-acento);
        padding-bottom: 0.1rem;
        margin-bottom: 0.3rem;
    }
    .btn-whatsapp {
        padding: 0.5rem;
        font-size: 0.8rem;
        margin-top: auto;
    }
    .agotado-overlay {
        font-size: 1rem;
        padding: 0.2rem 0.5rem;
    }
    
    .logo-chico .logo-principal {
        margin-top: -30px;
        margin-bottom: -30px;
        width: 150px;
    }
    .cabecera-principal {
        padding: 0.5rem 0;
    }
    .logo-principal {
        max-width: 80%;
        margin-top: -30px;
        margin-bottom: -30px;
    }

    /* Detalle de Producto */
    .cabecera-detalle {
        flex-direction: column;
        padding: 1rem;
    }
    
    .btn-volver-raro {
        position: relative;
        left: 0;
        margin-bottom: 1rem;
    }
    
    .detalle-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
        padding: 1rem; 
        width: 100%;
    }
    
    /* img-principal-contenedor escala automáticamente */
    
    #detalle-nombre { 
        font-size: 2.2rem; 
    }
    
    .texto-handwritten {
        font-size: 1.5rem;
    }
    
    .btn-whatsapp-gigante {
        font-size: 1.2rem;
        padding: 1rem;
    }

    /* Carrusel Feedback */
    .seccion-feedback {
        margin-top: 2rem;
        padding: 2rem 0.5rem;
    }
    .carrusel-contenedor {
        gap: 0.2rem;
    }
    .carrusel-track {
        gap: 0.5rem;
    }
    .btn-carrusel {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .feedback-img-card {
        width: 200px;
        height: 280px;
    }
    .titulo-feedback {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /* img-principal-contenedor escala automáticamente */
    .precio-grande {
        font-size: 1.8rem;
    }
    .grilla-desordenada {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    /* img-contenedor usa aspect-ratio automático ahora */
    .nombre-producto {
        font-size: 0.85rem;
    }
    .precio {
        font-size: 0.9rem;
    }
}



