/* ==========================================
   1. ESTILOS GENERALES Y CONFIGURACIÓN PREMIUM
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif; /* Nueva tipografía de alta gama */
}

body {
    background-color: #050505;
    color: #ffffff;
    overflow: hidden; /* Elimina el scroll por completo */
    height: 100vh;
    width: 100vw;
}

/* ==========================================
   2. MENÚ DE NAVEGACIÓN (NAVBAR)
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    z-index: 20; /* Siempre por encima del fondo y filtros */
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 4px;
}

.navbar nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.navbar nav a:hover {
    opacity: 1;
}

/* Ícono de carrito con insignia de cantidad, en vez del texto "CARRITO (N)" */
.nav-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-cart-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    background: #ffffff;
    color: #050505;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Buscador de productos en la barra de navegación — solo un ícono de lupa; el campo de
   texto se abre a su lado cuando se hace clic (y se cierra si queda vacío). */
.nav-search-wrap {
    position: relative;
    margin-left: 30px;
    display: flex;
    align-items: center;
}

.nav-search-icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    opacity: 0.7;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.nav-search-icon-btn:hover {
    opacity: 1;
}

.nav-search-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    padding: 0;
    width: 0;
    margin-left: 0;
    opacity: 0;
    pointer-events: none;
    transition: width 0.25s ease, opacity 0.2s ease, padding 0.25s ease, margin-left 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.nav-search-wrap.active .nav-search-input {
    width: 180px;
    padding: 8px 14px;
    margin-left: 10px;
    opacity: 1;
    pointer-events: auto;
    border-color: #333;
}

.nav-search-input::placeholder {
    color: #888888;
}

.nav-search-input:focus {
    outline: none;
    width: 220px !important;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #0a0a0a;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 50;
}

.nav-search-results.active {
    display: block;
}

.nav-search-empty {
    padding: 16px;
    font-size: 12px;
    color: #888888;
    margin: 0;
}

.nav-search-result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #1a1a1a;
    transition: background-color 0.2s;
}

.nav-search-result-row:last-child {
    border-bottom: none;
}

.nav-search-result-row:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.nav-search-result-row img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-search-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    min-width: 0;
}

.nav-search-result-name {
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-search-result-price {
    font-size: 11px;
    color: #d29922;
    font-weight: 700;
}

/* ==========================================
   3. ELEMENTOS MULTIMEDIA DE FONDO (VIDEOS Y CAPAS)
   ========================================== */
.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre toda la pantalla sin deformarse */
    z-index: 1;
}

.filtro-oscuro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Oscurece el video de fondo */
    z-index: 2;
}

/* ==========================================
   4. ESTRUCTURA DE PANTALLAS (TRANSICIÓN SUAVE)
   ========================================== */
.pantalla {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out; /* Transición limpia estilo pestaña */
    z-index: 3;
    padding: 20px;
}

.pantalla.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
}

/* ==========================================
   5. DISEÑO DE LA PORTADA PRINCIPAL (HERO)
   ========================================== */
.hero-center {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 7px; /* Espaciado elegante */
    color: #aaaaaa;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-title {
    font-size: 64px; /* Imponente y de gran tamaño */
    font-weight: 900;
    letter-spacing: 14px;
    color: #ffffff;
    margin-bottom: 22px;
    text-shadow: 0 4px 25px rgba(0,0,0,0.9);
}

