/* ============================================================
   PLAYBOX — styles.css
   Hoja de estilos principal del sitio.

   Índice:
   1.  Variables CSS (design tokens)
   2.  Reset y base
   3.  Utilidades globales
   4.  Componentes: Botones
   5.  Componentes: Badges
   6.  Logo
   7.  Header / Navegación
   8.  Hero
   9.  Quiénes Somos (About)
   10. Productos & Servicios
   11. Promociones
   12. Galería
   13. Testimonios
   14. CTA Final
   15. Footer
   16. Scroll-to-top button
   17. Animaciones (keyframes)
   18. Clases de animación por scroll
   19. Responsive (tablet y móvil)
============================================================ */


/* ============================================================
   1. VARIABLES CSS — Design Tokens
   Paleta derivada del logo toad.png:
     · Rojo    (#CC2200) → sombrero del hongo → color primario
     · Crema   (#F5DEB3) → tallo del hongo   → acento cálido
     · Oscuro  (#08081A) → fondo gamer        → background base
   Cambiar aquí para re-theming global.
============================================================ */
:root {
    /* Colores primarios */
    --red:          #CC2200;
    --red-bright:   #E53030;
    --red-dark:     #991800;
    --red-glow:     rgba(204, 34, 0, 0.45);

    /* Fondos */
    --bg:           #08081A;
    --bg-mid:       #0E0E24;
    --bg-card:      #141430;
    --bg-card-2:    #1A1A40;

    /* Bordes */
    --border:       rgba(255, 255, 255, 0.07);
    --border-red:   rgba(204, 34, 0, 0.35);

    /* Texto */
    --text:         #E2E2F0;
    --text-muted:   #8888AA;
    --text-white:   #FFFFFF;

    /* Acentos complementarios */
    --cyan:         #00E5FF;
    --cyan-glow:    rgba(0, 229, 255, 0.3);
    --purple:       #7C4DFF;
    --gold:         #FFD700;

    /* Tipografías */
    --font-head:    'Orbitron', sans-serif;
    --font-body:    'Exo 2', sans-serif;

    /* Espaciado modular */
    --gap-xs:  0.5rem;
    --gap-sm:  1rem;
    --gap-md:  2rem;
    --gap-lg:  4rem;
    --gap-xl:  7rem;

    /* Radios */
    --r-sm:   8px;
    --r-md:   16px;
    --r-lg:   24px;
    --r-pill: 9999px;

    /* Sombras */
    --shadow-red:  0 0 24px var(--red-glow), 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-cyan: 0 0 20px var(--cyan-glow);
    --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.4);
}


/* ============================================================
   2. RESET Y BASE
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* ============================================================
   3. UTILIDADES GLOBALES
============================================================ */

/* Contenedor centrado con ancho máximo */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* Encabezados de sección reutilizables */
.section-eyebrow {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.section-title .accent-red  { color: var(--red-bright); }
.section-title .accent-cyan { color: var(--cyan); }

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: 3rem;
}

/* Línea divisora degradada bajo el título */
.section-line {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.section-line span {
    height: 3px;
    width: 60px;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--red), var(--cyan));
}


/* ============================================================
   4. COMPONENTES: BOTONES
   Base .btn + modificadores: btn-red, btn-cyan, btn-ghost, btn-wa
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.9rem;
    border-radius: var(--r-sm);
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Botón rojo — CTA principal */
.btn-red {
    background: linear-gradient(135deg, var(--red-bright) 0%, var(--red-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-red);
}

.btn-red:hover {
    box-shadow: 0 0 40px var(--red-glow), 0 6px 30px rgba(0, 0, 0, 0.5);
}

/* Botón contorno cyan */
.btn-cyan {
    background: transparent;
    color: var(--cyan);
    border: 2px solid var(--cyan);
}

.btn-cyan:hover {
    background: rgba(0, 229, 255, 0.08);
    box-shadow: var(--shadow-cyan);
}

/* Botón ghost — fondo translúcido */
.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Botón WhatsApp */
.btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.55);
}


