/* =====================================================
   VARIABLES GLOBALES & RESET
===================================================== */
:root {
    --primary-blue: #0d47a1;
    --primary-hover: #1565c0;
    --accent-gold: #ffb300;
    --bg-dark: #0a0f1d;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --modal-bg: rgba(15, 23, 42, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =====================================================
   HERO & FONDO INMERSIVO
===================================================== */
.bg-hero {
    background: linear-gradient(135deg, rgba(10, 15, 29, 0.85), rgba(13, 71, 161, 0.6)), 
                url('images/logo_pelin.jpg') center/cover no-repeat fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 90%);
    z-index: 1;
}

/* =====================================================
   ENCABEZADO / NAV
===================================================== */
.main-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 15, 29, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo-header img {
    height: 45px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   CONTENIDO PRINCIPAL (HERO)
===================================================== */
.hero-container {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-in-out;
}

.badge-futuro {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 179, 0, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #90caf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
}

/* =====================================================
   BOTONES
===================================================== */
.btn-azul {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.4);
}

.btn-azul:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.6);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-volver-login {
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.3s;
}

.btn-volver-login:hover {
    color: var(--text-main);
}

/* =====================================================
   LIGHTBOX SUBMENÚ (MODAL)
===================================================== */
.lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.container-auth {
    background: var(--modal-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-backdrop.active .container-auth {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #fff;
}

.logo {
    text-align: center;
    margin-bottom: 15px;
}

.logo img {
    max-width: 80px;
    border-radius: 50%;
}

.container-auth h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.subtitulo {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* CARDS DEL MENÚ */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.menu-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-blue);
    transform: translateX(5px);
}

.menu-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-icon {
    font-size: 1.8rem;
    background: rgba(13, 71, 161, 0.3);
    padding: 10px;
    border-radius: 8px;
}

.card-info h3 {
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.card-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-links {
    text-align: center;
}

/* =====================================================
   ANIMACIONES & RESPONSIVE
===================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .main-header { padding: 15px 20px; }
    .container-auth { width: 90%; padding: 25px; }
}

/* =====================================================
   VIDEO DE FONDO Y CAPA SUPERPUESTA
===================================================== */
.bg-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-color: #0a0f1d;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 15, 29, 0.4) 0%, rgba(10, 15, 29, 0.85) 90%);
    z-index: 1;
}