.hero-description {
    font-size: 13px;
    letter-spacing: 3px;
    color: #bbbbbb;
    margin-bottom: 45px;
    line-height: 1.8;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Botón transparente refinado */
.btn-drop {
    display: inline-block;
    padding: 14px 40px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-drop:hover {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* ==========================================
   6. SECCIÓN SELECTOR DE DROPS (TARJETAS)
   ========================================== */
.drops-container {
    position: relative; 
    z-index: 10; /* Fuerza a las tarjetas a quedar al frente del video */
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin-top: 60px;
}

.section-title {
    font-size: 28px;
    letter-spacing: 6px;
    margin-bottom: 40px;
    font-weight: bold;
}

.drops-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
}

.drop-card {
    position: relative;
    flex: 1;
    height: 450px;
    max-width: 450px;
    background-color: #111111;
    border: 1px solid #222222;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Filtro para que se lee el texto sobre la foto */
    transition: background 0.3s;
    z-index: 11;
}

.card-content {
    position: relative;
    z-index: 12;
    text-align: center;
    padding: 20px;
}

.drop-card h3 {
    font-size: 32px;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.drop-card p {
    font-size: 13px;
    color: #888888;
    letter-spacing: 1px;
    margin-bottom: 25px;
    transition: color 0.3s;
}

.btn-entrar {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #ffffff;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0.6;
    transition: all 0.3s;
}

/* Efectos de interacción en tarjetas */
.drop-card:hover {
    transform: translateY(-10px) scale(1.02); /* Movimiento y zoom suave combinados */
    border-color: #ffffff;
}

.drop-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.4); /* Aclara la foto al pasar el mouse */
}

.drop-card:hover p {
    color: #ffffff;
}

.drop-card:hover .btn-entrar {
    opacity: 1;
    background-color: #ffffff;
    color: #000000;
}

/* ==========================================
   7. ASIGNACIÓN DE IMÁGENES INDIVIDUALES (.PNG)
   ========================================== */
#card-drop1 {
    background-image: url('fondo-drop1.png');
    background-size: cover !important;
    background-position: center;
}

#card-drop2 {
    background-image: url('fondo-drop2.png');
    background-size: cover !important;
    background-position: center;
}

/* ==========================================
   8. APARTADO DE VITRINA DE PRODUCTOS (SCROLL ACTIVADO)
   ========================================== */
.products-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    height: 75vh; /* Limitamos la altura del contenedor para dejar aire arriba y abajo */
    display: flex;
    flex-direction: column;
    margin-top: 60px; /* Separa el bloque de la navbar */
}

/* Forzamos a la pantalla de productos a centrar el contenedor principal */
#products-section {
    display: flex;
    justify-content: center;
    align-items: center; 
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
    flex-shrink: 0; /* Evita que el título se aplaste cuando metas scroll */
}

.drop-active-title {
    font-size: 24px;
    letter-spacing: 5px;
    font-weight: 900;
    text-transform: uppercase;
}

