:root {
    --primary: #ffb400;
    --bg-black: #000000;
    --card: #121418;
    --text: #ffffff;
    --danger: #ff4136;
}

body, html {
    margin: 0; padding: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-black);
    color: var(--text);
    overflow: hidden;
}

.screen { height: 100vh; width: 100%; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* --- LANDING --- */
#landing {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#landing::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('FotoPortada.png');
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(0.4);
    transform: scale(1.1);
    z-index: 1;
}

#landing::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('FotoPortada2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    filter: brightness(1.3);
}

.landing-container { 
    position: relative;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.top-credits {
    position: absolute;
    top: 30px;
    font-family: 'Orbitron';
    color: var(--primary);
    background: rgba(0,0,0,0.85);
    padding: 10px 20px;
    border-radius: 4px;
    border-left: 3px solid var(--primary);
}

.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 0 4px 15px rgba(0,0,0,1);
}

.logo-main { font-family: 'Orbitron'; font-size: clamp(3rem, 10vw, 6rem); letter-spacing: 15px; margin: 0; }
.hero-subtitle { color: #94a3b8; letter-spacing: 4px; margin-bottom: 50px; }

.download-bar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-download {
    background: var(--primary);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    padding: 12px 30px;
    font-family: 'Orbitron';
    transition: 0.3s;
}

.btn-download:hover { transform: scale(1.1); box-shadow: 0 0 30px var(--primary); }

.btn-memoria {
    margin-top: 40px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 12px 30px;
    cursor: pointer;
    font-family: 'Orbitron';
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse-glow 2s infinite;
}

/* --- BOTÓN JUGAR TOTALMENTE CORREGIDO --- */
a.btn-danger, a.btn-danger:visited, a.btn-danger:link {
    margin-top: 35px;
    display: inline-block !important;
    background: linear-gradient(135deg, #ff4136 0%, #a00000 50%, #500000 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    padding: 20px 80px !important; /* Tamaño gigante */
    border-radius: 50px !important;
    cursor: pointer !important;
    
    /* Forzado estricto para eliminar el azul y el subrayado */
    color: #ffffff !important; 
    text-decoration: none !important; 
    
    font-family: 'Orbitron', sans-serif !important;
    font-size: 2rem !important; /* Letra imponente */
    font-weight: 900 !important;
    letter-spacing: 6px !important;
    text-transform: uppercase !important;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8) !important;
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 0 25px rgba(255, 65, 54, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.2) !important;
    animation: pulse-danger-glow 2.5s infinite !important;
}

a.btn-danger:hover {
    transform: scale(1.08) translateY(-3px) !important;
    background: linear-gradient(135deg, #ff574d 0%, #b80000 100%) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 0 45px rgba(255, 65, 54, 0.95), 0 0 15px rgba(255, 255, 255, 0.7) !important;
}

a.btn-danger:active {
    transform: scale(0.97) !important;
}

/* Animaciones de Respiración de Luces */
@keyframes pulse-danger-glow {
    0% { box-shadow: 0 0 25px rgba(255, 65, 54, 0.5); }
    50% { box-shadow: 0 0 45px rgba(255, 65, 54, 0.9); }
    100% { box-shadow: 0 0 25px rgba(255, 65, 54, 0.5); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(255, 180, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 180, 0, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 180, 0, 0.2); }
}

/* --- PANEL MEMORIA --- */
#memoria-panel { background: #080808; overflow-y: auto; }

.memoria-nav { 
    padding: 20px 60px; 
    background: #000; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border-bottom: 2px solid var(--primary);
    position: sticky; top: 0; z-index: 100;
}

.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    padding: 40px 60px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.card { 
    background: var(--card); 
    padding: 40px 30px; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover { 
    border-color: var(--primary); 
    background: #1c1f24; 
    transform: translateY(-8px);
}

.card-icon { font-size: 3rem; margin-bottom: 15px; }
.card h3 { font-family: 'Orbitron'; font-size: 1rem; margin-bottom: 10px; color: var(--primary); }
.card p { font-size: 0.85rem; color: #94a3b8; line-height: 1.4; margin: 0; }

/* --- TARJETA DE VIDEO --- */
.card-video {
    grid-column: auto !important;
    grid-row: auto !important;
    transform: scale(1) !important;
    border: 1px solid #d4af37 !important; /* Toque dorado */
    box-shadow: none !important;
}

.card-video:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2) !important;
}

.card-video .card-icon { color: #d4af37; }
.card-video h3 { color: #d4af37 !important; }

/* --- MODAL --- */
#modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9); 
    display: flex; align-items: center; justify-content: center; z-index: 9999; 
}

.modal-content { 
    background: var(--card); 
    width: 90%; max-width: 800px; max-height: 80vh; 
    padding: 40px; border-radius: 12px; 
    position: relative; overflow-y: auto; 
    border: 2px solid var(--primary);
}

.video-wrapper {
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d4af37;
    background: #000;
}

video { display: block; width: 100%; }

.close-x { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #94a3b8; background: none; border: none; cursor: pointer; }
.btn-back { background: none; border: 1px solid var(--primary); color: var(--primary); padding: 8px 16px; cursor: pointer; font-family: 'Orbitron'; }

@media (max-width: 900px) {
    .cards-grid { grid-template-columns: 1fr; padding: 20px; }
    .logo-main { letter-spacing: 5px; }
}