/* ============================================================
   5. COMPONENTES: BADGES (pastillas de etiqueta)
============================================================ */
.badge {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-red  { background: var(--red);  color: #fff; }
.badge-cyan { background: var(--cyan); color: #000; }
.badge-gold { background: var(--gold); color: #000; }


/* ============================================================
   6. LOGO
============================================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

/* Imagen del logo - Animación optimizada */
.logo-img {
    display: block;
    width: 250px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 5mm;
    margin-left: 3mm;
    animation: logo-glow-simple 3s ease-in-out infinite alternate;
    position: relative;
    will-change: filter;
}

/* Animación simplificada y optimizada del logo */
@keyframes logo-glow-simple {
    0% {
        filter: drop-shadow(0 0 6px rgba(0, 207, 255, 0.4)) drop-shadow(0 0 12px rgba(0, 119, 255, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(0, 207, 255, 0.6)) drop-shadow(0 0 20px rgba(0, 119, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(0, 207, 255, 0.5)) drop-shadow(0 0 16px rgba(0, 119, 255, 0.25));
    }
}

.logo-wordmark {
    font-family: var(--font-head);
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: 0.08em;
}

.logo-wordmark em {
    font-style: normal;
    color: var(--red-bright);
}


/* ============================================================
   7. HEADER / NAVEGACIÓN
   Barra fija. Transparente al inicio, fondo sólido al hacer scroll.
============================================================ */
.header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1000;
    padding-block: 1.1rem;
    transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

/* Estado activo: se activa via JS al hacer scroll */
.header.scrolled {
    background: rgba(8, 8, 26, 0.93);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-red);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding-block: 0.8rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Navegación de escritorio */
.nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: var(--r-sm);
    transition: color 0.25s, background 0.25s;
    letter-spacing: 0.02em;
}

.nav a:hover {
    color: var(--text-white);
    background: rgba(204, 34, 0, 0.14);
}

/* Botón hamburguesa — solo visible en móvil */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.4rem;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación a "X" cuando el menú está abierto */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay oscuro detrás del panel de navegación móvil */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

.nav-overlay.active { display: block; }


/* ============================================================
   8. HERO
============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-block: calc(90px + 3rem) 5rem;
}

/* Capas de fondo: gradientes radiales */
.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 15% 55%, rgba(204, 34, 0, 0.16) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 25%, rgba(124, 77, 255, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 75% 80%, rgba(0, 229, 255, 0.07) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 100%);
    z-index: 0;
}

/* Grid de líneas finas decorativa */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(204, 34, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 34, 0, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at center, black 0%, transparent 75%);
    z-index: 0;
}

/* Layout de dos columnas */
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Pastilla "nuevo" animada */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(204, 34, 0, 0.14);
    border: 1px solid rgba(204, 34, 0, 0.3);
    color: #FF7070;
    padding: 0.38rem 1rem;
    border-radius: var(--r-pill);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}

.hero-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red-bright);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

/* Título principal */
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
    color: var(--text-white);
}

.hero-title .line-red  { color: var(--red-bright); text-shadow: 0 0 40px rgba(204, 34, 0, 0.5); }
.hero-title .line-cyan { color: var(--cyan); font-size: 0.72em; text-shadow: 0 0 30px rgba(0, 229, 255, 0.4); }

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 490px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

/* Grupo de botones */
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.8rem;
}

/* Estadísticas rápidas */
.hero-stats {
    display: flex;
    gap: 2.2rem;
    flex-wrap: wrap;
}

.hero-stat-num {
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1;
}

.hero-stat-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* --- Visual del hero: logo flotante con órbita --- */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orbit {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Anillos giratorios */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
}

