        /* ── RESET Y BASE ── */
        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: #f8f9fa8f;
            color: #1D3557;
            font-family: 'Outfit', sans-serif;
            font-size: 1rem;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background-image: url('https://iemariacano.edu.co/wp-content/uploads/2020/02/fondo.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            position: relative;
        }

        /* Capa blanca muy translúcida sobre la imagen de fondo */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.301);
            z-index: 0;
        }

        /* ── TOKENS DE DISEÑO ── */
        :root {
            /* Fondos */
            --bg: #f8f9fa00;
            --surface: #ffffffb3;
            --surface2: #f0f2f8;
            --border: rgba(0, 0, 0, 0.08);
            --dark-bg: #1a1a1b1c;

            /* Texto */
            --text: #1a1a1a;
            --muted: #5b677b;

            /* Acentos – paleta sin azules */
            --accent: #E63946;
            /* Rojo vibrante principal */
            --accent-dark: #b91c1c;
            --accent-light: #fef0f0;

            /* Tonos complementarios (negros/grises) */
            --accent2: #2b2b2b;
            /* Gris muy oscuro, reemplaza Navy */
            --accent3: #6c6c6c;
            /* Gris medio, reemplaza Steel Blue */
            --accent4: #7b2cbf;
            /* Púrpura (no se usa actualmente) */
            --accent5: #d4a11e;
            /* Ámbar (no se usa actualmente) */

            /* Espaciado */
            --radius: 16px;
            --radius-sm: 12px;
            --gap: 24px;

            /* Sombras */
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 16px 32px rgba(230, 57, 70, 0.15);
            --shadow-navy: 0 12px 28px rgba(0, 0, 0, 0.2);
        }

        /* ── TIPOGRAFÍA ── */
        h1,
        h2,
        h3 {
            font-family: 'DM Serif Display', serif;
            font-weight: 400;
            line-height: 1.2;
        }

        /* ── NAV STICKY ── */
        .nav {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            padding: 0.75rem 0;
            position: relative;
            z-index: 10;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--gap);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .nav-logo-img {
            height: 42px;
            width: auto;
            border-radius: 8px;
        }

        .nav-title {
            font-family: 'DM Serif Display', serif;
            font-size: 1.2rem;
            color: var(--accent2);
            font-weight: 500;
            letter-spacing: -0.01em;
        }

        .nav-list {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-list a {
            color: var(--text);
            text-decoration: none;
            border-bottom: 2px solid transparent;
            padding-bottom: 0.25rem;
            transition: all 0.2s ease;
            font-weight: 500;
            font-size: 0.95rem;
        }

        .nav-list a:hover {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }

        .nav-list a.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
            font-weight: 600;
        }

        /* ── LOGIN SECTION ── */
        .login-section {
            animation: fadeUp 0.5s ease-out;
            position: relative;
            z-index: 5;
            max-width: 540px;
            margin: 3rem auto;
            padding: 0 var(--gap);
        }

        .login-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 2.5rem;
            box-shadow: var(--shadow-lg);
            transition: all 0.3s ease;
        }

        .login-card:hover {
            box-shadow: var(--shadow-hover);
        }

        .login-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .login-header .logo {
            height: 40px;
            width: auto;
            margin-bottom: 1rem;
        }

        .login-header h1 {
            font-size: 1.75rem;
            color: var(--text);
            margin-bottom: 0.25rem;
        }

        .login-header h1 span {
            color: var(--accent);
        }

        .login-header p {
            color: var(--muted);
            font-size: 0.95rem;
        }

        /* Métodos de acceso - Tabs */
        .auth-tabs {
            display: flex;
            gap: 0.25rem;
            margin-bottom: 2rem;
            border-bottom: 2px solid var(--border);
        }

        .auth-tab {
            flex: 1;
            padding: 0.9rem 1rem;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            font-family: 'Outfit', sans-serif;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--muted);
            cursor: pointer;
            transition: all 0.25s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            white-space: nowrap;
        }

        .auth-tab:hover {
            color: var(--accent);
            background: var(--accent-light);
            border-radius: 12px 12px 0 0;
        }

        .auth-tab.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
            background: var(--accent-light);
            border-radius: 12px 12px 0 0;
        }

        .auth-tab .tab-icon {
            font-size: 1rem;
            font-weight: 400;
        }

        /* Paneles de contenido */
        .auth-panel {
            display: none;
            animation: fadeUp 0.35s ease-out;
        }

        .auth-panel.active {
            display: block;
        }

        /* Formulario clásico */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--text);
            font-size: 0.875rem;
        }

        .form-group input {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            font-family: 'Outfit', sans-serif;
            font-size: 1rem;
            transition: all 0.2s ease;
            background: #ffffff;
            color: var(--text);
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
        }

        .form-group input:hover {
            border-color: var(--accent);
        }

        /* Opciones del formulario */
        .form-options {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .checkbox {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
        }

        .checkbox input {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--accent);
        }

        .checkbox label {
            margin-bottom: 0;
            cursor: pointer;
            font-size: 0.875rem;
            color: var(--text);
        }

        /* Botón principal ROJO */
        .btn-login {
            width: 100%;
            padding: 0.875rem;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-family: 'Outfit', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-login:hover {
            background: var(--accent-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow-hover);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        /* Botón secundario – tono oscuro (ex Navy) */
        .btn-navy {
            width: 100%;
            padding: 0.875rem;
            background: var(--accent2);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-family: 'Outfit', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .btn-navy:hover {
            background: #1f1f1f;
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
        }

        /* Botón terciario – gris medio (ex Steel Blue) */
        .btn-steel {
            width: 100%;
            padding: 0.875rem;
            background: var(--accent3);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-family: 'Outfit', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .btn-steel:hover {
            background: #5a5a5a;
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
        }

        /* Panel biométrico */
        .biometric-panel {
            text-align: center;
            padding: 2rem 1rem;
        }

        .biometric-icon {
            font-size: 4rem;
            margin-bottom: 1.25rem;
            display: block;
            animation: pulse 2s ease-in-out infinite;
            color: var(--accent2);
        }

        .biometric-panel h3 {
            font-family: 'DM Serif Display', serif;
            font-size: 1.4rem;
            color: var(--text);
            margin-bottom: 0.5rem;
        }

        .biometric-panel p {
            color: var(--muted);
            margin-bottom: 1.75rem;
            font-size: 0.95rem;
        }

        @keyframes pulse {
            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.08);
                opacity: 0.8;
            }
        }

        /* Mensajes de estado */
        .error-message {
            background: var(--accent-light);
            border-left: 3px solid var(--accent);
            padding: 0.875rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            color: var(--accent-dark);
            font-size: 0.875rem;
            display: none;
        }

        .error-message.show {
            display: block;
            animation: fadeUp 0.3s ease-out;
        }

        .success-message {
            background: #e6f7ee;
            border-left: 3px solid #2d6a4f;
            padding: 0.875rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            color: #2d6a4f;
            font-size: 0.875rem;
            display: none;
        }

        .success-message.show {
            display: block;
            animation: fadeUp 0.3s ease-out;
        }

        /* Registro */
        .register-link {
            text-align: center;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
            color: var(--muted);
        }

        .register-link a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
        }

        .register-link a:hover {
            text-decoration: underline;
            color: var(--accent-dark);
        }

        /* ── FOOTER ── */
        .footer {
            border-top: 1px solid var(--border);
            font-family: 'DM Mono', monospace;
            font-size: 0.75rem;
            text-align: center;
            color: var(--muted);
            background: var(--surface);
            padding: 2rem;
            margin-top: auto;
            position: relative;
            z-index: 5;
        }

        .footer a {
            color: var(--accent);
            text-decoration: none;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        .footer .footer-escudo {
            width: 40px;
            height: auto;
            margin-bottom: 0.5rem;
            opacity: 0.8;
        }

        /* ── RESPONSIVIDAD ── */
        @media (max-width: 900px) {
            :root {
                --gap: 16px;
            }

            .login-section {
                max-width: 100%;
                margin: 1rem auto;
            }

            .login-card {
                padding: 1.5rem;
            }

            .auth-tabs {
                flex-wrap: wrap;
                gap: 0.25rem;
            }

            .auth-tab {
                font-size: 0.8rem;
                padding: 0.7rem 0.5rem;
                flex: 1 1 auto;
            }

            .auth-tab .tab-icon {
                font-size: 0.9rem;
            }

            .nav-container {
                flex-direction: column;
                gap: 0.75rem;
            }

            .nav-list {
                gap: 1.25rem;
                flex-wrap: wrap;
                justify-content: center;
            }

            .nav-brand {
                flex-wrap: wrap;
                justify-content: center;
                text-align: center;
            }

            .biometric-icon {
                font-size: 3rem;
            }
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 1.25rem;
            }

            .auth-tab {
                font-size: 0.7rem;
                padding: 0.6rem 0.4rem;
                gap: 0.3rem;
            }

            .auth-tab .tab-icon {
                font-size: 0.8rem;
            }

            .login-header h1 {
                font-size: 1.4rem;
            }
        }

        /* ── ANIMACIONES ── */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-section {
            animation: fadeUp 0.5s ease-out;
        }

        .nav-list a {
            transition: all 0.2s ease;
        }

        /* ── LEGIBILIDAD ── */
        .text-accent {
            color: var(--accent);
        }