/* Itaca Hackathon 2026 · identidad Ítaca (ver backend-university/DESIGN.md) */
:root {
  --teal: #00b0a1;          /* verde Ítaca: rellenos, marcos, nunca texto */
  --teal-strong: #00796f;   /* texto y botones sobre blanco */
  --teal-deep: #005d55;     /* campo del primer pliego, hover */
  --teal-night: #00423c;
  --teal-tint: #e3f5f3;
  --on-deep: #ffffff;
  --on-deep-2: #c4ece7;     /* texto secundario sobre el verde profundo */
  --on-deep-line: rgba(196, 236, 231, .26);
  --ink: #102624;
  --ink-2: #3b4b49;
  --muted: #5c6a68;
  --ground: #f3f4f4;
  --paper: #f4f6f7;         /* fondo corporativo: facetas blancas */
  --corp-1: #2bb2aa;
  --corp-2: #6fcdc6;
  --surface: #ffffff;
  --surface-sunk: #f7f8f8;
  --line: #e1e5e5;
  --line-strong: #c9d0cf;
  --line-control: #7f8b8a;
  --warn: #a15c00;
  --warn-tint: #fff4e0;
  --danger: #c62828;
  --danger-tint: #fdecea;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Uncial Antiqua", "Montserrat", serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r-sm: 8px;
  --r-md: 12px;
  --gutter: 24px;
  --shadow-float: 0 24px 48px -20px rgba(0, 35, 31, .45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-control) var(--ground); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 15px/1.6 var(--font); caret-color: var(--teal-strong);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--teal); color: #fff; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--teal-strong); text-underline-offset: 3px; }