.orbit-ring-1 {
    inset: 0;
    border-color: rgba(204, 34, 0, 0.25);
    border-style: dashed;
    animation: spin-cw 25s linear infinite;
}

.orbit-ring-2 {
    inset: 12%;
    border-color: rgba(0, 229, 255, 0.18);
    animation: spin-ccw 18s linear infinite;
}

.orbit-ring-3 {
    inset: 26%;
    border-color: rgba(124, 77, 255, 0.22);
    animation: spin-cw 12s linear infinite;
}

/* Logo central flotante */
.orbit-logo {
    position: relative;
    z-index: 5;
    animation: float 4s ease-in-out infinite;
}

/* Imagen real del logo en el hero (más grande) */
.orbit-logo .logo-img {
    width: 600px;
    height: auto;
    filter: drop-shadow(0 0 28px rgba(204, 34, 0, 0.65))
            drop-shadow(0 0 60px rgba(204, 34, 0, 0.3));
}

/* Partículas decorativas flotantes */
.orbit-dot {
    position: absolute;
    border-radius: 50%;
    animation: float-dot 6s ease-in-out infinite;
}

.dot-1 { width: 8px; height: 8px; background: var(--red-bright); top: 10%; right: 12%; box-shadow: 0 0 10px var(--red-bright); animation-delay: 0s; }
.dot-2 { width: 5px; height: 5px; background: var(--cyan);       bottom: 18%; left: 8%;  box-shadow: 0 0 8px  var(--cyan);       animation-delay: 2s; }
.dot-3 { width: 6px; height: 6px; background: var(--purple);     top: 48%;    right: 6%; box-shadow: 0 0 8px  var(--purple);     animation-delay: 4s; }
.dot-4 { width: 4px; height: 4px; background: var(--gold);       bottom: 30%; right: 18%;box-shadow: 0 0 6px  var(--gold);       animation-delay: 1s; }


/* ============================================================
   9. QUIÉNES SOMOS (About)
============================================================ */
.about {
    padding-block: var(--gap-xl);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
}

.about-eyebrow {
    display: inline-block;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--cyan);
    padding: 0.3rem 1rem;
    border-radius: var(--r-pill);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.about-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-white);
}

.about-title .accent { color: var(--red-bright); }

.about-body {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Lista con marcador rojo */
.about-list {
    margin-bottom: 2rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--text);
    padding-block: 0.4rem;
    font-size: 0.95rem;
}

.about-list li::before {
    content: '▸';
    color: var(--red-bright);
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* Grid 2x2 de tarjetas de estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.6rem 1.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Línea de color superior */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--cyan));
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-red);
    box-shadow: var(--shadow-red);
}

.stat-num {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--red-bright);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}


/* ============================================================
   10. PRODUCTOS & SERVICIOS
============================================================ */
.services {
    padding-block: var(--gap-xl);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 50%, var(--bg) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.4rem;
}

/* Tarjeta de servicio */
.svc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Capa de brillo en hover */
.svc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(204, 34, 0, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.svc-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-red);
    box-shadow: var(--shadow-card), var(--shadow-red);
}

.svc-card:hover::after { opacity: 1; }

/* Ícono de categoría */
.svc-icon {
    width: 58px;
    height: 58px;
    background: rgba(204, 34, 0, 0.12);
    border: 1px solid rgba(204, 34, 0, 0.25);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-card:hover .svc-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-red);
}

.svc-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.7rem;
}

.svc-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.4rem;
}

/* Link con flecha deslizante */
.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #FF7070;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: gap 0.25s ease;
}

.svc-link:hover { gap: 0.7rem; }

/* ============================================================
   SLIDER ACCESORIOS
============================================================ */
.acc-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin: 0.75rem 0 1rem;
    background: transparent;
    z-index: 1;
}

.acc-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.acc-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.acc-slide img {
    max-height: 190px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(0, 180, 255, 0.25));
    transition: transform 0.3s ease;
}