/* Pastillas de filtro por categoría en la vitrina de un drop */
.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 10px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.category-pill {
    background: transparent;
    border: 1px solid #333;
    color: #aaaaaa;
    padding: 8px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-pill:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.category-pill.active {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-volver {
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.btn-volver:hover {
    opacity: 1;
}

/* Cuadrícula con scroll vertical independiente y activo */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    overflow-y: scroll; /* Fuerza la activación del scroll vertical para las tarjetas de abajo */
    padding: 10px;
    height: 100%;
}

/* Mantiene el diseño limpio ocultando la barra de scroll lateral en navegadores */
.products-grid::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.product-item {
    background-color: #0d0d0d;
    border: 1px solid #1a1a1a;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: fit-content; 
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-item:hover {
    border-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.product-img-box {
    width: 100%;
    height: 340px;
    background-color: #141414;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-img {
    width: 100%;      
    height: 100%;     
    object-fit: cover; 
}

.product-info {
    text-align: left;
}

.product-info h4 {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 700;
}

/* Tipo de tela/corte estilo Gymshark (ej. "OVERSIZE ACID WASH 230 GR") */
.product-type-tag {
    display: block;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d29922;
    margin-bottom: 5px;
    font-weight: 700;
}

.product-type-badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d29922;
    border: 1px solid #d29922;
    padding: 4px 10px;
    margin: 6px 0 4px;
    font-weight: 700;
}

/* Arreglado: Clase específica para el precio de la Vitrina */
.product-item .product-price {
    font-size: 13px;
    color: #888888;
    letter-spacing: 1px;
}

/* Precio con descuento por prenda: precio anterior tachado + precio actual + % de descuento.
   Se usa dentro de .product-price (vitrina), #modal-product-price (detalle) y el buscador. */
.price-compare {
    text-decoration: line-through;
    color: #666666;
    font-size: 0.85em;
    margin-right: 4px;
}

.price-current {
    color: #ffffff;
    font-weight: 700;
}

.price-discount-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    background: #c0392b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 3px;
    vertical-align: middle;
}

/* =========================================================
   9. ESTILOS DE LA VENTANA MODAL (DETALLE DE PRENDA)
   ========================================================= */

/* Capa de fondo oscuro que cubre toda la pantalla */
.modal {
    display: none; /* Oculto por defecto hasta que JS lo active */
    position: fixed;
    z-index: 2000; /* Asegura que se ponga por encima de los videos y la navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo negro traslúcido */
    backdrop-filter: blur(8px); /* Efecto difuminado premium */
    overflow-y: auto; /* Permite hacer scroll si la pantalla del usuario es pequeña */
}

/* Caja contenedor central del producto */
.modal-content {
    background-color: #0a0a0a; /* Negro profundo industrial */
    color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 950px;
    border: 1px solid #222; /* Borde sutil */
    position: relative;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Botón de cierre (X) */
.close-btn {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #ffffff;
}

/* Distribución del contenido interno */
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

/* Cambio a dos columnas en pantallas de computadora */
@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
        gap: 50px;
    }
}

.product-gallery, 
.product-info {
    flex: 1;
}

/* Contenedor de la foto principal */
.main-image-container {
    width: 100%;
    background-color: #121212;
    border: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
}

/* Contenedor de la tira de fotos secundarias */
.thumbnail-images {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

/* Cada foto miniatura */
.thumb {
    width: 75px;
    height: 75px;
    object-fit: cover;
    background-color: #121212;
    cursor: pointer;
    border: 1px solid #222;
    transition: all 0.2s ease;
}

.thumb.active, 
.thumb:hover {
    border-color: #ffffff;
    opacity: 0.8;
}

/* Tipografía e información del producto dentro del Modal */
#modal-product-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Arreglado: Clase específica para el precio interno del modal */
.product-info .product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d4d4d4;
    margin-bottom: 20px;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a0a0a0;
    margin-bottom: 30px;
}

/* Sección Selector de Tallas */
.size-selector h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 12px;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Botones individuales S, M, L, XL, XXL */
.size-btn {
    background: transparent;
    border: 1px solid #333;
    color: #ffffff;
    width: 50px;
    height: 45px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative; /* Agregado: Necesario para fijar la X diagonal al centro */
    overflow: hidden;    /* Agregado: Evita que las líneas de la tacha se desborden del botón */
    transition: all 0.2s ease;
}

.size-btn:hover, 
.size-btn.selected {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* --- ESTILOS EXCLUSIVOS PARA TALLAS AGOTADAS ---
   Sigue clicable (a diferencia de un <button disabled>): al tocarla se abre
   una solicitud especial por WhatsApp en vez de agregarla al carrito. */
.size-btn.out-of-stock {
    border-color: #222222 !important;
    color: #555555 !important;
    background-color: rgba(15, 15, 15, 0.6) !important;
    cursor: pointer !important;
    opacity: 0.4;
}

.size-btn.out-of-stock:hover {
    opacity: 0.75;
    border-color: #25D366 !important;
}

/* Tallas disponibles solo bajo pedido (se imprimen/estampan al confirmar) */
.size-btn.made-to-order {
    border-color: #d29922;
    color: #d29922;
}

.size-btn.made-to-order:hover,
.size-btn.made-to-order.selected {
    background-color: #d29922;
    color: #000000;
    border-color: #d29922;
}

.size-btn.made-to-order::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #d29922;
}

.size-btn.made-to-order:hover::after,
.size-btn.made-to-order.selected::after {
    background-color: #000000;
}

/* Crear las líneas de la X con pseudoelementos */
.size-btn.out-of-stock::before,
.size-btn.out-of-stock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;          /* Cubre perfectamente la diagonal */
    height: 1.5px;        /* Grosor premium estilizado */
    background-color: #666666;
    transform-origin: center;
}

.size-btn.out-of-stock::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.size-btn.out-of-stock::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Botón Add to Cart / Ordenar */
.add-to-cart-btn {
    width: 100%;
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 35px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: #d4d4d4;
}

