/* --- BASE & UTILS --- */
:root {
    --brand-cyan: #00f0ff;
    --brand-purple: #7000ff;
    --brand-bg: #02040a;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #02040a; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* Grid de fondo Cyberpunk */
.cyber-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 0%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, black 40%, transparent 80%);
}

/* --- ANIMACIONES DE MARQUEE (CARRUSEL) --- */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0; /* Espacio para el hover scale */
}

.marquee-content {
    display: inline-block;
    animation: scroll 40s linear infinite;
}

.marquee-item {
    display: inline-block;
    width: 140px;
    height: 210px;
    margin: 0 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #1e293b;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marquee-item:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    z-index: 10;
}

/* Pausar animación al pasar el mouse por encima del wrapper */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Mover la mitad (set original) */
}


/* --- STAT CARDS (NUEVO) --- */
.stat-card {
    background: rgba(11, 17, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    background: rgba(11, 17, 30, 0.8);
}

/* Efecto de brillo en hover */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.03), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Se mueve la mitad (el set original) */
}

.poster-card {
    width: 120px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #1e293b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}
.poster-card img {
    width: 100%; height: 100%; object-fit: cover;
}
.poster-card:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    z-index: 10;
}

/* --- COMPONENTES UI --- */

/* Tabs */
.tab-btn {
    position: relative; z-index: 10; padding: 10px 30px;
    font-weight: 700; font-size: 0.9rem; color: #64748b;
    transition: color 0.3s; outline: none;
}
.tab-btn:hover { color: #fff; }
.tab-btn.active { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
#tab-indicator { background: #1e293b; width: 50%; left: 0; }

/* Inputs Cyberpunk */
.input-label {
    display: block; text-align: left; font-size: 0.7rem; font-weight: 700;
    color: var(--brand-cyan); margin-bottom: 8px; text-transform: uppercase;
    letter-spacing: 1px; margin-left: 4px;
}
.cyber-input {
    width: 100%; background: #02040a; border: 1px solid #1e293b;
    border-radius: 12px; padding: 16px 20px;
    font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cyber-input:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    outline: none;
}
.cyber-input:disabled {
    background: #090e1a; color: #334155; border-color: #0f172a; cursor: not-allowed;
}

/* Botón Copiar */
.result-bar {
    margin-top: 30px; background: #000; border: 1px solid #334155;
    border-radius: 12px; padding: 8px 8px 8px 20px;
    display: flex; align-items: center; justify-content: space-between;
    transition: 0.3s;
}
.result-bar:hover { border-color: var(--brand-cyan); }
.copy-btn {
    background: #1e293b; color: #fff; padding: 10px 24px;
    border-radius: 8px; font-size: 0.8rem; font-weight: 800;
    letter-spacing: 0.5px; transition: all 0.2s; border: 1px solid transparent;
}
.copy-btn:hover {
    background: #fff; color: #000; box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* Feature Cards Mejoradas */
.feature-card {
    background: linear-gradient(145deg, #111827, #0b111e);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px; border-radius: 16px; transition: 0.3s;
    position: relative; overflow: hidden;
}
.feature-card:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.feature-card h3 { color: #fff; font-weight: 700; margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; }

/* Iconos */
.icon-circle {
    width: 55px; height: 55px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
}
.icon-circle svg { width: 28px; height: 28px; }
.icon-circle.cyan { color: #00f0ff; background: rgba(0, 240, 255, 0.1); box-shadow: 0 0 15px rgba(0, 240, 255, 0.1); }
.icon-circle.purple { color: #a855f7; background: rgba(168, 85, 247, 0.1); box-shadow: 0 0 15px rgba(168, 85, 247, 0.1); }
.icon-circle.blue { color: #3b82f6; background: rgba(59, 130, 246, 0.1); box-shadow: 0 0 15px rgba(59, 130, 246, 0.1); }

/* Embed Ratio */
.iframe-container {
    position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000;
}
.iframe-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* Animaciones de Entrada */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards; opacity: 0; transform: translateY(20px);
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.type-cursor {
    border-right: 3px solid var(--brand-cyan);
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }

@media (max-width: 768px) {
    .cyber-input { font-size: 1rem; padding: 12px 15px; }
}