.acc-slide img:hover { transform: scale(1.05); }

/* Botones prev / next */
.acc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.acc-btn:hover { background: rgba(0, 180, 255, 0.5); }
.acc-prev, .con-prev { left: 6px; }
.acc-next, .con-next { right: 6px; }

/* Dots */
.acc-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 2px;
}
.acc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}
.acc-dot.active {
    background: #00cfff;
    transform: scale(1.35);
}

/* Lightbox overlay — compartido por sliders */
#accOverlay,
#conOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    backdrop-filter: blur(6px);
}

#accOverlay.active,
#conOverlay.active { display: flex; }

#accOverlayImg,
#conOverlayImg {
    width: 600px;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 14px;
    filter: drop-shadow(0 0 30px rgba(0, 180, 255, 0.45));
    animation: overlayIn 0.25s ease;
}

@keyframes overlayIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

/* Tarjeta deshabilitada — Próximamente */
.svc-card--disabled {
    opacity: 0.65;
    pointer-events: none;
    filter: grayscale(30%);
    position: relative;
}

.svc-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--cyan);
    font-weight: 600;
    margin-top: 0.4rem;
    opacity: 0.85;
}

/* Badge flotante en esquina */
.svc-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
}


/* ============================================================
   11. PROMOCIONES
============================================================ */
.promos {
    padding-block: var(--gap-xl);
}

.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.4rem;
}

.promo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.promo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card), var(--shadow-red);
    border-color: var(--border-red);
}

/* Banner superior con ícono flotante */
.promo-banner {
    height: 155px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.promo-banner-bg {
    position: absolute;
    inset: 0;
}

.promo-banner-icon {
    font-size: 3.8rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
    animation: float 3.5s ease-in-out infinite;
}

.promo-discount {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 3;
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 900;
    padding: 0.3rem 0.65rem;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-red);
}

.promo-body {
    padding: 1.4rem;
}

.promo-title {
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.promo-desc {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.promo-prices {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.promo-price-new {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--red-bright);
}

.promo-price-old {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.promo-timer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--cyan);
    font-size: 0.8rem;
    margin-bottom: 1.1rem;
}

.promo-btn { width: 100%; }


/* ============================================================
   12. GALERÍA
   Para usar fotos reales: agregar background-image a .gallery-inner
   y eliminar el .gallery-emoji correspondiente.
============================================================ */
.gallery {
    padding-block: var(--gap-xl);
    background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 100%);
}

/* Mosaico asimétrico: 3 cols, 2 filas. Primer item ocupa 2 cols. */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 0.9rem;
}

.gallery-item {
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.35s ease, filter 0.35s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.025);
    z-index: 2;
    filter: brightness(1.1);
}

.gallery-item:first-child { grid-column: span 2; }

.gallery-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-emoji {
    font-size: 3.2rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}

.gallery-label {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: 0.9rem 1rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0.05em;
    z-index: 3;
}


/* ============================================================
   13. TESTIMONIOS
============================================================ */
.testimonials {
    padding-block: var(--gap-xl);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.4rem;
}

.testi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.8rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testi-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-red);
}

.testi-quote-mark {
    font-family: 'Georgia', serif;
    font-size: 4.5rem;
    line-height: 0.8;
    color: rgba(204, 34, 0, 0.22);
    margin-bottom: 0.3rem;
    display: block;
}

.testi-stars {
    color: var(--gold);
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
    letter-spacing: 0.05em;
}

.testi-text {
    color: var(--text);
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.testi-name {
    font-family: var(--font-head);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-white);
}

.testi-handle {
    font-size: 0.78rem;
    color: #FF7070;
}


/* ============================================================
   14. CTA FINAL
============================================================ */
.cta-section {
    padding-block: var(--gap-xl);
    position: relative;
    overflow: hidden;
}

.cta-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 50% 50%, rgba(204, 34, 0, 0.22) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 100%);
    z-index: 0;
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
}

