/* Nueve Setenta · medios exteriores
   Colors and type follow brand book v2. No accent colors: never green,
   ivory or gold. Peltre is a physical finish and never used on screen.
   Color tokens keep the brand book's official names. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url(../fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url(../fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --basalto: #1B1F24;
  --caliza: #E7E8E6;
  --tinta: #111418;
  --niebla: #9BA6B5;
  --grafito: #575F6B;
  --rule: rgba(155, 166, 181, 0.22);
  --gutter: 16px;
  --max-width: 1120px;
  --font: 'Outfit', 'Century Gothic', 'Avenir Next', Avenir, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--basalto);
  color: var(--caliza);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 20;
  background: var(--caliza); color: var(--tinta); padding: 8px 12px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* Wordmark: weight 400, 0.05em tracking; descriptor 0.18em, lowercase */
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-name { font-weight: 400; letter-spacing: 0.05em; font-size: 1.125rem; }
.brand-descriptor { font-weight: 400; letter-spacing: 0.18em; font-size: 0.6875rem; text-transform: lowercase; color: var(--niebla); margin-top: 4px; }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
}
.menu { display: flex; align-items: center; gap: 28px; font-size: 0.9375rem; }
.menu a { text-decoration: none; }
.menu a:hover { color: var(--niebla); }
.coming-soon { color: var(--niebla); }
.coming-soon small { font-size: 0.6875rem; letter-spacing: 0.08em; margin-left: 4px; color: var(--grafito); }
.menu-toggle { display: none; }

@media (max-width: 759px) {
  .menu-toggle {
    display: block; background: none; border: 1px solid var(--rule); padding: 8px 14px; cursor: pointer;
  }
  .menu {
    display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--basalto); border: 1px solid var(--rule);
  }
  .menu.open { display: flex; }
  .menu > * { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  .menu > *:last-child { border-bottom: 0; }
}

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: calc(28px + env(safe-area-inset-bottom)); max-width: 30rem;
}
.hero-copy h1 { font-size: clamp(1.625rem, 6.4vw, 2.75rem); letter-spacing: 0.005em; }
.hero-copy p { margin-top: 12px; color: var(--niebla); max-width: 26rem; }
@media (min-width: 760px) {
  .hero-copy { left: max(var(--gutter), calc((100vw - var(--max-width)) / 2)); bottom: 12vh; }
}

.button {
  display: inline-block; margin-top: 20px; padding: 12px 20px;
  background: var(--caliza); color: var(--tinta); text-decoration: none; font-weight: 400;
  border: 0; cursor: pointer;
}
.button:hover { background: #fff; }

.skip-intro {
  position: absolute; right: var(--gutter); top: calc(76px + env(safe-area-inset-top)); z-index: 5;
  background: none; border: 1px solid var(--rule); color: var(--niebla);
  padding: 6px 12px; font-size: 0.8125rem; cursor: pointer;
}
.skip-intro[hidden] { display: none; }

/* Map points: real buttons layered over the canvas */
.map-points { position: absolute; inset: 0; pointer-events: none; }
.map-point, .map-cluster {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0;
  background: none; border: 0; cursor: pointer; pointer-events: auto;
  opacity: 0; animation: fade-in 0.4s ease-out forwards;
}
.map-point::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--caliza); box-shadow: 0 0 0 3px var(--basalto);
}
.map-point:hover::before, .map-point:focus-visible::before { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.map-point::after {
  content: attr(data-code); position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
  font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--niebla); white-space: nowrap;
  opacity: 0; transition: opacity 0.15s;
}
.map-point:hover::after, .map-point:focus-visible::after { opacity: 1; }
.map-cluster::before {
  content: attr(data-count); position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; background: var(--caliza); color: var(--tinta); box-shadow: 0 0 0 3px var(--basalto);
  font-size: 0.8125rem; font-weight: 400; line-height: 26px; text-align: center;
}
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .map-point, .map-cluster { animation: none; opacity: 1; } }

/* Sections */
.section { max-width: var(--max-width); margin: 0 auto; padding: 72px var(--gutter); border-top: 1px solid var(--rule); }
.section h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.sample-notice { font-size: 0.8125rem; color: var(--niebla); border: 1px solid var(--rule); padding: 4px 10px; }

.billboard-list {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  background: var(--rule); border: 1px solid var(--rule);
}
.billboard-list li { background: var(--basalto); }
.card {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 20px; cursor: pointer;
}
.card:hover { background: rgba(231, 232, 230, 0.04); }
.card-code { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--niebla); }
.card-name { display: block; font-weight: 400; font-size: 1.0625rem; margin-top: 6px; }
.card-place { display: block; color: var(--niebla); font-size: 0.9375rem; margin-top: 2px; }
.card-size { display: block; color: var(--niebla); font-size: 0.875rem; margin-top: 12px; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-number { display: block; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--niebla); }
.steps h3 { font-size: 1.125rem; margin-top: 8px; }
.steps p { color: var(--niebla); margin-top: 8px; }
.note { margin-top: 40px; color: var(--niebla); font-size: 0.9375rem; }

/* 404 */
.not-found { border-top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.not-found h1 { font-size: clamp(1.625rem, 6vw, 2.5rem); margin-top: 48px; }
.not-found p { color: var(--niebla); }

/* Footer */
.site-footer {
  max-width: var(--max-width); margin: 0 auto; padding: 48px var(--gutter) calc(48px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule); display: grid; gap: 16px; color: var(--niebla);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--caliza); }
.site-footer .brand-name { color: var(--caliza); }
.footer-legal { font-size: 0.8125rem; color: var(--grafito); }
@media (min-width: 760px) { .site-footer { grid-template-columns: 1fr auto auto; align-items: end; gap: 40px; } }

/* Sheets (billboard details and cluster list): bottom sheet on mobile, centered on desktop */
.sheet {
  width: 100%; max-width: 100%; max-height: 88vh; margin: auto 0 0; padding: 0;
  border: 0; border-top: 1px solid var(--rule); background: var(--basalto); color: var(--caliza);
}
.sheet::backdrop { background: rgba(17, 20, 24, 0.72); }
.sheet-body { position: relative; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) {
  .sheet { max-width: 560px; margin: auto; border: 1px solid var(--rule); }
  .sheet-body { padding: 32px; }
}
.sheet-close {
  position: absolute; right: 8px; top: 8px; width: 44px; height: 44px;
  background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--niebla); cursor: pointer;
}
.sheet-close:hover { color: var(--caliza); }
.sheet h2 { font-size: 1.5rem; padding-right: 40px; }

.sheet-code { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--niebla); }
.sheet-place { color: var(--niebla); margin-top: 4px; }
.sheet-photo {
  margin-top: 20px; aspect-ratio: 16 / 9; display: grid; place-items: center;
  border: 1px solid var(--rule); color: var(--grafito); font-size: 0.875rem;
}
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-specs { margin: 20px 0 0; display: grid; gap: 0; }
.sheet-specs div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sheet-specs dt { color: var(--niebla); }
.sheet-specs dd { margin: 0; }

.cluster-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.cluster-list li { border-bottom: 1px solid var(--rule); }
.cluster-list .card { padding: 14px 0; }
