/* ============================================
   NEURAL SYSTEMS RADIONICS V2 - STYLES
   Diseño exacto según especificaciones
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #13111c;
    --accent-gold: #b8954a;
    --accent-gold-light: #d4a55e;
    --accent-cyan: #00d9ff;
    --accent-green: #22c55e;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-darker);
    min-height: 100vh;
    color: var(--text-white);
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* ============================================
   STEP 1: LOADING SCREEN (0% → 100%)
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.loading-content,
.enter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px;
    text-align: center;
}

.loading-title,
.enter-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 1px;
    margin: 0;
}

.progress-bar-container {
    width: 400px;
    max-width: 90vw;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-green) 100%);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
}

.progress-bar.full {
    width: 100% !important;
}

.loading-percentage,
.enter-percentage {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(184, 149, 74, 0.8);
}

/* ============================================
   STEP 2: ENTER BUTTON SCREEN
   ============================================ */
.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.enter-button {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    color: #000;
    border: none;
    padding: 18px 60px;
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 30px rgba(184, 149, 74, 0.6),
        0 0 60px rgba(184, 149, 74, 0.4);
    animation: buttonPulse 2s ease-in-out infinite;
    margin-top: 20px;
    -webkit-tap-highlight-color: transparent;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(184, 149, 74, 0.6),
            0 0 60px rgba(184, 149, 74, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 40px rgba(184, 149, 74, 0.8),
            0 0 80px rgba(184, 149, 74, 0.6);
    }
}

.enter-button:hover,
.enter-button:active {
    transform: scale(1.1);
    box-shadow: 
        0 0 50px rgba(184, 149, 74, 0.9),
        0 0 100px rgba(184, 149, 74, 0.7);
}

/* ============================================
   STEP 3: VIDEO SCREEN
   ============================================ */
.video-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.skip-video-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(184, 149, 74, 0.9);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    -webkit-tap-highlight-color: transparent;
}

.skip-video-btn:hover,
.skip-video-btn:active {
    background: var(--accent-gold-light);
    transform: scale(1.05);
}

.manual-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    color: #000;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    animation: buttonPulse 2s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   STEP 4: MAIN CONTENT
   ============================================ */
.main-content {
    opacity: 1;
    transition: opacity 0.5s ease;
    background: linear-gradient(180deg, #0d1117 0%, #0a0a0a 100%);
    min-height: 100vh;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 160, 41, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.header {
    text-align: center;
    margin-bottom: 35px;
}

.title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(212, 160, 41, 0.5);
}

.subtitle {
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.5;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}

.link-card {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 85px;
    -webkit-tap-highlight-color: transparent;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 160, 41, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.link-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-right: 18px;
    flex-shrink: 0;
}

.link-content {
    flex: 1;
}

.link-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 6px;
}

.link-content p {
    font-size: 14px;
    color: var(--text-gray);
}

.link-arrow {
    color: var(--text-gray);
    font-size: 18px;
    transition: transform 0.3s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
    color: var(--accent-gold);
}

/* Card Colors */
.curso-icon {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    color: white;
}

.info-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.tienda-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
}

.youtube-icon {
    background: rgba(255, 0, 0, 0.15);
    color: #ff0000;
}

.instagram-icon {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.2) 0%, rgba(253, 29, 29, 0.15) 50%);
    color: #e1306c;
}

.tiktok-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.facebook-icon {
    background: rgba(24, 119, 242, 0.15);
    color: #1877f2;
}

.twitter-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(30, 30, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 14px 24px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.contact-item:hover {
    background: rgba(40, 40, 45, 0.8);
    border-color: rgba(212, 160, 41, 0.3);
    color: var(--text-white);
}

.contact-item i {
    color: var(--accent-gold);
}

.features {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.feature-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
    font-size: 12px;
    color: var(--text-gray);
    font-family: 'Cinzel', serif;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 30px 16px;
    }

    .loading-title,
    .enter-title {
        font-size: 22px;
    }

    .loading-percentage,
    .enter-percentage {
        font-size: 36px;
    }

    .enter-button {
        font-size: 18px;
        padding: 16px 50px;
    }

    .progress-bar-container {
        width: 300px;
    }

    .skip-video-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 13px;
    }

    .link-card {
        padding: 20px;
        min-height: 75px;
    }

    .link-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .link-content h3 {
        font-size: 16px;
    }

    .link-content p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .loading-title,
    .enter-title {
        font-size: 20px;
    }

    .enter-button {
        font-size: 16px;
        padding: 14px 40px;
    }

    .progress-bar-container {
        width: 260px;
    }
}
