:root {
    --primary-bg: #0a0a0a;
    --neon-purple: #b026ff;
    --deep-purple: #4a148c;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    overflow: hidden; /* No scroll global */
    margin: 0;
}

/* Background Effects */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('https://via.placeholder.com/1920x1080/110022/440055?text=TOP+BG') center/cover no-repeat; */
    z-index: -2;
    filter: blur(20px) brightness(0.6);
}

.app-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(74, 20, 140, 0.4), #000);
    z-index: -1;
}

/* App Container */
.app-container {
    height: 100vh;
    width: 100%;
    max-width: 800px; /* Limitar ancho en desktop */
    margin: 0 auto;
    background: rgba(0,0,0,0.2);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    position: relative;
}

/* Header */
.app-header {
    height: 70px;
    z-index: 10;
}

.text-neon-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.6);
}

.tracking-wide {
    letter-spacing: 2px;
}

.bg-neon-purple {
    background-color: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple);
}

/* Views Logic */
.view-section {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: scale(0.95);
    z-index: 1;
}

.view-section.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 5;
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Iframe Styling */
.border-neon {
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.3);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Updated Radio Container */
.radio-container {
    width: 100%;
    min-height: 300vh; /* Default tall height */
    position: relative;
    transition: min-height 0.3s ease;
}

.radio-container iframe {
    width: 100%;
    height: 100%;
    min-height: 300vh;
    border: none;
    display: block; /* Removes bottom spacing */
    transition: min-height 0.3s ease;
}

/* Class for Live state (shorter iframe) */
.radio-container.is-live {
    min-height: 80vh !important; /* Slightly less than 100vh to fit within layout */
    height: 80vh !important;
}

.radio-container.is-live iframe {
    min-height: 100% !important;
    height: 100% !important;
}

/* Countdown Styles */
.countdown-overlay {
    background: rgba(20, 20, 20, 0.4); /* Slightly transparent */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    max-width: 250px;
    z-index: 15;
}

.countdown-mini {
    min-width: 30px;
}

/* Gallery & Shop Grid */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(176, 38, 255, 0.2) !important;
    border-color: var(--neon-purple) !important;
}

.gallery-item {
    height: 250px; /* Fixed height for uniformity */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(176, 38, 255, 0.3) !important;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.hover-scale {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.border-purple {
    border-color: var(--neon-purple) !important;
}

/* Navigation Dock */
.app-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 20;
}

.glass-dock {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-btn i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: transform 0.3s;
}

.nav-btn.active {
    color: var(--neon-purple);
}

.nav-btn.active i {
    transform: translateY(-5px);
    text-shadow: 0 0 10px var(--neon-purple);
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    background-color: var(--neon-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-purple);
}

/* Form Styles */
.form-control:focus {
    box-shadow: none;
    border-color: var(--neon-purple) !important;
}

.btn-neon {
    background: transparent;
    border: 2px solid var(--neon-purple);
    color: #fff;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-neon:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
    color: #fff;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--neon-purple);
    transform: translateY(-3px);
    color: #fff;
}

/* PWA Prompt */
.pwa-prompt {
    z-index: 9999;
    border-top: 1px solid var(--neon-purple);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Social Icons */
.social-link {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-link:hover {
    color: var(--neon-purple) !important;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.8);
    opacity: 1;
}
