/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #F3E9DD;
  --bg-2:      #EDE1D3;
  --paper:     #FFFFFF;
  --ink:       #2B2420;
  --ink-soft:  #4A3F38;
  --ink-mute:  #8A7C70;
  --gold:      #C6A15B;
  --gold-soft: #DCC79B;
  --mauve:     #8B5D6B;
  --mauve-deep:#6E4652;
  --line:      rgba(43, 36, 32, 0.12);
  --line-soft: rgba(43, 36, 32, 0.07);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1180px;
}

@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; }
ul { list-style: none; padding: 0; }
::selection { background: var(--mauve); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mauve);
  font-weight: 500;
  margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 18px; height: 1px; background: var(--gold);
}

/* [data-reveal] defensive rule: keep split/enriched text visible even if a
   handler never runs (stale JS cache on shared hosting). */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--mauve); }

h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-mute);
  font-weight: 300;
}

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.05rem 2.3rem;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 999px;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), background-color .35s var(--ease-out);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 4px 14px rgba(43,36,32,0.14), 0 1px 3px rgba(43,36,32,0.1);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(43,36,32,0.22), 0 10px 20px rgba(139,93,107,0.18);
  background: var(--mauve-deep);
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--mauve); color: var(--mauve-deep); }

/* Logo */
.logo-mark { width: 100%; height: 100%; }
.logo-lockup { display: inline-flex; align-items: center; gap: .6rem; }
.logo-lockup .logo-mark-wrap { width: 34px; height: 34px; flex: none; }
.logo-wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: .16em;
  color: var(--ink);
  text-transform: uppercase;
}

/* Nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding-block: 1.1rem;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(243, 233, 221, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .75rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-links { display: none; align-items: center; gap: 2.2rem; }
.nav-link {
  position: relative; padding: .3rem 0;
  font-size: .88rem; letter-spacing: .02em; color: var(--ink-soft);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--mauve);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav .btn { padding: .75rem 1.5rem; font-size: .82rem; }

@media (min-width: 720px) {
  .nav-links { display: flex; }
}
@media (min-width: 960px) {
  .nav-cta { display: inline-flex; }
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(6.5rem, 14vw, 8rem) 4rem;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% -10% -10%; z-index: -1;
  background:
    radial-gradient(38% 32% at var(--mesh-x) var(--mesh-y), rgba(198,161,91,.28), transparent 70%),
    radial-gradient(34% 30% at 82% 78%, rgba(139,93,107,.20), transparent 70%);
  filter: blur(70px);
  animation: meshDrift 26s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { --mesh-x: 22%; --mesh-y: 30%; }
  100% { --mesh-x: 42%; --mesh-y: 48%; }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4vw; }
}

.hero-logo { display: inline-block; width: 76px; height: 76px; margin-bottom: 2rem; }
.hero-copy .eyebrow { justify-content: flex-start; }
.hero h1 { max-width: 15ch; }
.hero-sub {
  margin-top: 1.3rem;
  max-width: 42ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-mute);
  font-weight: 300;
}
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-note {
  margin-top: 2.4rem;
  display: flex; align-items: center; gap: .6rem;
  font-size: .8rem; letter-spacing: .04em; color: var(--ink-mute);
}
.hero-note .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.hero-media { position: relative; }
.hero-media-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 946 / 1147;
  box-shadow:
    0 60px 100px -30px rgba(43,36,32,.35),
    0 20px 40px -18px rgba(139,93,107,.25);
}
.hero-media-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  animation: ambientZoom 30s ease-in-out infinite;
}
@keyframes ambientZoom {
  0%, 100% { transform: scale(1.02) translate3d(0,0,0); }
  50%      { transform: scale(1.08) translate3d(-0.6%, -0.6%, 0); }
}
.hero-media-ring {
  position: absolute; z-index: -1;
  width: 82%; aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  top: -8%; right: -12%;
  opacity: .6;
}

/* --- Intro / Qué es --- */
.intro { text-align: center; }
.intro-icon { width: 40px; height: 40px; margin-inline: auto 1.4rem; opacity: .85; }
.intro p { max-width: 60ch; margin-inline: auto; }
.intro p + p { margin-top: .9rem; }

/* --- Modes grid --- */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
@media (min-width: 640px) { .modes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .modes-grid { grid-template-columns: repeat(4, 1fr); } }

