@font-face {
  font-family: "Anton";
  src: url("/fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0c1e4a;
  --blue: #1d4fc4;
  --red: #e2262f;
  --white: #ffffff;
  --sky: #eef3fb;
  --ink: #14213d;
  --muted: #4a5878;
  --line: #c9d4ea;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

/* Tricolor: the bars that frame the title on the poster */
.tricolor {
  display: flex;
  width: min(30rem, 78vw);
  height: 0.5rem;
  margin: 0 auto;
}

.tricolor span {
  flex: 1;
}

.tricolor span:nth-child(1) {
  background: var(--blue);
}

.tricolor span:nth-child(2) {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.tricolor span:nth-child(3) {
  background: var(--red);
}

.tricolor-small {
  width: 9rem;
  height: 0.3rem;
  margin: 0 0 1.25rem;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: linear-gradient(180deg, #dfe8f8 0%, var(--sky) 55%, var(--white) 100%);
}

.title {
  margin: clamp(1rem, 3vw, 1.75rem) 0;
  color: var(--navy);
  line-height: 0.92;
  text-transform: uppercase;
}

.title > span {
  display: block;
}

.title-foro {
  font-family: var(--body);
  font-weight: 300;
  font-stretch: 112%;
  font-size: clamp(2.5rem, 9vw, 5.25rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.15em;
}

.title-main {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4rem, 17vw, 10.5rem);
  letter-spacing: -0.005em;
}

.title-city {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.9rem, 11.5vw, 7rem);
}

.title-year {
  display: inline;
  color: var(--blue);
}

.cta {
  display: inline-block;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: 0.95rem 2.25rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--white);
  background: var(--red);
  text-decoration: none;
  clip-path: polygon(0.75rem 0, 100% 0, calc(100% - 0.75rem) 100%, 0 100%);
  transition: background-color 0.15s ease;
}

.cta:hover {
  background: #c41c24;
}

/* Top bar on event pages */
.topbar {
  padding: 0.9rem 1.25rem;
  background: var(--navy);
  text-align: center;
}

.topbar a {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

/* Home */
.hero-lede {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.events {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem clamp(3.5rem, 8vw, 6rem);
}

.events-title {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-transform: uppercase;
  color: var(--navy);
}

.event-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--navy);
  color: var(--white);
  border-radius: 0.9rem;
  overflow: hidden;
}

.event-media img {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
}

.event-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.event-body h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.event-body h3 a {
  color: var(--white);
  text-decoration: none;
}

.event-body h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

.event-meta {
  margin: 0 0 0.75rem;
  color: #dbe3f4;
}

.event-speakers {
  margin: 0;
  font-weight: 600;
}

.cta-small {
  margin-top: 1.5rem;
  padding: 0.8rem 1.8rem;
}

@media (max-width: 760px) {
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-media img {
    min-height: 12rem;
    max-height: 14rem;
  }
}

/* Stage: plaza photo with the speaker plates over its lower edge */
.stage {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.stage-photo {
  width: 100%;
  height: clamp(13rem, 34vw, 24rem);
  object-fit: cover;
  object-position: center 40%;
}

.speakers {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  max-width: 54rem;
  margin: clamp(-4.5rem, -8vw, -2.5rem) auto 0;
  padding: 0;
  position: relative;
}

.plate {
  padding: clamp(0.9rem, 2.4vw, 1.4rem) clamp(1rem, 3vw, 2rem) clamp(1.1rem, 2.6vw, 1.6rem);
  text-align: center;
  text-transform: uppercase;
  transform: skewX(-8deg);
  box-shadow: 0 0.75rem 1.75rem rgba(12, 30, 74, 0.28);
}

.plate > span {
  display: block;
  transform: skewX(8deg);
}

.plate-dark {
  background: var(--navy);
  color: var(--white);
}

.plate-light {
  background: var(--white);
  color: var(--navy);
}

.plate-first {
  font-weight: 500;
  font-stretch: 90%;
  font-size: clamp(1rem, 2.8vw, 1.75rem);
  line-height: 1.1;
}

.plate-last {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5.4vw, 3.4rem);
  line-height: 1;
  padding-bottom: 0.3em;
  background: linear-gradient(var(--red), var(--red)) center bottom / 62% 0.18em no-repeat;
}

/* Facts bar */
.facts {
  max-width: 72rem;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: 0 1.25rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  background: var(--navy);
  color: var(--white);
  border-radius: 0.9rem;
  overflow: hidden;
}

.fact {
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
}

.fact + .fact {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.fact dt {
  font-size: 0.95rem;
  color: #b9c7e6;
  margin-bottom: 0.2rem;
}

.fact dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  text-transform: uppercase;
}


.fact-sub {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--body);
  font-size: 1rem;
  text-transform: none;
  color: #dbe3f4;
}

.map-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  color: var(--white);
  text-underline-offset: 0.2em;
}

/* Signup */
.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
  scroll-margin-top: 1rem;
}

.signup-intro h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
}

.signup-intro p {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  color: var(--muted);
}

.poster-link {
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.form {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 0.5rem;
}

.field input:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 79, 196, 0.25);
}

