/* IMPORTACIÓN DE FUENTES */
/* Se agrega Playfair Display para los textos elegantes */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
}

/* CABECERA */
.main-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 20px;
    background-color: #050505;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-logo img {
    display: block;
    width: 60px;
    filter: drop-shadow(0 0 5px rgba(220, 53, 186, 0.3));
}

.brand-text h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 34px;
    color: #dc35ba; 
    letter-spacing: 1px;
    font-weight: normal;
}

.brand-text p {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: -5px;
}

/* NUEVO: HERO SECTION (BIENVENIDA) */
.hero-section {
    position: relative;
    padding: 60px 20px 60px; /* Más espacio abajo para que el desvanecido luzca */
    text-align: center;
    border-bottom: none; /* Quitamos el borde brusco */
    overflow: hidden;
}

/* 2. Dejamos SOLO la foto aquí, con menos blur para que se vea la habitación */
.hero-bg-overlay {
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px; 
    /* Esta línea es la magia: una capa negra al 60% de opacidad sobre tu foto */
    background-image: linear-gradient(rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0.6)), url('assets/fondo-habitacion.png'); 
    background-size: cover;
    background-position: center center;
    filter: blur(5px) brightness(0.8); /* Subimos el brillo aquí porque la capa negra ya hace el trabajo de oscurecer */
    z-index: 1;
}

/* 3. NUEVO: Esta es la magia. Un degradado que se pone encima de la foto y la desvanece a negro puro */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Qué tan alto es el efecto de desvanecimiento */
    background: linear-gradient(to bottom, transparent 0%, #050505 100%);
    z-index: 1; /* Va encima de la foto */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px; /* Reducido de 26px */
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
}

.hero-highlight {
    color: #dc35ba;
    font-style: italic;
    font-size: 26px; /* Reducido de 30px */
    text-shadow: 0 0 15px rgba(220, 53, 186, 0.4);
    display: block; /* Asegura que 'algo inolvidable' baje elegantemente */
    margin-top: 5px;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.hero-divider .line {
    width: 40px;
    height: 1px;
    background-color: rgba(220, 53, 186, 0.3);
}

.hero-divider .heart-icon {
    color: #dc35ba;
    font-size: 14px;
}

.hero-subtitle {
    font-size: 13px;
    color: #aaa;
    max-width: 280px;
    margin: 0 auto 30px;
    line-height: 1.5;
}

/* ÍCONOS DE CONFIANZA */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.trust-item .text {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    line-height: 1.3;
}

.trust-item strong {
    color: #fff;
    font-weight: 600;
}

.trust-divider {
    width: 1px;
    height: 25px;
    background-color: #333;
}

/* BARRA DE CATEGORÍAS */
.scroll-categories {
    position: sticky;
    top: 60px; /* Ajusta según el tamaño de tu cabecera compacta */
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 90;
    padding: 10px 0; /* Menos padding vertical */
    width: 100%;
}

.scroll-wrapper {
    display: flex;
    justify-content: flex-start; /* Alinea a la izquierda, no centrado */
    overflow-x: auto; /* Permite deslizar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    padding: 0 20px; /* Espacio interior para que los botones no peguen al borde */
    gap: 12px; /* Espaciado entre botones */
    flex-wrap: nowrap; /* FORZAR UNA SOLA FILA */
}

.cat-btn {
    background: transparent;
    border: 1px solid #dc35ba;
    color: #fff;
    padding: 6px 14px; /* Más compactos */
    font-size: 13px; /* Fuente un poco más pequeña */
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap; /* Evita que el texto de adentro se rompa */
    flex-shrink: 0; /* CRÍTICO: No dejar que los botones se compriman */
    scroll-snap-align: start; /* Ayuda al efecto de imán al deslizar */
}
.glow-border {
    box-shadow: 0 0 10px rgba(220, 53, 186, 0.3), inset 0 0 10px rgba(220, 53, 186, 0.1);
}

/* CATÁLOGO Y TARJETAS */
.catalog-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    background-color: #0b0b0b;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    margin-bottom: 25px;
    position: relative;
}

/* ETIQUETA SUPERIOR IZQUIERDA */
.badge-top {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #050505;
    border: 1px solid #dc35ba;
    color: #dc35ba;
    padding: 4px 12px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    z-index: 10;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(220, 53, 186, 0.2);
}

.badge-top .star {
    font-size: 10px;
    margin-right: 3px;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Esto es lo que esconde el brillo para que no manche la pantalla */
    border-radius: 20px 20px 0 0; /* Mantiene las esquinas redondas premium */
}

.product-img-slider {
    display: flex;
    align-items: center; /* Esto evita que la imagen se pegue al techo */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: 280px; /* Un poco más alto para que respire */
    /* AQUÍ REGRESA LA NIEBLA MORADA */
    background: radial-gradient(circle at center, rgba(220, 53, 186, 0.15) 0%, transparent 70%);
}