.cta-logo-wrap {
    margin-bottom: 1.8rem;
}

/* Logo flotante en CTA */
.cta-logo-wrap .logo-img {
    width: 80px;
    height: 80px;
    display: inline-block;
    filter: drop-shadow(0 0 22px rgba(204, 34, 0, 0.6));
    animation: float 4s ease-in-out infinite;
}

.cta-title {
    font-family: var(--font-head);
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-title .accent { color: var(--red-bright); }

.cta-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.cta-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.cta-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cta-contact-item i { color: var(--red-bright); }


/* ============================================================
   15. FOOTER
============================================================ */
.footer {
    background: #060612;
    border-top: 1px solid var(--border);
    padding-block: 4rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Logo en footer — tamaño reducido */
.footer-logo-img {
    width: 160px;
    height: auto;
    display: block;
}

.footer .logo-img {
    width: 38px;
    height: 38px;
}

.footer-brand-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-block: 1rem 1.5rem;
}

.social-row {
    display: flex;
    gap: 0.65rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.social-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col-title {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-white);
    margin-bottom: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.25s;
}

.footer-links a:hover { color: #FF7070; }

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}

.footer-contact-row i {
    color: var(--red-bright);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-copy strong { color: var(--red-bright); }

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.25s;
}

.footer-legal a:hover { color: #FF7070; }


/* ============================================================
   16. SCROLL-TO-TOP BUTTON
============================================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.25s;
    z-index: 900;
    box-shadow: var(--shadow-red);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover { transform: translateY(-2px); }


/* ============================================================
   17. ANIMACIONES (KEYFRAMES)
============================================================ */

/* Flotamiento suave del logo */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

/* Partículas con trayectoria compleja */
@keyframes float-dot {
    0%, 100% { transform: translate(0, 0);        opacity: 1;    }
    33%       { transform: translate(8px, -16px);  opacity: 0.65; }
    66%       { transform: translate(-5px, -8px);  opacity: 0.85; }
}

/* Rotaciones de anillos */
@keyframes spin-cw  { from { transform: rotate(0deg);   } to { transform: rotate(360deg);  } }
@keyframes spin-ccw { from { transform: rotate(360deg); } to { transform: rotate(0deg);    } }

/* Pulso del punto "nuevo" */
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0   rgba(204, 34, 0, 0.6); }
    50%       { box-shadow: 0 0 0 6px rgba(204, 34, 0, 0);   }
}


/* ============================================================
   18. CLASES DE ANIMACIÓN POR SCROLL
   JS añade .visible cuando el elemento entra al viewport.
   data-delay="N" escala el delay para efecto cascada en grids.
============================================================ */
.anim-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.anim-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-scroll[data-delay="1"] { transition-delay: 0.10s; }
.anim-scroll[data-delay="2"] { transition-delay: 0.20s; }
.anim-scroll[data-delay="3"] { transition-delay: 0.30s; }
.anim-scroll[data-delay="4"] { transition-delay: 0.40s; }
.anim-scroll[data-delay="5"] { transition-delay: 0.50s; }
.anim-scroll[data-delay="6"] { transition-delay: 0.60s; }


/* ============================================================
   19. RESPONSIVE DESIGN
   Estrategia: desktop-first con max-width.
   Breakpoints: tablet ≤1024px | móvil ≤768px | pequeño ≤480px
============================================================ */

