/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0A1712;   /* deep green-blue near-black, never pure #000 */
  --bg-2:      #0E2019;
  --bg-3:      #142A21;   /* card surface */
  --bg-4:      #1B342A;
  --cream:     #F0EDE4;   /* text on dark, never pure white */
  --cream-2:   #C9C4B4;
  --cream-3:   #7C8880;   /* metadata / muted */
  --accent:    #4FA37A;   /* emerald — main accent */
  --accent-2:  #3A7C5C;
  --blue:      #2A4A63;   /* deep blue — secondary */
  --blue-2:    #1B3348;
  --line:      rgba(240,237,228,.12);
  --line-soft: rgba(240,237,228,.06);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --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;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  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; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.section {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section-head h2 { margin-top: .75rem; }
.section-head p { margin-top: 1rem; color: var(--cream-2); font-size: 1.05rem; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

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

.hero-title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); max-width: 20ch; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .5s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #06120D;
  box-shadow: 0 8px 30px -8px rgba(79,163,122,.55);
}
.btn-primary:hover { box-shadow: 0 12px 40px -6px rgba(79,163,122,.7); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.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);
}

.card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-4));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out);
}
.card:hover { border-color: rgba(79,163,122,.35); }
.card-halo {
  position: absolute; inset: -1px; border-radius: inherit;
  background: radial-gradient(220px circle at var(--hx, 50%) var(--hy, 50%), rgba(79,163,122,.22), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease-out); pointer-events: none;
}
.card:hover .card-halo { opacity: 1; }

/* Placeholder image blocks — swap for real photos later */
.img-placeholder {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .6rem;
  background:
    repeating-linear-gradient(135deg, rgba(240,237,228,.04) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--cream-3);
  font-size: .8rem;
  letter-spacing: .04em;
  overflow: hidden;
}
.img-placeholder svg { width: 28px; height: 28px; opacity: .6; }
.img-placeholder span { font-family: var(--mono); text-transform: uppercase; font-size: .68rem; }

.form-field {
  display: flex; flex-direction: column; gap: .5rem;
}
.form-field label {
  font-size: .8rem; letter-spacing: .04em; color: var(--cream-2);
}
.form-field input,
.form-field textarea {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1rem;
  color: var(--cream);
  font: inherit;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: var(--bg-4);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: 1.25rem;
  transition: padding .4s var(--ease-out), background .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: .85rem;
  background: rgba(10,23,18,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--cream); }
.nav-brand-mark { flex-shrink: 0; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { font-size: .92rem; color: var(--cream-2); position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px;
  background: var(--accent); transition: right .35s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: none; }

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

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: clip;
}
.hero-mesh {
  position: absolute; inset: -10% -10% -30% -10%; z-index: -2;
  background:
    radial-gradient(at 22% 28%, rgba(79,163,122,.30) 0%, transparent 55%),
    radial-gradient(at 78% 20%, rgba(42,74,99,.35) 0%, transparent 55%),
    radial-gradient(at 50% 90%, rgba(58,124,92,.22) 0%, transparent 60%),
    var(--bg);
  filter: blur(60px) saturate(130%);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.18) rotate(8deg); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}
.hero-graphic {
  display: none;
  position: absolute;
  top: 50%; right: -4%;
  width: 46%; max-width: 620px;
  transform: translateY(-50%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 960px) {
  .hero-graphic { display: block; }
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--cream-2);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.hero-stats {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 640px;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.stat-value {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--accent);
  font-style: italic;
}
.stat-label {
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--cream-3);
  max-width: 18ch;
}

/* =============================================================
   8. El patrón (diagnosis)
   ============================================================= */
.patron-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.patron-item {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: background .4s var(--ease-out);
}
.patron-item:hover { background: var(--bg-3); }
.patron-num {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--accent);
  padding-top: .3rem;
}
.patron-item h3 { margin-bottom: .5rem; }
.patron-item p { color: var(--cream-2); font-size: .95rem; max-width: 52ch; }

