:root {
  --blue: #102b80;
  --ink: #0b1f63;
  --orange: #ff641e;
  --paper: #f4ead8;
  --rule: rgba(16, 43, 128, .22);
  --pad: clamp(20px, 5vw, 76px);
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --grot: 'Archivo', Arial, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--blue);
  font-family: var(--grot);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grano de papel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  z-index: 50;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
.defs { position: absolute; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 60; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- encabezado ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px var(--pad);
  background: rgba(244, 234, 216, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.top.scrolled { border-color: var(--rule); box-shadow: 0 6px 24px -18px rgba(11, 31, 99, .5); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 62px; height: auto; display: block; }
.brand span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
}
nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
nav a {
  position: relative;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 0;
}
nav a:not(.ghost)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
nav a:not(.ghost):hover::after { transform: scaleX(1); }
nav .ghost {
  display: inline-flex;
  gap: 12px;
  border: 1.5px solid var(--blue);
  border-radius: 50px;
  padding: 10px 20px;
  transition: background .2s, color .2s;
}
nav .ghost:hover { background: var(--blue); color: var(--paper); }

/* ---------- botones ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-radius: 50px;
  background: var(--blue);
  color: #fff;
  padding: 17px 28px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.pill span { transition: transform .2s; }
.pill:hover { background: var(--orange); transform: translateY(-2px); }
.pill:hover span { transform: translateX(5px); }
.pill.light { background: var(--paper); color: var(--blue); }
.pill.light:hover { background: var(--orange); color: #fff; }
.pill svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  min-height: min(760px, calc(100vh - 82px));
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; padding: clamp(36px, 5vw, 72px) 0 clamp(44px, 5vw, 72px) var(--pad); }
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 10.4vw, 168px);
  line-height: .88;
  letter-spacing: -.012em;
  text-transform: uppercase;
  color: var(--ink);
}
h1 .line { display: block; white-space: nowrap; }
h1 em {
  position: relative;
  display: inline-block;
  margin: .1em 0 0 -.04em;
  padding: .02em .22em .14em .1em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: .62em;
  line-height: 1;
  letter-spacing: -.035em;
  text-transform: none;
  color: var(--paper);
  transform: rotate(-3deg);
}
h1 em span { position: relative; }
.brocha {
  position: absolute;
  inset: 8% -4% 2% -60%;
  background: linear-gradient(90deg, var(--orange) 70%, #ff7a2f);
  border-radius: 40% 12% 30% 8% / 60% 40% 70% 30%;
  filter: url(#brocha);
}
.lede {
  margin: clamp(22px, 2.6vw, 40px) 0 28px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(11.5px, 1vw, 14px);
  letter-spacing: .3em;
  line-height: 1.75;
  text-transform: uppercase;
}
.hero-art { position: absolute; inset: 0 0 0 auto; width: 56%; z-index: 1; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%);
  mask-image: linear-gradient(90deg, transparent, #000 16%);
}

/* ---------- secciones ---------- */
.section { padding: clamp(44px, 6vw, 84px) var(--pad); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--orange); }
.eyebrow::after { content: ''; width: 72px; height: 1px; background: currentColor; opacity: .5; margin-left: 6px; }
.section h2 {
  font-family: var(--grot);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: .9;
  letter-spacing: -.045em;
  word-spacing: .12em;
  text-transform: uppercase;
  margin-top: 18px;
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

.identity {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  border-top: 1px solid var(--rule);
}
.identity .serif { font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -.02em; margin-top: 8px; }
.identity .body {
  font-family: var(--mono);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.7;
  max-width: 34em;
  border-left: 1px solid var(--blue);
  padding: 6px 0 6px clamp(18px, 3vw, 40px);
}

.mission, footer { background: var(--blue); color: var(--paper); }
.mission-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  align-items: stretch;
  margin-top: 26px;
}
.mission-grid h2 { margin-top: 0; padding-right: 24px; font-size: clamp(38px, 4.6vw, 70px); }
.trazo, .aro { position: relative; display: inline-block; }
.trazo svg {
  position: absolute;
  left: -2%; bottom: -.22em;
  width: 104%; height: .34em;
  fill: none;
  stroke: var(--orange);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.axis {
  border-left: 1px solid rgba(244, 234, 216, .4);
  padding: 8px clamp(10px, 1.6vw, 24px) 12px;
  text-align: center;
  transition: transform .25s;
}
.axis svg {
  width: 62px; height: 62px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  margin-bottom: 14px;
  transition: stroke .25s, transform .5s;
}
.axis:hover svg { stroke: var(--orange); transform: rotate(8deg) scale(1.06); }
.axis h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 30px);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.axis p { font-family: var(--mono); font-size: clamp(13px, 1.05vw, 15px); line-height: 1.55; opacity: .92; }

