﻿/* =============================================
   NEXUS REALM - COMPLETE REDESIGN
   Estilo: Aurora Boreal + Cosmos + Glassmorphism Premium
   Paleta: Warm sunset (naranja, rosa, violeta) sobre fondo cosmos oscuro
   ============================================= */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* === VARIABLES === */
:root {
    --nx-bg-deep: #0a0a1a;
    --nx-bg-card: rgba(15, 15, 35, 0.7);
    --nx-bg-card-hover: rgba(20, 20, 50, 0.85);
    --nx-glass: rgba(255, 255, 255, 0.04);
    --nx-glass-border: rgba(255, 255, 255, 0.08);
    --nx-orange: #f97316;
    --nx-pink: #ec4899;
    --nx-violet: #8b5cf6;
    --nx-blue: #3b82f6;
    --nx-emerald: #10b981;
    --nx-gold: #fbbf24;
    --nx-text: #f1f5f9;
    --nx-text-muted: #94a3b8;
    --nx-text-dim: #64748b;
    --nx-gradient-warm: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
    --nx-gradient-sunset: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
    --nx-gradient-card: linear-gradient(145deg, rgba(15,15,35,0.8), rgba(25,15,45,0.6));
    --nx-radius: 16px;
    --nx-radius-sm: 10px;
    --nx-radius-pill: 50px;
    --nx-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --nx-shadow-glow: 0 0 40px rgba(249, 115, 22, 0.15);
    --nx-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nx-font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* === HERO SECTION === */
.nx-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--nx-bg-deep);
    padding: 100px 20px 60px;
}

.nx-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Aurora Boreal Effect */
.nx-aurora {
    position: absolute;
    inset: -50%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(249, 115, 22, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 70% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 70% 40% at 50% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 80% 60%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    animation: nxAurora 25s ease-in-out infinite alternate;
}

@keyframes nxAurora {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(5%, -3%) rotate(2deg) scale(1.05); }
    66% { transform: translate(-3%, 5%) rotate(-1deg) scale(0.98); }
    100% { transform: translate(2%, -2%) rotate(1deg) scale(1.02); }
}

/* Stars Field */
.nx-stars-field {
    position: absolute;
    inset: 0;
}

.nx-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: nxTwinkle 4s ease-in-out infinite;
}

.nx-star:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.nx-star:nth-child(2) { top: 25%; left: 80%; animation-delay: 0.5s; width: 3px; height: 3px; }
.nx-star:nth-child(3) { top: 60%; left: 30%; animation-delay: 1s; }
.nx-star:nth-child(4) { top: 15%; left: 55%; animation-delay: 1.5s; width: 1px; height: 1px; }
.nx-star:nth-child(5) { top: 70%; left: 75%; animation-delay: 2s; }
.nx-star:nth-child(6) { top: 40%; left: 10%; animation-delay: 2.5s; width: 3px; height: 3px; }
.nx-star:nth-child(7) { top: 85%; left: 45%; animation-delay: 0.8s; }
.nx-star:nth-child(8) { top: 50%; left: 90%; animation-delay: 1.2s; }
.nx-star:nth-child(9) { top: 30%; left: 40%; animation-delay: 3s; width: 1px; height: 1px; }
.nx-star:nth-child(10) { top: 75%; left: 60%; animation-delay: 0.3s; }
.nx-star:nth-child(11) { top: 5%; left: 35%; animation-delay: 1.8s; }
.nx-star:nth-child(12) { top: 90%; left: 20%; animation-delay: 2.2s; width: 3px; height: 3px; }

@keyframes nxTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Meteors */
.nx-meteor-shower { position: absolute; inset: 0; overflow: hidden; }

.nx-meteor {
    position: absolute;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.8), transparent);
    animation: nxMeteor 8s linear infinite;
    opacity: 0;
}

.nx-meteor:nth-child(1) { top: 20%; left: -80px; animation-delay: 2s; }
.nx-meteor:nth-child(2) { top: 45%; left: -80px; animation-delay: 5s; width: 120px; }
.nx-meteor:nth-child(3) { top: 70%; left: -80px; animation-delay: 8s; width: 60px; }