.product-img-slider img {
    min-width: 100%;
    max-height: 220px; /* Controlamos el tamaño para que no se desborde */
    object-fit: contain;
    scroll-snap-align: start;
    padding: 15px;
}

/* FLECHAS DEL CARRUSEL ELEGANTES */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #dc35ba;
    border: 1px solid #dc35ba;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrow-btn.left { left: 15px; }
.arrow-btn.right { right: 15px; }

/* DETALLES DEL PRODUCTO */
.product-details {
    padding: 0 25px 25px;
}

.elegant-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-style: italic;
    text-align: center;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 400;
}

.product-details p {
    font-size: 13px;
    color: #888;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* FILA DE PRECIO Y ESTADO */
.product-row-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-tag {
    font-size: 24px;
    font-weight: 700;
    color: #dc35ba;
}

.cu {
    font-size: 14px;
    color: #dc35ba;
    font-weight: 400;
}

.status-pill {
    background-color: rgba(220, 53, 186, 0.08);
    border: 1px solid rgba(220, 53, 186, 0.3);
    color: #dc35ba;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-pill .dot {
    width: 6px;
    height: 6px;
    background-color: #dc35ba;
    border-radius: 50%;
    box-shadow: 0 0 5px #dc35ba;
}

/* BOTÓN FLOTANTE ESTILO NEÓN */
.glow-button {
    position: fixed;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: #050505;
    border: 1px solid #dc35ba;
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 8px 25px 8px 15px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(220, 53, 186, 0.4), inset 0 0 10px rgba(220, 53, 186, 0.1);
}

.icon-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.btn-text-group {
    display: flex;
    flex-direction: column;
}

.btn-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-subtitle {
    color: #fff;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* FOOTER INFERIOR (TEXTOS PEQUEÑOS DE CONFIANZA) */
.trust-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #050505;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
    z-index: 999;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #aaa;
}

.footer-divider {
    color: #333;
    font-size: 10px;
    margin: 0 8px;
}

.pink-text {
    color: #dc35ba;
}

/* ANIMACIONES */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);

    
}

.preloader-content img {
    width: 70px; /* Ajusta este número si lo quieres más chico o más grande */
    height: auto;
    display: block;
    margin: 0 auto;
    animation: pulseGlow 1.5s infinite ease-in-out; /* Vincula el efecto latido */
}

#preloader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 5px rgba(220, 53, 186, 0.3)); 
    }
    50% { 
        transform: scale(1.12); /* Este porcentaje hace el efecto de latido */
        filter: drop-shadow(0 0 22px rgba(220, 53, 186, 0.8)); 
    }
}

/* 1. OCULTAR LAS FLECHAS DEFINITIVAMENTE */
.arrow-btn {
    display: none !important;
}

/* 2. RECUPERAR EL BRILLO DE NEÓN AL TOCAR EL PRODUCTO */
.product-card:active, .product-card:hover {
    transform: scale(1.02); 
    border-color: #dc35ba; 
    box-shadow: 0px 10px 20px rgba(220, 53, 186, 0.15); 
}

/* 3. RECUPERAR EL DESTELLO DE LUZ (GLARE) EN LA FOTO */
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-20deg);
    pointer-events: none; 
    z-index: 5; 
}

.product-card:hover .carousel-container::after,
.product-card:active .carousel-container::after {
    left: 150%;
    transition: left 0.8s ease-in-out;
}

/* MOSTRAR FLECHAS SOLO EN ALIMENTOS Y BEBIDAS */
.product-card[data-category="comida"] .arrow-btn {
    display: flex !important;
}
.product-img-slider {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.product-img-slider::-webkit-scrollbar { 
    display: none;  /* Safari y Chrome */
}

/* ESTILOS PARA SELECTOR DE VARIANTES (TAMAÑOS) */
.variant-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.variant-btn {
    background: transparent;
    border: 1px solid #333; /* Gris apagado por defecto */
    color: #888;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.variant-btn.active {
    border-color: #dc35ba; /* Se prende de rosa */
    color: #dc35ba;
    box-shadow: 0 0 10px rgba(220, 53, 186, 0.2), inset 0 0 5px rgba(220, 53, 186, 0.1);
}

/* ETIQUETAS DE TEXTO PARA LOS SELECTORES DOBLES */
.selector-label {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 600;
}

/* BOTÓN FLOTANTE WHATSAPP */
.btn-whatsapp-float {
    position: fixed;
    bottom: 45px;
    right: 20px;
    background: #050505;
    border: 1px solid #25D366; /* Verde WhatsApp */
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4), inset 0 0 10px rgba(37, 211, 102, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp-float:hover, 
.btn-whatsapp-float:active {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6), inset 0 0 15px rgba(37, 211, 102, 0.2);
}