/* =====================================================
   Mundo de las Banderas — site styles v1.0
   /assets/css/site.css
   Visual language derived from the Mundo family design
   (editorial bands, Jost + JetBrains Mono, warm paper bg).
   ===================================================== */

/* --- Fonts (self-hosted, no third-party requests) ---- */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/jost-latin-300-normal.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;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/jost-latin-ext-300-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jost-latin-500-normal.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;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jost-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

/* --- Tokens ----------------------------------------- */
:root {
  --ink: #201f1d;
  --ink-soft: #5b5650;
  --ink-faint: #7a736a;
  --bg: #fbf7f1;
  --bg-tint: #f1e4d3;
  --rule: #e6decf;
  --es-red: #ad1519;
  --es-red-deep: #8e1014;
  --es-yellow: #f1bf00;
  --font-display: 'Jost', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --sh-h: 60px;
}

/* --- Base ------------------------------------------- */
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sh-h) + 16px);
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
ol, ul { margin: 0; padding: 0; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--es-red); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wide { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* =====================================================
   SITE HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.sh-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: var(--sh-h);
  display: flex;
  align-items: center;
}

/* CSS text wordmark (no raster logo yet) */
.wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
}
.wm-p1 { border-bottom: 1.5px solid var(--es-red); padding-bottom: 2px; }
.wm-p2 { border-bottom: 1.5px solid var(--es-yellow); padding-bottom: 2px; }

.site-nav { display: flex; align-items: center; margin-left: auto; }
.sn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.sn-link {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.12s;
}
.sn-link:hover { color: var(--ink); }
.sn-link--cta {
  color: var(--es-red);
  border: 1px solid var(--es-red);
  padding: 8px 16px;
  margin-left: 8px;
  transition: background 0.12s, color 0.12s;
}
.sn-link--cta:hover { background: var(--es-red); color: var(--bg); }

.sh-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.sh-burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.sh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.sh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--es-red);
  margin: 0 0 18px;
  display: block;
}
h1 {
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.14;
  letter-spacing: 0.2px;
  margin: 0 0 22px;
}
.h2 {
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.16;
  margin: 0 0 20px;
  color: var(--ink);
}
.body-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 560px;
}
.body-text:last-child { margin-bottom: 0; }
.accent-rule { display: flex; width: 170px; height: 4px; }
.accent-rule span { display: block; height: 100%; }
.accent-rule .r { width: 30%; background: var(--es-red); }
.accent-rule .y { width: 40%; background: var(--es-yellow); }
.accent-rule .r2 { width: 30%; background: var(--es-red); }

/* --- Buttons ---------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  padding: 16px 28px;
  border: 1px solid var(--es-red);
  background: var(--es-red);
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--es-red-deep); border-color: var(--es-red-deep); }
.cta-row { margin: 28px 0 0; }
.btn-note {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.btn-note a { color: var(--ink); text-underline-offset: 3px; }

/* =====================================================
   HERO
   ===================================================== */
.photo-frame {
  width: 100%;
  height: clamp(380px, 34vw, 540px);
  overflow: hidden;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--rule);
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
}
.card-row { position: relative; z-index: 2; margin-top: -96px; padding-bottom: 72px; }
.text-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 44px 48px;
  max-width: 620px;
}
.text-card .body-text { font-size: 16.5px; max-width: 520px; }
.text-card .accent-rule { margin-top: 30px; }

/* =====================================================
   BANDS
   ===================================================== */
.band { padding: 80px 0; border-top: 1px solid var(--rule); }
.band-tint { background: var(--bg-tint); }
.band-tight { padding: 56px 0; }
.sec-head { margin: 0 0 40px; max-width: 640px; }

/* Two-column split (text / list) */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

/* Numbered editorial list */
.n-list { list-style: none; border-top: 1px solid var(--rule); }
.n-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.n-list .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  width: 22px;
  flex-shrink: 0;
}

