/*
 * Web publica de inscripciones: portada (agenda), pagina de evento y
 * "mi inscripcion". El titulo del evento va en Bebas Neue, como en los
 * carteles; todo lo demas en Sohne. Colores solo de shared.css.
 */

html { background: var(--blue-deep); }

body.site {
  min-height: 100vh;
  color: var(--white);
  background: linear-gradient(165deg, var(--blue-bright) 0%, var(--blue) 42%, var(--blue-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Logo de la organizacion (SVG generado o imagen) ---------- */
.org-logo { display: block; color: var(--white); }
.org-logo svg, .org-logo img { display: block; height: 56px; width: auto; max-width: 100%; }
.org-logo.is-small svg, .org-logo.is-small img { height: 34px; }
.org-logo-text { font-size: 18px; font-weight: 500; letter-spacing: .02em; }

/* ---------- Portada: agenda ---------- */
.home-head { padding: 44px 0 30px; }
.home-head .org-logo svg, .home-head .org-logo img { height: 64px; }
.home-title {
  margin: 34px 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 12vw, 120px);
  line-height: .9;
  letter-spacing: .01em;
}
.home-lead { margin: 0; max-width: 46ch; font-size: 18px; font-weight: 300; color: var(--sky-muted); line-height: 1.45; }

.agenda { list-style: none; margin: 18px 0 64px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.agenda-item { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.agenda-link {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 4px;
  text-decoration: none;
  transition: background 150ms ease;
}
.agenda-link:hover { background: rgba(255, 255, 255, .06); }
.agenda-date { text-align: center; line-height: 1; }
.agenda-day { display: block; font-family: var(--display); font-size: 58px; }
.agenda-month { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--sky); }
.agenda-title { margin: 0 0 6px; font-size: 22px; font-weight: 500; line-height: 1.2; }
.agenda-meta { margin: 0; font-size: 15px; font-weight: 300; color: var(--sky-muted); }
.agenda-org { margin: 8px 0 0; }
.agenda-go {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.agenda-empty { margin: 28px 0 80px; font-size: 18px; color: var(--sky-muted); }

@media (max-width: 640px) {
  .agenda-link { grid-template-columns: 64px 1fr; gap: 14px; }
  .agenda-day { font-size: 44px; }
  .agenda-go { display: none; }
  .agenda-title { font-size: 19px; }
}

/* ---------- Pagina de evento ---------- */
.event { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; padding: 40px 0 64px; align-items: start; }
.event-head { position: sticky; top: 32px; }
.event-head .org-logo { margin-bottom: 40px; }
.event-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(54px, 8.5vw, 112px);
  line-height: .92;
  letter-spacing: .005em;
  overflow-wrap: anywhere;
}
.event-subtitle { margin: 14px 0 0; font-size: 21px; font-weight: 300; color: var(--sky-muted); }
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.35; }
.facts svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--sky); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.facts a { color: var(--sky); }
.facts .muted { display: block; font-size: 14px; color: var(--sky-muted); }
.event-flag { display: inline-block; margin: 0 0 18px; padding: 7px 12px; border-radius: 8px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; }

.sheet { background: var(--white); color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 28px 70px rgba(var(--blue-night-rgb), .4); }
.sheet-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sheet-body { padding: 30px 32px 34px; }
.description { font-size: 16px; line-height: 1.6; color: var(--ink); }
.description p { margin: 0 0 14px; }
.description a { color: var(--blue); }
.description + .signup { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--paper-2); }
.sheet h2 { margin: 0 0 18px; font-size: 22px; font-weight: 500; }

@media (max-width: 920px) {
  .event { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .event-head { position: static; }
  .event-head .org-logo { margin-bottom: 28px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .sheet-body { padding: 24px 18px 28px; }
  .sheet { border-radius: 18px; }
}

/* ---------- Formulario ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { margin: 0 0 18px; min-width: 0; border: 0; padding: 0; }
.field > label, .field > legend { display: block; margin-bottom: 7px; padding: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted-ink); }
.field .help { margin: -2px 0 8px; font-size: 13px; color: var(--muted-ink); }
.input {
  display: block; width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--paper-2); border-radius: 12px;
  background: var(--paper); color: var(--ink); font-size: 16px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
textarea.input { min-height: 104px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(var(--blue-rgb), .14); }
.input[readonly] { color: var(--muted-ink); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: center; padding: 11px 13px; border: 1.5px solid var(--paper-2); border-radius: 12px; background: var(--paper); font-size: 15px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--white); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.choices-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.error { margin: 6px 0 0; font-size: 13px; color: var(--danger); }
.error:empty { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin-top: 24px; }
.field > .check { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.legal { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted-ink); }
.legal summary { cursor: pointer; color: var(--blue); font-weight: 500; }
.legal p { margin: 8px 0 0; }
.form-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: rgba(200, 50, 59, .08); color: var(--danger); font-size: 14px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px 20px; border: 0; border-radius: 14px;
  background: var(--blue); color: var(--white); font-size: 17px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background 150ms ease, transform 150ms ease;
}
.button:hover { background: var(--blue-bright); }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: .6; cursor: progress; }
.button.secondary { background: var(--paper); color: var(--ink); border: 1.5px solid var(--paper-2); }
.button.danger { background: var(--white); color: var(--danger); border: 1.5px solid rgba(200, 50, 59, .4); }

/* ---------- Estados y confirmacion ---------- */
.notice { padding: 20px 22px; border-radius: 14px; background: var(--paper); font-size: 16px; line-height: 1.5; }
.notice strong { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 500; }
.done { text-align: center; }
.done-mark { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; background: var(--success); color: var(--white); display: grid; place-items: center; }
.done-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { margin: 0 0 6px; font-size: 26px; }
.done p { margin: 0 0 10px; color: var(--muted-ink); line-height: 1.5; }
.qr { margin: 22px auto 6px; padding: 14px; width: 252px; border-radius: 16px; border: 1.5px solid var(--paper-2); }
.qr img { display: block; width: 220px; height: 220px; }
.wallet { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 8px; }
.wallet img { display: block; height: 46px; width: auto; }
.manage-link { display: inline-block; margin-top: 16px; color: var(--blue); font-size: 15px; }
.stack > * + * { margin-top: 12px; }

.site-foot { padding: 28px 0 40px; font-size: 13px; color: var(--sky-muted); }
.site-foot a { color: var(--sky-muted); }

.loading { padding: 80px 0; text-align: center; color: var(--sky-muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