@keyframes nxMeteor {
    0% { transform: translateX(0) translateY(0) rotate(-35deg); opacity: 0; }
    5% { opacity: 1; }
    30% { opacity: 0; }
    100% { transform: translateX(120vw) translateY(40vh) rotate(-35deg); opacity: 0; }
}

/* Hero Content */
.nx-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Logo */
.nx-logo-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.nx-logo-orbit {
    position: absolute;
    inset: -15px;
}

.nx-orbit-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 50%;
    animation: nxOrbit 12s linear infinite;
}

.nx-orbit-ring::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--nx-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--nx-orange);
}

.nx-ring-2 {
    inset: -8px;
    border-color: rgba(236, 72, 153, 0.1);
    animation-direction: reverse;
    animation-duration: 18s;
}

.nx-ring-2::after {
    background: var(--nx-pink);
    box-shadow: 0 0 10px var(--nx-pink);
    width: 4px;
    height: 4px;
}

@keyframes nxOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nx-logo-core {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nx-logo-svg {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.3));
}

/* Title */
.nx-title {
    font-family: var(--nx-font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.nx-title-main {
    display: block;
    color: var(--nx-text);
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.1);
}

.nx-title-accent {
    display: block;
    background: var(--nx-gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(249, 115, 22, 0.3));
}

.nx-subtitle {
    font-family: var(--nx-font);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--nx-text-muted);
    font-weight: 400;
    margin-bottom: 45px;
    line-height: 1.6;
}

/* Stats Row */
.nx-stats-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nx-stat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    background: var(--nx-glass);
    border: 1px solid var(--nx-glass-border);
    border-radius: var(--nx-radius-pill);
    transition: all 0.3s ease;
}

.nx-stat-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.1);
}

.nx-stat-icon {
    width: 38px;
    height: 38px;
    background: var(--nx-gradient-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.nx-stat-data {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.nx-stat-data strong {
    font-family: var(--nx-font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--nx-text);
    line-height: 1.1;
}

.nx-stat-data small {
    font-size: 0.7rem;
    color: var(--nx-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Buttons */
.nx-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.nx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--nx-radius-pill);
    font-family: var(--nx-font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nx-btn-primary {
    background: var(--nx-gradient-sunset);
    color: #fff;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.nx-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.4);
    color: #fff;
}

.nx-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.nx-btn:hover .nx-btn-shine {
    left: 100%;
}

.nx-btn-ghost {
    background: transparent;
    color: var(--nx-text);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.nx-btn-ghost:hover {
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(249, 115, 22, 0.08);
    transform: translateY(-3px);
    color: var(--nx-text);
}

.nx-btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

/* Scroll Hint */
.nx-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: nxBounce 2.5s ease-in-out infinite;
}

.nx-scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.nx-scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--nx-orange);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: nxWheel 2s ease-in-out infinite;
}

@keyframes nxWheel {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.3; }
}

.nx-scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--nx-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes nxBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* === CONTAINER === */
.nx-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* === SECTION HEADS === */
.nx-section-head {
    text-align: center;
    margin-bottom: 50px;
}

.nx-head-badge {
    width: 56px;
    height: 56px;
    background: var(--nx-gradient-warm);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.25);
}

.nx-section-title {
    font-family: var(--nx-font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--nx-text);
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.nx-accent {
    background: var(--nx-gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nx-section-sub {
    font-size: 1rem;
    color: var(--nx-text-muted);
    font-weight: 400;
    margin-bottom: 12px;
}

.nx-head-line {
    width: 60px;
    height: 3px;
    background: var(--nx-gradient-sunset);
    border-radius: 2px;
    margin: 0 auto;
}

/* === LEADERBOARD SECTION === */
.nx-leaderboard {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--nx-bg-deep) 0%, #0d0d24 50%, var(--nx-bg-deep) 100%);
    position: relative;
}

.nx-leaders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.nx-leader-card {
    background: var(--nx-gradient-card);
    border: 1px solid var(--nx-glass-border);
    border-radius: var(--nx-radius);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.nx-leader-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nx-shadow-glow);
    border-color: rgba(249, 115, 22, 0.3);
}

.nx-leader-rank-strip {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--nx-font-display);
    font-weight: 800;
    font-size: 0.85rem;
    color: #000;
    letter-spacing: 1px;
}

.nx-leader-body {
    padding: 24px 20px;
    text-align: center;
}

.nx-leader-avatar {
    width: 60px;
    height: 60px;
    background: var(--nx-gradient-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 14px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    transition: transform 0.3s ease;
}

.nx-leader-card:hover .nx-leader-avatar {
    transform: scale(1.1);
}

.nx-leader-name {
    font-family: var(--nx-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--nx-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nx-leader-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--nx-orange);
    font-weight: 700;
    display: block;
    margin-bottom: 16px;
}

.nx-leader-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nx-lstat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--nx-radius-sm);
    font-size: 0.8rem;
    color: var(--nx-text-muted);
    transition: all 0.3s ease;
}

