/* =========================================
   VARIABLES GLOBALES MEJORADAS
   ========================================= */
:root {
    --bg-dark: #0a0014;        /* Fondo base aún más profundo */
    --neon-pink: #ff007f;      /* Rosa vibrante principal */
    --neon-blue: #00f0ff;      /* Azul cyan secundario */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(20, 5, 35, 0.45); /* Fondo de vidrio translúcido */
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* =========================================
   ESTILOS BASE Y SCROLLBAR PERSONALIZADO
   ========================================= */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    padding-top: 110px; 
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--neon-pink); border-radius: 10px; }

/* =========================================
   VIDEO DE FONDO Y CAPA OSCURA
   ========================================= */
.video-background {
    position: fixed;
    width: 100vw !important;
    height: 100vh !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    z-index: -2 !important;
    opacity: 0;
    transition: opacity 2s ease-in-out !important; 
}

.video-background.active {
    opacity: 1;
}

.video-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(10, 0, 20, 0.7); 
    z-index: -1; 
}

/* =========================================
   BARRA DE NAVEGACIÓN (CRISTAL PREMIUM)
   ========================================= */
.glass-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 75px;
    background: rgba(10, 0, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 0, 127, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 4px;
    text-shadow: 0 0 15px var(--neon-pink);
}

.nav-logo-img {
    max-height: 45px; 
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.8));
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a:hover {
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

/* =========================================
   CONTENEDOR PRINCIPAL Y LAYOUT DIVIDIDO
   ========================================= */
.container {
    max-width: 1200px; 
    width: 95%;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.content-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px;
    width: 100%;
    align-items: start;
}

/* =========================================
   ENCABEZADO Y LOGO
   ========================================= */
.club-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: logoEntrance 1s ease-out;
}

.main-logo-img {
    max-width: 350px; 
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 0, 127, 0.6));
    transition: transform 0.3s ease;
    margin: 0 auto;
    display: block;
}

.main-logo-img:hover {
    transform: scale(1.05) translateY(-5px);
}

@keyframes logoEntrance {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* =========================================
   TARJETAS GLASSMORPHISM (VIDRIO)
   ========================================= */
.info-panel, .form-container {
    width: 100% !important;
    box-sizing: border-box;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.info-panel::before, .form-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.neon-text-blue, .neon-text-pink {
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
}

.neon-text-blue { color: var(--neon-blue); text-shadow: 0 0 10px rgba(0,240,255,0.4); }
.neon-text-pink { color: var(--neon-pink); text-shadow: 0 0 10px rgba(255,0,127,0.4); }

.rules-list {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.rules-list li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px;}
.rules-list strong { color: var(--text-main); }

/* =========================================
   FORMULARIO E INPUTS MODERNOS
   ========================================= */
.input-group { margin-bottom: 20px; }
.row { display: flex; gap: 20px; }
.half { flex: 1; }

label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 12px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input::placeholder { color: rgba(255, 255, 255, 0.2); }

input:focus {
    outline: none;
    border-color: var(--neon-blue);
    background-color: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

.error-msg {
    color: #ff3366;
    font-size: 0.8rem;
    font-weight: bold;
    display: none;
    margin-top: 8px;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* =========================================
   BOTÓN NEÓN AVANZADO
   ========================================= */
.btn-neon {
    width: 100%;
    padding: 18px;
    margin-top: 15px;
    background: linear-gradient(45deg, var(--neon-pink), #cc0066);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 0, 127, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-neon::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg) translateY(-100%);
    transition: all 0.5s ease;
}

.btn-neon:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px rgba(255, 0, 127, 0.5);
}

.btn-neon:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.btn-neon:disabled {
    background: #2a2a2a;
    color: #555;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   FIRMA PERSONAL (DISEÑO LIMPIO TEMA OSCURO)
   ========================================= */
.signature-container {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
}

.signature-container p {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.name-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.name-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #E1306C;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.name-link:hover {
    color: #E1306C;
}

.name-link:hover::after {
    transform: scaleX(1);
}

/* =========================================
   ADAPTACIÓN PARA CELULARES Y TABLETS
   ========================================= */
@media (max-width: 900px) { 
    .content-layout { 
        grid-template-columns: 1fr !important; 
        gap: 20px; 
    }
    
    .glass-navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 10px;
    }
    
    body { padding-top: 150px; } 
    
    .info-panel, .form-container { padding: 20px; }
    .main-logo-img { max-width: 220px; }
    
    .rules-list, label, input, .neon-text-blue, .neon-text-pink { font-size: 0.85rem !important; }
    h3 { font-size: 1rem !important; }
    .btn-neon { padding: 15px; font-size: 0.9rem; }
    .row { flex-direction: column; gap: 10px; }
}