/* --- Category cards --------------------------------- */
.cat-cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cat-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
}
/* Brand accent: red + yellow underline pair, echoing the wordmark */
.cat-card::before {
  content: '';
  display: block;
  width: 58px;
  height: 1.5px;
  margin: 6px 0 24px;
  background: linear-gradient(to right,
    var(--es-red) 0 30px,
    transparent 30px 36px,
    var(--es-yellow) 36px 100%);
}
.cat-card h3 {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.cat-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* --- Future assortment strip ------------------------ */
.future {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 40px;
  align-items: baseline;
}
.future .h2 { margin: 0; }

/* --- Audience list (two columns on desktop) --------- */
.aud-list { list-style: none; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr; column-gap: 48px; }
.aud-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.5;
}
.aud-list li::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--es-red);
  flex-shrink: 0;
  transform: translateY(-4px);
}

/* --- B2B dark band ---------------------------------- */
.dark { background: var(--ink); border-top: none; }
.dark .eyebrow { color: rgba(251,247,241,0.5); }
.dark .h2 { color: var(--bg); }
.dark .body-text { color: rgba(251,247,241,0.68); }
.btn-ghost {
  background: transparent;
  color: var(--bg);
  border-color: rgba(251,247,241,0.35);
  margin-top: 12px;
}
.btn-ghost:hover { background: rgba(251,247,241,0.08); border-color: rgba(251,247,241,0.7); }
.dark :focus-visible { outline-color: var(--es-yellow); }

/* =====================================================
   SITE FOOTER
   ===================================================== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 40px;
  font-size: 14px;
  color: var(--ink-soft);
}
.sf-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.sf-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.sf-brand .wordmark { margin-bottom: 14px; }
.sf-tagline { font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; max-width: 300px; }
.sf-email {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
}
.sf-email:hover { text-decoration: underline; }
.sf-h {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}
.sf-col p { font-size: 13px; line-height: 1.65; margin: 0 0 10px; }
.sf-col p:last-child { margin-bottom: 0; }
.sf-col a { color: var(--ink); text-underline-offset: 3px; }
.sf-bottom { padding: 16px 0 24px; }
.sf-copy { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin: 0; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (min-width: 640px) {
  .cat-cards { grid-template-columns: 1fr 1fr; }
  .aud-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .split { grid-template-columns: 38fr 62fr; gap: 80px; }
  .cat-cards { grid-template-columns: repeat(4, 1fr); }
  .future { grid-template-columns: 38fr 62fr; gap: 80px; }
  .sf-top { grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .sh-inner, .sf-inner { padding: 0 24px; }
  .wide { padding: 0 24px; }
}

@media (max-width: 760px) {
  :root { --sh-h: 56px; }
  .wordmark { font-size: 15px; }
  .sh-burger { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--sh-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    border-top: 1px solid var(--rule);
    padding: 16px 24px 40px;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    overflow-y: auto;
    z-index: 199;
  }
  .site-nav.is-open { display: flex; }
  .sn-list { flex-direction: column; align-items: stretch; gap: 0; }
  .sn-link {
    font-size: 13px;
    letter-spacing: 1px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
  }
  .sn-link--cta { margin: 24px 0 0; text-align: center; padding: 16px; border: 1px solid var(--es-red); }

  .band { padding: 56px 0; }
  .band-tight { padding: 44px 0; }
  .photo-frame { height: clamp(220px, 40vh, 300px); }
  .photo-frame img { object-position: 50% 30%; }
  .card-row { margin-top: 24px; padding-bottom: 48px; }
  .text-card { max-width: 100%; padding: 32px 24px; }
  .cat-card { padding: 24px 22px 26px; }
}

@media (max-width: 480px) {
  .wide { padding: 0 16px; }
  .sh-inner, .sf-inner { padding: 0 16px; }
  .text-card { padding: 28px 20px; }
  .btn { display: block; text-align: center; padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
