@font-face{font-family:Nunito;src:url(/assets/nunito-latin-wght-normal.woff2) format('woff2');font-weight:200 1000;font-display:swap}
@font-face{font-family:'DM Sans';src:url(/assets/dm-sans-latin-wght-normal.woff2) format('woff2');font-weight:100 1000;font-display:swap}
:root{font-family:'DM Sans',sans-serif;color:#302a44;background:#fbfaf8;--purple:#6750a4;--muted:#665f72}
*{box-sizing:border-box}
body{margin:0;min-height:100svh;display:flex;flex-direction:column}
.wrap{width:min(1120px,calc(100% - 80px));margin-inline:auto}
header{background:#fff;border-bottom:1px solid #e8e5e9}
.masthead,.brand,.portal,.footer,.card-title,.event,.control,.stepper,.count-row,.primary,.form-icon{display:flex;align-items:center}
.masthead{min-height:82px;justify-content:space-between}
.brand{font:850 1.55rem Nunito,sans-serif;letter-spacing:-.055em;gap:10px}
.brand b{color:var(--purple);margin-left:-5px}
.portal{gap:9px;color:#655d73;font-size:.91rem;font-weight:550}
i[data-icon]{display:inline-flex;flex:none}
i svg{width:20px;height:20px}
main.wrap{flex:1;display:grid;grid-template-columns:1.04fr 1fr;gap:30px;align-content:center;padding-block:48px}
.intro,.card{border-radius:27px;overflow:hidden}
.intro{background:#eae5f7;display:flex;flex-direction:column;position:relative}
.intro-text{padding:38px 38px 0;position:relative;z-index:1}
.event{width:fit-content;background:#fff9;border:1px solid #fff9;border-radius:30px;padding:5px 12px 5px 8px;gap:7px;font-size:.82rem;font-weight:700;color:#51476b}
.sun{color:#bd7915;line-height:1;font-size:1.45rem}
h1,h2{font-family:Nunito,sans-serif;margin:0}
h1{font-size:clamp(3.3rem,5vw,4.6rem);font-weight:900;line-height:.99;letter-spacing:-.065em;margin:22px 0 15px}
h1 em{font-style:normal;color:#7154a6}
.intro-text p{font-size:1.04rem;line-height:1.5;max-width:360px;margin:0;color:#544a65}
.scene{position:relative;flex:1;min-height:240px;margin-top:8px;isolation:isolate}
.scene img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:50% 61%}
.scene::after{content:'';position:absolute;inset:0;background:linear-gradient(#eae5f7,transparent 26%);pointer-events:none}
.card{background:#fff;border:1px solid #e1dce6;padding:37px 36px;box-shadow:0 5px 20px #35264508}
.card-title{gap:13px;padding-bottom:25px;border-bottom:1px solid #eae6ed}
.form-icon,.success-mark{background:#eee8fa;color:var(--purple);justify-content:center;width:44px;height:44px;border-radius:14px;flex:none}
.form-icon svg{width:23px;height:23px}
h2{font-size:clamp(1.45rem,2.2vw,1.85rem);line-height:1.15;font-weight:850;letter-spacing:-.047em}
.field{margin-top:24px}
label{display:block;font-size:.96rem;font-weight:700;margin-bottom:9px}
input,select,button{font:inherit}
.control{position:relative;color:#847a92}
.control i{position:absolute;left:15px;pointer-events:none}
.control i:last-child{left:auto;right:14px}
.control select,.control input{width:100%;padding:0 42px;height:49px;border:1px solid #cfc9d6;border-radius:11px;background:white;color:#302a44}
select{appearance:none}
select:invalid,input::placeholder{color:#797283}
#patente{text-transform:uppercase}#patente::placeholder{text-transform:none}
.count-row{gap:14px;flex-wrap:wrap}
.stepper{border:1px solid #cfc9d6;border-radius:11px;overflow:hidden;height:46px}
.stepper button{width:43px;align-self:stretch;background:#f6f2fa;color:var(--purple);border:0;font-size:1.45rem;cursor:pointer}
.stepper button:disabled{color:#a69dae;cursor:default}
.stepper input{width:47px;text-align:center;border:0;appearance:textfield;color:inherit;font-weight:700}
.stepper input::-webkit-inner-spin-button{appearance:none}
#ayuda{color:var(--muted);font-size:.875rem}
.primary{background:var(--purple);color:#fff;border:0;border-radius:12px;justify-content:center;gap:9px;font-weight:700;min-height:51px;width:100%;cursor:pointer;margin-top:30px}
.primary:hover{background:#54408c}
.primary:disabled{opacity:.65;cursor:wait}
:focus-visible{outline:3px solid #8167ba;outline-offset:3px}
.stepper :focus-visible{outline-offset:-3px}
#error{font-size:.92rem;color:#912e34;background:#fff1ef;padding:12px;border-radius:8px}
.link{border:0;background:none;padding:8px 0;color:var(--purple);text-decoration:underline;cursor:pointer}
#confirmacion{padding-top:24px}
.success-mark{display:grid;place-items:center;margin-bottom:12px;background:#e4f3e6;color:#35674a}
#confirmacion p,dt{color:var(--muted)}
dl{margin:20px 0}dt{font-size:.85rem}dd{margin:1px 0 12px;font-weight:650}
footer{border-top:1px solid #e6e2e8}
.footer{justify-content:center;gap:9px;min-height:66px;font-size:.84rem;color:var(--muted)}
.shapes{display:flex;gap:3px;align-items:center;margin-right:2px}
.shapes b{display:block;width:9px;height:9px;background:#b3a2d3;border-radius:2px}
.shapes b:nth-child(2){background:#ebbe6d;border-radius:50%}
.shapes b:last-child{background:#91b9a1;clip-path:polygon(50% 0,100% 100%,0 100%)}
[hidden]{display:none!important}
@media(max-width:900px){.wrap{width:calc(100% - 40px)}main.wrap{gap:18px}.card,.intro-text{padding-inline:24px}.card-title{gap:9px}}
@media(max-width:720px){.wrap{width:min(520px,calc(100% - 32px))}.masthead{min-height:67px}.brand{font-size:1.25rem}.brand img{width:35px;height:35px}.portal{font-size:.8rem;gap:6px}.portal svg{width:17px}main.wrap{grid-template-columns:1fr;padding-block:20px 30px}.intro,.card{border-radius:20px}.intro-text{padding:23px 24px 0}.intro-text p{font-size:.96rem;max-width:340px}h1{font-size:3.25rem;margin:15px 0 10px}.scene{min-height:148px;margin-top:0;max-height:190px}.scene img{object-position:center 59%}.card{padding:24px}.card-title{padding-bottom:18px}.field{margin-top:19px}.primary{margin-top:24px}.footer{min-height:54px}}

@supports (appearance: base-select) {
  #alumno, #alumno::picker(select) { appearance: base-select; }
  #alumno { align-items: center; min-width: 0; }
  #alumno::picker-icon, #alumno option::checkmark { display: none; }
  #alumno > button, #alumno selectedcontent { width: 100%; min-width: 0; }
  #alumno selectedcontent, #alumno option { display: flex; align-items: center; gap: 10px; }
  #alumno selectedcontent { overflow: hidden; white-space: nowrap; }
  #alumno selectedcontent > span:first-child { overflow: hidden; text-overflow: ellipsis; }
  #alumno::picker(select) {
    border: 1px solid #cfc9d6; border-radius: 12px; padding: 5px;
    background: white; color: #302a44; max-height: min(55vh, 24rem);
    inline-size: anchor-size(width); box-shadow: 0 8px 24px #35264518;
  }
  #alumno option { padding: 9px 12px; border-radius: 7px; white-space: normal; }
  #alumno option:is(:hover, :focus-visible, :checked) { background: #f0ebf7; }
  .marca-confirmada {
    flex: 0 0 24px;
    height: 24px;
    margin-inline-start: auto;
    background: url("/assets/asistencia-confirmada.svg") center / contain no-repeat;
    font-size: 0;
  }
}

.direcciones {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid #d5e6db;
  border-radius: 20px;
  background: #edf6ef;
  color: #294b3a;
}
.destino-icono {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #d6eadc;
}
.destino-icono svg { width: 24px; height: 24px; }
.direcciones h2 { font-size: 1.3rem; }
.direcciones p { margin: 4px 0 0; line-height: 1.4; font-size: .94rem; }
.destino-enlaces { margin-inline-start: auto; display: flex; gap: 8px; }
.destino-enlaces a {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid #adcbb7;
  border-radius: 12px;
  background: white;
  color: #29543c;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.destino-enlaces a:hover { background: #dcefe1; }
@media (max-width: 720px) {
  .direcciones { display: grid; grid-template-columns: auto 1fr; padding: 18px; gap: 12px; }
  .destino-enlaces { grid-column: 1 / -1; margin: 0; }
  .destino-enlaces a { flex: 1; }
}
.entrada { display: grid; place-items: center; padding: 20px; }
.entrada-card { width: min(100%, 450px); }
.entrada-card h1 { font-size: 2.55rem; }
.entrada-card p { color: var(--muted); line-height: 1.55; }

.panel-porteria { width: min(680px, calc(100% - 32px)); margin: 40px auto; }
.panel-porteria h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); }
.panel-porteria > p, #estado { color: var(--muted); }
.barra-porteria { display: flex; gap: 8px; flex-wrap: wrap; }
.barra-porteria input, .barra-porteria button { min-height: 44px; padding: 8px 14px; border-radius: 10px; }
.barra-porteria input { flex: 1 1 140px; min-width: 0; border: 1px solid #cfc9d6; }
.barra-porteria button { background: var(--purple); border: 0; color: #fff; cursor: pointer; }
#lista { width: 100%; border-collapse: collapse; }
#lista th, #lista td { text-align: left; padding: 12px 6px; border-bottom: 1px solid #eae6ed; overflow-wrap: anywhere; }
#lista th { background: #f6f2fa; font-size: .9rem; }
#lista td:first-child { font-weight: 750; letter-spacing: .04em; }