/* --- TABLET --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- MÓVIL --- */
@media (max-width: 768px) {
    :root {
        --gap-lg: 2.5rem;
        --gap-xl: 4.5rem;
    }

    /* Mostrar hamburguesa, convertir nav en panel lateral */
    .hamburger { display: flex; }

    .nav {
        position: fixed;
        inset-block: 0;
        inset-inline-end: -100%;
        width: 78%;
        max-width: 300px;
        background: rgba(8, 8, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 1.75rem 2rem;
        gap: 0;
        transition: inset-inline-end 0.4s ease;
        border-left: 1px solid var(--border);
        z-index: 999;
    }

    .nav.open { inset-inline-end: 0; }

    .nav a {
        padding: 0.9rem 1rem;
        width: 100%;
        font-size: 1rem;
    }

    .nav .btn {
        margin-top: 0.5rem;
        width: 100%;
    }

    /* Hero: una columna centrada */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle { margin-inline: auto; }
    .hero-btns     { justify-content: center; }
    .hero-stats    { justify-content: center; }
    .hero-visual   { display: none; } /* Ocultar órbita para no saturar en móvil */

    /* About: una columna */
    .about-grid { grid-template-columns: 1fr; }

    /* Servicios: una columna en móvil */
    .services-grid    { grid-template-columns: 1fr; }

    /* Promos: una columna en móvil */
    .promos-grid      { grid-template-columns: 1fr; }

    /* Testimonios: una columna en móvil */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* Galería: 2 columnas */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item:first-child { grid-column: span 2; }

    /* Footer: una columna */
    .footer-grid { grid-template-columns: 1fr; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   ANIMACIÓN CAJA DE JUEGOS - Optimizada
============================================================ */
@keyframes cajaSimple {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1) drop-shadow(0 0 8px rgba(255, 120, 0, 0.3));
    }
    15% {
        transform: scale(0.95) rotate(-3deg);
        filter: brightness(0.9) drop-shadow(0 0 4px rgba(255, 120, 0, 0.2));
    }
    25% {
        transform: scale(1.15) rotate(3deg);
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 120, 0, 0.6));
    }
    50% {
        transform: scale(1.02) rotate(0deg);
        filter: brightness(1.05) drop-shadow(0 0 10px rgba(255, 120, 0, 0.4));
    }
}

.caja-explota {
    animation: cajaSimple 5s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform;
}

/* --- MÓVIL PEQUEÑO --- */
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item:first-child { grid-column: span 1; }
    .hero-stats  { flex-wrap: wrap; gap: 1.2rem; }
    .stats-grid  { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   CATÁLOGO & PEDIDOS
============================================================ */

/* Sección */
.catalogo {
    padding: var(--gap-xl) 0;
    background: var(--bg-mid);
}

.catalogo-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.4rem;
    line-height: 1.7;
}

/* Buscador */
.cat-search-wrap {
    position: relative;
    max-width: 520px;
    margin: 0 auto 1.8rem;
}

.cat-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s;
}

.cat-search {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 2.7rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.22s, box-shadow 0.22s;
}

.cat-search::placeholder { color: var(--text-muted); }

.cat-search:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}

.cat-search:focus + .cat-search-icon,
.cat-search-wrap:focus-within .cat-search-icon {
    color: var(--red);
}

.cat-search::-webkit-search-cancel-button { display: none; }

.cat-search-clear {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    transition: color 0.2s;
}

.cat-search-clear:hover { color: var(--red); }
.cat-search-clear.hidden { display: none; }

/* Sin resultados */
.cat-no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 3rem 1rem;
    color: var(--text-muted);
    text-align: center;
}

.cat-no-results i {
    font-size: 2.2rem;
    color: var(--border);
}

.cat-no-results p {
    font-size: 1.05rem;
    color: var(--text-white);
    margin: 0;
}

.cat-no-results span {
    font-size: 0.88rem;
}

/* Resaltado de búsqueda */
.cat-highlight {
    background: transparent;
    color: var(--red-bright);
    font-weight: 700;
}

/* Filtros */
.cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2.4rem;
}

.cat-filter {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 1.2rem;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.22s ease;
}

.cat-filter:hover {
    border-color: var(--red);
    color: var(--text-white);
}

.cat-filter.active {
    background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 18px var(--red-glow);
}

/* Grid de productos */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.4rem;
}

