@font-face {
  font-family: "Rapor";
  src: url("../fonts/Rapor-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #ff1400;
  --brand-dark: #c40f00;
  --gold: #ffaf00;
  --asu: #0096f0;
  --green: #008e28;
  --green-dark: #006b1e;
  --ink: #111111;
  --paper: #ececec;
  --white: #ffffff;
}

[x-cloak] { display: none !important; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 50;
  font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 3px solid var(--brand);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  height: 46px;
  width: auto;
  display: block;
}
.brand-lockup {
  display: none;
}
@media (min-width: 640px) {
  .brand-lockup { display: block; }
}
.brand-lockup strong {
  display: block;
  font-family: Rapor, Inter, sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  line-height: 1;
}
.brand-lockup small {
  display: block;
  margin-top: 0.15rem;
  color: var(--green);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-link {
  color: var(--ink);
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
.nav-link:hover {
  background: var(--brand);
  color: white;
}

.site-footer {
  color: var(--ink);
  background: var(--white);
  border-top: 3px solid var(--green);
}
.site-footer a { color: var(--green); font-weight: 700; }
.footer-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.footer-marks img {
  height: 52px;
  width: auto;
}
.footer-bar {
  background: var(--brand);
  color: white;
  text-align: center;
  font-family: Rapor, Inter, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.7rem 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  min-height: 78vh;
}
.hero-zigzag {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='36' viewBox='0 0 18 36'><polygon points='0,0 18,9 0,18' fill='%23FF1400'/><polygon points='0,18 18,27 0,36' fill='%230096F0'/></svg>");
  background-repeat: repeat-y;
  background-size: 18px 36px;
}
.hero-zigzag--left { left: 0; }
.hero-zigzag--right { right: 0; transform: scaleX(-1); }
@media (min-width: 900px) {
  .hero-zigzag { display: block; }
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  align-items: end;
}
@media (min-width: 900px) {
  .hero-stage {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 78vh;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.hero-copy {
  position: relative;
  z-index: 6;
  padding-bottom: 2.2rem;
}
.hero-art {
  position: relative;
  min-height: 420px;
}
.hero-photo {
  position: relative;
  z-index: 5;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: bottom center;
  justify-self: center;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.12));
}
.hero-badge {
  width: min(200px, 68%);
  height: auto;
  margin-bottom: 1rem;
}
@media (min-width: 900px) {
  .hero-badge { display: none; }
}

.deco {
  display: none;
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
@media (min-width: 900px) {
  .deco { display: block; }
  .hero-art { min-height: 78vh; }
  .deco-noria {
    width: 42%;
    left: -8%;
    top: 16%;
    z-index: 1;
    border-radius: 1.6rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }
  .deco-asu {
    width: 38%;
    left: 2%;
    top: 3%;
    z-index: 4;
  }
  .deco-victoria {
    width: 26%;
    right: 4%;
    top: 2%;
    z-index: 3;
  }
  .deco-pista {
    width: 52%;
    right: -6%;
    top: 30%;
    z-index: 1;
    border-radius: 1.6rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }
  .deco-mango {
    width: 28%;
    left: -4%;
    bottom: 8%;
    z-index: 4;
  }
  .deco-pajaro {
    width: 14%;
    right: 28%;
    top: 10%;
    z-index: 4;
  }
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  width: 100%;
  max-width: 22rem;
  padding: 0.9rem 1.4rem;
  border-radius: 4px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cta:hover { background: var(--brand-dark); }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
  max-width: 22rem;
  padding: 0.75rem 1.2rem;
  border-radius: 4px;
  background: var(--green);
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cta-ghost:hover { background: var(--green-dark); }

.band {
  background: var(--brand);
  color: white;
  overflow: hidden;
}
.band img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .band img { height: 320px; }
}

.illu-strip {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.2rem;
  overflow-x: auto;
  padding: 1.4rem 1rem 0.4rem;
  background: var(--white);
}
.illu-strip img {
  height: 92px;
  width: auto;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .illu-strip img { height: 128px; }
}

.field, .field-area, .field-select {
  width: 100%;
  min-height: 3.15rem;
  border-radius: 4px;
  border: 2px solid #d4d4d4;
  background: white;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}
.field-area { min-height: 8rem; resize: vertical; }
.field:focus, .field-area:focus, .field-select:focus {
  outline: 3px solid rgba(0, 142, 40, 0.22);
  border-color: var(--green);
}

.topic-card {
  min-height: 4.4rem;
  border-radius: 4px;
  border: 2px solid #ececec;
  background: white;
  padding: 1rem 0.9rem;
  text-align: left;
  font-weight: 700;
}
.topic-card:hover { border-color: var(--green); }
.topic-card.is-selected {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.topic-card.is-selected svg { color: var(--gold); }

.step-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #d4d4d4;
}
.step-dot.is-active { background: var(--brand); transform: scale(1.25); }
.step-dot.is-done { background: var(--green); }

.error-box {
  border-radius: 4px;
  background: #ffe8e6;
  color: #9f1200;
  padding: 0.9rem 1rem;
  border: 1px solid #ffb2ab;
}
.warning-box {
  border-radius: 4px;
  background: #fff4d6;
  color: #7a4d00;
  border: 1px solid var(--gold);
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.code-chip {
  background: var(--green);
  color: white;
  font-family: Rapor, Inter, sans-serif;
  letter-spacing: 0.06em;
}

.page-illu {
  width: min(180px, 42vw);
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
}
