/* Importación directa de fuentes para asegurar que carguen siempre */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-body:       #0d1117;
    --bg-surface:    #161b22;
    --bg-raised:     #21262d;
    --border-dim:    rgba(255,255,255,0.08);
    --border-mid:    rgba(255,255,255,0.15);
    
    /* El color accent es inyectado dinámicamente por la base de datos */
    --accent:        var(--accent, #0070f3); 
    --accent-soft:   var(--accent-glow, rgba(88,166,255,0.12));
    --accent-glow:   var(--accent-glow, rgba(88,166,255,0.22));
    
    --green:         #3fb950;
    --green-soft:    rgba(63,185,80,0.12);
    --gold:          #e3b341;
    --danger:        #ef4444;
    
    --text-100:      #e6edf3;
    --text-80:       #c9d1d9;
    --text-60:       #8b949e;
    --text-40:       #484f58;
    
    /* Tipografía 8-Bits y Moderna */
    --fp: 'Press Start 2P', cursive;
    --fb: 'Inter', sans-serif;
    
    --rsm: 8px; --rmd: 12px; --rlg: 16px; --rxl: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; user-select: none; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--fb); 
    background: var(--bg-body); 
    color: var(--text-100); 
    min-height: 100dvh; 
    overflow-x: hidden;
    padding: 96px 14px 52px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    position: relative; 
    z-index: 1;
}