.nx-lstat:hover {
    background: rgba(249, 115, 22, 0.08);
}

.nx-lstat i {
    color: var(--nx-orange);
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}

.nx-lstat span {
    font-weight: 600;
    font-family: var(--nx-font-display);
    color: var(--nx-text);
    font-size: 0.78rem;
}

.nx-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--nx-text-dim);
}

.nx-empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* === PRODUCTS SECTION === */
.nx-products {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--nx-bg-deep) 0%, #0f0a1e 50%, var(--nx-bg-deep) 100%);
}

.nx-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.nx-product-card {
    background: var(--nx-gradient-card);
    border: 1px solid var(--nx-glass-border);
    border-radius: var(--nx-radius);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.nx-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 16px 48px rgba(249, 115, 22, 0.12);
}

/* Badges */
.nx-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nx-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--nx-radius-pill);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nx-badge-new { background: var(--nx-emerald); color: #fff; }
.nx-badge-hot { background: #ef4444; color: #fff; }
.nx-badge-popular { background: var(--nx-violet); color: #fff; }
.nx-badge-vip { background: var(--nx-gradient-warm); color: #fff; }

/* Card Media */
.nx-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.nx-img-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30,30,60,1) 25%, rgba(50,50,80,1) 50%, rgba(30,30,60,1) 75%);
    background-size: 200% 100%;
    animation: nxShimmer 1.5s ease-in-out infinite;
}

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

.nx-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.nx-product-card:hover .nx-card-img {
    transform: scale(1.05);
}

.nx-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.nx-play-btn {
    width: 60px;
    height: 60px;
    background: var(--nx-gradient-sunset);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 4px 25px rgba(249, 115, 22, 0.5);
}

.nx-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--nx-text-dim);
    font-size: 0.85rem;
    background: rgba(15, 15, 35, 0.8);
}

.nx-img-fallback i { font-size: 2rem; opacity: 0.4; }

.nx-media-hover {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 2rem;
    color: #fff;
}

.nx-product-card:hover .nx-media-hover {
    opacity: 1;
}

/* Card Info */
.nx-card-info {
    padding: 20px;
}

.nx-card-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--nx-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.nx-card-name {
    font-family: var(--nx-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nx-text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.nx-card-desc {
    font-size: 0.82rem;
    color: var(--nx-text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Variations */
.nx-card-variations {
    margin-bottom: 14px;
}

.nx-var-label {
    font-size: 0.68rem;
    color: var(--nx-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.nx-var-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nx-var-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--nx-radius-pill);
    font-size: 0.68rem;
    color: var(--nx-orange);
    font-weight: 600;
}

.nx-var-chip i { font-size: 0.6rem; }

.nx-var-more {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--nx-violet);
}

/* Price */
.nx-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.nx-price-from {
    font-size: 0.65rem;
    color: var(--nx-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.nx-price-val {
    font-family: var(--nx-font-display);
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--nx-gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Actions */
.nx-card-actions {
    display: flex;
    gap: 8px;
}

.nx-btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--nx-radius-sm);
    font-family: var(--nx-font-display);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.nx-btn-card-primary {
    background: var(--nx-gradient-sunset);
    color: #fff;
    flex: 1;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.nx-btn-card-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}

.nx-btn-card-play {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--nx-text);
    width: 42px;
    height: 42px;
    padding: 0;
}

.nx-btn-card-play:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--nx-orange);
}

/* View All */
.nx-view-all-wrap {
    text-align: center;
    margin-top: 20px;
}

/* === TESTIMONIALS === */
.nx-testimonials {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--nx-bg-deep) 0%, #0d0a20 50%, var(--nx-bg-deep) 100%);
}

.nx-testi-carousel {
    position: relative;
    min-height: 280px;
    margin-bottom: 30px;
}

.nx-testi-carousel .testimonial-card-epic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nx-testi-carousel .testimonial-card-epic.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.nx-testi-card {
    max-width: 650px;
    margin: 0 auto;
    background: var(--nx-gradient-card);
    border: 1px solid var(--nx-glass-border);
    border-radius: var(--nx-radius);
    padding: 40px;
    text-align: center;
}

.nx-testi-stars {
    margin-bottom: 20px;
}

.nx-testi-stars i {
    color: var(--nx-gold);
    font-size: 1.1rem;
    margin: 0 2px;
}

.nx-testi-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--nx-text-muted);
    font-style: italic;
    margin-bottom: 24px;
}

