/* SICR3P · portada de acceso. Morado y verde sobre fondo claro (la versión oscura está en /root/respaldos/estilo.css-oscuro-*); Montserrat alojada aquí mismo. */
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(fuentes/montserrat-500.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 500; font-style: italic; font-display: swap; src: url(fuentes/montserrat-500i.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(fuentes/montserrat-700.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(fuentes/montserrat-800.woff2) format('woff2'); }
:root { --noche: #F7F4FC; --morado: #7B22D4; --morado-fuerte: #6A1BBF; --verde: #22B522; --texto: #16112B; --tenue: #5A5370; --linea: rgba(22, 17, 43, .22); }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--noche); color: var(--texto); font: 500 16px/1.5 Montserrat, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }

main {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100dvh; padding: clamp(28px, 5vh, 56px) calc(clamp(22px, 5.5vw, 92px) + 44vw) clamp(28px, 5vh, 56px) clamp(22px, 5.5vw, 92px);
  background: radial-gradient(900px 600px at 0% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%), var(--noche);
}
/* La foto del cartel va en un panel redondeado a la derecha. */
main::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); right: clamp(20px, 3vw, 56px); width: 44vw; aspect-ratio: 1068 / 941; max-height: calc(100% - 40px); border-radius: 28px; background: url(fondo.jpg) center / cover no-repeat; box-shadow: 0 24px 60px rgba(60, 20, 110, .28); pointer-events: none; }
.contenido { width: 100%; max-width: 560px; }
.logo { display: block; width: clamp(210px, 24vw, 350px); height: auto; margin-left: -4px; }
h1 { margin: clamp(26px, 6vh, 64px) 0 0; font-size: clamp(36px, 5.2vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--morado); }
h1::after { content: ''; display: block; width: 66px; height: 4px; margin-top: clamp(18px, 3vh, 30px); border-radius: 2px; background: var(--verde); }
.bajada { margin: clamp(14px, 2.4vh, 24px) 0 0; max-width: 15em; font-size: clamp(19px, 2vw, 30px); line-height: 1.3; }

/* Con el formulario abierto, el titular se achica para que todo quepa en la pantalla. */
main.abierto h1 { margin-top: clamp(18px, 3.5vh, 36px); font-size: clamp(28px, 3.3vw, 46px); }
main.abierto h1::after { margin-top: 16px; }
main.abierto .bajada { display: none; }

button { font: inherit; cursor: pointer; }
.llamado { display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(26px, 5vh, 56px); min-height: 60px; padding: 14px 30px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #9A3BF2, var(--morado-fuerte)); color: #fff; font-size: clamp(16px, 1.5vw, 22px); font-weight: 700; text-align: left; box-shadow: 0 10px 28px rgba(123, 34, 212, .35), inset 0 1px 0 rgba(255, 255, 255, .28); transition: filter .15s, transform .15s; }
.llamado span { font-size: 1.5em; line-height: .8; }
.llamado:hover { filter: brightness(1.12); transform: translateY(-1px); }
.llamado[hidden] { display: none; }

#acceso { margin-top: clamp(22px, 4vh, 40px); max-width: 440px; }
form { display: grid; gap: 10px; }
form[hidden] { display: none; }
.fila { display: flex; gap: 10px; }
input::placeholder { color: var(--tenue); letter-spacing: 0; }
input { width: 100%; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid var(--linea); border-radius: 14px; background: #fff; color: var(--texto); font: inherit; }
input[aria-invalid="true"] { border-color: #C0392B; }
#codigo { letter-spacing: .14em; text-transform: uppercase; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
form button[type=submit] { height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #9A3BF2, var(--morado-fuerte)); color: #fff; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 20px rgba(123, 34, 212, .3); transition: filter .15s; }
form button[type=submit]:hover { filter: brightness(1.12); }
form button:disabled { opacity: .6; cursor: progress; }
button.enlace { justify-self: start; padding: 6px 0; border: 0; background: none; color: var(--tenue); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
button.enlace:hover { color: var(--texto); }
.falta { margin: -4px 4px 2px; font-size: 13px; color: #B42318; }
.aviso { margin: 2px 0 0; padding: 10px 14px; border-left: 3px solid #C0392B; border-radius: 8px; background: rgba(192, 57, 43, .1); font-size: 14px; }
.hecho { margin: 0 0 4px; padding: 10px 14px; border-left: 3px solid var(--verde); border-radius: 8px; background: rgba(34, 181, 34, .14); font-size: 14px; }
.nota { margin: 20px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tenue); }
.legal { margin: 6px 0 0; font-size: 12px; color: var(--tenue); opacity: .8; }

.firma { margin: 36px 0 0; padding-left: 22px; border-left: 4px solid var(--verde); font-size: clamp(16px, 1.55vw, 24px); font-style: italic; line-height: 1.2; }

@media (max-width: 980px) {
  main { padding: 0 clamp(22px, 5.5vw, 92px) clamp(28px, 5vh, 56px); }
  main::after { display: none; }
  main::before { content: ''; display: block; aspect-ratio: 1068 / 941; max-height: 46vh; width: 100%; margin-inline: auto; margin-top: clamp(14px, 3vw, 28px); margin-bottom: 26px; border-radius: 22px; background: url(fondo.jpg) center / cover no-repeat; box-shadow: 0 16px 40px rgba(60, 20, 110, .25); }
  .llamado { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .llamado { transition: none; } }