/* EFECTOS DE FONDO ORBES 8-BIT */
body::before, body::after {
    content: ''; position: fixed; z-index: -1; pointer-events: none; animation: floatOrb 20s infinite alternate ease-in-out;
    transform: translateZ(0); will-change: transform; filter: blur(80px);
}
body::before { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent) 0%, transparent 60%); top: -10%; left: -10%; opacity: 0.12; }
body::after { width: 500px; height: 500px; background: radial-gradient(circle, var(--gold) 0%, transparent 60%); bottom: -10%; right: -10%; opacity: 0.08; animation-delay: -5s; animation-direction: alternate-reverse; }
@keyframes floatOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 50px) scale(1.1); } }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* BARRA DE ANUNCIOS SUPERIOR */
.top-announcement { width: 100%; max-width: 620px; border-radius: var(--rmd); margin-bottom: 12px; margin-top: -8px; color: #000; text-align: center; padding: 12px 40px 12px 15px; font-size: 0.85rem; font-weight: 700; position: relative; z-index: 1001; font-family: var(--fb); display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.top-announcement .close-announce { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.1); border: none; color: #000; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: 0.2s; outline: none; }
.top-announcement .close-announce:hover { background: rgba(0,0,0,0.3); transform: translateY(-50%) scale(1.1); }
.top-announcement.info { background: #0ea5e9; color: #fff; }
.top-announcement.warning { background: #fbbf24; color: #000; }
.top-announcement.success { background: #10b981; color: #fff; }
.top-announcement.danger { background: #ef4444; color: #fff; }
.top-announcement.info .close-announce, .top-announcement.success .close-announce, .top-announcement.danger .close-announce { color: #fff; background: rgba(255,255,255,0.2); }

/* SKELETONS */
.skeleton { background: var(--bg-raised); position: absolute; inset: 0; z-index: 1; }
.card-img-wrap .skeleton { background: var(--bg-raised); }
.modal-banner-skeleton { background: linear-gradient(90deg, var(--bg-raised) 25%, var(--bg-body) 50%, var(--bg-raised) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.hidden { display: none !important; opacity: 0; pointer-events: none; }

/* BOTONES GLOBALES */
.copy-btn { background: var(--bg-raised); border: 1px solid var(--border-dim); color: var(--text-100); border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: 0.8rem; margin-left: 8px; transition: 0.2s; outline: none; }
.copy-btn:active { transform: scale(0.9); }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }

/* HEADER PRINCIPAL */
.header { position: fixed; top: 12px; left: 12px; right: 12px; max-width: 620px; margin-inline: auto; background: var(--bg-surface); border: 1px solid var(--border-dim); border-radius: var(--rxl); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; z-index: 900; box-shadow: 0 2px 12px rgba(0,0,0,0.4); transition: transform 0.3s, box-shadow 0.3s; }
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.6); }

.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.brand-logo { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; transition: 0.3s; flex-shrink: 0; }
.brand-logo.has-bg { background: var(--bg-surface); border: 2px solid var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px var(--accent-soft); overflow: hidden; padding: 2px; }
.brand:hover .brand-logo { transform: rotate(-5deg) scale(1.05); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand-name { font-family: var(--fp); font-size: 0.70rem; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1.3; color: var(--text-100); }
.brand-name span { display: none; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; color: var(--text-60); background: transparent; border: none; font-size: 0.95rem; outline: none; transition: 0.2s;}
.icon-btn:hover { color: var(--text-100); background: var(--bg-raised); }
.icon-btn.is-active { color: var(--accent); background: var(--accent-soft); }

/* MENÚ DESPLEGABLE */
.menu-container { position: relative; }
.dropdown-menu { position: absolute; top: 130%; right: 0; background: var(--bg-surface); border: 1px solid var(--border-dim); border-radius: var(--rmd); box-shadow: 0 8px 24px rgba(0,0,0,0.6); padding: 10px; width: 220px; opacity: 0; pointer-events: none; transform: translateY(-10px); z-index: 1000; display: flex; flex-direction: column; gap: 5px; transition: 0.25s ease; }
.dropdown-menu.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.menu-item { background: transparent; border: none; color: var(--text-100); padding: 12px 15px; text-align: left; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 500; font-family: var(--fb); display: flex; align-items: center; gap: 12px; text-decoration: none; outline: none; transition: 0.2s;}
.menu-item i { color: var(--text-60); width: 20px; text-align: center; font-size: 1.1rem; transition: 0.2s; }
.menu-item:hover { background: var(--bg-raised); color: var(--accent); }
.menu-item:hover i { color: var(--accent); }

/* BÚSQUEDA */
.search-panel { width: 100%; max-width: 620px; display: none; margin-bottom: 12px; margin-top: -2px; }
.search-panel.open { display: block; animation: fadeDown 0.2s ease-out; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--bg-surface); border: 1.5px solid var(--accent); border-radius: var(--rlg); padding: 12px 16px; box-shadow: 0 2px 12px var(--accent-glow); }
.search-box i { color: var(--accent); font-size: 0.88rem; flex-shrink: 0; }
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text-100); font-family: var(--fb); font-size: 0.9rem; caret-color: var(--accent); }
.search-box input::placeholder { color: var(--text-40); }

/* VISTAS GENÉRICAS */
.view-section { display: none; width: 100%; max-width: 620px; }
.view-section.active { display: block; animation: fadeUp 0.3s ease-out; }

/* CONTENEDORES DE SECCIÓN (CORRECCIÓN "FEA" A PREMIUM) */
.filter-banner { 
    background: var(--bg-raised) !important; 
    padding: 16px 20px !important; 
    border-radius: var(--rlg) !important; 
    border: 1px solid var(--border-dim) !important; 
    border-left: 4px solid var(--accent) !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important; 
    margin-bottom: 20px;
}
.filter-banner .filter-title {
    font-family: var(--fp) !important;
    font-size: 0.75rem !important;
    color: var(--text-100) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.filter-banner .filter-title i { color: var(--accent); font-size: 1rem; }
.filter-banner p { margin-top: 6px; }

/* HERO BANNERS */
.hero { width: 100%; height: 155px; border-radius: var(--rxl); overflow: hidden; position: relative; margin-bottom: 14px; background: var(--bg-raised); border: 1px solid var(--border-dim); box-shadow: 0 2px 14px rgba(0,0,0,0.2); }
.hero-slide { position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity 0.5s ease; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; opacity: 0; transform: scale(1.04); transition: transform 6s linear, opacity 0.3s; position: relative; z-index: 2;}
.hero-img.loaded { opacity: 1; }
.hero-slide.active .hero-img { transform: scale(1.12); }
.hero-mask { position: absolute; inset: 0; z-index: 3; background: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.85) 100%); pointer-events: none; }
.hero-topline { position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 4; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity 0.5s ease; }
.hero-slide.active .hero-topline { opacity: 1; }
.hero-info { position: absolute; bottom: 14px; left: 16px; z-index: 5; transform: translateY(10px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease; }
.hero-slide.active .hero-info { transform: translateY(0); opacity: 1; }
.hero-label { font-family: var(--fb); font-size: 0.62rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; text-shadow: 0 1px 6px rgba(0,0,0,0.9); display: block; }
.hero-title { font-family: var(--fp); font-size: 0.95rem; text-transform: uppercase; line-height: 1.4; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,1); }
.hero-dots { position: absolute; bottom: 10px; right: 14px; z-index: 5; display: flex; gap: 5px; align-items: center; }
.hero-dot { height: 5px; width: 5px; border-radius: 3px; background: rgba(255,255,255,0.35); cursor: pointer; transition: 0.3s; }
.hero-dot.active { background: #fff; width: 14px; }

/* TABS CATEGORÍAS */
.console-tabs { display: flex; gap: 10px; width: 100%; flex-wrap: wrap; margin-bottom: 16px; }
.ctab { flex: 1; position: relative; min-width: 130px; background: var(--bg-surface); border: 1.5px solid var(--border-dim); border-radius: var(--rlg); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; overflow: hidden; opacity: 0.6; transition: 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.ctab::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: var(--bg-cat, none); background-size: cover; background-position: center left; opacity: 0; transition: 0.3s; }
.ctab::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(to right, rgba(22,27,34,0) 0%, rgba(22,27,34,0.4) 45%, rgba(22,27,34,0.92) 80%, var(--bg-surface) 100%); opacity: 0; transition: opacity .3s ease; }
.ctab.active { opacity: 1; border-color: var(--accent); box-shadow: 0 6px 18px var(--accent-glow), 0 0 0 1px var(--accent-soft) inset; }
.ctab.active::before { opacity: 0.35; filter: grayscale(0%); }
.ctab.active::after { opacity: 1; }
.ctab-text { position: relative; z-index: 2; flex: 1; }
.ctab-text h4 { font-family: var(--fp); font-size: 0.62rem; letter-spacing: 0.5px; color: var(--text-100); line-height: 1.4; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.ctab-text p { font-size: 0.62rem; font-weight: 600; font-family: var(--fb); text-transform: uppercase; letter-spacing: 1px; color: var(--text-60); margin-top: 4px; text-shadow: 0 1px 4px rgba(0,0,0,0.9); }

.ctab-icon { position: relative; z-index: 2; width: 34px; height: 34px; min-width: 34px; min-height: 34px; border-radius: 8px; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.05rem; color: var(--text-40); transition: 0.25s; }
.ctab.active .ctab-icon { color: var(--accent); border-color: rgba(0,150,255,0.4); box-shadow: 0 0 8px var(--accent-glow); }

/* PÍLDORAS SUBCATEGORÍAS & GÉNEROS */
.cat-row { display: flex; gap: 8px; width: 100%; margin-bottom: 16px; overflow-x: auto; padding: 8px 4px 10px; margin-top: -8px; -webkit-overflow-scrolling: touch; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-pill { flex: 0 0 auto; background: var(--bg-surface); border: 1px solid var(--border-dim); border-radius: var(--rsm); padding: 10px 14px; font-family: var(--fb); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-60); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.cat-pill:hover { border-color: var(--border-mid); color: var(--text-100); }
.cat-pill.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 12px var(--accent-glow); }

.genre-row { margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border-dim); }

/* CATÁLOGO (GRID) */
.grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
@media (max-width: 380px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.card { background: var(--bg-surface); border-radius: var(--rmd); aspect-ratio: 11 / 16; overflow: hidden; position: relative; border: 1px solid var(--border-dim); cursor: pointer; opacity: 0; transform: translateY(12px); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.card.show { animation: fadeUp 0.35s cubic-bezier(0.215, 0.610, 0.355, 1) forwards; }
.card:active { transform: scale(0.96); transition: transform 0.15s ease; }

.card-img-wrap { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.3s; position: relative; z-index: 2;}
.card-img.loaded { opacity: 1; }
.card-gradient { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, transparent 40%, rgba(13,17,23,0.5) 65%, rgba(13,17,23,0.95) 100%); pointer-events: none; }

.sold-out-overlay { position: absolute; top: 8px; right: 8px; z-index: 10; font-family: var(--fb); font-weight: 800; font-size: 0.65rem; padding: 4px 8px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.4); text-transform: uppercase; letter-spacing: 0.5px; }

/* CONTENEDOR MULTI PRECIOS */
.card-price-wrap { position: absolute; top: 6px; right: 6px; z-index: 4; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; background: rgba(13, 17, 23, 0.85); padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border-dim); backdrop-filter: blur(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.card-price-wrap span { font-size: 0.8rem; font-weight: 800; display:flex; align-items:center; }
.card-price-wrap i { font-size: 0.7rem; margin-right: 4px; }
.card-price-wrap del { font-size: 0.65rem !important; margin-top: -2px; }

/* Precio único */
.card-price { background: transparent; color: var(--accent); font-weight: 800; font-size: 0.85rem !important; font-family: var(--fp); }
.card-old-price { background: transparent; color: var(--text-60); font-weight: 600; font-size: 0.7rem !important; text-decoration: line-through; }

.card-title { position: absolute; bottom: 8px; left: 7px; right: 7px; z-index: 3; text-align: center; }
.card-title p { font-family: var(--fp); font-size: 0.6rem; color: #fff; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 4px rgba(0,0,0,1); line-height: 1.4;}

.empty { grid-column: 1 / -1; padding: 50px 20px; text-align: center; background: var(--bg-surface); border: 1px dashed var(--border-mid); border-radius: var(--rlg); color: var(--text-60); font-family: var(--fb); }
.empty i { font-size: 1.8rem; margin-bottom: 10px; color: var(--text-40); display: block; }
.empty p { font-size: 0.85rem; margin: 0; }

/* SECCIONES SECUNDARIAS */
.grid-refs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ref-card { border-radius: var(--rmd); overflow: hidden; position: relative; aspect-ratio: 9 / 16; border: 1px solid var(--border-dim); }

.list-news { display: flex; flex-direction: column; gap: 15px; }
.news-card { background: var(--bg-surface); border: 1px solid var(--border-dim); border-radius: var(--rmd); overflow: hidden; display: flex; flex-direction: column; border-left: 4px solid var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.news-img { position: relative; width: 100%; height: 160px; }
.news-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: 0.3s;}
.news-img img.loaded { opacity: 1; position: relative; z-index: 2;}
.news-body { padding: 18px; }
.news-body h4 { font-family: var(--fp); font-size: 0.70rem; margin-bottom: 8px; line-height: 1.4; color: var(--text-100); }
.news-date { font-family: var(--fb); font-size: 0.70rem; color: var(--accent); font-weight: 700; display: block; margin-bottom: 10px; text-transform: uppercase; }
.news-body p { font-family: var(--fb); font-size: 0.85rem; color: var(--text-80); line-height: 1.6; margin: 0; white-space: pre-wrap;}

.grid-videos { display: grid; grid-template-columns: 1fr; gap: 16px; }
.video-card { background: var(--bg-surface); border: 1px solid var(--border-dim); border-radius: var(--rmd); overflow: hidden; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;}
.video-body { padding: 14px; font-family: var(--fb); }
.video-body h4 { font-size: 0.95rem; margin-bottom: 5px; color: var(--text-100); }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border-dim); border-radius: var(--rmd); overflow: hidden; }
.faq-q { padding: 16px; font-family: var(--fb); font-weight: 700; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--text-100); transition: 0.2s;}
.faq-q i { color: var(--accent); transition: transform 0.3s; flex-shrink: 0; }
.faq-a { padding: 0 16px; max-height: 0; opacity: 0; overflow: hidden; font-family: var(--fb); font-size: 0.85rem; color: var(--text-80); line-height: 1.6; transition: all 0.3s ease; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-item.open .faq-a { padding: 0 16px 16px; max-height: 400px; opacity: 1; }

/* VISTA REDES Y FOOTER */
.contact-strip { width: 100%; max-width: 620px; background: var(--bg-surface); border: 1px solid var(--border-dim); border-radius: var(--rxl); padding: 20px; text-align: center; margin-top: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.cs-title { font-family: var(--fp); font-size: 0.65rem; color: var(--text-80); margin-bottom: 16px; letter-spacing: 1px; line-height: 1.4; }
.cs-links { display: flex; flex-direction: column; gap: 10px; }
.cs-link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 8px; font-family: var(--fb); font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: 0.2s; border: 1px solid var(--border-dim); }
.cs-link.wa { background: #10b981; color: #fff; border-color: #10b981; }
.cs-link:hover { filter: brightness(1.1); transform: translateY(-2px); }

.site-footer { width: 100%; text-align: center; margin-top: 30px; margin-bottom: 20px; color: var(--text-60); font-size: 0.8rem; font-family: var(--fb); font-weight: 500;}
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: var(--text-100); text-decoration: none; font-weight: 600; transition: 0.2s; }
.site-footer a:hover { color: var(--accent); }
.footer-links { margin-top: 8px; display: flex; justify-content: center; gap: 15px; }

/* MODAL DE PRODUCTO */
.modal-overlay { position: fixed; inset: 0; background: rgba(13,17,23,0.9); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: flex-end; justify-content: center; padding: 0; opacity: 0; pointer-events: none; transition: opacity .3s ease-out; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-sheet { background: var(--bg-body); width: 100%; max-width: 620px; border-radius: 24px 24px 0 0; overflow: hidden; box-shadow: 0 -10px 40px rgba(0,0,0,0.5); transform: translateY(100%); transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-height: 92vh; display: flex; flex-direction: column; }
.modal-overlay.open .modal-sheet { transform: translateY(0); }

.modal-banner { height: 280px; position: relative; overflow: hidden; background: var(--bg-surface); flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding-top: 25px;}
.modal-banner img { height: 85%; width: auto; max-width: 90%; object-fit: contain; display: block; position: relative; z-index: 2; opacity: 0; transition: opacity 0.4s; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.6);}
.modal-banner img.loaded { opacity: 1; }
.modal-banner::after { content: ''; position: absolute; inset: 0; z-index: 3; background: linear-gradient(to top, var(--bg-body) 0%, transparent 60%); pointer-events: none; }
.modal-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 5; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 50%; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; z-index: 10; font-size: 1.1rem; outline: none; transition: 0.2s; flex-shrink: 0;}
.modal-close:hover { background: var(--danger); border-color: var(--danger); color: #fff; transform: scale(1.1); }

.modal-body { padding: 24px; position: relative; z-index: 5; overflow-y: auto; -webkit-overflow-scrolling: touch; font-family: var(--fb); }
.modal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.modal-chip { font-family: var(--fb); font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 20px; background: var(--bg-surface); color: var(--text-80); border: 1px solid var(--border-mid); display: inline-flex; align-items: center; gap: 6px; }
.modal-chip.genre-chip { background: rgba(244,63,94,0.12); color: #f43f5e; border-color: rgba(244,63,94,0.25); }
.modal-chip.size-chip { background: rgba(14,165,233,0.12); color: #0ea5e9; border-color: rgba(14,165,233,0.25); }

.variant-selector label:hover { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.2) !important; }
.variant-selector input[type="radio"]:checked + i { transform: scale(1.1); }

.modal-price-wrap { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.modal-title { font-family: var(--fb); font-size: 1.4rem; font-weight: 800; line-height: 1.3; margin-bottom: 12px; color: var(--text-100); }
.modal-desc { font-size: 0.95rem; color: var(--text-60); line-height: 1.7; margin-bottom: 30px; white-space: pre-wrap; }

.btn-wa { width: 100%; background: #25d366; color: #000; border: none; border-radius: 16px; padding: 18px; font-family: var(--fb); font-weight: 800; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 20px rgba(0,0,0,0.3); outline: none; transition: 0.2s; }
.btn-wa:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,0.4); }
.btn-wa:active { transform: translateY(0); }

/* ======================================================= */
/* CARRITO LATERAL (DISEÑO EXTREMADAMENTE COMPACTO)        */
/* ======================================================= */
.cart-sidebar { position: fixed; top: 0; right: 0; width: 100%; max-width: 420px; height: 100dvh; background: var(--bg-body); border-left: 1px solid var(--border-dim); z-index: 100000; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,0.5); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cart-sidebar.open { transform: translateX(0); }
.cart-overlay { position: fixed; inset: 0; background: rgba(13, 17, 23, 0.8); backdrop-filter: blur(5px); z-index: 99999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-header { padding: 16px 20px; border-bottom: 1px solid var(--border-dim); display: flex; justify-content: space-between; align-items: center; background: var(--bg-surface); flex-shrink: 0; }
.cart-header h2 { font-family: var(--fb); font-size: 1rem; font-weight: 800; margin: 0; color: var(--text-100); display: flex; align-items: center; gap: 10px;}
.cart-close { background: var(--bg-raised); color: var(--text-60); border: 1px solid var(--border-dim); width: 32px; height: 32px; min-width: 32px; min-height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; outline: none; transition: 0.2s; flex-shrink: 0; font-size: 1.1rem;}
.cart-close:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.cart-scroll-area { flex: 1; overflow-y: auto; padding: 0; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
.cart-scroll-area::-webkit-scrollbar { width: 5px; }
.cart-scroll-area::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 10px; }

/* Cuerpo del Carrito: Padding y gap reducidos */
.cart-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; font-family: var(--fb); }

/* Artículos muy compactos */
.cart-item { display: flex; align-items: center; gap: 12px; background: var(--bg-surface); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-dim); box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.2s; }
.cart-item img { width: 48px; height: 64px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { color: var(--text-100); font-family: var(--fb); font-size: 0.8rem; font-weight: 700; line-height: 1.2; margin-bottom: 2px;}
.cart-item-price { color: var(--accent); font-family: var(--fb); font-size: 0.85rem; font-weight: 800; margin-top: 2px;}

/* Controles reducidos al mínimo necesario */
.cart-qty-controls { display: flex; align-items: center; gap: 8px; background: transparent; border-radius: 8px; padding: 2px; border: 1px solid var(--border-mid); flex-shrink: 0;}
.cart-qty-controls button { background: var(--bg-raised); border: none; color: var(--text-100); width: 28px; height: 28px; min-width: 28px; min-height: 28px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: 0.2s; }
.cart-qty-controls span { font-weight: 700; font-family: var(--fb); font-size: 0.85rem; min-width: 16px; text-align: center;}

/* Botón papelera más pequeño */
.cart-item-remove { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); width: 34px; height: 34px; min-width: 34px; min-height: 34px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; outline: none; flex-shrink: 0; font-size: 0.95rem; transition: 0.2s; margin-left: auto;}

.cart-suggested-area { padding: 0 20px 20px; }
.suggested-title { font-family: var(--fb); font-size: 0.85rem; color: var(--text-60); margin: 0 0 12px 0; font-weight: 700;}
.suggested-list { display: flex; flex-direction: column; gap: 10px; }
.suggested-item { background: var(--bg-surface); border: 1px solid var(--border-dim); border-radius: var(--rlg); padding: 10px 12px; display: flex; align-items: center; gap: 14px; transition: 0.2s; }
.suggested-item img { width: 40px; height: 56px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.sug-info { flex: 1; min-width: 0; }
.sug-info h4 { margin: 0 0 4px; font-family: var(--fb); font-weight: 700; font-size: 0.8rem; line-height: 1.2; color: var(--text-100);}
.sug-info span { font-family: var(--fb); font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.sug-add { background: var(--accent-soft); border: none; color: var(--accent); width: 32px; height: 32px; min-width: 32px; min-height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: auto; transition: 0.2s;}

/* Footer compacto */
.cart-footer { padding: 16px 20px; border-top: 1px solid var(--border-dim); background: var(--bg-surface); flex-shrink: 0; box-shadow: 0 -5px 20px rgba(0,0,0,0.2); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--fb); font-size: 1.1rem; font-weight: 800; color: var(--text-100); }
.btn-checkout-wa, .btn-checkout-mp { width: 100%; border: none; padding: 14px; border-radius: 12px; font-weight: 800; font-family: var(--fb); font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; outline: none; transition: 0.2s;}
.btn-checkout-wa { background: #10b981; color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.btn-checkout-mp { background: #009ee3; color: #fff; box-shadow: 0 4px 12px rgba(0,158,227,0.3); }

/* COMPRA 100% SEGURA */
.secure-payment-badges { font-family: var(--fb); font-size: 0.85rem; font-weight: 600; color: var(--text-100); margin-top: 16px; padding-left: 4px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.secure-payment-badges i { color: var(--text-100); font-size: 0.9rem; }

/* BOTÓN FLOTANTE CARRITO */
.cart-float-btn { position: fixed; bottom: 24px; right: 24px; width: 64px; height: 64px; border-radius: 50%; background: var(--text-100); color: var(--bg-body); font-size: 1.5rem; border: none; cursor: pointer; box-shadow: 0 8px 25px rgba(0,0,0,0.4); display: none; place-items: center; z-index: 1500; outline: none; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; font-size: 0.8rem; font-weight: 800; font-family: var(--fb); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid var(--bg-body); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.5);}

.wa-widget { position: fixed; bottom: 100px; right: 24px; z-index: 1400; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;}
.wa-float-btn { width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; font-size: 1.8rem; border: none; cursor: pointer; box-shadow: 0 6px 20px rgba(37,211,102,0.4); display: flex; align-items: center; justify-content: center; text-decoration: none; outline: none; transition: 0.3s;}

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 100px); background: var(--text-100); color: var(--bg-body); font-family: var(--fb); font-size: 0.95rem; font-weight: 700; padding: 14px 28px; border-radius: 30px; z-index: 99999; opacity: 0; pointer-events: none; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* COOKIES BANNER */
.cookie-legal-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background: rgba(21, 27, 43, 0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--border-mid); z-index: 9999; transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 -10px 40px rgba(0,0,0,0.6); font-family: var(--fb); }
.cookie-legal-banner.show { bottom: 0; }
.cookie-legal-content { max-width: 620px; margin: 0 auto; padding: 24px; display: flex; align-items: center; gap: 20px;}
.cookie-icon { font-size: 2rem; color: var(--accent); filter: drop-shadow(0 0 10px var(--accent-glow)); flex-shrink: 0; }
.cookie-text p { font-size: 0.85rem; font-weight: 500; color: var(--text-80); margin: 0; line-height: 1.6; }
.cookie-text a { color: var(--accent); text-decoration: none; font-weight: 700; transition: 0.2s;}
.cookie-text a:hover { text-decoration: underline; color: #fff;}
.btn-cookie-accept { background: var(--text-100); color: var(--bg-body); border: none; padding: 12px 24px; border-radius: 10px; font-weight: 800; cursor: pointer; font-size: 0.9rem; white-space: nowrap; outline: none; transition: 0.2s; box-shadow: 0 4px 15px rgba(255,255,255,0.2); flex-shrink: 0;}

@media(max-width: 480px){ 
    .cookie-legal-content { flex-direction: column; text-align: center; padding: 20px 16px; } 
}

/* HOVERS ACTIVOS */
@media (hover: hover) {
    .icon-btn:hover { color: var(--accent); background: var(--accent-soft); }
    .menu-item:hover { background: var(--bg-raised); color: var(--accent); }
    .cat-pill:hover, .genre-dropdown-item:hover { background: var(--bg-raised); color: var(--accent); }
    .card:hover { border-color: var(--accent); box-shadow: 0 12px 25px rgba(0,0,0,0.4), 0 0 0 1px var(--accent) inset; transform: translateY(-6px); z-index: 5; }
    .modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); transform: scale(1.1); }
    .cart-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); transform: scale(1.1);}
    .cart-item:hover { border-color: var(--border-mid); }
    .cart-qty-controls button:hover { background: var(--border-mid); }
    .cart-item-remove:hover { background: #ef4444; color: #fff; }
    .suggested-item:hover { border-color: var(--border-mid); background: var(--bg-raised); }
    .sug-add:hover { background: var(--accent); color: #fff; transform: scale(1.1); }
    .btn-checkout-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16,185,129,0.4); filter: brightness(1.1);}
    .btn-checkout-mp:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,158,227,0.4); filter: brightness(1.1);}
    .contact-strip .cs-link:hover { transform: translateY(-3px); filter: brightness(1.1); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
    .wa-float-btn:hover { transform: scale(1.1) rotate(-10deg); }
    .cart-float-btn:hover { transform: scale(1.1) translateY(-5px); }
    .btn-cookie-accept:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,255,255,0.3); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ======================================================= */
/* NUEVO BLOQUE: ADAPTACIÓN VERSIÓN PC (MEDIA QUERIES)     */
/* ======================================================= */
@media (min-width: 768px) {
    body { padding: 110px 40px 60px; }
    
    /* Expandir los anchos máximos a formato monitor */
    .header, .view-section, .contact-strip, .top-announcement, .search-panel, .cookie-legal-content { 
        max-width: 1200px !important; 
    }
    
    /* Adaptar Grids */
    .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .grid-refs { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .list-news { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .grid-videos { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    
    /* Mejorar Modal en PC (Centrado en lugar de abajo) */
    .modal-overlay { align-items: center; padding: 20px; }
    .modal-sheet { max-width: 700px; border-radius: 24px; max-height: 85vh; transform: scale(0.95); opacity: 0; }
    .modal-overlay.open .modal-sheet { transform: scale(1); opacity: 1; }
    .modal-banner { height: 350px; }
    
    /* Carrito en PC */
    .cart-sidebar { max-width: 450px; }
    
    /* Hero Banner más ancho */
    .hero { height: 320px; }
    .hero-title { font-size: 2rem; }
}

@media (min-width: 1200px) {
    .grid { grid-template-columns: repeat(5, 1fr); gap: 25px; }
}