.nx-testi-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.nx-testi-avatar {
    width: 48px;
    height: 48px;
    background: var(--nx-gradient-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.nx-testi-author h4 {
    font-family: var(--nx-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--nx-text);
    margin-bottom: 2px;
}

.nx-testi-author span {
    font-size: 0.75rem;
    color: var(--nx-orange);
    font-weight: 600;
}

/* Testi Controls */
.nx-testi-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.nx-testi-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--nx-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nx-testi-btn:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--nx-orange);
    transform: scale(1.1);
}

.nx-testi-dots {
    display: flex;
    gap: 8px;
}

.nx-testi-dots .dot-epic {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nx-testi-dots .dot-epic.active {
    background: var(--nx-orange);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
    transform: scale(1.2);
}

/* === FEATURES === */
.nx-features {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--nx-bg-deep) 0%, #0e0a1f 50%, var(--nx-bg-deep) 100%);
}

.nx-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.nx-feature-card {
    background: var(--nx-gradient-card);
    border: 1px solid var(--nx-glass-border);
    border-radius: var(--nx-radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s ease;
}

.nx-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.2);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.08);
}

.nx-feat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.nx-feature-card:hover .nx-feat-icon {
    transform: scale(1.15) rotate(5deg);
}

.nx-feat-orange { background: rgba(249, 115, 22, 0.12); color: var(--nx-orange); border: 1px solid rgba(249, 115, 22, 0.2); }
.nx-feat-emerald { background: rgba(16, 185, 129, 0.12); color: var(--nx-emerald); border: 1px solid rgba(16, 185, 129, 0.2); }
.nx-feat-pink { background: rgba(236, 72, 153, 0.12); color: var(--nx-pink); border: 1px solid rgba(236, 72, 153, 0.2); }
.nx-feat-blue { background: rgba(59, 130, 246, 0.12); color: var(--nx-blue); border: 1px solid rgba(59, 130, 246, 0.2); }
.nx-feat-gold { background: rgba(251, 191, 36, 0.12); color: var(--nx-gold); border: 1px solid rgba(251, 191, 36, 0.2); }
.nx-feat-violet { background: rgba(139, 92, 246, 0.12); color: var(--nx-violet); border: 1px solid rgba(139, 92, 246, 0.2); }