/* =========================================================
   10. ESTILOS DE LA GUÍA DE TALLAS INTERNA (SUB-MODAL)
   ========================================================= */
.size-guide-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.size-guide-link:hover {
    color: #ffffff;
}

/* Modal secundario para la imagen de tallas y canales */
.sub-modal {
    display: none;
    position: fixed;
    z-index: 3000; /* Por encima de absolutamente todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.sub-modal-content {
    margin: 10% auto;
    max-width: 500px;
    width: 85%;
    position: relative;
    text-align: center;
}

.size-guide-img {
    width: 100%;
    height: auto;
    border: 1px solid #333;
    border-radius: 4px;
}

.close-sub-btn {
    position: absolute;
    right: -35px;
    top: -35px;
    font-size: 35px;
    color: #888;
    cursor: pointer;
}

.close-sub-btn:hover {
    color: #ffffff;
}

/* =========================================================
   11. APARTADO DE COMUNIDAD (ESTILO GALERÍA INSTAGRAM)
   ========================================================= */
.comunidad-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    height: 75vh;
    display: flex;
    flex-direction: column;
    margin-top: 80px;
    text-align: center;
}

.comunidad-subtitle {
    font-size: 13px;
    letter-spacing: 3px;
    color: #888888;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Carrusel horizontal (poblado dinámicamente desde el ERP, sin código) */
.comunidad-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.comunidad-track-viewport {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.comunidad-track {
    display: flex;
    gap: 16px;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 4px;
}

/* Ocultar barra de scroll para mantener el diseño limpio */
.comunidad-track::-webkit-scrollbar {
    height: 0px;
    background: transparent;
}

.comunidad-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(15, 15, 15, 0.7);
    border: 1px solid #333;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.comunidad-arrow:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.comunidad-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.comunidad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #333;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.comunidad-dot.active {
    background-color: #ffffff;
    transform: scale(1.3);
}

.comunidad-slide {
    position: relative;
    background-color: #0d0d0d;
    border: 1px solid #1a1a1a;
    flex: 0 0 300px;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
}

.comunidad-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%); /* Un toque desaturado premium */
    transition: filter 0.3s, transform 0.4s;
}

.comunidad-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #ffffff;
    padding: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    text-align: left;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

/* Efectos al pasar el mouse */
.comunidad-slide:hover {
    border-color: #ffffff;
    transform: scale(1.02);
}

.comunidad-slide:hover .comunidad-media {
    filter: grayscale(0%); /* Muestra el color completo al pasar el mouse */
    transform: scale(1.05);
}

.comunidad-slide:hover .comunidad-overlay-text {
    opacity: 1;
    transform: translateY(0);
}

.close-comunidad-btn:hover {
    color: #ffffff !important;
}

.comunidad-modal-ig-link {
    display: block;
    margin-top: 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
}

.comunidad-modal-ig-link:hover {
    text-decoration: underline;
}

#comunidad-modal-body img,
#comunidad-modal-body video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid #333;
    border-radius: 4px;
}

/* =========================================================
   12. SELECTOR DE CANTIDAD Y SUB-MODAL DE CANALES DE VENTA
   ========================================================= */

/* Contenedor de cantidad */
.quantity-selector {
    margin-top: 25px;
    text-align: left;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Forzar que los números de la cantidad se alineen perfectamente */
#display-qty {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
    color: #ffffff;
    user-select: none; /* Evita que el usuario seleccione el texto por error al dar clicks rápidos */
}

/* Ajustes específicos para los botones de + y - */
.qty-control-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid #333;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-control-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* --- DISEÑO EXCLUSIVO PARA LOS BOTONES DEL SUB-MODAL DE CONTACTO --- */
#contacto-modal .sub-modal-content {
    background-color: #0a0a0a;
    border: 1px solid #222;
    border-radius: 4px;
    transform: translateY(30%); /* Centrado vertical limpio */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

#btn-order-whats {
    background-color: transparent !important;
    color: #25D366 !important;
    border: 1px solid #25D366 !important;
    transition: all 0.3s ease;
}