.tnum { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--teal-strong); outline-offset: 2px; }
.footer :focus-visible { outline-color: #fff; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 700 14px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .6; transform: none; }
.btn-primary { background: var(--teal-strong); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { background: var(--teal-tint); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-sunk); border-color: var(--line-control); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 13px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 15px; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- Barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-emblem { width: 36px; height: 36px; }
.brand-word { font: 400 27px/1 var(--font-brand); color: var(--teal-deep); letter-spacing: 0; transform: translateY(-1px); }
.brand-event { font-weight: 700; font-size: 14px; color: var(--ink-2); padding-left: 10px; border-left: 1px solid var(--line-strong); line-height: 1.2; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover { color: var(--teal-strong); background: var(--surface-sunk); }

/* ---------- Fondo corporativo Ítaca (facetas, curvas teal, semitono y destellos) ---------- */
.corp-bg { position: fixed; inset: 0; z-index: -2; background: var(--paper); pointer-events: none; }
.corp-bg svg { width: 100%; height: 100%; display: block; }
.corp-corners { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.corp-corners svg { width: 100%; height: 100%; display: block; }
.spark { position: absolute; width: 70px; height: 70px; transform: rotate(var(--r, 0deg)); pointer-events: none; z-index: -1; }
.spark i {
  position: absolute; left: 50%; bottom: 50%; width: 7px; height: 30px; margin-left: -3.5px;
  background: linear-gradient(to top, transparent, var(--teal-strong));
  clip-path: polygon(50% 0, 100% 100%, 0 100%); transform-origin: 50% 100%;
}
.spark i:nth-child(1) { transform: rotate(-38deg) translateY(-6px); }
.spark i:nth-child(2) { transform: translateY(-6px); }
.spark i:nth-child(3) { transform: rotate(38deg) translateY(-6px); opacity: .35; }

/* ---------- Primer pliego ---------- */
.hero { position: relative; color: var(--ink); padding: 64px 0 96px; isolation: isolate; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 80px; align-items: center; min-height: 600px; }

/* Cuenta regresiva */
.countdown { display: flex; gap: 10px; margin-top: 36px; }
.countdown div { display: grid; justify-items: center; gap: 4px; min-width: 78px; padding: 12px 10px 10px; background: rgba(255, 255, 255, .82); border: 1px solid var(--line); border-radius: var(--r-md); }
.countdown strong { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.countdown span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Cupos: la escasez como protagonista */
.cupos { display: flex; flex-direction: column; gap: 22px; padding-left: 48px; border-left: 1px solid var(--line-strong); }
.cupos-num { display: flex; align-items: baseline; gap: 14px; }
.cupos-num strong { font-size: clamp(120px, 12vw, 200px); line-height: .8; font-weight: 800; letter-spacing: -0.05em; color: var(--teal-strong); }
.cupos-num > span { font-size: 22px; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.cupos-bar { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
.cupos-bar i { height: 8px; border-radius: 4px; background: #d6e3e2; }
.cupos-bar i.on { background: var(--teal-strong); }
.cupos-facts { font-size: 15px; font-weight: 600; color: var(--muted); }
.cupos .hero-cta { align-self: flex-start; margin-top: 0; }
.hero-copy { padding-top: 12px; }
.hero h1 { font-size: clamp(3rem, 1.2rem + 5.4vw, 6.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: .94; max-width: 9ch; color: var(--ink); }
.hero h1 .h1-brand { color: var(--teal-strong); }
.hero-lede { margin-top: 24px; font-size: clamp(17px, 1.1vw + 11px, 20px); line-height: 1.5; font-weight: 500; color: var(--ink-2); max-width: 34ch; }
.hero-ally { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-ally strong { color: var(--ink); font-weight: 700; }

.facts { margin: 36px 0 0; padding: 0; border-top: 2px solid var(--ink); max-width: 520px; background: rgba(255, 255, 255, .72); }
.fact { display: grid; grid-template-columns: 148px 1fr; gap: 12px; padding: 13px 12px; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
.fact dt { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fact dt .ic { width: 18px; height: 18px; color: var(--teal-strong); transform: translateY(1px); }
.fact dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fact dd strong { font-size: 16px; font-weight: 700; color: var(--ink); }
.fact-note { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-cta { margin-top: 32px; min-height: 52px; padding-inline: 22px; font-size: 15px; }
.hero-cta[aria-disabled="true"] { background: var(--surface-sunk); color: var(--muted); border-color: var(--line-strong); pointer-events: none; }

/* Greca: banda de la orla del sello Ítaca */
.greca {
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cpath d='M0 16H24M17 16V2H5V11H11V6' fill='none' stroke='%2300b0a1' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") repeat-x left center / 24px 18px;
}

/* ---------- Hoja (acta y formulario) ---------- */
.sheet-wrap { position: relative; }
/* Marco desplazado en verde Ítaca: el recurso gráfico de la marca */
.sheet-wrap::before { content: ""; position: absolute; inset: 0; transform: translate(14px, 14px); border: 2px solid var(--teal); border-radius: var(--r-md); pointer-events: none; }
.sheet { position: relative; background: var(--surface); color: var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-float); }

.acta-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 20px 24px 18px; border-bottom: 2px solid var(--ink); }
.acta-seal { width: 40px; height: 40px; }
.acta-title { font-size: 20px; font-weight: 800; }
.acta-sub { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.acta-count { text-align: right; line-height: 1; }
.acta-count strong { font-size: 30px; font-weight: 800; color: var(--teal-strong); letter-spacing: -0.02em; }
.acta-count > span.tnum { font-size: 16px; font-weight: 700; color: var(--muted); }
.acta-count-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; }

.acta-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.c-n { width: 54px; } .c-mem { width: 104px; } .c-inst { width: 30%; }
.acta-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 10px 8px; border-bottom: 1px solid var(--line-strong); background: var(--surface-sunk); }
.acta-table th:first-child, .acta-table td:first-child { padding-left: 24px; }
.acta-table th:last-child, .acta-table td:last-child { padding-right: 24px; }
.acta-table td { padding: 0 8px; height: 37px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acta-table tr:last-child td { border-bottom: 0; }
.row-n { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

.row-taken .row-n { color: var(--ink); }
.team-name { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font-weight: 700; color: var(--ink); }
.team-name > span { overflow: hidden; text-overflow: ellipsis; }
.team-name .ic { width: 16px; height: 16px; flex: none; }
.st-ok { color: var(--teal-strong); }
.st-wait { color: var(--warn); }
.inst { color: var(--ink-2); }
.pips { display: inline-flex; gap: 4px; vertical-align: middle; }
.pips i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.pips i.on { background: var(--teal-strong); border-color: var(--teal-strong); }

/* Tira de casillas: los 20 cupos de un vistazo */
.slots { list-style: none; margin: 0; padding: 20px 24px 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.slot { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; border: 1px dashed var(--line-control); color: var(--muted); font-size: 12px; font-weight: 700; }
.slot-ok { background: var(--teal-strong); border: 1px solid var(--teal-strong); color: #fff; }
.slot-wait { background: var(--warn-tint); border: 1px solid #e0b46a; color: var(--warn); }
.slot-next { background: var(--teal-tint); border: 2px solid var(--teal-strong); color: var(--teal-deep); }
.slot-loading { border-color: var(--line); color: var(--line-strong); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 24px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.sw-ok { background: var(--teal-strong); }
.sw-wait { background: var(--warn-tint); border: 1px solid #e0b46a; }
.sw-free { border: 1px dashed var(--line-control); }

/* La fila que se reserva: aquí se escribe el nombre del equipo */
.reserve-wrap { padding: 20px 24px 0; }
.reserve-wrap:empty { display: none; }
.reserve { display: flex; gap: 8px; align-items: center; }
.reserve-n { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); background: var(--teal-tint); color: var(--teal-deep); font-weight: 800; font-size: 15px; }
.reserve input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-control); border-radius: var(--r-sm);
  background: #fff; font: 700 15px var(--font); color: var(--ink);
}
.reserve input::placeholder { color: var(--muted); font-weight: 600; }
.reserve input:focus { outline: none; border-color: var(--teal-strong); box-shadow: 0 0 0 3px rgba(0, 176, 161, .3); }
.reserve .btn { flex: none; }
.reserve-closed { font-weight: 700; color: var(--danger); background: var(--danger-tint); padding: 12px 14px; border-radius: var(--r-sm); }

/* Equipos inscritos, plegados */
.acta-list { margin: 20px 24px 0; border-top: 1px solid var(--line); }
.acta-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 4px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--teal-strong); list-style: none; }
.acta-list summary::-webkit-details-marker { display: none; }
.acta-list summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease-out); }
.acta-list[open] summary::after { transform: rotate(-135deg); }
.acta-list .acta-table { margin-top: 8px; }
.acta-list .acta-table th:first-child, .acta-list .acta-table td:first-child { padding-left: 0; }
.acta-list .acta-table th:last-child, .acta-list .acta-table td:last-child { padding-right: 0; }
.acta-list .acta-table th { background: none; }
.acta-status { padding: 14px 24px 20px; font-size: 12px; font-weight: 600; color: var(--muted); }
.acta-status button { font: inherit; color: var(--teal-strong); background: none; border: 0; padding: 0 0 0 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }

/* Entintado: las casillas ocupadas se llenan una sola vez al cargar */
@media (prefers-reduced-motion: no-preference) {
  .slot.ink-in { animation: ink-slot .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms + 150ms); }
}
@keyframes ink-slot { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-tight { padding-top: 24px; }
.hero + .section { padding-top: 48px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section h2 { font-size: clamp(28px, 1.4vw + 20px, 38px); font-weight: 800; letter-spacing: -0.025em; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 28px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-strong); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-strong); color: #fff; font-weight: 800; font-size: 16px; }
.step h3 { font-size: 18px; font-weight: 800; margin-top: 8px; }
.step p { margin-top: 8px; color: var(--ink-2); }
.step em { font-style: normal; font-weight: 700; color: var(--ink); }

.programa { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.pending { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.pending li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.pending li > .ic { color: var(--warn); width: 20px; height: 20px; }
.pending h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.pending p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tag-pending { display: inline-block; margin-top: 14px; flex: none; font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warn-tint); padding: 4px 10px; border-radius: 999px; }

/* ---------- Aliados en la barra superior ---------- */
.partners { display: flex; align-items: center; gap: 14px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.partners-sep { width: 1px; height: 24px; background: var(--line-strong); }
.logo-slot { display: inline-flex; align-items: center; }
.logo-slot img { width: auto; max-width: 100%; object-fit: contain; }
.logo-text { font-weight: 800; font-size: 13px; color: var(--ink-2); letter-spacing: -0.01em; white-space: nowrap; }

/* ---------- Semana de preparación ---------- */
.capacitacion { background: var(--teal-deep); color: var(--on-deep); }
.cap-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: end; margin-bottom: 40px; }
.cap-head h2 { font-size: clamp(28px, 1.4vw + 20px, 38px); font-weight: 800; letter-spacing: -0.025em; }
.cap-head p { margin-top: 12px; color: var(--on-deep-2); font-size: 16px; line-height: 1.65; max-width: 60ch; }
.cap-meta { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--on-deep-line); min-width: 260px; }
.cap-meta div { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--on-deep-line); font-size: 14px; }
.cap-meta dt { color: var(--on-deep-2); font-weight: 600; }
.cap-meta dd { margin: 0; font-weight: 700; }
.workshops { list-style: none; margin: 0; padding: 0; border-top: 2px solid #fff; counter-reset: ws; }
.workshops li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--on-deep-line); }
.workshops .ic { width: 26px; height: 26px; color: var(--teal); justify-self: center; }
.workshops h3 { font-size: 18px; font-weight: 800; }
.workshops p { color: var(--on-deep-2); margin-top: 2px; }
.ws-kind { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--on-deep-line); color: var(--on-deep-2); white-space: nowrap; }
.ws-open { background: #fff; color: var(--teal-deep); border-color: #fff; }
.cap-note { margin-top: 18px; font-size: 13px; color: var(--on-deep-2); font-weight: 600; }

/* ---------- Criterios ---------- */
.criterios { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.crit-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; gap: 3px; }
.crit-bar span { flex: var(--w) 0 0; background: var(--c); }
.crit-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.crit-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.crit-pts { display: flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.crit-pts::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }
.crit-list h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.crit-list h3 .ic { color: var(--teal-strong); }
.crit-list p { margin-top: 4px; color: var(--ink-2); }

/* ---------- Pagos ---------- */
.pagos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: start; }
.pay-steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.pay-steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.pay-steps h3 { font-size: 16px; font-weight: 800; margin-top: 8px; }
.pay-steps p { margin-top: 4px; color: var(--ink-2); }
.pay-steps em { font-style: normal; font-weight: 700; color: var(--teal-strong); }
.accounts-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 24px 16px; border-bottom: 2px solid var(--ink); }
.accounts-head h3 { font-size: 20px; font-weight: 800; }
.mod-state { font-size: 12px; font-weight: 700; color: var(--teal-deep); background: var(--teal-tint); padding: 4px 10px; border-radius: 999px; }
.mod-state.is-closed { color: var(--danger); background: var(--danger-tint); }
.accounts-body { padding: 8px 24px 24px; }
.acc-pending { display: flex; gap: 14px; padding-top: 16px; }
.acc-pending .ic { color: var(--warn); width: 22px; height: 22px; margin-top: 2px; }
.acc-pending-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.acc-pending p + p { margin-top: 6px; color: var(--ink-2); }
.acc { padding: 16px 0; border-bottom: 1px solid var(--line); }
.acc h4 { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.acc-row span { font-size: 12px; font-weight: 700; color: var(--muted); }
.acc-row code { font: 700 15px var(--font); font-variant-numeric: tabular-nums; color: var(--ink); margin-left: auto; }
.copy { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.copy:hover { color: var(--teal-strong); border-color: var(--teal-strong); }
.copy.is-done { color: #fff; background: var(--teal-strong); border-color: var(--teal-strong); }
.acc-holder { margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.acc-qr { display: flex; gap: 16px; align-items: center; padding-top: 16px; }
.acc-qr img { width: 120px; height: 120px; border: 1px solid var(--line); border-radius: var(--r-sm); }

/* ---------- Aliados ---------- */
.ally-group + .ally-group { margin-top: 36px; }
.ally-label { font-size: 13px; font-weight: 700; color: var(--ink-2); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.logos li { display: grid; place-items: center; min-height: 128px; padding: 20px; background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.logos li + li { border-left: 1px solid var(--line); }
.logos-open { grid-template-columns: repeat(4, 1fr); }
.logos-open li { min-height: 96px; background: transparent; }
.logos-open span { font-size: 13px; font-weight: 600; color: var(--muted); border: 1px dashed var(--line-control); border-radius: var(--r-sm); padding: 10px 16px; }
.logo-itaca { display: flex; align-items: center; gap: 12px; }
.logo-itaca b { display: block; font: 400 34px/1 var(--font-brand); color: var(--teal-deep); }
.logo-itaca small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 4px; }
.logos-lg .logo-slot img { max-height: 56px; }
.logos-lg .logo-text { font-size: 17px; text-align: center; white-space: normal; }
.sponsor-cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 24px 28px; border-radius: var(--r-md); background: var(--teal-deep); color: #fff; }
.sponsor-cta h3 { font-size: 18px; font-weight: 800; }
.sponsor-cta p { margin-top: 4px; color: var(--on-deep-2); font-size: 14px; }
.sponsor-cta .btn[aria-disabled="true"] { background: transparent; color: var(--on-deep-2); border-color: var(--on-deep-line); cursor: default; }

/* ---------- Inscripción ---------- */
.acta-wrap { margin-top: 28px; }
.signup .acta-title { font-size: 17px; letter-spacing: -0.01em; }
.acta-wrap .acta-head { padding: 16px 20px 14px; gap: 12px; }
.acta-wrap .acta-seal { width: 32px; height: 32px; }
.acta-wrap .acta-count strong { font-size: 24px; }
.acta-wrap .slots, .acta-wrap .legend, .acta-wrap .acta-status { padding-inline: 20px; }
.acta-wrap .acta-list { margin-inline: 20px; }
.cupos-facts span { white-space: nowrap; }
.acta-wrap::before { transform: translate(10px, 10px); }
.signup { position: relative; isolation: isolate; overflow: hidden; }
.signup-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 64px; align-items: start; }
.signup-aside { position: sticky; top: 108px; }
.signup h2 { font-size: clamp(30px, 2vw + 20px, 44px); }
.signup-aside > p { margin-top: 16px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.signup-aside strong { color: var(--teal-strong); }
.aside-facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.aside-facts li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; color: var(--ink); }
.aside-facts .ic { color: var(--teal-strong); }

.form-sheet { padding: 28px; }
.team-form { display: grid; gap: 20px; }
.form-row-head { display: flex; gap: 16px; align-items: end; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.row-badge { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: var(--r-sm); background: var(--teal-tint); color: var(--teal-deep); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .members legend { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.opt { font-weight: 600; color: var(--muted); }
.field input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-control); border-radius: var(--r-sm);
  background: var(--surface); font: 500 15px var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
#f-nombre { height: 52px; font-size: 18px; font-weight: 700; }
.field input::placeholder { color: var(--muted); opacity: .8; }
.field input:focus { outline: none; border-color: var(--teal-strong); box-shadow: 0 0 0 3px rgba(0, 176, 161, .3); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }
.field-msg { font-size: 12px; font-weight: 600; color: var(--danger); }

.members { border: 0; margin: 0; padding: 0; min-width: 0; }
.members legend { display: flex; align-items: baseline; gap: 10px; padding: 0; margin-bottom: 10px; width: 100%; }
.members-count { margin-left: auto; font-weight: 600; color: var(--muted); }
.member-list { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.member { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; align-items: end; padding: 14px; }
.member + .member { border-top: 1px solid var(--line); }
.member-n { display: grid; place-items: center; height: 44px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.member:first-child .member-n { color: var(--teal-strong); }
.member .field label { font-size: 12px; }
.member .captain { font-weight: 700; color: var(--teal-strong); }
.member-remove { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: var(--r-sm); cursor: pointer; }
.member-remove:hover { color: var(--danger); background: var(--danger-tint); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.55; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--teal-strong); }
.form-error { padding: 12px 14px; border-radius: var(--r-sm); background: var(--danger-tint); color: var(--danger); font-weight: 600; font-size: 14px; }
.submit { width: 100%; }
.submit[aria-busy="true"] { cursor: progress; }

.done, .closed { text-align: center; padding: 32px 8px; display: grid; justify-items: center; gap: 12px; }
.done[hidden], .closed[hidden] { display: none; }
.done:focus { outline: none; }
.done-badge { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--teal-strong); color: #fff; font-size: 32px; font-weight: 800; }
.done h3, .closed h3 { font-size: 24px; font-weight: 800; }
.done p, .closed p { color: var(--ink-2); max-width: 44ch; }
.done em { font-style: normal; font-weight: 700; color: var(--warn); }

/* ---------- Preguntas ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--teal-strong); border-bottom: 2px solid var(--teal-strong); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--teal-strong); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Pie ---------- */
.footer { background: var(--teal-night); color: var(--on-deep); }
.greca-top { opacity: .5; }
.footer-in { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding: 44px 0 52px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-word { font: 400 30px/1 var(--font-brand); }
.footer-motto { font-size: 13px; font-weight: 600; color: var(--on-deep-2); margin-top: 4px; }
.footer-meta { flex: 1; min-width: 260px; font-size: 13px; color: var(--on-deep-2); }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 12px; background: var(--warn-tint); color: var(--warn); text-align: center; font-weight: 700; }

/* ---------- Adaptación ---------- */
@media (max-width: 1240px) {
  .brand-event { display: none; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
  .nav { display: none; }
  .topbar-cta { margin-left: auto; }
  .partners { padding: 4px 12px; gap: 10px; }
  .signup-grid, .programa, .faq-wrap, .criterios, .pagos { grid-template-columns: 1fr; gap: 32px; }
  .cap-head { grid-template-columns: 1fr; }
  .signup-aside { position: static; }
  .member { grid-template-columns: 36px repeat(2, minmax(0, 1fr)); }
  .member .field.f-name { grid-column: 2 / 4; }
  .member .f-dni { grid-column: 2; }
  .member .f-mail { grid-column: 3; }
  .member .f-cel { grid-column: 2; }
}
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .spark { display: none; }
  .hero h1 { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line-strong); }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .topbar-in { height: 60px; gap: 12px; }
  .brand-emblem { width: 30px; height: 30px; }
  .brand-word { font-size: 23px; }
  .brand-event { font-size: 12px; padding-left: 8px; }
  .topbar-cta { padding-inline: 12px; white-space: nowrap; }
  .brand-event, .partners { display: none; }
  .workshops li { grid-template-columns: 32px minmax(0, 1fr); }
  .ws-kind { grid-column: 2; justify-self: start; }
  .logos { grid-template-columns: 1fr; }
  .logos li + li { border-left: 0; }
  .logos-open { grid-template-columns: 1fr 1fr; }
  .crit-list li { grid-template-columns: 60px minmax(0, 1fr); }
  .crit-pts { font-size: 28px; }
  .accounts-head, .accounts-body { padding-inline: 16px; }
  .acta-table th { font-size: 11px; padding-inline: 6px; }
  .pips { gap: 3px; } .pips i { width: 8px; height: 8px; }
  .fact { grid-template-columns: 112px 1fr; }
  .hero { padding-top: 36px; padding-bottom: 64px; }
  .hero h1 { font-size: 2.9rem; }
  .countdown { gap: 6px; margin-top: 24px; }
  .countdown div { min-width: 0; flex: 1; padding: 10px 4px 8px; }
  .countdown strong { font-size: 26px; }
  .cupos { padding-left: 0; border-left: 0; padding-top: 28px; border-top: 1px solid var(--line-strong); }
  .cupos-num > span { font-size: 18px; }
  .cupos .hero-cta { width: 100%; }
  .sheet-wrap::before { transform: translate(8px, 8px); }
  .acta-head { padding: 16px; gap: 10px; }
  .acta-seal { width: 32px; height: 32px; }
  .acta-title { font-size: 17px; }
  .acta-count strong { font-size: 24px; }
  .acta-table .col-inst, .acta-table td.td-inst { padding: 0; font-size: 0; }
  .c-inst { width: 0; }
  .c-n { width: 44px; } .c-mem { width: 84px; }
  .reserve { flex-wrap: wrap; }
  .reserve .btn { width: 100%; }
  .slots, .legend, .reserve-wrap, .acta-status { padding-inline: 16px; }
  .acta-list { margin-inline: 16px; }
  .slots { gap: 4px; }
  .slot { font-size: 10px; border-radius: 4px; }
  .section { padding: 72px 0; }
  .form-sheet { padding: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .row-badge { width: 52px; height: 52px; font-size: 22px; }
  .member { grid-template-columns: 28px minmax(0, 1fr); padding: 12px; gap: 8px 10px; }
  .member .field.f-name, .member .f-dni, .member .f-mail, .member .f-cel { grid-column: 2; }
  .member-n { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