.field input[aria-invalid="true"] {
  border-color: var(--red);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.95rem;
  color: var(--muted);
}

.consent input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  accent-color: var(--navy);
}

.submit {
  justify-self: start;
  padding: 0.95rem 2.25rem;
  font: inherit;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.submit:hover {
  background: var(--blue);
}

.submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.status {
  margin: 0;
  min-height: 1.5em;
  font-weight: 600;
}

.status.is-error {
  color: #b3141c;
}

.status.is-ok {
  color: #146c3a;
}

.form.is-done > *:not(.status) {
  display: none;
}

.form.is-done .status {
  padding: 1.5rem;
  font-size: 1.15rem;
  background: var(--sky);
  border-left: 4px solid var(--navy);
  color: var(--navy);
}

/* Footer */
.footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.footer p {
  max-width: 46rem;
  margin: 0;
}

@media (max-width: 760px) {
  .facts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fact-place {
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .signup {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .speakers {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }
}

/* Aviso de preinscripción próximamente */
.soon {
  align-self: start;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--sky);
  border-left: 6px solid var(--red);
  border-radius: 0.5rem;
}

.soon-title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
}

.soon p:last-child {
  margin: 0;
  color: var(--ink);
}

/* Formulario v2 */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field-msg {
  margin: 0.35rem 0 0;
  min-height: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.field-msg:empty {
  display: none;
}

.field-msg.is-error {
  color: #b3141c;
  font-weight: 600;
}

.link-btn {
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--blue);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.phone {
  display: flex;
  align-items: stretch;
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--sky);
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
}

.phone input {
  border-radius: 0 0.5rem 0.5rem 0;
}

.field input[readonly] {
  color: var(--muted);
  background: var(--sky);
}

.combo {
  position: relative;
}

.combo-list {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  margin: 0.25rem 0 0;
  padding: 0.3rem;
  list-style: none;
  max-height: 18rem;
  overflow-y: auto;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 0.75rem 1.5rem rgba(12, 30, 74, 0.15);
}

.combo-opt {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.35rem;
  cursor: pointer;
}

.combo-opt.is-active,
.combo-opt:hover {
  background: var(--sky);
}

.combo-region {
  font-size: 0.9rem;
  color: var(--muted);
}

.combo-empty {
  padding: 0.6rem 0.7rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Formulario: diseño en tarjeta ---------- */
.signup {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  align-items: start;
}

.signup-intro {
  position: sticky;
  top: 1.5rem;
}

.steps {
  list-style: none;
  counter-reset: paso;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem;
  align-items: start;
  color: var(--muted);
  line-height: 1.45;
}

.steps li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
}

.steps strong {
  display: block;
  color: var(--ink);
}

.form.card {
  position: relative;
  gap: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(12, 30, 74, 0.35);
  overflow: hidden;
}

.form.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.45rem;
  background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6% 100%);
  border-bottom: 1px solid var(--line);
}

.group {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.group legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.group legend::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form.card .field label {
  font-size: 0.95rem;
  color: var(--ink);
}

.form.card .field input {
  padding: 0.85rem 1rem;
  background: #f6f8fd;
  border: 1.5px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 0.55rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.form.card .field input:hover {
  border-bottom-color: #9fb1d6;
}

.form.card .field input:focus-visible {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 79, 196, 0.15);
}

.form.card .field input[aria-invalid="true"] {
  background: #fff6f6;
  border-color: #d93a41;
}

.form.card .field input::placeholder {
  color: #9aa6bf;
}

.form.card .phone-prefix {
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 0.55rem 0 0 0.55rem;
}

.form.card .phone input {
  border-radius: 0 0.55rem 0.55rem 0;
}

.form.card .consent {
  margin-top: 0.25rem;
  padding: 1rem 1.1rem;
  background: var(--sky);
  border-radius: 0.6rem;
  color: var(--ink);
}

.form.card .submit {
  justify-self: stretch;
  width: 100%;
  margin-top: 1.25rem;
  padding: 1.05rem 1.5rem;
  font-size: 1.1rem;
  background: var(--red);
  border-radius: 0.6rem;
  box-shadow: 0 0.6rem 1.25rem -0.6rem rgba(226, 38, 47, 0.7);
}

.form.card .submit:hover {
  background: #c41c24;
}

.form.card .status {
  margin-top: 0.85rem;
  text-align: center;
}

.form.card.is-done {
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
}

.form.card.is-done .status {
  text-align: left;
  font-size: 1.15rem;
}

@media (max-width: 760px) {
  .signup {
    grid-template-columns: 1fr;
  }

  .signup-intro {
    position: static;
  }
}

/* Preinscripción: título sobre el formulario, una columna */
.signup {
  display: block;
  max-width: 44rem;
}

.signup-title {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  color: var(--navy);
}

/* Bloques del formulario separados sin títulos */
.form.card .group {
  margin: 0;
  padding: 1.6rem 0;
}

.form.card .group:first-of-type {
  padding-top: 0.75rem;
}

.form.card .group + .group {
  border-top: 1px dashed var(--line);
}

.form.card .group:last-of-type {
  padding-bottom: 1.25rem;
}