#btn-order-whats:hover {
    background-color: #25D366 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

#btn-order-insta {
    background-color: transparent !important;
    color: #E1306C !important;
    border: 1px solid #E1306C !important;
    transition: all 0.3s ease;
}

#btn-order-insta:hover {
    background-color: #E1306C !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.4);
}

.close-contacto-btn {
    transition: color 0.2s ease;
}

.close-contacto-btn:hover {
    color: #ffffff !important;
}

/* =========================================================
   13. CARRITO LATERAL DE COMPRAS (SIDEBAR DESLIZANTE PREMIUM)
   ========================================================= */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: #0a0a0a;
    border-left: 1px solid #1a1a1a;
    z-index: 4000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    animation: slideIn 0.3s ease-out;
}

.cart-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.cart-sidebar-header h3 {
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 900;
}

.close-cart-sidebar {
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.close-cart-sidebar:hover {
    color: #fff;
}

.cart-items-body {
    flex: 1;
    overflow-y: auto;
    margin-top: 15px;
}

/* Ocultar barra de scroll en el carrito */
.cart-items-body::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.cart-sidebar-footer {
    border-top: 1px solid #222;
    padding-top: 20px;
}

.cart-total-box {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
/* =========================================================
   14. RESPONSIVE DESIGN (OPTIMIZACIÓN PARA CELULARES V2)
   ========================================================= */
@media (max-width: 768px) {
    /* 1. Liberar el scroll en móviles para poder navegar hacia abajo */
    body {
        overflow-y: auto !important;
        height: auto !important;
        width: 100% !important;
    }

    .pantalla {
        height: auto !important;
        min-height: 100vh;
        padding: 120px 10px 40px 10px !important; /* Más espacio arriba para que no tape la navbar */
        overflow-y: visible !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important; /* Alinea al tope en móvil */
    }

    /* 2. NAVBAR RE ESTRUCTURADA: Distribución vertical compacta para que quepa todo */
    .navbar {
        padding: 10px 15px !important;
        background: rgba(5, 5, 5, 0.98) !important; /* Fondo sólido premium */
        backdrop-filter: blur(15px);
        flex-direction: column !important; /* Pone el logo arriba y el menú abajo */
        gap: 8px;
    }

    .logo-text {
        font-size: 16px !important;
        letter-spacing: 2px !important;
    }

    .navbar nav {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 10px; /* Controla el espacio entre enlaces */
    }

    .navbar nav a {
        margin-left: 0 !important; /* Eliminamos el margen rígido de PC */
        font-size: 11px !important;
        letter-spacing: 1px !important;
        padding: 4px 6px;
    }

    .nav-search-wrap {
        margin-left: 0 !important;
        justify-content: center;
        order: 10; /* Lo manda a su propia línea, debajo de los enlaces */
    }

    .nav-search-wrap.active {
        width: 100%;
    }

    .nav-search-wrap.active .nav-search-input,
    .nav-search-wrap.active .nav-search-input:focus {
        width: 100% !important;
        box-sizing: border-box;
    }

    .nav-search-results {
        width: 100%;
    }

    /* 3. Hero / Portada Principal (Centrado Vertical y Estética Balanceada) */
    #hero-section {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* Centra el contenido verticalmente en la pantalla */
        align-items: center !important;
        height: 100vh !important; /* Ocupa toda la pantalla del cel en el inicio */
        padding-top: 60px !important; /* Evita que el título choque con la navbar */
    }

    .hero-center {
        margin: auto 0 !important; /* Fuerza el balance perfecto arriba y abajo */
    }

    .hero-title {
        font-size: 42px !important; 
        letter-spacing: 8px !important;
        line-height: 1.2;
        margin-bottom: 20px;
        font-weight: 900;
        text-shadow: 0 4px 20px rgba(0,0,0,0.9);
    }

    .hero-description {
        font-size: 12px !important; 
        letter-spacing: 2px !important;
        line-height: 1.7;
        margin-bottom: 35px;
        padding: 0 10px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-drop {
        padding: 14px 35px !important;
        font-size: 11px !important;
        letter-spacing: 2px !important;
    }

    /* 4. Selector de Drops (Tarjetas) */
    .drops-container {
        margin-top: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px;
    }

    .section-title {
        font-size: 20px !important;
        letter-spacing: 3px !important;
        margin-bottom: 25px !important;
    }

    .drops-grid {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .drop-card {
        width: 100% !important;
        max-width: 100% !important;
        height: 220px !important; /* Más compactas para evitar que se sientan gigantes */
    }

    .drop-card h3 {
        font-size: 20px !important;
    }

    /* 5. Vitrina de Productos (Sección Colecciones) */
    .products-container {
        height: auto !important;
        margin-top: 0px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px;
    }

    .products-header {
        margin-bottom: 15px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100%;
    }

    .drop-active-title {
        font-size: 16px !important;
        letter-spacing: 2px !important;
    }

    .btn-volver {
        font-size: 10px !important;
    }

    /* Cuadrícula optimizada a 2 columnas muy estéticas en celular */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important;
        overflow-y: visible !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .product-item {
        padding: 8px !important;
        width: 100% !important;
    }

    .product-img-box {
        height: 160px !important; /* Reduce la foto proporcionalmente en el cel */
        margin-bottom: 8px !important;
    }

    .product-info h4 {
        font-size: 10px !important;
        line-height: 1.2 !important;
        font-weight: 700;
    }

    .product-item .product-price {
        font-size: 10px !important;
        margin-top: 2px;
    }

    /* 6. Modal de Detalle de Prenda */
    .modal-content {
        margin: 15% auto !important;
        padding: 15px !important;
        width: 95% !important;
    }

    .close-btn {
        right: 12px !important;
        top: 5px !important;
        font-size: 26px !important;
    }

    #modal-product-title {
        font-size: 1.2rem !important;
        margin-top: 5px;
    }

    .product-info .product-price {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    .product-description {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }

    .main-image-container img {
        max-height: 240px !important;
    }

    .thumbnail-images {
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .thumb {
        width: 45px !important;
        height: 45px !important;
    }

    .size-btn {
        width: 42px !important;
        height: 38px !important;
        font-size: 0.75rem !important;
    }

    .add-to-cart-btn {
        padding: 12px !important;
        font-size: 0.8rem !important;
        margin-top: 15px !important;
    }

    /* 7. Galería de Comunidad */
    .comunidad-container {
        height: auto !important;
        margin-top: 10px !important;
    }

    .comunidad-track {
        gap: 10px !important;
        padding: 0 !important;
    }

    .comunidad-slide {
        flex: 0 0 78vw !important;
        height: 220px !important;
    }

    .comunidad-arrow {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    /* 8. Carrito Sidebar Deslizante */
    .cart-sidebar {
        max-width: 85% !important;
    }
}
/* 7. Galería de Comunidad (Ajustes para Celular) — este bloque se había quedado sin su
   @media, así que estas reglas (sobre todo el alto fijo de 220px con 78vw de ancho en
   .comunidad-slide) se aplicaban SIEMPRE, en cualquier pantalla, y eso era lo que recortaba
   las fotos del carrusel a una tira delgadísima en vez de mostrarlas completas. */
@media (max-width: 768px) {
    .comunidad-container {
        height: auto !important;
        margin-top: 10px !important;
    }

    .comunidad-track {
        gap: 10px !important;
        padding: 0 !important;
    }

    .comunidad-slide {
        flex: 0 0 78vw !important;
        height: 220px !important;
    }

    /* FORZAR EL ARROBA SIEMPRE VISIBLE EN CELULARES */
    .comunidad-slide .comunidad-overlay-text {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2)) !important;
        padding: 10px !important;
        font-size: 10px !important;
        letter-spacing: 1px !important;
    }

    .comunidad-slide .comunidad-media {
        filter: grayscale(20%) !important;
    }

    /* MODAL DE COMUNIDAD EN GRANDE OPTIMIZADO Y CENTRADO EN TELÉFONOS */
    #comunidad-modal {
        display: none; 
        align-items: center !important;     /* Centrado vertical maestro */
        justify-content: center !important;  /* Centrado horizontal maestro */
        padding: 10px !important;
    }

    /* Esto fuerza al contenedor a usar Flexbox cuando JS lo activa en el cel */
    #comunidad-modal[style*="display: block"] {
        display: flex !important;
    }

    #comunidad-modal .sub-modal-content {
        width: 92% !important;
        max-width: 92% !important;
        margin: 0 auto !important; /* Eliminamos el margen superior rígido */
        position: relative !important;
        background-color: #000;
        padding: 5px;
        border-radius: 4px;
    }

    #comunidad-modal-body img, 
    #comunidad-modal-body video {
        width: 100% !important;
        height: auto !important;
        max-height: 75vh !important; /* Evita que la foto tape toda la pantalla */
        object-fit: contain !important;
        border: 1px solid #222 !important;
        display: block;
    }

    /* BOTÓN DE CIERRE (X) REUBICADO Y VISIBLE DENTRO DEL CONTENEDOR */
    #comunidad-modal .close-sub-btn {
        position: absolute !important;
        right: 15px !important;
        top: 10px !important;
        font-size: 30px !important;
        color: #ffffff !important;
        z-index: 9999 !important;
        text-shadow: 0 0 10px rgba(0,0,0,0.8); /* Sombra para que resalte en fotos blancas */
        cursor: pointer;
        line-height: 1;
    }
}

