:root {
    /**
     * @section Design System / Sistema de Diseño
     */

    /* Olympic Style Light Theme / Tema Claro Estilo Olímpico */
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

    /* Professional Sport Colors / Colores Deportivos Profesionales */
    --primary: #0056b3;
    /* Olympic Blue / Azul Olímpico */
    --secondary: #28a745;
    /* Grass Green / Verde Césped */
    --accent: #fd7e14;
    /* Energy Orange / Naranja Energía */
    --danger: #dc3545;
    /* Competition Red / Rojo Competencia */
    --dark: #343a40;
    /* Dark Gray / Gris Oscuro */
    --light: #f8f9fa;
    /* Smoke White / Blanco Humo */

    /* UI Variables / Variables de Interfaz */
    --text-main: #343a40;
    --text-muted: #6c757d;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.05);

    --card-radius: 12px;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 86, 179, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(40, 167, 69, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Modern Clean Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    color: var(--text-main);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    /* Menos redondo, más técnico */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: #004494;
    /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: white;
    border: 1px solid #dee2e6;
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: #e9ecef;
    color: var(--dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Auth & Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dimmer overlay */
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: var(--card-radius);
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.login-options {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: var(--transition);
}

.login-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* Biometric Simulation */
.scan-line {
    width: 100%;
    height: 2px;
    background: var(--primary);
    position: absolute;
    top: 0;
    animation: scan 2s infinite;
    display: none;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Oscurecer un poco la imagen de fondo */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.hero-box {
    background: rgba(255, 255, 255, 0.95);
    /* Caja blanca casi opaca */
    padding: 3rem;
    border-radius: var(--card-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    max-width: 700px;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), #003366);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Inputs */
input,
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #333333 !important;
    /* Texto gris oscuro forzado para visibilidad */
    font-size: 1rem;
    transition: var(--transition);
}

input::placeholder {
    color: #aaaaaa;
    /* Color del placeholder visible pero sutil */
    opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    color: #000000 !important;
    /* Texto negro al escribir */
}