:root {
color-scheme: light;
--invenzi-naranja: #ff8400;
--invenzi-naranja-fuerte: #f48000;
--invenzi-naranja-suave: #fab77a;
--invenzi-naranja-tenue: #fff3e5;
--fondo: #f1f1f1;
--superficie: #ffffff;
--superficie-alterna: #e6e6e6;
--borde: #dbdbdb;
--borde-fuerte: #cdcccb;
--texto: #000000;
--texto-suave: #666666;
--texto-tenue: #bdbdbd;
--deshabilitado: #a9a8a6;
--exito-fondo: #e8f5ec;
--exito-borde: #b9dcc6;
--exito-texto: #1b6b3a;
--error-fondo: #fbeaea;
--error-borde: #e6bcbc;
--error-texto: #8b0000;
--espera-fondo: var(--invenzi-naranja-tenue);
--espera-borde: var(--invenzi-naranja-suave);
--espera-texto: #8a4600;
--radio: 2px;
--sombra: 0 8px 24px rgba(0, 0, 0, 0.10);
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Verdana, sans-serif;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
padding: 16px;
background: var(--fondo);
color: var(--texto);
}
main {
width: min(100%, 460px);
padding: 28px;
border: 1px solid var(--borde);
border-radius: var(--radio);
background: var(--superficie);
box-shadow: var(--sombra);
}
h1 {
margin: 0 0 6px;
font-size: clamp(1.4rem, 4.5vw, 1.85rem);
font-weight: 700;
color: var(--texto);
}
.instruccion {
margin: 0 0 22px;
color: var(--texto-suave);
line-height: 1.5;
}
p {
line-height: 1.5;
}
a {
color: var(--invenzi-naranja-fuerte);
font-weight: 600;
}
a:hover {
color: var(--invenzi-naranja);
}
label {
display: block;
margin: 0 0 6px;
color: var(--texto-suave);
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
input[type="text"],
input[type="password"],
input[type="number"],
select {
width: 100%;
min-height: 38px;
margin: 0 0 16px;
padding: 7px 10px;
border: 1px solid var(--borde);
border-radius: var(--radio);
background: var(--fondo);
color: var(--texto);
font: inherit;
font-size: 1rem;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
background: var(--superficie);
}
input:focus-visible,
select:focus-visible {
border-color: var(--invenzi-naranja);
outline: 1px solid var(--invenzi-naranja);
outline-offset: -1px;
}
button:focus-visible,
a:focus-visible {
outline: 2px solid var(--invenzi-naranja);
outline-offset: 2px;
}
button {
width: 100%;
min-height: 40px;
padding: 12px 16px;
border: 1px solid transparent;
border-radius: var(--radio);
background: var(--invenzi-naranja);
color: var(--superficie);
font: inherit;
font-size: 0.95rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
cursor: pointer;
}
button:hover:not(:disabled) {
background: var(--invenzi-naranja-fuerte);
}
button:disabled {
background: var(--deshabilitado);
cursor: default;
}
form button[type="submit"] {
display: block;
width: auto;
min-width: 140px;
margin-left: auto;
padding: 10px 22px;
}
.cerrar-sesion,
#cerrar-sesion,
.secundario {
margin-top: 12px;
border-color: var(--borde-fuerte);
background: var(--superficie);
color: var(--texto-suave);
font-weight: 600;
}
.cerrar-sesion:hover:not(:disabled),
#cerrar-sesion:hover:not(:disabled),
.secundario:hover:not(:disabled) {
background: var(--superficie-alterna);
color: var(--texto);
}
.cerrar-sesion:disabled,
#cerrar-sesion:disabled,
.secundario:disabled {
background: var(--superficie);
color: var(--texto-tenue);
}
.password-row {
display: flex;
gap: 8px;
align-items: stretch;
margin: 0 0 16px;
}
.password-row input {
flex: 1;
min-width: 0;
margin: 0;
}
.toggle-password {
width: auto;
min-height: 38px;
margin: 0;
padding: 0 14px;
border-color: var(--borde-fuerte);
background: var(--superficie);
color: var(--texto-suave);
font-weight: 600;
white-space: nowrap;
}
.toggle-password:hover:not(:disabled) {
background: var(--superficie-alterna);
color: var(--texto);
}
.espera,
.autorizado,
.no-autorizado,
.no-autenticado {
margin: 18px 0 0;
padding: 14px 16px;
border: 1px solid transparent;
border-radius: var(--radio);
font-size: 1.15rem;
font-weight: 800;
letter-spacing: 0.03em;
text-align: center;
}
.espera {
background: var(--espera-fondo);
border-color: var(--espera-borde);
color: var(--espera-texto);
}
.autorizado {
background: var(--exito-fondo);
border-color: var(--exito-borde);
color: var(--exito-texto);
}
.no-autorizado {
background: var(--error-fondo);
border-color: var(--error-borde);
color: var(--error-texto);
}
.no-autenticado {
background: var(--superficie-alterna);
border-color: var(--borde-fuerte);
color: var(--texto-suave);
}
#nombre {
margin: 10px 0 0;
color: var(--texto-suave);
text-align: center;
}
#mensaje {
min-height: 24px;
margin: 16px 0 0;
text-align: center;
}
#mensaje:not(:empty) {
padding: 12px 14px;
border: 1px solid var(--error-borde);
border-radius: var(--radio);
background: var(--error-fondo);
color: var(--error-texto);
font-weight: 700;
}
.mensaje-error {
margin: 16px 0 0;
padding: 12px 14px;
border: 1px solid var(--error-borde);
border-radius: var(--radio);
background: var(--error-fondo);
color: var(--error-texto);
font-weight: 600;
}
.mensaje-ok {
margin: 16px 0 0;
padding: 12px 14px;
border: 1px solid var(--exito-borde);
border-radius: var(--radio);
background: var(--exito-fondo);
color: var(--exito-texto);
font-weight: 600;
}
video {
width: 100%;
margin: 0 0 16px;
border: 1px solid var(--borde-fuerte);
border-radius: var(--radio);
background: #000000;
}
.dato {
color: var(--texto-suave);
}
.pie {
margin: 20px 0 0;
color: var(--texto-tenue);
font-size: 0.85rem;
text-align: center;
}
[hidden] {
display: none !important;
}
@media (max-width: 480px) {
body {
place-items: start center;
padding: 12px 8px;
}
main {
width: 100%;
padding: 22px 16px;
}
input[type="text"],
input[type="password"],
input[type="number"],
select,
.toggle-password {
min-height: 48px;
padding: 11px 12px;
}
button {
min-height: 52px;
}
form button[type="submit"] {
width: 100%;
}
}
.marco {
display: contents;
}
.solo-marco {
display: block;
}
.chk-windows {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0 0 10px;
}
.chk-windows img {
width: 28px;
height: 28px;
}
.btn-clave {
display: block;
width: auto;
min-height: 0;
margin: 10px 0 0 auto;
padding: 0;
border: 0;
background: transparent;
text-align: right;
}
.btn-clave:hover:not(:disabled) {
background: transparent;
}
.btn-clave img {
display: inline-block;
height: 30px;
}
.idioma {
margin: 16px 0 0;
text-align: center;
color: var(--texto);
font-size: 0.9rem;
}
.idioma .flecha {
color: var(--texto-tenue);
font-size: 0.7rem;
}
.oblig {
display: none;
}
form.cambio-abierto .oblig {
display: inline;
}
#cambio {
margin: 16px 0 0;
}
.confirmar-row {
display: flex;
gap: 10px;
align-items: flex-start;
}
.confirmar-row input {
flex: 1;
min-width: 0;
}
#confirmar-cambio {
flex: 0 0 auto;
width: 48px;
height: 48px;
min-height: 0;
padding: 0;
border: 0;
border-radius: 50%;
}
#confirmar-cambio .tilde {
display: block;
width: 12px;
height: 22px;
margin: -4px auto 0;
border: solid var(--superficie);
border-width: 0 4px 4px 0;
transform: rotate(45deg);
}
.velo-espera {
position: fixed;
inset: 0;
z-index: 20;
display: grid;
place-items: center;
background: rgba(0, 0, 0, 0.45);
}
.velo-espera[hidden] {
display: none;
}
.rueda {
width: 44px;
height: 44px;
border: 5px solid var(--superficie);
border-top-color: var(--invenzi-naranja);
border-radius: 50%;
animation: girar 0.9s linear infinite;
}
@keyframes girar {
to {
transform: rotate(360deg);
}
}
.aviso {
width: min(440px, 90vw);
margin: auto;
padding: 24px 24px 16px;
border: 0;
border-radius: var(--radio);
background: var(--superficie);
box-shadow: var(--sombra);
text-align: center;
}
.aviso::backdrop {
background: rgba(0, 0, 0, 0.5);
}
.aviso-cuerpo {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin: 0 0 14px;
color: var(--texto-suave);
font-size: 0.95rem;
}
.triangulo {
flex: 0 0 auto;
width: 34px;
height: 30px;
clip-path: polygon(50% 0, 100% 100%, 0 100%);
background: var(--invenzi-naranja);
color: var(--superficie);
font-weight: 800;
line-height: 42px;
text-align: center;
}
#aviso-ok {
width: auto;
min-width: 64px;
min-height: 0;
margin: 0 auto;
padding: 6px 18px;
border-radius: 3px;
}
@media (min-width: 900px) {
body.acceso {
position: relative;
padding: 0;
height: 100vh;
overflow: hidden;
background-color: var(--fondo);
}
body.acceso .marco {
display: block;
position: absolute;
left: 50%;
top: 0;
z-index: 1;
width: 1280px;
height: 100%;
margin: 0 0 0 -640px;
}
body.acceso .marco main {
position: absolute;
left: calc(50% - 303px);
top: calc(50% - 384px);
width: 820px;
height: 636px;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
}
body.acceso .marco main::before {
content: "";
position: absolute;
left: 116px;
top: 171px;
width: 374px;
height: 427px;
background: var(--superficie);
border: 1px solid var(--borde);
}
body.acceso .marco form {
position: static;
}
body.acceso .marco h1,
body.acceso .marco .instruccion {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
body.acceso .marco label {
position: absolute;
margin: 0;
font-size: 11px;
letter-spacing: 0.024em;
color: var(--texto-suave);
}
body.acceso .marco label[for="usuario"] { left: 212px; top: 330px; }
body.acceso .marco label[for="contrasena"] { left: 212px; top: 391px; }
body.acceso .marco input[type="text"],
body.acceso .marco .password-row input {
width: 199px;
min-height: 0;
height: 28px;
margin: 0;
padding: 5px;
font-size: 13px;
}
body.acceso .marco #usuario {
position: absolute;
left: 212px;
top: 348px;
}
body.acceso .marco .password-row {
position: absolute;
left: 212px;
top: 409px;
margin: 0;
display: block;
}
body.acceso .marco .toggle-password {
display: none;
}
body.acceso .marco form button[type="submit"] {
position: absolute;
left: 304px;
top: 453px;
min-width: 100px;
min-height: 0;
margin: 0;
padding: 8px 12px;
font-size: 11px;
}
body.acceso .marco #cambio {
display: contents;
}
body.acceso .marco #cambio[hidden] {
display: none;
}
body.acceso .marco label[for="nueva"] { left: 212px; top: 491px; }
body.acceso .marco label[for="confirmar"] { left: 212px; top: 545px; }
body.acceso .marco #nueva,
body.acceso .marco .confirmar-row input {
width: 199px;
min-height: 0;
height: 28px;
margin: 0;
padding: 5px;
font-size: 13px;
}
body.acceso .marco #nueva {
position: absolute;
left: 212px;
top: 509px;
}
body.acceso .marco .confirmar-row {
display: contents;
}
body.acceso .marco #confirmar {
position: absolute;
left: 212px;
top: 563px;
}
body.acceso .marco #confirmar-cambio {
position: absolute;
left: 422px;
top: 559px;
width: 32px;
height: 32px;
}
body.acceso .marco #confirmar-cambio .tilde {
width: 8px;
height: 15px;
margin: -3px auto 0;
border-width: 0 3px 3px 0;
}
body.acceso .solo-marco {
display: block;
position: absolute;
margin: 0;
}
body.acceso .chk-windows {
left: 153px;
top: 350px;
width: 60px;
height: 30px;
}
body.acceso .chk-windows img {
position: absolute;
left: 0;
top: 0;
width: 28px;
height: 28px;
}
body.acceso .chk-windows input {
position: absolute;
left: 35px;
top: 7px;
}
body.acceso .btn-clave {
left: 420px;
top: 410px;
}
body.acceso .btn-clave img {
display: block;
height: 30px;
}
body.acceso .idioma {
left: 382px;
top: 545px;
font-size: 13px;
color: var(--texto);
}
body.acceso .idioma .flecha {
color: var(--texto-tenue);
font-size: 10px;
}
}
:root {
--aviso-fondo: #fdf3d8;
--aviso-texto: #7a5200;
--radio-tactil: 14px;
}
body.paciente main {
width: min(100%, 560px);
padding: 24px;
border-radius: 20px;
text-align: center;
}
body.paciente h1 {
margin: 0 0 8px;
font-size: clamp(1.5rem, 5vw, 2rem);
}
body.paciente .instruccion {
margin: 0 0 16px;
text-align: center;
}
body.paciente select,
body.paciente input[type="text"] {
min-height: 58px;
padding: 14px 16px;
border: 1px solid var(--borde-fuerte);
border-radius: var(--radio-tactil);
font-size: 1.1rem;
font-weight: 650;
}
body.paciente select {
margin: 0 0 12px;
background: var(--superficie);
}
body.paciente input[type="text"] {
margin: 0;
font-size: 1.2rem;
text-align: center;
letter-spacing: 0.04em;
}
body.paciente video {
display: block;
width: 100%;
max-width: 340px;
aspect-ratio: 3 / 4;
max-height: 420px;
margin: 18px auto;
border: 0;
border-radius: 18px;
object-fit: cover;
transform: scaleX(-1);
}
body.paciente button {
min-height: 58px;
border: 0;
border-radius: var(--radio-tactil);
padding: 14px 20px;
margin: 10px 0 0;
font-size: 1.15rem;
font-weight: 750;
letter-spacing: normal;
text-transform: none;
}
body.paciente button:disabled {
cursor: wait;
}
body.paciente .secundario {
background: transparent;
border: 1px solid var(--borde-fuerte);
font-size: 0.95rem;
font-weight: 600;
}
body.paciente #candidatos {
list-style: none;
margin: 16px 0 0;
padding: 0;
text-align: left;
}
body.paciente #candidatos button {
text-align: left;
background: var(--fondo);
color: var(--texto);
border: 1px solid var(--borde);
font-size: 1.05rem;
font-weight: 650;
}
body.paciente #candidatos button:hover:not(:disabled) {
background: var(--superficie-alterna);
}
body.paciente #paciente {
margin: 0 0 4px;
padding: 12px;
border: 1px solid var(--invenzi-naranja-suave);
border-radius: 12px;
background: var(--invenzi-naranja-tenue);
color: var(--espera-texto);
font-size: 1.15rem;
font-weight: 750;
}
body.paciente #resultado {
min-height: 52px;
margin: 20px 0 0;
padding: 12px;
border: 0;
border-radius: 12px;
font-size: clamp(1.2rem, 4.5vw, 1.6rem);
font-weight: 800;
letter-spacing: 0.02em;
text-align: center;
}
body.paciente #detalle {
min-height: 24px;
margin: 8px 0 0;
color: var(--texto-suave);
font-size: 1rem;
font-weight: 600;
text-align: center;
}
body.paciente .identificado {
background: var(--exito-fondo);
color: var(--exito-texto);
}
body.paciente .no-identificado {
background: var(--error-fondo);
color: var(--error-texto);
}
body.paciente .no-notificado {
background: var(--aviso-fondo);
color: var(--aviso-texto);
}