/* Tarjeta de producto */
.cat-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-red);
    box-shadow: 0 8px 32px rgba(204, 34, 0, 0.2);
}

.cat-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 1;
    font-size: 0.72rem;
}

/* Imagen */
.cat-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-card-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cat-card:hover .cat-card-img img {
    transform: scale(1.06);
}

.cat-card-icon {
    font-size: 3.5rem;
    line-height: 1;
}

/* Info */
.cat-card-info {
    padding: 0.9rem 0.9rem 0.5rem;
    flex: 1;
}

.cat-card-name {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.cat-card-price {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--cyan);
    margin-bottom: 0.3rem;
}

.cat-card-cat {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Acciones */
.cat-card-actions {
    padding: 0.6rem 0.9rem 0.9rem;
}

.cat-add-btn {
    width: 100%;
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
    justify-content: center;
}

/* Selector cantidad */
.cat-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--red);
    border-radius: var(--r-pill);
    overflow: hidden;
    height: 36px;
}

.cat-qty-btn {
    flex: 0 0 36px;
    height: 100%;
    background: var(--red-dark);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.18s;
    line-height: 1;
}

.cat-qty-btn:hover { background: var(--red-bright); }

.cat-qty-num {
    flex: 1;
    text-align: center;
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: var(--text-white);
    background: var(--bg-card-2);
}

/* ============================================================
   BOTÓN FLOTANTE CARRITO (FAB)
============================================================ */
.cart-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
    color: #fff;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 4px 24px var(--red-glow), 0 2px 8px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cart-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(204,34,0,0.7);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: var(--r-pill);
    background: var(--cyan);
    color: #08081A;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: var(--font-head);
    border: 2px solid var(--bg);
}

.cart-badge.hidden { display: none; }

/* ============================================================
   OVERLAY DEL CARRITO
============================================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ============================================================
   PANEL LATERAL DEL CARRITO
============================================================ */
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 95vw;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-red);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 48px rgba(204,34,0,0.15);
}

.cart-panel.open {
    transform: translateX(0);
}

/* Header */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card-2);
}

.cart-title {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-title i { color: var(--red-bright); }

.cart-close {
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s;
}

.cart-close:hover { background: var(--red-dark); color: #fff; }

/* Body */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.cart-empty-icon {
    font-size: 2.8rem;
    color: var(--border-red);
}

.cart-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

/* Item en carrito */
.cart-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.6rem 0.8rem;
}

.cart-item-img {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-icon { font-size: 1.6rem; }

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cart-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.cart-item-sub {
    font-family: var(--font-head);
    font-size: 0.82rem;
    color: var(--cyan);
}

.cart-item-del {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.18s, background 0.18s;
}

.cart-item-del:hover { color: var(--red-bright); background: rgba(204,34,0,0.12); }

/* Footer */
.cart-footer {
    padding: 1rem 1.4rem 1.4rem;
    border-top: 1px solid var(--border);
    background: var(--bg-card-2);
    display: none;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-total-row strong {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--cyan);
}

.cart-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cart-send-btns {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.cart-send-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
}

/* Botón Instagram */
.btn-ig {
    background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
    color: #fff;
}

.btn-ig:hover {
    box-shadow: 0 0 32px rgba(225, 48, 108, 0.5);
}

.cart-clear {
    width: 100%;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 0.45rem;
    border-radius: var(--r-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: border-color 0.18s, color 0.18s;
}

.cart-clear:hover { border-color: var(--red); color: var(--red-bright); }

/* ============================================================
   TOAST NOTIFICACIÓN
============================================================ */
#pbToast {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card-2);
    border: 1px solid var(--cyan);
    color: var(--text-white);
    padding: 0.75rem 1.4rem;
    border-radius: var(--r-pill);
    font-size: 0.88rem;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 24px rgba(0,229,255,0.2);
}

#pbToast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE CATÁLOGO
============================================================ */
@media (max-width: 768px) {
    .cat-grid  { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 1rem; }
    .cart-panel { width: 100%; max-width: 100%; }
    #pbToast   { white-space: normal; text-align: center; width: 90vw; }
}

@media (max-width: 480px) {
    .cat-search  { font-size: 0.88rem; padding: 0.65rem 2.6rem 0.65rem 2.4rem; }
    .cat-filters { gap: 0.4rem; }
    .cat-filter  { font-size: 0.8rem; padding: 0.38rem 0.9rem; }
    .cat-grid    { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}


/* ============================================================
   RETOMA DE CONSOLAS Y VIDEOJUEGOS — #retoma
============================================================ */
.retoma {
    padding-block: var(--gap-xl);
    position: relative;
    overflow: hidden;
}

/* Fondo con gradiente y grid sutil */
.retoma-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(204, 34, 0, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0, 229, 255, 0.07) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 100%);
    z-index: 0;
}
.retoma-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.retoma-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* ── VISUAL (lado izquierdo) ─────────────────────────────── */
.retoma-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retoma-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(204, 34, 0, 0.18) 0%, transparent 70%);
    pointer-events: none;
    animation: retomaPulse 4s ease-in-out infinite;
}