.event { padding-bottom: 0; overflow: hidden; position: relative; }
.event-row { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 4vw, 60px); margin: 14px 0 18px; }
.event h2 {
  font-size: clamp(60px, 9.4vw, 150px);
  word-spacing: 0;
  flex: none;
  font-style: italic;
  letter-spacing: -.055em;
  line-height: .86;
  margin: 0;
  white-space: nowrap;
  color: var(--ink);
}
.event h2 span { color: var(--orange); }
.when { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); border-left: 1px solid var(--blue); padding-left: clamp(18px, 2.6vw, 36px); }
.date { font-weight: 900; font-size: clamp(26px, 3.8vw, 56px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; }
.when .serif { font-size: clamp(16px, 1.6vw, 22px); line-height: 1.25; }
.note { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
#faltan { color: var(--orange); font-weight: 500; }
.sierra {
  display: block;
  width: calc(100% + 2 * var(--pad));
  max-width: none;
  margin: 26px 0 0 calc(-1 * var(--pad));
  height: clamp(84px, 11vw, 150px);
  object-fit: cover;
}

footer { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.aro svg {
  position: absolute;
  left: -12%; top: -8%;
  width: 124%; height: 122%;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  overflow: visible;
}
.sign { margin-top: 30px; font-size: 12px; font-weight: 800; letter-spacing: .16em; line-height: 1.8; text-transform: uppercase; }
.sign span { font-weight: 600; opacity: .8; }
.connect { border-left: 1px solid rgba(244, 234, 216, .4); padding-left: clamp(18px, 4vw, 56px); }
.connect .serif { font-size: clamp(20px, 2vw, 28px); margin-bottom: 20px; }
.domain {
  display: inline-flex;
  align-items: flex-start;
  margin-top: 40px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -.03em;
  line-height: 1;
}
.domain svg { width: .62em; height: .62em; margin: -.2em 0 0 -.02em; fill: none; stroke: var(--orange); stroke-width: 3.2; stroke-linecap: round; }

/* ---------- entrada ---------- */
.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .axis:nth-of-type(2) { transition-delay: .08s; }
.anim .axis:nth-of-type(3) { transition-delay: .16s; }
.anim .axis:nth-of-type(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: no-preference) {
  h1 .line, h1 em, .lede, .hero .pill { animation: sube .8s cubic-bezier(.2, .7, .2, 1) both; }
  h1 .line:nth-child(2) { animation-delay: .07s; }
  h1 .line:nth-child(3) { animation-delay: .14s; }
  h1 em { animation-name: sube-giro; animation-delay: .26s; }
  .lede { animation-delay: .38s; }
  .hero .pill { animation-delay: .46s; }
  .hero-art { animation: aparece 1.2s ease both; }
}
@keyframes sube { from { opacity: 0; transform: translateY(34px); } }
@keyframes sube-giro { from { opacity: 0; transform: translateY(34px) rotate(-3deg); } }
@keyframes aparece { from { opacity: 0; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- tableta ---------- */
@media (max-width: 1020px) {
  .mission-grid { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
  .mission-grid h2 { grid-column: 1 / -1; }
  .axis:first-of-type { border-left: 0; }
  .event-row { flex-wrap: wrap; }
  .event h2 { font-size: clamp(60px, 15vw, 150px); }
}

/* ---------- celular ---------- */
@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .brand img { width: 50px; }
  .brand span { font-size: 9px; padding-left: 10px; }
  nav a:not(.ghost) { display: none; }
  nav .ghost { padding: 9px 16px; font-size: 11px; }
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 34px var(--pad) 8px; }
  h1 { font-size: clamp(64px, 21vw, 124px); }
  .lede { letter-spacing: .22em; }
  .hero-art { position: relative; width: 100%; height: min(105vw, 520px); margin-top: -8px; }
  .hero-art img {
    object-position: center 35%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%);
    mask-image: linear-gradient(180deg, transparent, #000 14%);
  }
  .identity, footer { grid-template-columns: 1fr; align-items: start; }
  .mission-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .axis:nth-of-type(odd) { border-left: 0; }
  .when { border-left: 0; padding-left: 0; width: 100%; justify-content: space-between; }
  .connect { border-left: 0; padding-left: 0; }
  .domain { margin-top: 32px; }
}
