/* ==========================================================================
   1. CONFIGURACIÓN MAESTRA Y RESET (BASE DE ALTA CALIDAD)
   ========================================================================== */

/* Reseteo agresivo para control total del diseño */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Fuente principal de lujo para encabezados y títulos */
    font-family: 'Cinzel', serif;
    /* Elimina el cuadro azul al tocar elementos en móviles */
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Fuente secundaria para lectura cómoda y moderna (Textos largos) */
p, label, input, button, span, div, select, textarea, a {
    font-family: 'Lato', sans-serif;
    text-decoration: none;
    /* Suavizado de fuentes para que se vean nítidas en pantallas retina */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- SCROLLBAR PERSONALIZADO NIVEL PREMIUM --- */
/* Barra de desplazamiento dorada y delgada para Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #050505; /* Fondo negro profundo del riel */
    border-left: 1px solid #222;
}

::-webkit-scrollbar-thumb {
    /* Degradado dorado metálico vertical */
    background: linear-gradient(180deg, #8a6e2f, #d4af37, #f9e79f, #d4af37, #8a6e2f);
    border-radius: 5px;
    border: 2px solid #050505; /* Espacio para efecto flotante */
}

::-webkit-scrollbar-thumb:hover {
    background: #ffd700; /* Brillo más intenso al pasar el mouse */
}

/* ==========================================================================
   2. PALETA DE COLORES Y VARIABLES (SISTEMA DE DISEÑO)
   ========================================================================== */
:root {
    /* --- ORO PURO (Gama de colores dorados) --- */
    --gold-primary: #D4AF37;  /* Dorado clásico principal */
    --gold-light: #F9E79F;    /* Dorado luz/brillo para textos */
    --gold-dark: #AA771C;     /* Dorado oscuro para sombras y bordes */
    --gold-gradient: linear-gradient(135deg, #AA771C 0%, #D4AF37 50%, #F9E79F 100%);
    
    /* --- FONDOS --- */
    --black-bg: #050505;      /* Fondo principal de la página */
    --card-bg: #111111;       /* Fondo de tarjetas (fallback) */
    
    /* --- ESTADOS Y ALERTAS --- */
    --rojo-oferta: #c0392b;   /* Rojo elegante para etiquetas de oferta */
    --rojo-brillo: #e74c3c;   /* Rojo brillante para hover */
    --verde-stock: #27ae60;   /* Verde para disponibilidad */
    
    /* --- ANIMACIONES --- */
    --transicion-lenta: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transicion-rapida: 0.2s ease-in-out;
    
    /* --- EFECTO VIDRIO (GLASSMORPHISM EXTREMO) --- */
    /* Ajustes para lograr el efecto de cristal sobre el fondo */
    --glass-bg: rgba(15, 15, 15, 0.75); /* Fondo negro con 75% de transparencia */
    --glass-border: 1px solid rgba(212, 175, 55, 0.25); /* Borde dorado translúcido */
    --glass-border-hover: 1px solid rgba(212, 175, 55, 0.6); /* Borde más visible al hover */
    --glass-blur: blur(16px); /* Desenfoque fuerte del fondo */
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8); /* Sombra profunda para elevación */
}

/* ==========================================================================
   3. CUERPO Y FONDO (AMBIENTACIÓN)
   ========================================================================== */
body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    /* Espacio reservado para el Nav fijo y el Ticker superior */
    padding-top: 90px;
    
    /* --- FONDO LIQUID GLASS GRIS --- */
    /* Fondo con efecto de vidrio líquido en tonos grises */
    background: 
        /* Capa de ruido sutil */
        radial-gradient(ellipse at 20% 0%, rgba(60, 60, 70, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 10%, rgba(45, 45, 55, 0.35) 0%, transparent 45%),
        radial-gradient(ellipse at 40% 30%, rgba(70, 70, 80, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 50%, rgba(50, 50, 60, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 60%, rgba(55, 55, 65, 0.28) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 80%, rgba(40, 40, 50, 0.32) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 90%, rgba(65, 65, 75, 0.22) 0%, transparent 40%),
        /* Gradiente base suave */
        linear-gradient(160deg, 
            #0d0d0f 0%, 
            #151518 15%, 
            #1a1a1e 30%, 
            #141416 50%, 
            #18181c 70%, 
            #111113 85%, 
            #0a0a0c 100%
        );
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Fondo optimizado para móviles */
@media screen and (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

/* Fondo unificado para secciones principales (evita cambios de tono al hacer scroll) */
#seccion-categorias,
#seccion-grid {
    background: transparent;
}

/* Clase utilitaria para bloquear el scroll del body cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
    padding-right: 0px; 
}

/* ==========================================================================
   4. TOP TICKER (BARRA DE ANUNCIOS SUPERIOR)
   ========================================================================== */
.top-ticker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px; /* Altura fija pequeña y discreta */
    /* Vidrio oscuro */
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    z-index: 800; /* Mantener atrás respecto al nav para evitar artefactos visibles */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 1px rgba(212,175,55,0.1);
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 800px; /* Ancho controlado para que no se separen mucho las flechas */
    padding: 0 15px;
}

.ticker-text {
    color: var(--gold-light);
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); /* Resplandor dorado en texto */
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    
    /* Animación suave de entrada y salida */
    transition: opacity 0.4s ease, transform 0.4s ease, text-decoration 0.2s ease;
}

/* Enlace de teléfono en ticker */
.ticker-phone {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.ticker-phone::after {
    content: ' 📱';
    -webkit-text-fill-color: initial;
}

.ticker-phone:hover, .ticker-phone:active {
    filter: brightness(1.2);
    text-decoration: underline;
}

.ticker-control {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    margin: 0 -2px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-control:hover {
    color: var(--gold-primary);
    transform: scale(1.35);
    text-shadow: 0 0 10px var(--gold-primary);
}

.ticker-control:active {
    color: var(--gold-light);
    transform: scale(1.2);
    text-shadow: 0 0 12px var(--gold-primary), 0 0 6px rgba(212,175,55,0.6);
}

/* ==========================================================================
   5. BARRA DE NAVEGACIÓN (VIDRIO FLOTANTE)
   ========================================================================== */
nav {
    position: fixed;
    top: 35px; /* Se posiciona justo debajo del ticker */
    left: 0;
    width: 100%;
    /* Efecto Vidrio Intenso para el Nav */
    background: rgba(8, 8, 8, 0.75);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    z-index: 2200;
    padding: 15px 25px;
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.37), 0 0 1px rgba(212,175,55,0.1);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Ajuste para móviles: evitar que space-between deforme botones */
@media (max-width: 768px) {
    .nav-content {
        gap: 8px;
    }
}

/* --- BUSCADOR ESTILO CÁPSULA (CENTRADO) --- */
.buscador-container {
    position: relative;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 auto;
}

.input-wrapper { position: relative; width: 100%; }

#input-busqueda {
    width: 100%;
    padding: 12px 45px 12px 20px;
    /* Fondo casi transparente */
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px; /* Bordes completamente redondos */
    color: white;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}

/* Evitar selección accidental en áreas decorativas y controles del header */
.top-ticker, .top-ticker * , nav, nav * { user-select: none; }

#input-busqueda:focus {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.2), 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    transform: translateY(-1px);
}

#input-busqueda::placeholder { color: #555; }

.icono-lupa {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 1.2rem;
    pointer-events: none;
    transition: 0.3s;
}

#input-busqueda:focus + .icono-lupa { color: var(--gold-primary); }

/* --- RESULTADOS FLOTANTES (DROPDOWN) --- */
.lista-resultados {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 55px; /* Debajo del input */
    left: 0;
    width: 100%;
    background: #111;
    border: 1px solid var(--gold-dark);
    border-radius: 15px;
    z-index: 3000;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.95);
    /* Animación de despliegue */
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.resultado-item:last-child { border-bottom: none; }
.resultado-item:hover { background: rgba(212, 175, 55, 0.1); }

.info-busqueda { display: flex; flex-direction: column; gap: 2px; }
.nombre-busqueda { color: var(--gold-light); font-weight: 700; font-size: 0.95rem; }
.modelo-busqueda { color: #888; font-size: 0.8rem; font-style: italic; }

.tag-oferta-busqueda {
    background: linear-gradient(45deg, #c0392b, #e74c3c);
    color: white;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* --- BOTONERA NAV (DERECHA) --- */
.nav-buttons { display: flex; gap: 20px; align-items: center; }

.btn-icon-nav { 
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    font-size: 1.8rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-radius: 50%;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    margin: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

.btn-icon-nav:hover { 
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--gold-light);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
    filter: brightness(1.15);
}

.btn-icon-nav:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.badge-count { 
    position: absolute;
    top: -5px;
    right: -8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 900;
    border: 2px solid #1a1a1a;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.5), 0 0 12px rgba(231, 76, 60, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 4px 12px rgba(231, 76, 60, 0.7), 0 0 16px rgba(231, 76, 60, 0.5); }
}

.btn-instagram {
    display: flex; align-items: center; gap: 8px;
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.2);
}

.btn-instagram:hover { 
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-light);
    color: white;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn-inicio { 
    background: none; border: 1px solid var(--gold-dark);
    color: var(--gold-primary); padding: 0 !important; border-radius: 50%;
    cursor: pointer; transition: 0.15s; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    width: 40px !important; height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

/* Solo aplicar hover en dispositivos con mouse */
@media (hover: hover) and (pointer: fine) {
    .btn-inicio:hover { 
        background: var(--gold-primary); color: black; 
        box-shadow: 0 0 20px var(--gold-primary);
    }
}

/* Estado activo para touch y click */
.btn-inicio:active { 
    background: var(--gold-primary); color: black; 
    box-shadow: 0 0 20px var(--gold-primary);
    transform: scale(0.95);
}

/* Botón flotante para volver arriba */
.btn-floating-top {
    position: fixed;
    right: 18px;
    bottom: 110px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none; /* oculto hasta que se haga scroll */
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--gold-primary);
    box-shadow: 0 14px 32px rgba(0,0,0,0.45), 0 0 18px rgba(212,175,55,0.18);
    cursor: pointer;
    z-index: 3500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-floating-top:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 16px 38px rgba(0,0,0,0.5), 0 0 22px rgba(212,175,55,0.26);
    background: rgba(255,255,255,0.06);
}
.btn-floating-top i { font-size: 1.2rem; }

/* CTA sobre tarjeta de publicidad */
.cta-publicidad {
    position: absolute;
    left: 50%; bottom: 18px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 40;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 16px rgba(212,175,55,0.16);
}
.cta-publicidad:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.45), 0 0 18px rgba(212,175,55,0.2);
}

/* ==========================================================================
   6. HEADER & PASILLO DE CATEGORÍAS (EFECTO LUJO)
   ========================================================================== */
header {
    text-align: center;
    padding: 80px 20px;
    min-height: 500px; /* Más alto para imponer presencia */
    display: flex; flex-direction: column; justify-content: center;
    position: relative;
    /* Efecto de luz de fondo centrado */
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.texto-oro-liquido {
    font-size: clamp(5rem, 15vw, 9rem); /* Tamaño Gigante Responsivo */
    font-weight: 900;
    color: transparent;
    /* Gradiente complejo para simular oro líquido */
    background: linear-gradient(
        135deg, 
        #bf953f, 
        #fcf6ba 25%, 
        #b38728 50%, 
        #fbf5b7 75%, 
        #aa771c 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    /* Sombra para dar volumen 3D */
    text-shadow: 0px 5px 20px rgba(0,0,0,0.8);
    margin: 0;
    line-height: 1;
    /* Animación lenta y continua del brillo */
    animation: shine 8s linear infinite;
}

@keyframes shine { 
    to { background-position: 200% center; } 
}

.subtitulo-vip {
    color: var(--gold-light);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    letter-spacing: 8px;
    margin-top: 10px;
    font-weight: 400;
    text-shadow: 0 4px 15px rgba(0,0,0,1);
    opacity: 0.9;
}

.separador-dorado {
    width: 100px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 30px auto;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--gold-primary);
}

.slogan {
    color: #bbb;
    letter-spacing: 6px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 300;
}

/* --- TARJETAS DE CATEGORÍA (VIDRIO PURO) --- */
.contenedor-categorias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px; /* Más espacio entre tarjetas */
    padding: 40px 20px;
}

.tarjeta-categoria {
    width: 100%;
    max-width: 400px;
    height: 320px; /* Más altas */
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    
    /* El efecto vidrio mejorado */
    background: rgba(15, 15, 15, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 1px rgba(212,175,55,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border 0.4s ease;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarjeta-categoria:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 24px 64px rgba(212, 175, 55, 0.22), 0 0 40px rgba(212, 175, 55, 0.12), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}

/* La imagen de fondo */
.tarjeta-categoria img, .tarjeta-categoria video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.95) grayscale(0%); /* Brillante y a color por defecto */
    transition: 0.45s ease;
    z-index: 1;
}

/* Contenedor que envuelve la media (imagen/video) dentro de la tarjeta
   Debe ocupar todo el área de la tarjeta para que los elementos absolutos
   internos no queden recortados por wrappers sin altura. */
.media-container {
    position: absolute; /* se posiciona dentro de .tarjeta-categoria */
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
}

.tarjeta-categoria:hover img, .tarjeta-categoria:hover video {
    filter: brightness(1) grayscale(0%); /* Mantiene color y brillo al hover */
    transform: scale(1.06); /* Zoom suave */
}

.contenido-cat {
    position: relative;
    z-index: 2; /* Encima de la imagen */
    width: 100%; height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contenido-cat h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0,0,0,1);
    font-family: 'Cinzel', serif;
}

.contenido-cat p {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 25px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    font-weight: 300;
}

/* Botón "Ver Colección" */
.btn-entrar {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tarjeta-categoria:hover .btn-entrar {
    background: var(--gold-primary);
    color: black;
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.btn-rojo { background: var(--rojo-oferta); border: none; }
.btn-rojo:hover { background: #a93226 !important; color: white !important; }

.badge-cat-promo {
    position: absolute;
    top: 35px; right: -45px;
    background: var(--rojo-oferta);
    color: white;
    padding: 8px 60px;
    transform: rotate(45deg);
    z-index: 5;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Etiqueta de orden pequeña (ej: #1, #2) */
.order-label {
    position: absolute;
    top: 10px;
    left: 12px;
    background: rgba(0,0,0,0.45);
    color: #f0f0f0;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 6;
    pointer-events: none;
}

/* Botón pequeño para editar orden en la tarjeta (no tapa la imagen) */
.btn-edit-order {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 7;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.tarjeta-bloqueada {
    filter: grayscale(100%);
    opacity: 0.5;
    pointer-events: none; /* No clickable */
}

/* ==========================================================================
   7. GRID DE PRODUCTOS (LISTADO)
   ========================================================================== */
.grid-productos {
    display: grid;
    /* Grid responsivo automático */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.tarjeta-producto {
    background: rgba(18, 18, 18, 0.75);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border 0.3s ease;
    display: flex; flex-direction: column;
    border: 1px solid rgba(212, 175, 55, 0.08);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 1px rgba(212,175,55,0.1), inset 0 1px 0 rgba(255,255,255,0.02);
}

.tarjeta-producto:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.65), 0 0 24px rgba(212, 175, 55, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
    border-color: rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.img-wrapper {
    height: 350px; /* Altura generosa para perfumes */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: #111;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tarjeta-producto:hover .img-wrapper img {
    transform: scale(1.08); /* Zoom suave al hover */
}

.etiqueta-oferta {
    position: absolute;
    top: 15px; left: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    letter-spacing: 1px;
}

.info-card {
    padding: 20px;
    text-align: center;
    display: flex; flex-direction: column;
    justify-content: space-between;
    height: 160px; /* Altura fija para alineación */
}

.info-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.3;
}

/* Controles rápidos dentro de tarjeta de producto */
.qty-card { display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:14px; background: var(--glass-bg); border: var(--glass-border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.qty-card .qty-number { min-width:36px; text-align:center; color:#fff; font-weight:800; font-size:1rem; }
.btn-agregar-card { background: linear-gradient(135deg, #D4AF37, #B8960F); color:black; border:none; padding:8px 12px; border-radius:12px; font-weight:700; cursor:pointer; box-shadow: 0 8px 22px rgba(212,175,55,0.18); transition: all 0.3s ease; }
.btn-agregar-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212,175,55,0.25); }
.btn-agregar-card.agregado { background: linear-gradient(135deg, #27ae60, #1e8449); color: white; }
.btn-agregar-card.agregado:hover { background: linear-gradient(135deg, #2ecc71, #27ae60); box-shadow: 0 10px 26px rgba(39, 174, 96, 0.25); }


.bloque-precios {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 4px;
}

.precio-tachado {
    text-decoration: line-through;
    color: #666;
    font-size: 0.9rem;
}

.precio-card {
    color: var(--gold-primary);
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.texto-ver-detalles {
    display: inline-block;
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    margin-top: auto;
}

/* ==========================================================================
   8. MODAL DE PRODUCTO (LA JOYA DE LA CORONA)
   ========================================================================== */
.modal {
    display: none; /* Oculto */
    position: fixed;
    z-index: 5000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92); /* Fondo muy oscuro para enfoque total */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInModal 0.3s forwards;
    /* ensure modal overlays everything */
    z-index: 6000;
}

@keyframes fadeInModal { to { opacity: 1; } }

.modal-content {
    background: #151515;
    width: 95%; max-width: 550px; /* Ancho ideal */
    border-radius: 25px;
    border: 1px solid var(--gold-dark);
    box-shadow: 0 0 100px rgba(212, 175, 55, 0.15); /* Resplandor dorado externo */
    position: relative;
    max-height: 95vh;
    display: flex; flex-direction: column;
    overflow: hidden;
    transform: translateY(50px);
    animation: slideUpModal 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes slideUpModal { to { transform: translateY(0); opacity: 1; } }

/* Botón cerrar flotante */
.cerrar-modal {
    position: absolute; top: 15px; right: 15px;
    background: rgba(0,0,0,0.6);
    color: white; border: 1px solid #444;
    font-size: 1.2rem; border-radius: 50%;
    width: 40px; height: 40px;
    cursor: pointer; z-index: 20; transition: 0.3s;
    display: flex; justify-content: center; align-items: center;
}
.cerrar-modal:hover {
    background: var(--rojo-oferta);
    border-color: var(--rojo-oferta);
    transform: rotate(90deg);
}

/* Scroll interno limpio */
.modal-body {
    overflow-y: auto;
    padding: 0;
    display: flex; flex-direction: column;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) #222;
}

/* Cabecera Modal */
.producto-header {
    position: relative;
    background: #080808;
    padding-bottom: 20px;
}

.producto-imagen-grande {
    position: relative;
    height: 380px; /* Imagen grande y clara */
    width: 100%;
    display: flex; justify-content: center; align-items: center;
    background: radial-gradient(circle at center, #303030 0%, #181818 50%, #080808 100%);
    overflow: hidden;
}

.producto-imagen-grande img {
    max-width: 85%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6)); /* Sombra realista 3D */
}

/* BOTÓN FAVORITO (CORAZÓN ROJO) */
.btn-favorito-modal {
    position: absolute; 
    top: 15px; right: 15px; /* UBICACIÓN: ESQUINA SUPERIOR DERECHA */
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 45px; height: 45px;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 15;
}

.btn-favorito-modal:active { transform: scale(0.8); }

/* CLASE FORZADA PARA COLOR ROJO */
.ph-heart-fill {
    color: #e74c3c !important;
    fill: #e74c3c !important;
    filter: drop-shadow(0 0 10px rgba(231, 76, 60, 0.6));
}

.producto-info-base { padding: 0 25px; text-align: left; margin-top: -20px; position: relative; z-index: 5; }
#modal-titulo-producto {
    color: var(--gold-light);
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,1);
}
.modelo-texto { color: #888; font-size: 1rem; margin-bottom: 15px; font-weight: 300; }

.precio-container {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 15px;
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.precio-modal { font-size: 2.2rem; color: var(--gold-primary); font-weight: 900; }
.precio-tachado-modal { font-size: 1.2rem; color: #666; text-decoration: line-through; margin-right: 15px;}
.stock-badge { 
    background: rgba(39, 174, 96, 0.15); 
    color: var(--verde-stock); 
    padding: 6px 15px; border-radius: 20px; 
    font-size: 0.8rem; font-weight: bold; 
    display: flex; align-items: center; gap: 6px; 
    border: 1px solid rgba(39, 174, 96, 0.4);
}

.separador-modal { border: 0; height: 1px; background: #333; margin: 20px 0; width: 100%; }

/* --- SELECTOR DE SABORES / VARIANTES --- */
.seccion-variantes { padding: 0 25px; }
#titulo-variantes { color: #ddd; margin-bottom: 15px; font-size: 1rem; font-weight: bold; display: block; }

.grid-variantes { display: flex; flex-wrap: wrap; gap: 10px; }

.chip-variante {
    background: #1f1f1f;
    border: 1px solid #444;
    color: #ccc;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.chip-variante:hover { border-color: var(--gold-primary); background: #2a2a2a; }

.chip-variante.activo { 
    background: var(--gold-primary); 
    color: black; 
    border-color: var(--gold-primary); 
    font-weight: bold; 
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); 
    transform: scale(1.05);
}

.chip-variante.agotado { 
    opacity: 0.4; 
    text-decoration: line-through; 
    pointer-events: none; 
    border-color: #222; 
    background: #111;
}

.input-modal-texto { 
    width: 100%; padding: 15px; 
    background: #1a1a1a; border: 1px solid #444; 
    color: var(--gold-primary); border-radius: 12px; 
    font-size: 1rem; font-weight: bold; text-align: center;
}

/* --- CONTROLES DE COMPRA --- */
.seccion-compra { padding: 20px 25px; display: flex; gap: 20px; flex-wrap: wrap; }
.control-cantidad-wrapper, .metodo-pago-wrapper { flex: 1; min-width: 140px; }
.control-cantidad-wrapper label, .metodo-pago-wrapper label { display: block; color: #888; font-size: 0.8rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }

.control-cantidad { 
    display: flex; align-items: center; justify-content: space-between; 
    background: #1a1a1a; border-radius: 15px; padding: 5px;
    border: 1px solid rgba(255,255,255,0.02);
}
.btn-cant {
    background: linear-gradient(140deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    color: #fff;
    width: 40px; height: 40px;
    font-size: 1.1rem; cursor: pointer; border-radius: 12px; 
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); 
    border: 1px solid rgba(255,255,255,0.16);
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0,0,0,0.32), 0 0 0 1px rgba(212,175,55,0.12), inset 0 1px 0 rgba(255,255,255,0.22);
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Hover solo en dispositivos con mouse */
@media (hover: hover) and (pointer: fine) {
    .btn-cant:hover { 
        background: linear-gradient(140deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
        border-color: rgba(255,255,255,0.28);
        transform: translateY(-3px) scale(1.08); 
        box-shadow: 0 12px 32px rgba(0,0,0,0.34), 0 0 0 1px rgba(212,175,55,0.22), inset 0 1px 0 rgba(255,255,255,0.24);
        color: #fff;
    }
}

.btn-cant:active { 
    transform: translateY(0) scale(0.95); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.16);
}
#cantidad-seleccionada { 
    background: none; border: none; color: white; width: 50px; 
    text-align: center; font-weight: bold; font-size: 1.3rem; 
}

/* Toggle Pago */
.toggle-pago { 
    display: flex; background: #1a1a1a; border-radius: 15px; padding: 4px; 
    border: 1px solid #333; 
}
.toggle-pago input { display: none; }
.toggle-pago label { 
    flex: 1; text-align: center; padding: 12px 0; font-size: 0.85rem; 
    cursor: pointer; border-radius: 12px; margin: 0 !important; 
    color: #888; transition: 0.2s; font-weight: 600; text-transform: none;
}
.toggle-pago input:checked + label { 
    background: var(--gold-dark); color: black; font-weight: bold; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

/* --- FOOTER MODAL (STICKY) --- */
.footer-compra-sticky { 
    background: var(--glass-bg); padding: 20px 25px; 
    border-top: var(--glass-border); 
    display: flex; justify-content: space-between; align-items: center; 
    position: sticky; bottom: 0; z-index: 10;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.total-final { display: flex; flex-direction: column; }
.total-final span:first-child { font-size: 0.85rem; color: #888; letter-spacing: 1px; }
.total-final #total-precio { font-size: 1.8rem; color: var(--gold-primary); font-weight: 900; }

.boton-pedir {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: black; border: none; padding: 15px 35px; border-radius: 40px;
    font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.25); 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.boton-pedir::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

/* Hover solo en dispositivos con mouse */
@media (hover: hover) and (pointer: fine) {
    .boton-pedir:hover::before {
        width: 300px;
        height: 300px;
    }
    
    .boton-pedir:hover { 
        transform: translateY(-3px) scale(1.02); 
        filter: brightness(1.15); 
        box-shadow: 0 12px 40px rgba(212, 175, 55, 0.45); 
    }
}

.boton-pedir:active { 
    transform: translateY(0) scale(0.98); 
    box-shadow: 0 3px 15px rgba(212, 175, 55, 0.3);
}

.advertencia-pago { 
    font-size: 0.75rem; color: #666; text-align: center; 
    padding: 10px 25px 5px; background: #0a0a0a; font-style: italic;
}

/* --- RECOMENDADOS (SCROLL HORIZONTAL) --- */
.seccion-recomendados { 
    padding: 30px 25px; background: #0c0c0c; 
    border-top: 1px solid #222; margin-bottom: 90px; /* Espacio para el footer sticky */
}
.header-recomendados { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.seccion-recomendados h3 { color: #ddd; font-size: 1.1rem; font-weight: 400; margin: 0; }

.controles-scroll { display: none; gap: 10px; }
.controles-scroll button {
    background: rgba(34, 34, 34, 0.8); 
    border: 1px solid rgba(212, 175, 55, 0.15); 
    color: #fff; 
    width: 35px; height: 35px; border-radius: 50%; cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.controles-scroll button:hover { 
    background: var(--gold-primary); 
    color: black; 
    border-color: var(--gold-primary); 
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}
.controles-scroll button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.grid-recomendados-wrapper { overflow: hidden; position: relative; width: 100%; }
.grid-recomendados { 
    display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; 
    scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; 
}
.grid-recomendados::-webkit-scrollbar { display: none; }

.card-recomendada { 
    min-width: 150px; max-width: 150px; 
    background: rgba(26, 26, 26, 0.8); 
    border-radius: 15px; 
    overflow: hidden; 
    cursor: pointer; 
    border: 1px solid rgba(212, 175, 55, 0.1); 
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.card-recomendada:hover { 
    border-color: var(--gold-primary); 
    transform: translateY(-8px) scale(1.03); 
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.25), 0 0 16px rgba(212, 175, 55, 0.15);
}
.card-recomendada img { width: 100%; height: 140px; object-fit: cover; }
.card-recomendada div { padding: 12px; text-align: center; }
.rec-nombre { font-size: 0.85rem; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.rec-precio { font-size: 1rem; color: var(--gold-primary); font-weight: bold; }

/* ESPACIO FINAL Y FOOTER GENERAL */
.espacio-final { height: 100px; }
footer { 
    margin-top: 0; padding: 60px 20px; background: #000; 
    border-top: 1px solid #222; text-align: center; 
}
.footer-logo { color: var(--gold-dark); font-weight: 900; font-size: 2.5rem; letter-spacing: 5px; margin-bottom: 10px; font-family: 'Cinzel', serif; }
.footer-small { font-size: 0.75rem; color: #444; margin-top: 10px; }

/* =========================================
   MEDIA QUERIES (MÓVIL Y RESPONSIVO)
   ========================================= */

/* Tablets y móviles grandes (max 768px) */
@media (max-width: 768px) {
    .grid-productos { grid-template-columns: repeat(2, 1fr); padding: 10px; gap: 12px; }
    .img-wrapper { height: 180px; }
    .img-wrapper img { object-position: center top; }
    
    .producto-imagen-grande { height: 280px; }
    .footer-compra-sticky { padding: 15px; }
    .boton-pedir { padding: 12px 20px; font-size: 0.9rem; }
    .btn-favorito-modal { width: 40px; height: 40px; font-size: 1.4rem; top: 10px; right: 10px; }
    
    .controles-scroll { display: none; }
    
    .nav-buttons .texto-insta { display: none; }
    .btn-instagram { display: none; }
    .buscador-container { max-width: none; flex: 1; }
    .nav-buttons { gap: 10px; }
    .nav-content { gap: 15px; padding: 0 12px; }
    #input-busqueda { padding: 10px 35px 10px 14px; font-size: 0.9rem; }
    .btn-icon-nav { width: 44px; height: 44px; font-size: 1.5rem; }
    .badge-count { width: 18px; height: 18px; font-size: 0.65rem; top: -4px; right: -6px; }
    
    .info-card { padding: 14px; height: auto; min-height: 120px; }
    .info-card h3 { font-size: 1rem; margin-bottom: 5px; }
    .precio-card { font-size: 1.25rem; }
    .texto-ver-detalles { font-size: 0.7rem; padding-top: 10px; letter-spacing: 1px; }
    .btn-agregar-card { padding: 8px 12px; font-size: 0.9rem; }
    
    .contenedor-categorias { padding: 25px 15px; gap: 25px; }
    .tarjeta-categoria { max-width: 100%; height: 280px; border-radius: 18px; }
    .contenido-cat h2 { font-size: 1.8rem; }
    .contenido-cat p { font-size: 0.9rem; }
    
    .cta-publicidad { bottom: 14px; padding: 9px 16px; font-size: 0.85rem; }
    
    header { padding: 60px 20px; min-height: 400px; }
    .texto-oro-liquido { font-size: 5rem; }
    .subtitulo-vip { font-size: 1.5rem; }
    
    /* Modal responsive 768px */
    .modal-content { max-width: 95%; border-radius: 22px; }
    .producto-imagen-grande { height: 320px; background: radial-gradient(circle at center, #303030 0%, #151515 50%, #080808 100%); }
    #modal-titulo-producto { font-size: 1.8rem; }
    .precio-modal { font-size: 2rem; }
}

/* Móviles medianos - iPhone Plus, Pixel (max 600px) */
@media (max-width: 600px) {
    body { padding-top: 85px; }
    nav { padding: 12px 10px; }
    
    .grid-productos { grid-template-columns: repeat(2, 1fr); padding: 8px; gap: 10px; }
    .img-wrapper { height: 160px; }
    
    .nav-content { gap: 8px; padding: 0 6px; }
    .nav-buttons { gap: 6px; }
    .btn-icon-nav { width: 38px !important; height: 38px !important; min-width: 38px; min-height: 38px; max-width: 38px; max-height: 38px; font-size: 1.25rem; }
    .btn-inicio { width: 36px !important; height: 36px !important; min-width: 36px; min-height: 36px; max-width: 36px; max-height: 36px; font-size: 1.2rem; }
    .buscador-container { max-width: 160px; flex-grow: 0; }
    #input-busqueda { padding: 8px 28px 8px 10px; font-size: 0.82rem; }
    .icono-lupa { font-size: 1rem; right: 10px; }
    
    .info-card { padding: 12px; min-height: 110px; }
    .info-card h3 { font-size: 0.92rem; }
    .precio-card { font-size: 1.15rem; }
    .btn-agregar-card { padding: 7px 10px; }
    
    .tarjeta-categoria { height: 260px; }
    .contenido-cat h2 { font-size: 1.6rem; }
    
    header { padding: 50px 18px; min-height: 380px; }
    .texto-oro-liquido { font-size: 4.5rem; }
    .subtitulo-vip { font-size: 1.4rem; letter-spacing: 5px; }
    .slogan { font-size: 0.8rem; letter-spacing: 4px; }
    
    .floating-cart-panel { right: 10px; left: 10px; bottom: 88px; max-height: 68vh; }
    .floating-cart-list { max-height: 180px; }
    .btn-whatsapp { width: 62px; height: 62px; }
    .btn-whatsapp i { font-size: 1.7rem; }
    
    /* Modal responsive 600px */
    .modal-content { max-width: 100%; width: 96%; border-radius: 18px; max-height: 90vh; }
    .producto-imagen-grande { 
        height: 240px; 
        background: radial-gradient(circle at center, #353535 0%, #1a1a1a 45%, #080808 100%);
    }
    .producto-imagen-grande img { max-width: 75%; max-height: 85%; }
    #modal-titulo-producto { font-size: 1.5rem; line-height: 1.25; }
    .precio-modal { font-size: 1.7rem; }
    .producto-info-base { padding: 0 16px; margin-top: -15px; }
    .modelo-texto { font-size: 0.9rem; margin-bottom: 10px; }
    .seccion-variantes { padding: 12px 16px; }
    .titulo-seccion { font-size: 0.8rem; margin-bottom: 10px; }
    .chips-container { gap: 6px; }
    .chip-variante { padding: 8px 12px; font-size: 0.82rem; border-radius: 10px; }
    .seccion-compra { padding: 12px 16px; gap: 12px; }
    .control-cantidad-wrapper label, .metodo-pago-wrapper label { font-size: 0.75rem; }
    .btn-cant { width: 38px; height: 38px; }
    .toggle-pago label { padding: 10px 0; font-size: 0.8rem; }
    .footer-compra-sticky { padding: 14px 16px; }
    .total-final #total-precio { font-size: 1.5rem; }
    .boton-pedir { padding: 11px 20px; font-size: 0.9rem; }
}

/* Móviles pequeños - iPhone XS, SE, mini (max 420px) */
@media (max-width: 420px) {
    body { padding-top: 80px; }
    nav { padding: 10px 8px; }
    
    .grid-productos { grid-template-columns: 1fr; padding: 10px; gap: 14px; }
    .img-wrapper { height: 220px; }
    
    .nav-content { gap: 6px; padding: 0 4px; }
    .nav-buttons { gap: 5px; }
    .btn-icon-nav { font-size: 1.15rem; width: 36px !important; height: 36px !important; min-width: 36px; min-height: 36px; max-width: 36px; max-height: 36px; }
    .btn-inicio { width: 34px !important; height: 34px !important; min-width: 34px; min-height: 34px; max-width: 34px; max-height: 34px; font-size: 1.1rem; }
    .badge-count { width: 16px; height: 16px; font-size: 0.6rem; top: -2px; right: -4px; border-width: 1.5px; }
    .buscador-container { max-width: 135px; flex-grow: 0; }
    #input-busqueda { padding: 7px 24px 7px 8px; font-size: 0.78rem; }
    .icono-lupa { font-size: 0.95rem; right: 8px; }
    
    .btn-whatsapp { width: 58px; height: 58px; right: 14px; bottom: 14px; }
    .btn-whatsapp i { font-size: 1.5rem; }
    
    .boton-pedir { padding: 10px 14px; font-size: 0.85rem; }
    
    .floating-cart-panel { right: 8px; left: 8px; bottom: 82px; max-height: 62vh; }
    .floating-cart-list { max-height: 140px; }
    .floating-cart-footer { padding: 12px 10px; }
    .floating-total { font-size: 1rem; margin-bottom: 8px; }
    .floating-actions { flex-direction: column; }
    .floating-actions .btn-primary { width: 100%; }
    .btn-primary { padding: 11px 14px; font-size: 0.92rem; min-height: 44px; }
    
    button, .btn-primary, .btn-secondary { min-height: 44px; }
    
    .info-card { padding: 14px; min-height: 100px; }
    .info-card h3 { font-size: 1.05rem; line-height: 1.25; }
    .precio-card { font-size: 1.3rem; }
    .btn-agregar-card { padding: 8px 14px; font-size: 0.9rem; }
    .texto-ver-detalles { font-size: 0.68rem; }
    
    .contenedor-categorias { padding: 18px 10px; gap: 18px; }
    .tarjeta-categoria { height: 240px; border-radius: 16px; }
    .contenido-cat h2 { font-size: 1.5rem; }
    .contenido-cat p { font-size: 0.85rem; margin-bottom: 15px; }
    .btn-entrar { padding: 10px 22px; font-size: 0.8rem; }
    
    .cta-publicidad { bottom: 12px; padding: 8px 14px; font-size: 0.78rem; border-radius: 10px; min-width: 90px; }
    
    header { padding: 45px 15px; min-height: 340px; }
    .texto-oro-liquido { font-size: 3.8rem; }
    .subtitulo-vip { font-size: 1.25rem; letter-spacing: 4px; }
    .separador-dorado { width: 65px; margin: 18px auto; }
    .slogan { font-size: 0.72rem; letter-spacing: 3px; }
    
    /* Modal responsive 420px */
    .modal-content { max-width: 100%; width: 98%; border-radius: 16px; max-height: 88vh; }
    .producto-imagen-grande { 
        height: 200px; 
        background: radial-gradient(circle at center, #404040 0%, #222 40%, #0a0a0a 100%);
    }
    .producto-imagen-grande img { max-width: 70%; max-height: 80%; }
    #modal-titulo-producto { font-size: 1.35rem; line-height: 1.25; }
    .precio-modal { font-size: 1.5rem; }
    .producto-info-base { padding: 0 14px; margin-top: -12px; }
    .modelo-texto { font-size: 0.85rem; margin-bottom: 8px; }
    .seccion-variantes { padding: 10px 14px; }
    .titulo-seccion { font-size: 0.75rem; margin-bottom: 8px; }
    .chips-container { gap: 5px; }
    .chip-variante { padding: 6px 10px; font-size: 0.78rem; border-radius: 8px; }
    .seccion-compra { padding: 10px 14px; gap: 10px; }
    .control-cantidad-wrapper, .metodo-pago-wrapper { min-width: 110px; }
    .control-cantidad-wrapper label, .metodo-pago-wrapper label { font-size: 0.7rem; }
    .btn-cant { width: 34px; height: 34px; font-size: 0.95rem; border-radius: 10px; }
    #cantidad-seleccionada { font-size: 1rem; width: 40px; }
    .toggle-pago label { padding: 9px 0; font-size: 0.75rem; border-radius: 10px; }
    .footer-compra-sticky { padding: 10px 14px; }
    .total-final span:first-child { font-size: 0.75rem; }
    .total-final #total-precio { font-size: 1.3rem; }
    .boton-pedir { padding: 10px 16px; font-size: 0.82rem; gap: 5px; border-radius: 30px; }
    .boton-pedir i { font-size: 0.95rem; }
}

/* Móviles muy pequeños - iPhone SE 1ra gen, Galaxy S5 (max 375px) */
@media (max-width: 375px) {
    body { padding-top: 75px; }
    nav { padding: 8px 6px; }
    
    .nav-content { gap: 5px; padding: 0 3px; }
    .nav-buttons { gap: 4px; }
    .btn-icon-nav { font-size: 1.1rem; width: 34px !important; height: 34px !important; min-width: 34px; min-height: 34px; max-width: 34px; max-height: 34px; }
    .btn-inicio { width: 32px !important; height: 32px !important; min-width: 32px; min-height: 32px; max-width: 32px; max-height: 32px; font-size: 1rem; }
    .badge-count { width: 14px; height: 14px; font-size: 0.5rem; top: -2px; right: -3px; }
    .buscador-container { max-width: 115px; flex-grow: 0; }
    #input-busqueda { padding: 6px 22px 6px 8px; font-size: 0.75rem; }
    .icono-lupa { font-size: 0.9rem; right: 6px; }
    
    .grid-productos { padding: 8px; gap: 12px; }
    .img-wrapper { height: 200px; }
    
    .info-card h3 { font-size: 0.98rem; }
    .precio-card { font-size: 1.2rem; }
    .btn-agregar-card { padding: 7px 12px; font-size: 0.85rem; }
    
    .btn-whatsapp { width: 54px; height: 54px; right: 12px; bottom: 12px; }
    .btn-whatsapp i { font-size: 1.4rem; }
    
    .floating-cart-panel { right: 6px; left: 6px; bottom: 78px; max-height: 58vh; }
    .floating-cart-list { max-height: 120px; }
    .floating-cart-item { padding: 8px; gap: 8px; }
    .floating-cart-item img { width: 40px; height: 40px; }
    .fci-name { font-size: 0.85rem; }
    .fci-price { font-size: 0.9rem; }
    .btn-cant { width: 26px; height: 26px; }
    
    .tarjeta-categoria { height: 220px; }
    .contenido-cat h2 { font-size: 1.4rem; }
    .contenido-cat p { font-size: 0.8rem; }
    .btn-entrar { padding: 9px 20px; font-size: 0.75rem; }
    
    header { padding: 40px 12px; min-height: 320px; }
    .texto-oro-liquido { font-size: 3.2rem; }
    .subtitulo-vip { font-size: 1.1rem; letter-spacing: 3px; }
    .slogan { font-size: 0.68rem; letter-spacing: 2px; }
    
    /* Modal responsive 375px - iPhone XS y móviles pequeños */
    .modal-content { 
        max-width: 100%; 
        width: 100%; 
        border-radius: 14px; 
        max-height: 92vh; 
        margin: 4vh 0;
    }
    .producto-header { position: relative; }
    .producto-imagen-grande { 
        height: 170px; 
        background: radial-gradient(circle at center, #454545 0%, #282828 35%, #0a0a0a 85%);
    }
    .producto-imagen-grande img { max-width: 65%; max-height: 78%; }
    #modal-titulo-producto { font-size: 1.2rem; line-height: 1.2; margin-bottom: 4px; }
    .precio-modal { font-size: 1.35rem; }
    .producto-info-base { padding: 0 12px; margin-top: -10px; }
    .modelo-texto { font-size: 0.8rem; margin-bottom: 6px; }
    .descripcion-modal { font-size: 0.82rem; line-height: 1.45; }
    .separador-modal { margin: 12px 0; }
    .seccion-variantes { padding: 8px 12px; }
    .titulo-seccion { font-size: 0.7rem; margin-bottom: 6px; letter-spacing: 0.5px; }
    .chips-container { gap: 4px; }
    .chip-variante { padding: 5px 9px; font-size: 0.72rem; border-radius: 7px; }
    .input-modal-texto { padding: 10px; font-size: 0.85rem; border-radius: 10px; }
    .seccion-compra { padding: 8px 12px; gap: 8px; flex-direction: column; }
    .control-cantidad-wrapper, .metodo-pago-wrapper { min-width: 100%; flex: none; }
    .control-cantidad-wrapper label, .metodo-pago-wrapper label { font-size: 0.68rem; margin-bottom: 4px; }
    .control-cantidad { padding: 4px; border-radius: 12px; }
    .btn-cant { width: 32px; height: 32px; font-size: 0.9rem; border-radius: 9px; }
    #cantidad-seleccionada { font-size: 0.95rem; width: 38px; }
    .toggle-pago { padding: 3px; border-radius: 12px; }
    .toggle-pago label { padding: 8px 0; font-size: 0.72rem; border-radius: 9px; }
    .footer-compra-sticky { padding: 10px 12px; flex-wrap: wrap; gap: 6px; }
    .total-final { flex: 1; min-width: 90px; }
    .total-final span:first-child { font-size: 0.7rem; }
    .total-final #total-precio { font-size: 1.2rem; }
    .boton-pedir { padding: 9px 14px; font-size: 0.78rem; gap: 4px; border-radius: 25px; flex: 1; min-width: 130px; }
    .boton-pedir i { font-size: 0.9rem; }
}

/* Móviles ultra pequeños - iPhone SE 1gen, Galaxy Mini (max 320px) */
@media (max-width: 320px) {
    body { padding-top: 70px; }
    nav { padding: 6px 4px; }
    
    .nav-content { gap: 3px; padding: 0 2px; }
    .nav-buttons { gap: 3px; }
    .btn-icon-nav { font-size: 1rem; width: 32px !important; height: 32px !important; min-width: 32px; min-height: 32px; max-width: 32px; max-height: 32px; }
    .btn-inicio { width: 30px !important; height: 30px !important; min-width: 30px; min-height: 30px; max-width: 30px; max-height: 30px; font-size: 0.95rem; }
    .buscador-container { max-width: 100px; flex-grow: 0; }
    #input-busqueda { padding: 6px 20px 6px 6px; font-size: 0.72rem; }
    .icono-lupa { font-size: 0.85rem; right: 5px; }
    
    .grid-productos { padding: 6px; gap: 10px; }
    .img-wrapper { height: 180px; }
    
    /* Modal responsive 320px */
    .modal-content { 
        width: 100%; 
        border-radius: 12px; 
        max-height: 94vh; 
        margin: 3vh 0;
    }
    .producto-imagen-grande { 
        height: 150px; 
        background: radial-gradient(circle at center, #505050 0%, #303030 30%, #0a0a0a 80%);
    }
    .producto-imagen-grande img { max-width: 60%; max-height: 75%; }
    #modal-titulo-producto { font-size: 1.1rem; line-height: 1.15; }
    .precio-modal { font-size: 1.25rem; }
    .producto-info-base { padding: 0 10px; margin-top: -8px; }
    .modelo-texto { font-size: 0.75rem; }
    .chip-variante { padding: 4px 8px; font-size: 0.68rem; }
    .seccion-compra { padding: 6px 10px; gap: 6px; }
    .btn-cant { width: 30px; height: 30px; font-size: 0.85rem; }
    .toggle-pago label { padding: 7px 0; font-size: 0.68rem; }
    .footer-compra-sticky { padding: 8px 10px; }
    .total-final #total-precio { font-size: 1.1rem; }
    .boton-pedir { padding: 8px 12px; font-size: 0.75rem; min-width: 110px; }
    
    .btn-whatsapp { width: 50px; height: 50px; right: 10px; bottom: 10px; }
    .btn-whatsapp i { font-size: 1.3rem; }
    
    .floating-cart-panel { right: 4px; left: 4px; bottom: 72px; max-height: 55vh; }
    .floating-cart-list { max-height: 100px; }
}

/* Floating WhatsApp Button and Panel */
.toast {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 95px; /* Debajo del nav/ticker */
    right: 18px;
    z-index: 4000;
    background: rgba(20,20,20,0.95);
    color: #fff;
    border: 1px solid rgba(212,175,55,0.12);
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    align-items: center;
    gap: 8px;
    min-width: 220px;
}
.toast.show { display: flex; animation: toastIn 0.35s ease forwards; }
.toast .toast-content { display:flex; align-items:center; gap:10px; }
@keyframes toastIn { from { transform: translateY(-10px) translateX(10px); opacity: 0; } to { transform: translateY(0) translateX(0); opacity: 1; } }

/* Success confirmation alert (big, animated, green arrow) */
.success-alert {
    position: fixed;
    right: 18px;
    top: 110px;
    z-index: 9500;
    display: none;
    pointer-events: none;
}
.success-alert .success-card {
    display: flex; align-items: center; gap:12px;
    background: linear-gradient(180deg, rgba(37,211,102,0.12), rgba(37,211,102,0.07));
    border: 1px solid rgba(37,211,102,0.18);
    color: #eaffef;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform-origin: right top;
}
.success-alert .success-icon {
    width: 44px; height: 44px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg,#25D366,#1bb84a); color: white; font-size:1.2rem; box-shadow: 0 6px 18px rgba(37,211,102,0.18);
}
.success-alert .success-text { font-weight:800; color:#eaffef; font-size:0.95rem; }

/* entrance animation */
.success-alert.show { display: block; animation: successIn 420ms cubic-bezier(0.22,1,0.36,1) forwards; pointer-events: auto; }
@keyframes successIn {
    0% { transform: translateY(-8px) scale(0.96); opacity: 0; }
    60% { transform: translateY(4px) scale(1.03); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* small arrow bounce inside icon */
.success-alert .success-icon i { display:inline-block; animation: arrowBounce 900ms ease-in-out; }
@keyframes arrowBounce {
    0% { transform: translateY(0) rotate(-10deg); }
    40% { transform: translateY(-6px) rotate(0deg); }
    70% { transform: translateY(-2px) rotate(4deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Alerta personalizada (modal) */
.custom-alert-overlay {
    position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 9000;
    background: rgba(0,0,0,0.6);
}
.custom-alert-box {
    background: linear-gradient(180deg, rgba(10,10,10,0.95), rgba(8,8,8,0.95));
    border: 1px solid rgba(212,175,55,0.12);
    padding: 18px; width: 90%; max-width: 420px; border-radius: 12px; display: flex; gap:12px; flex-direction: column; align-items: center;
    z-index: 9001;
}
.custom-alert-box .alert-icon { background: rgba(212,175,55,0.08); color: var(--gold-primary); width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.6rem; }
.custom-alert-box h3 { margin:0; color: #D4AF37; }
.custom-alert-box p { margin: 6px 0 12px 0; color:#ddd; text-align:center; }
.btn-alert { background: linear-gradient(135deg,#D4AF37,#FFD700); color:#050505; padding:10px 16px; border-radius:10px; border:none; font-weight:700; cursor:pointer; }

.btn-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 50%, #075e54 100%);
    color: #fff;
    border: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px rgba(37, 211, 102, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 4100;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: whatsappPulse 2.5s ease-in-out infinite;
    /* Asegurar forma circular perfecta */
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle, white 100%, black 100%);
    mask-image: radial-gradient(circle, white 100%, black 100%);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5), 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 0 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 0 35px rgba(37, 211, 102, 0.6); }
}

.btn-whatsapp:hover { 
    transform: translateY(-4px) scale(1.08); 
    box-shadow: 
        0 12px 40px rgba(37, 211, 102, 0.6),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(37, 211, 102, 0.5);
    animation: none;
}
.btn-whatsapp:active { transform: translateY(0) scale(0.98); }
.btn-whatsapp i { font-size: 1.8rem; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.whatsapp-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--rojo-oferta);
    color: white;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    padding: 0 6px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Floating cart panel inputs */
.floating-cart-panel .fc-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
}

.floating-cart-panel {
    position: fixed;
    right: 18px;
    bottom: 100px;
    width: min(360px, calc(100vw - 36px));
    /* altura automática basada en contenido, con máximo */
    max-height: calc(100vh - 160px);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.02);
    border-radius: 18px;
    /* use flex column so footer stays pinned */
    display: flex;
    flex-direction: column;
    overflow: visible;
    z-index: 4050;
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 320ms ease;
}

.floating-cart-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.floating-cart-list {
    padding: 6px 8px;
    flex: 0 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 50px;
    max-height: 200px;
}

/* Scrollbar styling for floating cart - MÁS VISIBLE */
.floating-cart-list::-webkit-scrollbar {
    width: 10px;
}

.floating-cart-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    margin: 4px 0;
}

.floating-cart-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 0.5));
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.floating-cart-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 1), rgba(212, 175, 55, 0.7));
}

.fci-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    word-break: break-word;
}

.fci-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: break-word;
}

.fci-img img { width: 44px; height: 36px; object-fit: cover; }

.fci-right { min-width: 70px; }

.floating-cart-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-weight: 700;
    color: var(--gold-light);
}

.cerrar-flotante { background: none; border: none; color: #ddd; font-size: 1rem; cursor: pointer; }

.floating-cart-subtitle {
    flex-shrink: 0;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.9rem;
    color: #ddd;
}

.cerrar-flotante-fab {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.16);
    z-index: 2;
}

.cerrar-flotante-fab i { font-size: 1.05rem; color: #fff; }
.cerrar-flotante-fab:hover { transform: translateY(-1px) scale(1.05); background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.20); }
.cerrar-flotante-fab:active { transform: scale(0.98); }

.floating-cart-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}

.floating-cart-item:hover { background: rgba(255,255,255,0.03); }

.floating-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.fci-variant {
    font-size: 0.75rem;
    color: #999;
}

.fci-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.fci-qty {
    min-width: 24px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.fci-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.fci-price {
    color: var(--gold-primary);
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}

.floating-cart-item .btn-cant {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(140deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.floating-cart-item .btn-cant:hover {
    background: linear-gradient(140deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
    transform: scale(1.05);
}

.floating-cart-item .btn-cant:active {
    transform: scale(0.95);
}

.floating-cart-item .btn-cant i {
    font-size: 0.85rem;
}

.btn-eliminar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-eliminar:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
    transform: scale(1.05);
}

.btn-eliminar:active {
    transform: scale(0.95);
}

.btn-eliminar i {
    font-size: 1rem;
}

.floating-cart-footer {
    padding: 16px 14px;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(15, 15, 15, 0.98);
    flex-shrink: 0;
    position: relative;
    pointer-events: auto;
    border-radius: 0 0 18px 18px;
}

.floating-total {
    color: var(--gold-primary);
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 1.15rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.floating-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: black;
    padding: 14px 20px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    flex: 1;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 6px 24px rgba(212, 175, 55, 0.35),
        0 3px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

/* Hover solo en dispositivos con mouse */
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover::before {
        width: 300px;
        height: 300px;
    }
    
    .btn-primary:hover {
        transform: translateY(-3px) scale(1.02);
        filter: brightness(1.15);
        box-shadow: 
            0 12px 36px rgba(212, 175, 55, 0.5),
            0 5px 16px rgba(0, 0, 0, 0.4),
            inset 0 1px 2px rgba(255, 255, 255, 0.3);
    }
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ddd;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.10);
}

.floating-actions .btn-secondary {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.04);
    color: #ddd;
    padding: 10px 12px;
    border-radius: 10px;
}

/* Advertencia de Sobre Pedido */
.advertencia-sobre-pedido {
    display: none;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    padding: 10px;
    margin: 8px 6px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    color: #ffc107;
    font-size: 0.8rem;
    line-height: 1.3;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.advertencia-sobre-pedido i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.advertencia-sobre-pedido strong {
    color: #ffd54f;
}

/* Order now button in cart view */
.btn-order-now {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #2d5a3d 0%, #25d366 35%, #1db954 65%, #128c4a 100%);
    color: #fff;
    border: none;
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.15rem;
    box-shadow: 
        0 8px 32px rgba(37, 211, 102, 0.45),
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.25),
        inset 0 -2px 6px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(37, 211, 102, 0.15);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.btn-order-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.btn-order-now::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 48px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

/* Hover solo en dispositivos con mouse */
@media (hover: hover) and (pointer: fine) {
    .btn-order-now:hover {
        transform: translateX(-50%) translateY(-5px) scale(1.03);
        box-shadow: 
            0 16px 48px rgba(37, 211, 102, 0.55),
            0 8px 24px rgba(0, 0, 0, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            0 0 0 4px rgba(37, 211, 102, 0.2),
            0 0 30px rgba(37, 211, 102, 0.3);
        filter: brightness(1.1);
    }
    
    .btn-order-now:hover::before {
        left: 100%;
    }
}

.btn-order-now:active {
    transform: translateX(-50%) translateY(0) scale(0.97);
    box-shadow: 
        0 4px 16px rgba(37, 211, 102, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Enable smooth touch scrolling on recommendations */
.grid-recomendados { -webkit-overflow-scrolling: touch; }

/* Carrito header floating/sticky */
.carrito-header {
    display:flex; justify-content:space-between; align-items:center; gap:12px;
    position: sticky; top: 90px; background: rgba(10,10,10,0.6); padding: 12px 18px; border-radius: 12px; z-index: 1500;
    border: 1px solid rgba(212,175,55,0.08); backdrop-filter: blur(8px);
}
.carrito-header .titulo-seccion-grid { text-align:left; color:#D4AF37; margin:0; font-size:1.4rem; }
.recom-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); border: none; color: #fff;
    width: 42px; height: 42px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6); cursor: pointer; z-index: 30;
}
.recom-arrow-left { left: 6px; }
.recom-arrow-right { right: 6px; }
.recom-arrow:hover { background: var(--gold-primary); color: #050505; }
.grid-recomendados { padding: 12px 40px; }

/* Botón Agregar - Estilo Dorado/Negro */
.btn-agregar-simple {
    background: linear-gradient(135deg, #D4AF37, #B8960F);
    color: #050505;
    padding: 8px 10px;
    border-radius: 8px;
    border: 2px solid #D4AF37;
    cursor: pointer;
    flex: 1;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-agregar-simple:hover {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.btn-agregar-simple:active {
    transform: translateY(0);
}

/* Estilo para botones de cantidad */
.btn-cant-mini {
    background: linear-gradient(135deg, #D4AF37, #B8960F);
    color: #050505;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cant-mini:hover {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    transform: scale(1.08);
}

.btn-cant-mini:active {
    transform: scale(0.95);
}

/* Botón Agregar al Carrito - usa estilos definidos en .boton-pedir (línea ~1077) */

/* Botón Hacer Pedido - Estilo Verde/Blanco WhatsApp */
.boton-whatsapp-modal {
    background: linear-gradient(135deg, #25D366, #20BA5A);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.boton-whatsapp-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.boton-whatsapp-modal:active {
    transform: translateY(0);
}

/* .btn-cant - estilos definidos en línea ~1023 */

/* Pulse animation for feedback when adding items */
.whatsapp-badge.pulse {
    animation: wpPulse 0.9s ease-in-out;
}
@keyframes wpPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(212,175,55,0); }
    50% { transform: scale(1.35); box-shadow: 0 6px 18px rgba(212,175,55,0.28); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(212,175,55,0); }
}

/* Safe-area support for modern phones (notch, dynamic island) */
@supports (padding: env(safe-area-inset-bottom)) {
    body { padding-bottom: env(safe-area-inset-bottom); }
    .btn-whatsapp { bottom: calc(18px + env(safe-area-inset-bottom)); }
    .floating-cart-panel { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
