        :root {
            --naranja: #CCC;
            /* puedes ajustar */
            --azul: #077600;
            --azulete: #89b6e6;
            --verdeCRA: #007a5e;
        }

        html,
        body {
            height: 100%;
            font-size: 22px;
        }


        body {
            margin: 0;
            font-family: 'Kanit', sans-serif;
            font-weight: 500;
            color: var(--azul);
            background: #FFF;
            background-color: var(--verdeCRA);
            /*background-image: url(./images/fondo.jpg);*/
            /* ajusta la ruta si es necesario */
            background-size: cover;
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-position: top center;
        }

        .pantalla-inicial {
            position: fixed;
            inset: 0;
            z-index: 8000;
            background: #007953;
            display: flex;
            align-items: start;
            justify-content: center;
            text-align: center;
            padding-top: 15vh;
            cursor: pointer;
        }

        .pantalla-inicial-contenido {
            padding: 20px;
            max-width: 90vw;
        }

        .pantalla-inicial-logo {
            width:90vw;
            height: auto;
            margin: 0 auto 50px;
            display: block;
        }

    label, input, p, h1, h2, h3, h4, h5, h6, button {
            font-family: "Kanit", sans-serif;
        }

        .pantalla-inicial-titulo {
            margin: 0;
            color: #1f7a4f;
            font-size: clamp(2.8rem, 7vw, 5.2rem);
            line-height: 1.05;
            font-weight: 600;
        }

        body.modo-inicial .container,
        body.modo-inicial #btn-PantallaCompleta {
            visibility: hidden;
        }

        body.modo-formulario #pantalla-inicial {
            display: none;
        }

        /* ===== Grid simple tipo container/row/col (sin Bootstrap) ===== */
        .container {
            width: min(1100px, 92vw);
            margin-inline: auto;
        }

        .row {
            display: flex;
            flex-wrap: wrap;
            margin: -12px;
        }

        .col {
            padding: 12px;
            flex: 1 1 0;
        }

        .col-12 {
            flex-basis: 100%;
        }

        .center {
            text-align: center;
        }

        /* ===== Animación de fondo (círculos) ===== */
        .mdl,
        .circles,
        .circle {
            position: absolute;
            z-index: 0;
            pointer-events: none;
        }

        .mdl {
            position: fixed;
            inset: 0;
            display: grid;
            place-items: center;
        }


        @keyframes float {
            to {
                transform: translate(12px, -12px) scale(1.04);
            }
        }


        /* ===== Tarjeta “cuadro” con borde animado ===== */
        @property --angle {
            syntax: "<angle>";
            inherits: false;
            initial-value: 0deg;
        }

        .cuadro {
            --b: 3px;
            --r: 20px;
            --speed: 10s;
            position: relative;
            width: auto;
            max-width: 900px;
            margin: 0 auto 24px;
            padding: 28px;
            border-radius: var(--r);
            border: var(--b) solid transparent;
            background:
                linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)) padding-box,
                conic-gradient(from var(--angle), var(--verdeCRA), #FFCA00, #FFFFFF, var(--verdeCRA)) border-box;
            backdrop-filter: blur(4px);
            box-shadow: 0 0 .6rem rgba(255, 196, 0, .25), 0 0 1.2rem rgba(167, 213, 0, .2), 0 0 80px rgba(0, 0, 0, .25);
            animation: giro var(--speed) linear infinite;
        }

        @keyframes giro {
            to {
                --angle: 1turn;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .cuadro {
                animation: none;
            }
        }

        /* ===== Botones ===== */
        button {
            cursor: pointer;
            border: 0;
            border-radius: 10px;
            padding: 12px 18px;
            font-weight: 600;
        }

        .btn {
            background: var(--azul);
            color: #fff;
        }

        .btn:disabled {
            opacity: .5;
            cursor: not-allowed;
        }

        .btn:hover {
            filter: brightness(1.05);
        }

        /* ===== Bloques del test ===== */
        .q-card {
            border: 1px solid #e6e8ee;
            border-radius: 12px;
            padding: 18px;
            margin-top: 12px;
            background: #fff;
        }

        .op {
            display: flex;
            gap: 10px;
            align-items: center;
            margin: 10px 0;
        }

        .footer {
            margin-top: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .pill {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 999px;
            background: #eff1f7;
            font-size: 1rem;
            color: #555;
        }

        .timer {
            font-variant-numeric: tabular-nums;
            font-weight: 700;
        }

        /* ===== Leaderboard ===== */
        .leader {
            margin-top: 18px;
            text-align: left;
        }

        .lead-table {
            width: 100%;
            border-collapse: collapse;
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
        }

        .lead-table th,
        .lead-table td {
            padding: 10px;
            border-bottom: 1px solid #eee;
            text-align: center;
        }

        .lead-table thead th {
            font-size: 1rem;
            color: #555;
            background: #f8f9fb;
        }

        .rank {
            width: 48px;
        }

        /* ===== Logo ===== */
        .logo {
            max-width: 260px;
            height: auto;
        }

        /* ===== Pantalla completa ===== */
        #btn-PantallaCompleta {
            position: fixed;
            top: 14px;
            left: 14px;
            z-index: 999;
        }

        :fullscreen .wrap {
            max-width: none;
        }

        html:fullscreen,
        body:fullscreen {
            background: #fff;
        }

        html:fullscreen,
        body:fullscreen,
        :fullscreen * {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }

        .logo {
            max-width: 60%;
            height: auto;
            padding-top: 5% !important;
        }

        #email {
            width: 100%;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid #dfe3eb;
            background: #fff;
            font-size: 1rem;
            font-family: 'Kanit', sans-serif;
        }


        /* ===== teclado ===== */
        .teclado-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            pointer-events: none;
            /* el overlay no bloquea toda la pantalla */
        }

        .teclado {
            position: fixed;
            left: 0;
            top: 0;
            width: min(720px, calc(100vw - 24px));
            background: #f2f5f9;
            border-radius: 18px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
            padding: 14px;
            box-sizing: border-box;
            pointer-events: auto;
            display: none;
        }

        .teclado-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .teclado-titulo {
            font-weight: 700;
            color: #234;
        }

        .teclado-rows {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .teclado-row {
            display: grid;
            grid-template-columns: repeat(10, 1fr);
            gap: 8px;
        }

        .tecla {
            appearance: none;
            border: 1px solid #cfd8e3;
            background: #fff;
            color: #234;
            border-radius: 12px;
            min-height: 52px;
            font-size: 1rem;
            font-family: inherit;
            font-weight: 600;
            cursor: pointer;
            transition: .15s ease;
        }

        .tecla:hover {
            background: #eef4fb;
        }

        .tecla:active {
            transform: scale(.98);
        }

        .tecla-ancha {
            grid-column: span 2;
        }

        .tecla-space {
            grid-column: span 3;
        }

        .tecla-cerrar {
            min-height: 42px;
            padding: 0 14px;
        }

        .campo input.keyboard-open {
            border-color: #234;
            box-shadow: 0 0 0 3px rgba(35, 52, 68, 0.12);
        }

        @media (max-width: 768px) {
            .teclado {
                width: calc(100vw - 16px);
                padding: 10px;
                border-radius: 14px;
            }

            .teclado-row {
                gap: 6px;
            }

            .tecla {
                min-height: 44px;
                font-size: .92rem;
                border-radius: 10px;
            }
        }

        /* ======== fin teclado ======== */