@keyframes retomaPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.08); }
}

.retoma-exchange {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
}

.retoma-device {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.retoma-device:hover { transform: translateY(-4px); }

.retoma-device--old {
    border-color: rgba(204, 34, 0, 0.3);
}
.retoma-device--old:hover { border-color: var(--red); }

.retoma-device--new {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.1);
}
.retoma-device--new:hover { border-color: var(--cyan); }

.retoma-device-icon {
    font-size: 2.8rem;
    line-height: 1;
}

.retoma-device-lbl {
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-transform: uppercase;
}

.retoma-device--old .retoma-device-lbl span { color: var(--red-bright); }
.retoma-device--new .retoma-device-lbl span { color: var(--cyan); }

/* Flecha central con logo */
.retoma-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.retoma-arrow-track {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.retoma-arrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    opacity: 0.5;
    animation: retomaDot 1.6s ease-in-out infinite;
}
.retoma-arrow-dot:nth-child(2) { animation-delay: 0.3s; }
.retoma-arrow-dot:nth-child(3) { animation-delay: 0.6s; }

.retoma-arrow-track--right .retoma-arrow-dot { background: var(--cyan); }

@keyframes retomaDot {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.4); }
}

.retoma-arrow-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-card-2);
    border: 1px solid var(--border-red);
    border-radius: var(--r-md);
    padding: 0.6rem 0.5rem;
    box-shadow: var(--shadow-red);
}

.retoma-arrow-badge img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.retoma-arrow-badge span {
    font-family: var(--font-head);
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* ── CONTENIDO (lado derecho) ────────────────────────────── */
.retoma-content { }

.retoma-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.1;
    margin-block: 0.75rem 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.retoma-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 48ch;
}

/* Pasos */
.retoma-steps {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.4rem;
}

.retoma-step {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.retoma-step-num {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    min-width: 2.4rem;
    padding-top: 0.1rem;
    text-shadow: 0 0 16px var(--red-glow);
}

.retoma-step-body strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.retoma-step-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* CTA row */
.retoma-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.retoma-cta-btn {
    font-size: 1rem;
    padding: 0.85rem 2rem;
    box-shadow: var(--shadow-red);
}

/* Responsive */
@media (max-width: 900px) {
    .retoma-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .retoma-visual { order: 2; }
    .retoma-content { order: 1; }
    .retoma-desc { max-width: 100%; }
}

@media (max-width: 560px) {
    .retoma-exchange { gap: 0.6rem; }
    .retoma-device   { padding: 1.2rem 0.6rem; }
    .retoma-device-icon { font-size: 2rem; }
    .retoma-cta-row  { flex-direction: column; align-items: flex-start; }
}