/* =========================================================
   15. FORMULARIO DE CHECKOUT (PAGO EN LÍNEA CON MERCADO PAGO)
   ========================================================= */
#checkout-modal .sub-modal-content {
    background-color: #0a0a0a;
    border: 1px solid #222;
    border-radius: 4px;
    max-width: 460px;
    padding: 35px 30px;
    text-align: left;
    max-height: 85vh;
    overflow-y: auto;
}

.checkout-field {
    margin-bottom: 16px;
}

.checkout-field label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 6px;
}

.checkout-field input {
    width: 100%;
    background: transparent;
    border: 1px solid #333;
    color: #ffffff;
    padding: 12px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.checkout-field input:focus {
    border-color: #ffffff;
}

.checkout-field-row {
    display: flex;
    gap: 12px;
}

.checkout-field-row .checkout-field {
    flex: 1;
}

.checkout-summary {
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 16px 0;
    margin: 20px 0;
    font-size: 0.8rem;
    color: #aaa;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.checkout-summary-row.total {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 12px;
    margin-bottom: 0;
}

.checkout-error {
    color: #f85149;
    font-size: 0.8rem;
    margin-top: 10px;
    display: none;
}

.checkout-alt-title {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    margin: 22px 0 14px 0;
}

.checkout-alt-buttons {
    display: flex;
    gap: 10px;
}

.checkout-alt-buttons button {
    flex: 1;
    margin-top: 0;
    padding: 12px;
    font-size: 0.75rem;
}

.pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Botón secundario / de "vacío" reutilizado en Drops y catálogo */
.empty-state {
    color: #666;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-align: center;
    padding: 60px 20px;
}

.made-to-order-tag {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #d29922;
    margin-left: 6px;
}

/* Aviso de disponibilidad dentro del modal de producto */
.stock-status {
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 4px 0 18px;
}

.stock-status.in-stock {
    color: #3ddc84;
}

.stock-status.made-to-order {
    color: #d29922;
}

.stock-status.out-of-stock {
    color: #ff4d4d;
}

.whatsapp-request-btn {
    background-color: transparent !important;
    color: #25D366 !important;
    border: 1px solid #25D366 !important;
}

.whatsapp-request-btn:hover {
    background-color: #25D366 !important;
    color: #000000 !important;
}

/* Insignia "AGOTADO" sobre la miniatura del producto en la vitrina */
.product-img-box {
    position: relative;
}

.stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(10, 10, 10, 0.85);
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 5px 10px;
    z-index: 2;
}

.stock-badge.made-to-order {
    border-color: #d29922;
    color: #d29922;
}

@media (max-width: 768px) {
    #checkout-modal .sub-modal-content {
        margin: 6% auto;
        padding: 25px 20px;
    }
}