.mode-card {
  --card-glow: var(--gold);
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 2rem 1.5rem 1.7rem;
  text-align: center;
  isolation: isolate;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .5s var(--ease-soft);
}
.mode-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--card-glow) 18%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity .5s var(--ease-soft);
}
.mode-card:hover, .mode-card:focus-within {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-glow) 45%, var(--line));
  box-shadow:
    0 34px 60px -24px color-mix(in srgb, var(--card-glow) 45%, transparent),
    0 10px 22px -12px rgba(43,36,32,.18);
}
.mode-card:hover::before, .mode-card:focus-within::before { opacity: 1; }

.mode-sphere {
  width: 46px; height: 46px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  background: var(--card-glow);
  box-shadow:
    inset -4px -6px 10px rgba(0,0,0,.18),
    inset 3px 4px 8px rgba(255,255,255,.35),
    0 8px 18px -6px color-mix(in srgb, var(--card-glow) 65%, transparent);
  transition: transform .5s var(--ease-soft);
}
.mode-card[data-mode="blanco"] .mode-sphere { border: 1px solid var(--line); }
.mode-card:hover .mode-sphere { transform: scale(1.1); }

.mode-nm {
  display: block;
  font-size: .7rem; letter-spacing: .14em; color: var(--ink-mute);
  margin-bottom: .35rem;
}
.mode-name {
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink);
  margin-bottom: .5rem;
}
.mode-benefit { font-size: .88rem; color: var(--ink-mute); line-height: 1.5; }

/* --- Routine --- */
.routine-list {
  display: grid;
  gap: 1.4rem;
  max-width: 900px;
  margin-inline: auto;
  counter-reset: step;
}
@media (min-width: 720px) { .routine-list { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.routine-step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 1.9rem 1.5rem;
  text-align: center;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.routine-step:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -22px rgba(43,36,32,.2); }
.routine-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 1.1rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--mauve-deep);
}
.routine-step p { font-size: .95rem; color: var(--ink-soft); }
.routine-step:last-child .routine-num { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.routine-connector {
  display: none;
}
@media (min-width: 720px) {
  .routine-list { position: relative; }
  .routine-list::before {
    content: "";
    position: absolute; top: 41px; left: 12%; right: 12%; height: 1px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px);
    opacity: .5; z-index: -1;
  }
}

/* --- Final CTA --- */
.cta-final {
  position: relative;
  text-align: center;
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--bg-2);
  overflow: clip;
}
.cta-final::before {
  content: "";
  position: absolute; inset: -30% 10% auto 10%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(198,161,91,.35), transparent 70%);
  filter: blur(90px);
}
.cta-final h2 { max-width: 16ch; margin-inline: auto; }
.cta-final .lede { margin-top: 1rem; }
.cta-final .btn { margin-top: 2.4rem; }

/* --- Footer --- */
.footer {
  padding-block: 3.2rem 2.2rem;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex; flex-direction: column; gap: 1.6rem;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 2.2rem;
}
@media (min-width: 720px) { .footer-top { flex-direction: row; align-items: center; } }
.footer-tagline { font-size: .85rem; color: var(--ink-mute); margin-top: .4rem; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { font-size: .85rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--mauve-deep); }
.footer-bottom {
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .78rem; color: var(--ink-mute);
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* =============================================================
   7. Effects — cursor, magnetic
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot {
  width: 6px; height: 6px; margin: -3px;
  background: var(--mauve); border-radius: 50%;
}
.cursor-ring {
  width: 30px; height: 30px; margin: -15px;
  border: 1px solid var(--gold); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), opacity .35s;
}
.cursor.is-interactive .cursor-ring { width: 46px; height: 46px; margin: -23px; opacity: .7; }
.has-cursor a, .has-cursor button, .has-cursor .mode-card { cursor: none; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* =============================================================
   8. Responsive helpers
   ============================================================= */
@media (min-width: 540px) { .container { padding-inline: 2rem; } }

/* =============================================================
   9. Reduced motion
   ============================================================= */
/* Nothing in this design qualifies as "intrusive" (no autoplay video,
   no particles, no >40px parallax, no infinite spinners) — the mesh
   drift and ambient zoom are slow ambient loops and keep running per
   the functional-motion guidance; only html scroll-behavior is
   shortened (see section 2). */