.nx-feature-card h3 {
    font-family: var(--nx-font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--nx-text);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.nx-feature-card p {
    font-size: 0.88rem;
    color: var(--nx-text-muted);
    line-height: 1.6;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .nx-leaders-grid { grid-template-columns: repeat(2, 1fr); }
    .nx-products-grid { grid-template-columns: repeat(2, 1fr); }
    .nx-features-grid { grid-template-columns: repeat(2, 1fr); }
    .nx-section-title { font-size: 2rem; }
}

/* Mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
    }
    
    * {
        box-sizing: border-box;
    }
    
    main, main.container {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .nx-hero {
        padding: 90px 16px 50px;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .nx-hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .nx-logo-wrap {
        width: 90px;
        height: 90px;
        margin-bottom: 28px;
    }
    
    .nx-logo-svg { width: 75px; height: 75px; }
    
    .nx-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .nx-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .nx-stats-row {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .nx-stat-pill {
        padding: 10px 16px;
        flex: 1 1 calc(50% - 10px);
        max-width: 100%;
        min-width: 0;
    }
    
    .nx-stat-data strong { font-size: 1.1rem; }
    .nx-stat-data small { font-size: 0.6rem; }
    
    .nx-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .nx-btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
    }
    
    .nx-container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .nx-testi-carousel {
        overflow: hidden;
        max-width: 100%;
    }

    .nx-testi-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    .nx-products,
    .nx-leaderboard,
    .nx-testimonials,
    .nx-features {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }
    
    .nx-section-head {
        margin-bottom: 30px;
    }
    
    .nx-section-title {
        font-size: 1.6rem;
    }
    
    .nx-leaders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .nx-leader-body {
        padding: 16px 12px;
    }
    
    .nx-leader-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .nx-leader-name { font-size: 0.8rem; }
    .nx-leader-tag { font-size: 0.55rem; margin-bottom: 10px; }
    
    .nx-lstat {
        padding: 5px 8px;
        font-size: 0.7rem;
        gap: 5px;
    }
    
    .nx-lstat span { font-size: 0.68rem; }
    
    .nx-products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    
    .nx-card-info { padding: 16px; }
    .nx-card-name { font-size: 1rem; }
    
    .nx-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .nx-feature-card {
        padding: 24px 20px;
    }
    
    .nx-testi-card {
        padding: 24px 20px;
    }
    
    .nx-testi-text {
        font-size: 0.95rem;
    }
    
    .nx-leaderboard,
    .nx-products,
    .nx-testimonials,
    .nx-features {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .nx-stat-pill {
        flex: 1 1 100%;
    }

    .nx-btn-lg {
        padding: 12px 16px;
        font-size: 0.78rem;
        letter-spacing: 0.5px;
    }

    .nx-title {
        font-size: 2.1rem;
    }
}

/* Extra small */
@media (max-width: 380px) {
    .nx-title { font-size: 2rem; }
    
    .nx-leaders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .nx-leader-body { padding: 12px 8px; }
    .nx-leader-avatar { width: 36px; height: 36px; font-size: 0.9rem; }
    .nx-leader-name { font-size: 0.7rem; }
    .nx-leader-tag { font-size: 0.5rem; }
    .nx-lstat { padding: 4px 6px; font-size: 0.6rem; }
    .nx-lstat span { font-size: 0.58rem; }
    
    .nx-stat-pill { padding: 8px 12px; }
    .nx-stat-data strong { font-size: 0.95rem; }
    .nx-stat-icon { width: 30px; height: 30px; font-size: 0.75rem; }
    
    .nx-section-title { font-size: 1.3rem; }
}

/* Performance: disable heavy animations on mobile */
@media (max-width: 1024px) {
    .nx-aurora {
        animation: none !important;
    }
    
    .nx-meteor-shower {
        display: none !important;
    }
    
    .nx-orbit-ring,
    .nx-ring-2 {
        animation: none !important;
    }
    
    .nx-star {
        animation: none !important;
        opacity: 0.5;
    }
}

/* Touch optimizations */
@media (max-width: 768px) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    * {
        will-change: auto !important;
    }
}

/* Pulse play animation for video buttons */
@keyframes pulsePlay {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
/* === SPOTLIGHT para nx-product-card (cubanhacks-ui.js) === */
[data-ch-spot] {
    position: relative;
}
[data-ch-spot]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        500px circle at var(--ch-spot-x, 50%) var(--ch-spot-y, 50%),
        rgba(249,115,22,0.09),
        transparent 55%
    );
    opacity: var(--ch-spot-opacity, 0);
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 1;
}

/* Home: ancho completo dentro del layout con sidebar */
body.nx-index-body {
    overflow-x: clip;
    max-width: 100%;
}

body.nx-index-body main.container {
    min-width: 0;
    overflow-x: clip;
    padding-top: 0;
    padding-bottom: 0;
}

/* Desktop: offset lateral lo gestiona ch-shell-unified.css */
@media (min-width: 1025px) {
    body.nx-index-body main.container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Móvil/tablet: sin sidebar PC, contenido a ancho completo */
@media (max-width: 1024px) {
    body.nx-index-body main.container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

body.nx-index-body .cyber-footer {
    margin-top: 0;
}
