/* =============================================================================
   site.css — estilos compartidos para páginas estáticas (gracias + legales)
   Replica el branding del SPA Tahe México sin depender de su JS.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. FUENTES (locales, subset latin)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/17d86199.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: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/5c91d95b.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/1e2938ab.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;
}

/* -----------------------------------------------------------------------------
   2. VARIABLES (tokens del design system Tahe — espejo de fcac1a13.js)
   -------------------------------------------------------------------------- */
:root {
  --tahe-ink: #111111;
  --tahe-white: #FFFFFF;
  --tahe-mist: #F4F6F8;
  --tahe-grey-light: #F4F6F8;
  --tahe-graphite: #2B2F33;
  --tahe-red: #E21D2D;
  --tahe-beige: #F4F6F8;
  --tahe-text: #2A2A2A;
  --tahe-text-muted: #5C5C5C;

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --header-height: 64px;
  --container-max: 1320px;
}

/* -----------------------------------------------------------------------------
   3. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--tahe-ink);
  background: var(--tahe-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
main { flex: 1; }

/* -----------------------------------------------------------------------------
   4. BUTTONS — espejo del componente Btn del SPA
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--full { width: 100%; }

.btn--primary    { background: var(--tahe-red); color: #fff; border-color: var(--tahe-red); }
.btn--dark       { background: var(--tahe-ink); color: #fff; border-color: var(--tahe-ink); }
.btn--secondary  { background: transparent; color: var(--tahe-ink); border-color: var(--tahe-ink); }
.btn--ghost      { background: transparent; color: var(--tahe-ink); border-color: rgba(17,17,17,0.18); }
.btn--inverted   { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }

/* -----------------------------------------------------------------------------
   5. HEADER (arranca en estado "scrolled" — fondo blanco, blur, borde tenue)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--tahe-grey-light);
}
.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header__logo { display: inline-flex; align-items: center; }
.site-header__logo img { height: 26px; width: auto; }

.site-header__nav { display: none; }
.site-header__nav a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--tahe-ink);
  text-decoration: none;
  padding: 4px 0;
  transition: color .15s ease;
}
.site-header__nav a:hover, .site-header__nav a:focus-visible { color: var(--tahe-red); }

.site-header__cta { display: none; gap: 8px; align-items: center; }

.site-header__menu-toggle {
  width: 40px; height: 40px;
  border-radius: 100px;
  background: var(--tahe-ink);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Drawer mobile */
.site-header__drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 11, 11, 0.5);
  backdrop-filter: blur(4px);
}
.site-header__drawer-inner {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 82%;
  max-width: 360px;
  background: var(--tahe-mist);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.site-header__drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.site-header__drawer-close {
  width: 36px; height: 36px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--tahe-ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.site-header__drawer nav { display: flex; flex-direction: column; }
.site-header__drawer nav a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--tahe-ink);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  letter-spacing: -0.015em;
}
.site-header__drawer-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 1024px) {
  .site-header__inner { padding: 12px 40px; }
  .site-header__logo img { height: 30px; }
  .site-header__nav { display: flex; gap: 28px; }
  .site-header__cta { display: flex; }
  .site-header__menu-toggle { display: none; }
}

/* -----------------------------------------------------------------------------
   6. LAYOUT LEGAL (main central, max-width 720px)
   -------------------------------------------------------------------------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 96px;
}
.legal__accent {
  width: 48px;
  height: 4px;
  background: var(--tahe-red);
  margin: 0 0 24px;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 8px;
  color: var(--tahe-ink);
}
.legal__updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tahe-text-muted);
  letter-spacing: 0.05em;
  margin: 0 0 40px;
  text-transform: uppercase;
}

/* Prosa */
.legal h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.4px;
  line-height: 1.25;
  margin: 56px 0 16px;
  color: var(--tahe-ink);
}
.legal h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  margin: 36px 0 12px;
  color: var(--tahe-ink);
}
.legal p, .legal li {
  font-size: 16px;
  color: var(--tahe-text);
  margin: 0 0 16px;
}
.legal ul, .legal ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal li { margin-bottom: 8px; }
.legal strong { font-weight: 600; color: var(--tahe-ink); }
.legal a {
  color: var(--tahe-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal a:hover, .legal a:focus-visible { text-decoration-thickness: 2px; }

/* Variante "thanks" — mensaje centrado con CTA */
.thanks {
  text-align: center;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.thanks h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin: 0 0 16px;
  max-width: 720px;
}
.thanks p {
  font-size: 17px;
  color: var(--tahe-text-muted);
  max-width: 540px;
  margin: 0 0 40px;
}

@media (min-width: 720px) {
  .legal { padding: 80px 40px 120px; }
  .legal h1 { font-size: 48px; }
  .legal h2 { font-size: 26px; }
  .legal h3 { font-size: 18px; }
  .thanks { padding: 96px 48px; }
  .thanks h1 { font-size: 56px; }
}

/* -----------------------------------------------------------------------------
   7. FOOTER (4 columnas, fondo graphite)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--tahe-graphite);
  color: #fff;
}
.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 20px 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__brand .site-footer__logo {
  height: 50px;
  width: auto;
  filter: invert(1) hue-rotate(180deg);
}
.site-footer__tagline {
  margin: 24px 0 0;
  max-width: 380px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}
.site-footer__brand-cta {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.site-footer__col a,
.site-footer__col-static {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color .15s ease;
}
.site-footer__col a:hover, .site-footer__col a:focus-visible { color: #fff; }
.site-footer__col-static { color: rgba(255, 255, 255, 0.5); }

.site-footer__social {
  margin-top: 32px;
  padding-bottom: 24px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer__social-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-footer__social-icons {
  display: flex;
  gap: 4px;
}
.site-footer__social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 150ms ease;
}
.site-footer__social-icons a:hover,
.site-footer__social-icons a:focus-visible {
  color: #fff;
}
.site-footer__social-icons svg {
  width: 22px;
  height: 22px;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
}
.site-footer__legal a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
.site-footer__legal a:hover, .site-footer__legal a:focus-visible { color: #fff; }
.site-footer__legal-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

@media (min-width: 1024px) {
  .site-footer__inner { padding: 100px 40px 40px; }
  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
  }
  .site-footer__brand .site-footer__logo { height: 62px; }
}
