html:has(body.acceso) {
    height: 100%;
}

body.acceso {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: clamp(10px, 2.4dvh, 28px) 14px;
}

.tarjeta-acceso {
    width: 100%;
    max-width: 440px;
    max-height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    padding: clamp(16px, 3.2dvh, 32px) clamp(20px, 5vw, 30px) clamp(16px, 3dvh, 28px);
    border-radius: 28px;
    background: var(--tarjeta-bg);
    border: 1px solid var(--borde-fuerte);
    box-shadow: var(--sombra), inset 0 1px 0 rgba(255, 255, 255, .08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lado-reloj,
.lado-form {
    min-width: 0;
}

.lado-form {
    display: grid;
    justify-items: stretch;
}

.logo-chip {
    justify-self: center;
    display: inline-flex;
    padding: 5px 14px;
    border-radius: 12px;
    background: var(--logo-fondo);
    margin-bottom: clamp(4px, 1dvh, 10px);
}

.logo-chip img {
    display: block;
    height: clamp(26px, 5dvh, 40px);
    width: auto;
}

.perfora {
    position: relative;
    height: 0;
    margin: clamp(10px, 2dvh, 18px) calc(-1 * clamp(20px, 5vw, 30px)) clamp(10px, 2dvh, 16px);
    border: 0;
    border-top: 2px dashed rgba(var(--ink), .18);
}

.perfora::before,
.perfora::after {
    content: "";
    position: absolute;
    top: -14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lienzo);
    border: 1px solid var(--borde-fuerte);
}

.perfora::before {
    left: -14px;
}

.perfora::after {
    right: -14px;
}

.reloj {
    position: relative;
    width: clamp(78px, 17dvh, 160px);
    height: clamp(78px, 17dvh, 160px);
    margin: 0 auto 4px;
}

.reloj svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.reloj .aro {
    fill: none;
    stroke: rgba(var(--ink), .12);
    stroke-width: 2;
}

.reloj .arco {
    fill: none;
    stroke: url(#gradArco);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 330;
    stroke-dashoffset: 330;
    animation: dibujaArco 1.6s .2s var(--ease) both;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

@keyframes dibujaArco {
    to {
        stroke-dashoffset: 40;
    }
}

.reloj .marca {
    stroke: rgba(var(--ink), .35);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.reloj .marca.grande {
    stroke: var(--arena-txt);
    stroke-width: 2.6;
}

.reloj .aguja {
    stroke-linecap: round;
}

.reloj .aguja-h {
    stroke: rgb(var(--ink));
    stroke-width: 3.4;
}

.reloj .aguja-m {
    stroke: var(--azul-txt);
    stroke-width: 2.6;
}

.reloj .aguja-s {
    stroke: var(--arena-txt);
    stroke-width: 1.4;
}

.reloj .centro {
    fill: var(--arena-txt);
}

.reloj .pulso {
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    border: 2px solid rgba(var(--a), .55);
    animation: pulsa 2.4s ease-out infinite;
    pointer-events: none; will-change: transform;}

.hora-grande {
    margin: clamp(4px, 1.2dvh, 12px) 0 0;
    font: 500 clamp(26px, 5dvh, 38px) var(--f-mono);
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    color: var(--texto);
}

.fecha-linea {
    display: block;
    margin-top: 2px;
    font: 600 12px var(--f-texto);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--arena-txt);
}

.tarjeta-acceso h1 {
    margin: 0 0 2px;
    font-size: clamp(18px, 2.8dvh, 22px);
}

.sub {
    margin: 0 0 clamp(8px, 1.8dvh, 16px);
    font-size: 13.5px;
    color: var(--texto-2);
}

.tarjeta-acceso form {
    display: grid;
    gap: clamp(8px, 1.6dvh, 14px);
    text-align: left;
}

.recordar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--texto-2);
    cursor: pointer;
    user-select: none;
}

.recordar input {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 23px;
    border-radius: 999px;
    border: 1px solid var(--borde-fuerte);
    background: rgba(var(--ink), .1);
    position: relative;
    flex: none;
    transition: background .25s;
    cursor: pointer;
}

.recordar input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--ink-solido, rgb(var(--ink)));
    transition: transform .3s var(--ease);
}

.recordar input:checked {
    background: var(--teal-500);
}

.recordar input:checked::after {
    transform: translateX(17px);
    background: var(--lienzo);
}

.recordar small {
    display: block;
    color: var(--texto-3);
    font-size: 11.5px;
}

#btnMarcar.marcando {
    pointer-events: none;
}

#btnMarcar.marcando::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(var(--deep), .3);
    border-top-color: var(--navy-950);
    animation: gira .7s linear infinite; will-change: transform;}

.badge-app {
    margin: clamp(6px, 1.2dvh, 12px) 0 0;
    min-height: 0;
    font-size: 12px;
    color: var(--azul-txt);
    font-weight: 700;
}

.lado-form .aviso {
    margin-bottom: 10px;
    text-align: left;
    padding: 9px 12px;
    font-size: 13px;
}

@media (max-height: 700px) {
    .sub {
        display: none;
    }

    .recordar small {
        display: none;
    }
}

@media (max-height: 600px) {
    .fecha-linea {
        display: none;
    }

    .campo>label {
        margin-bottom: 3px;
    }

    .tarjeta-acceso .btn.bloque {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (min-width: 860px) and (min-height: 480px) {
    .tarjeta-acceso {
        max-width: 720px;
        grid-template-columns: 1fr 0 1.08fr;
        padding: clamp(16px, 3dvh, 28px) 30px;
        align-items: center;
    }

    .perfora {
        width: 0;
        height: 100%;
        min-height: 260px;
        margin: calc(-1 * clamp(16px, 3dvh, 28px)) 0;
        border-top: 0;
        border-left: 2px dashed rgba(var(--ink), .18);
    }

    .perfora::before,
    .perfora::after {
        left: -14px;
        right: auto;
    }

    .perfora::before {
        top: -14px;
    }

    .perfora::after {
        top: auto;
        bottom: -14px;
    }

    .lado-reloj {
        padding-right: 30px;
    }

    .lado-form {
        padding-left: 30px;
        text-align: center;
    }

    .reloj {
        width: clamp(110px, 25dvh, 180px);
        height: clamp(110px, 25dvh, 180px);
    }

    .hora-grande {
        font-size: clamp(28px, 5dvh, 40px);
    }

    .sub {
        display: block;
    }

    .recordar small {
        display: block;
    }
}

.volver-panel {
    position: fixed; top: 14px; left: 14px; z-index: 50; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 11px;
    border-radius: 999px; background: var(--superficie-2); border: 1px solid var(--borde-fuerte); color: var(--texto); font-weight: 600; font-size: 14px;
    text-decoration: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .15s, color .15s;
    -webkit-tap-highlight-color: transparent;
}
.volver-panel:hover { color: var(--teal-500); border-color: var(--teal-500); }
.volver-panel:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.volver-panel svg { width: 17px; height: 17px; flex: none; }
