/* —— HOST-TO-HOST · BRAND.CSS ——
   Shared foundation for all main pages (concept-a-main, coaching, recursos).
   Tokens · reset · base type · noise grain · nav (light + dark variants) ·
   eyebrow labels · pill button · footer · shared responsive rules.
   Page-specific layout stays in each page's inline <style>.
*/

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

:root {
  --cream:   #FCF3E9;
  --cream-d: #F0E2CF;
  --coral:   #F39878;
  --coral-d: #E8825F;
  --periw:   #96A1D2;
  --olive:   #989C6F;
  --ink:     #403E3F;
  --ink-bg:  #2B2826; /* dark section backgrounds */
  --ink-s:   #6B6869;
  --white:   #FDFCFA;
  --badge-free: #3E4232; /* deep olive-ink — "Gratis" pill */
  --badge-paid: #BC5B2E; /* burnt coral — "Pago" pill + card links on white */
}

html { font-size: 62.5%; }
html.nomotion { scroll-behavior: smooth; }

/* Lenis smooth-scroll plumbing */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Film-grain noise over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── NAV — light (ink) variant by default; add .nav--dark over dark heroes ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 2.4rem 6.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.5s cubic-bezier(0.32,0.72,0,1), background 0.5s cubic-bezier(0.32,0.72,0,1),
              backdrop-filter 0.5s, box-shadow 0.5s;
}

.nav--scrolled {
  padding: 1.4rem 6.4rem;
  background: rgba(252,243,233,0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(64,62,63,0.07);
}

.nav-logo img { height: 4.2rem; transition: height 0.5s cubic-bezier(0.32,0.72,0,1); }
.nav--scrolled .nav-logo img { height: 3.4rem; }

.nav-links { display: flex; align-items: center; gap: 3.6rem; list-style: none; }
.nav-links a {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.65;
  transition: opacity 0.3s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }

.nav-cta {
  font-size: 1.35rem;
  font-weight: 500;
  padding: 1rem 2.6rem;
  background: var(--ink);
  color: var(--cream) !important;
  opacity: 1 !important;
  border-radius: 10rem;
  transition: background 0.4s cubic-bezier(0.32,0.72,0,1) !important;
}
.nav-cta:hover { background: var(--coral-d) !important; }

/* Dark variant — cream links, outlined CTA, dark frosted glass */
.nav--dark .nav-links a { color: var(--cream); }
.nav--dark .nav-cta {
  background: transparent;
  border: 1px solid rgba(252,243,233,0.4);
  color: var(--cream) !important;
  transition: background 0.4s cubic-bezier(0.32,0.72,0,1), border-color 0.4s !important;
}
.nav--dark .nav-cta:hover { background: var(--coral-d) !important; border-color: var(--coral-d); }
.nav--dark.nav--scrolled {
  background: rgba(43,40,38,0.78);
  box-shadow: 0 1px 0 rgba(252,243,233,0.07);
}

/* ── EYEBROW LABEL — uppercase kicker with short coral line below ──
   .c-label on light backgrounds · add .c-label--cream on dark ones */
.c-label {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-d);
}
.c-label::after {
  content: '';
  display: block;
  width: 3.2rem;
  height: 1px;
  background: var(--coral-d);
  margin-top: 1.4rem;
}
.c-label--cream { color: var(--cream); }
.c-label--cream::after { background: var(--coral); }

/* ── PILL BUTTON ── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.7rem 3.4rem;
  background: var(--coral-d);
  color: var(--white) !important;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 10rem;
  transition: background 0.4s cubic-bezier(0.32,0.72,0,1), transform 0.25s;
  will-change: transform;
  white-space: nowrap;
}
.btn-pill:hover { background: var(--coral); transform: translateY(-1px); }
.btn-pill:active { transform: scale(0.98); }
.btn-pill svg { width: 1.8rem; height: 1.8rem; stroke-width: 2.5; transition: transform 0.4s cubic-bezier(0.32,0.72,0,1); }
.btn-pill:hover svg { transform: translateX(3px); }

/* ── FOOTER ── */
.footer {
  background: var(--ink-bg);
  padding: 10rem 6.4rem 4.8rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 6.4rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid rgba(252,243,233,0.08);
  margin-bottom: 4rem;
}

.footer-logo img { height: 4.2rem; margin-bottom: 2.4rem; }
.footer-tag { font-size: 1.55rem; color: rgba(252,243,233,0.45); line-height: 1.7; max-width: 38ch; }

.f-h { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(252,243,233,0.28); margin-bottom: 2.8rem; }
.f-links { list-style: none; }
.f-links li { margin-bottom: 1.4rem; }
.f-links a {
  font-size: 1.5rem;
  color: rgba(252,243,233,0.55);
  display: inline-block;
  transition: color 0.3s cubic-bezier(0.32,0.72,0,1), transform 0.3s cubic-bezier(0.32,0.72,0,1);
}
.f-links a:hover {
  color: var(--coral);
  transform: translateX(4px);
}

.footer-bt { display: flex; justify-content: space-between; align-items: center; }
.f-copy { font-size: 1.3rem; color: rgba(252,243,233,0.25); }
.f-leg { display: flex; gap: 2.4rem; }
.f-leg a { font-size: 1.3rem; color: rgba(252,243,233,0.25); transition: color 0.3s; }
.f-leg a:hover { color: rgba(252,243,233,0.5); }

/* ── SHARED RESPONSIVE ── */
@media (max-width: 768px) {
  html { font-size: 56.25%; }
  .nav { padding: 2rem 2.4rem; }
  .nav--scrolled { padding: 1.2rem 2.4rem; }
  /* Hide text links on mobile but keep the CTA pill visible */
  .nav-links li:not(:last-child) { display: none; }

  .btn-pill { width: 100%; justify-content: center; }

  .footer { padding: 8rem 2.4rem 4rem; }
  .footer-top { grid-template-columns: 1fr; gap: 4rem; }
  .footer-bt { flex-direction: column; gap: 1.6rem; }
  .f-leg { flex-direction: column; align-items: center; gap: 1rem; }
}