.patron-callout {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--cream);
  text-align: center;
  max-width: 20ch;
  margin-inline: auto;
  position: relative;
  padding: 2rem;
}
.patron-callout::before, .patron-callout::after {
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 40px; height: 1px; background: var(--accent);
}
.patron-callout::before { top: 0; }
.patron-callout::after { bottom: 0; }

/* =============================================================
   8.5 Método M.E.N.T.E.
   ============================================================= */
.method-steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  position: relative;
}
.method-step {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-4));
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}
.method-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(79,163,122,.14);
  border: 1px solid rgba(79,163,122,.4);
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
}
.method-step h3 { margin-bottom: .5rem; }
.method-step p { color: var(--cream-2); font-size: .92rem; }

@media (min-width: 720px) {
  .method-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .method-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    counter-reset: step;
  }
  .method-step { border-radius: 0; border-left: none; }
  .method-step:first-child { border-radius: 18px 0 0 18px; }
  .method-step:last-child { border-radius: 0 18px 18px 0; border-right: 1px solid var(--line); }
  .method-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%; right: -1px;
    width: 14px; height: 14px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 1;
  }
}

/* =============================================================
   9. Beneficios
   ============================================================= */
.benefits-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.benefit-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,163,122,.12);
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.benefit-icon svg { width: 22px; height: 22px; }

/* =============================================================
   10. Testimonios
   ============================================================= */
.testimonials-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.testimonial-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.testimonial-name { font-weight: 600; font-size: .95rem; }
.testimonial-role { font-size: .8rem; color: var(--cream-3); }
.testimonial-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream-2);
  line-height: 1.5;
}
.testimonial-quote::before { content: "\201C"; color: var(--accent); }
.testimonial-quote::after { content: "\201D"; color: var(--accent); }

/* =============================================================
   11. Contacto
   ============================================================= */
.contact-wrap {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.contact-halo {
  position: absolute; inset: -60% -20% -80% -20%;
  background: radial-gradient(45% 35% at 30% 20%, rgba(79,163,122,.28), transparent 70%);
  filter: blur(90px);
  pointer-events: none;
}
.contact-form { display: grid; gap: 1.1rem; position: relative; }
.contact-form .form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.contact-info { position: relative; display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; }
.contact-info-item { display: flex; flex-direction: column; gap: .3rem; }
.contact-info-item span:first-child { font-size: .78rem; color: var(--cream-3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.contact-info-item a, .contact-info-item span:last-child { font-size: 1.05rem; }

.form-status {
  display: none;
  align-items: center; gap: .6rem;
  font-size: .9rem; color: var(--accent);
  margin-top: .5rem;
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 18px; height: 18px; }

/* =============================================================
   12. Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  color: var(--cream-3);
  font-size: .85rem;
}
.footer-inner {
  display: flex; flex-direction: column; gap: 1rem;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-credits { font-size: .78rem; }
.footer-credits a { color: var(--cream-3); text-decoration: underline; text-underline-offset: 2px; }
.footer-credits a:hover { color: var(--accent); }

/* =============================================================
   13. Effects
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s 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: 5px; height: 5px; margin: -2.5px; background: var(--cream); border-radius: 50%; }
.cursor-ring {
  width: 32px; height: 32px; margin: -16px; border: 1px solid var(--cream); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 48px; height: 48px; margin: -24px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

.count-up { font-variant-numeric: tabular-nums; }

/* =============================================================
   14. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .contact-form .form-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-wrap { grid-template-columns: 1.3fr 1fr; }
}
@media (min-width: 960px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .patron-item { grid-template-columns: 60px 1fr; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: clamp(3.4rem, 5.6vw, 5.6rem); }
}

/* =============================================================
   15. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* mesh breathing, tilt, hovers, fades, reveals intentionally NOT disabled —
     only autoplay/particle/large-parallax effects would be gated, and this
     project has none. */
}
