/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #150f0a;
  --bg-2:      #1c150e;
  --bg-3:      #251c13;
  --cream:     #f2ebda;
  --cream-2:   #ddd2bc;
  --cream-3:   #8b7e68;
  --gold:      #e0a929;
  --gold-2:    #c28e14;
  --gold-soft: rgba(224,169,41,0.16);
  --line:      rgba(242,235,218,0.12);
  --line-soft: rgba(242,235,218,0.06);

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --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: 1160px;
  --mx: 50%;
  --my: 30%;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
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.08; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--bg); }

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

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}
.section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }

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

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #211705;
  box-shadow: 0 0 0 0 rgba(224,169,41,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--cream);
  box-shadow: 0 12px 30px -8px rgba(224,169,41,0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(242,235,218,0.3);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.1rem; font-size: 0.98rem; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 1.2rem;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), padding .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14,11,9,0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: .8rem;
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; }
.nav-logo { display: flex; flex-direction: column; align-items: center; line-height: 1.15; margin-right: auto; gap: 0.3rem; }
.nav-logo-main { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.02em; }
.nav-logo-badge { font-size: 0.72rem; color: var(--gold); font-family: var(--sans); letter-spacing: 0.04em; font-style: italic; }
.nav-links { display: none; gap: 1.75rem; font-size: 0.92rem; }
.nav-links a { position: relative; color: var(--cream-3); transition: color .3s var(--ease-out); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px;
  background: var(--gold); transition: right .35s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: .5rem;
  position: relative; z-index: 1;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--cream); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav.is-open .nav-links {
  display: flex;
  position: fixed;
  inset: 64px 0 0 0;
  flex-direction: column;
  gap: 0;
  padding: 1rem 1.25rem 2rem;
  background: rgba(14,11,9,0.98);
  backdrop-filter: blur(16px);
  overflow-y: auto;
}
.nav.is-open .nav-links a {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
  color: var(--cream);
}
.nav.is-open .nav-cta { display: none; }

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

/* =============================================================
   6a. Ambient layers — page-wide glow, mouse glow, grain (adds depth to flat dark bg)
   ============================================================= */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 12% 8%, rgba(224,169,41,0.10) 0%, transparent 70%),
    radial-gradient(32% 26% at 92% 22%, rgba(194,142,20,0.08) 0%, transparent 70%),
    radial-gradient(36% 30% at 15% 62%, rgba(224,169,41,0.07) 0%, transparent 70%),
    radial-gradient(40% 34% at 88% 88%, rgba(224,169,41,0.09) 0%, transparent 70%);
  filter: blur(40px);
  animation: bgGlowDrift 40s ease-in-out infinite;
}
@keyframes bgGlowDrift {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-2%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-glow { animation: none; }
}
.mouse-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(560px circle at var(--mx) var(--my), rgba(224,169,41,0.10) 0%, transparent 62%),
    radial-gradient(900px circle at var(--mx) var(--my), rgba(224,169,41,0.045) 0%, transparent 70%);
  transition: background .6s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .mouse-glow { transition: none; }
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 2; }

/* =============================================================
   6b. Logo mark
   ============================================================= */
/* transform: optically re-centers the mark — its visual "ink" (the RK/fin shape)
   sits ~4% right of the image's geometric center, so the wordmark below looks
   off-center against raw box-centering unless we nudge the mark left. */
.logo-mark { height: 32px; width: auto; flex-shrink: 0; object-fit: contain; display: block; transform: translateX(-2px); }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.footer-brand .logo-mark { height: 36px; transform: translateX(-2.5px); }

/* =============================================================
   6c. Hero mesh gradient (signature effect)
   ============================================================= */
.hero-mesh {
  position: absolute;
  inset: -10% -10% -30% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 28% 24%, rgba(224,169,41,0.22) 0%, transparent 70%),
    radial-gradient(32% 28% at 76% 60%, rgba(194,142,20,0.16) 0%, transparent 70%),
    radial-gradient(45% 40% at 50% 100%, rgba(224,169,41,0.10) 0%, transparent 70%);
  filter: blur(60px);
  animation: meshDrift 24s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.18) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow-x: clip;
}
.hero-inner {
  position: relative; z-index: 1; padding-block: 3rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-inline: auto;
}
.kicker { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--gold); letter-spacing: 0.06em; margin-bottom: 1.5rem; text-transform: uppercase; }
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  max-width: 19ch;
  margin-bottom: 1.5rem;
  font-weight: 500;
  margin-inline: auto;
}
.hero-title em { color: var(--gold); font-style: italic; font-weight: 500; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--cream-2);
  max-width: 46ch;
  margin-bottom: 2.25rem;
  font-weight: 300;
  margin-inline: auto;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

@media (min-width: 960px) {
  .hero-inner { max-width: 900px; }
}


/* =============================================================
   9b. Benefit cards (with tilt + hover glow + numbering)
   ============================================================= */
.benefits { overflow: clip; }
.benefits .container { position: relative; z-index: 1; }
.benefit-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
.benefit-card {
  padding: 2.25rem 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--bg-3) 0%, rgba(30,24,19,0.4) 100%);
  transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
  will-change: transform;
}
.benefit-card:hover { border-color: var(--gold); box-shadow: 0 20px 40px -20px rgba(224,169,41,0.25); }
.benefit-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.benefit-icon { width: 28px; height: 28px; color: var(--gold); flex-shrink: 0; margin-bottom: 0; }
.benefit-n { font-family: var(--serif); color: var(--gold); font-size: 1rem; font-style: italic; display: block; }
.benefit-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.benefit-card p { color: var(--cream-3); font-size: 0.92rem; }

@media (min-width: 640px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .benefit-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   9c. Testimonial
   ============================================================= */
.testimonial .section-title { margin-inline: auto; text-align: center; max-width: 24ch; }
.testimonial .eyebrow { text-align: center; }
.testimonial-card {
  max-width: 620px;
  margin: 2.5rem auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-3);
}
.testimonial-photo {
  width: 76px; height: 76px; border-radius: 50%;
  object-fit: cover; margin-bottom: 1.5rem;
  border: 1px solid var(--gold);
}
.testimonial-card blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.testimonial-card figcaption { display: flex; flex-direction: column; gap: .2rem; }
.testimonial-card figcaption strong { font-family: var(--serif); font-weight: 600; }
.testimonial-card figcaption span { color: var(--cream-3); font-size: 0.85rem; }

/* =============================================================
   10. Process rows (details/summary)
   ============================================================= */
.process-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.process-row { border-bottom: 1px solid var(--line); }
.process-row summary {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding-block: 1.75rem;
  cursor: pointer;
  list-style: none;
}
.process-row summary::-webkit-details-marker { display: none; }
.process-row-n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.process-row-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.7rem); }
.process-row-summary { color: var(--cream-3); font-size: 0.9rem; display: none; font-family: var(--sans); }
.process-row-icon {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  position: relative; flex-shrink: 0;
}
.process-row-icon::before, .process-row-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--cream);
  transition: transform .3s var(--ease-out);
}
.process-row-icon::before { width: 10px; height: 1.5px; transform: translate(-50%,-50%); }
.process-row-icon::after { width: 1.5px; height: 10px; transform: translate(-50%,-50%); }
.process-row[open] .process-row-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.process-row[open] .process-row-icon { border-color: var(--gold); }
.process-row p { padding-bottom: 1.75rem; color: var(--cream-2); max-width: 60ch; padding-left: calc(1.1rem + 1rem); font-family: var(--sans); }

@media (min-width: 720px) {
  .process-row-summary { display: block; }
}

/* =============================================================
   12b. Fit section (¿Es para ti?)
   ============================================================= */
.fit-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.fit-col {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-3);
}
.fit-col h3 { font-size: 1.15rem; margin-bottom: 1.25rem; }
.fit-yes h3 { color: var(--gold); }
.fit-no h3 { color: var(--cream-3); }
.fit-col ul { display: flex; flex-direction: column; gap: 0.9rem; }
.fit-col li { font-size: 0.95rem; color: var(--cream-2); padding-left: 1.6rem; position: relative; }
.fit-yes li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 600; }
.fit-no li::before { content: "×"; position: absolute; left: 0; color: var(--cream-3); font-weight: 600; }
.fit-no li { color: var(--cream-3); }

@media (min-width: 720px) {
  .fit-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   13. Contact form
   ============================================================= */
.contact-inner { display: grid; gap: 3rem; }
.contact-copy p { color: var(--cream-2); max-width: 42ch; }
.contact-form {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-3);
}
.contact-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.82rem; color: var(--cream-3); font-family: var(--sans); }
.field input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-size: 0.95rem;
  transition: border-color .3s var(--ease-out);
}
.field input:focus { border-color: var(--gold); outline: none; }
.btn-submit { margin-top: 0.5rem; width: 100%; }
.form-status { font-size: 0.85rem; color: var(--gold); min-height: 1.2em; }
.form-status a { color: var(--gold); text-decoration: underline; }

.form-success {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-3);
  animation: form-success-in .5s var(--ease-out);
}
.form-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
  margin-bottom: 0.4rem;
}
.form-success h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); margin: 0; }
.form-success p { color: var(--cream-2); margin: 0; }
@keyframes form-success-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 960px) {
  .contact-inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

/* =============================================================
   14. FAQ
   ============================================================= */
.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.4rem 1.5rem;
  background: var(--bg-3);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem; cursor: pointer; list-style: none; font-weight: 500;
  font-size: 1rem; font-family: var(--sans);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold); transition: transform .3s var(--ease-out); }
.faq-icon::before { width: 12px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-icon::after { width: 1.5px; height: 12px; transform: translate(-50%,-50%); }
.faq-item[open] .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-item p { padding-bottom: 1.5rem; color: var(--cream-3); max-width: 62ch; font-size: 0.95rem; }

/* =============================================================
   15. Final CTA
   ============================================================= */
.final-cta { text-align: center; }
.final-cta h2 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.final-cta-sub { color: var(--cream-3); max-width: 46ch; margin-inline: auto; margin-bottom: 2rem; }
.final-cta-email {
  display: inline-block;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--gold);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 4px;
}
.final-cta-email::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.final-cta-email:hover::after { transform: scaleX(1); }
.final-cta .btn { display: block; width: fit-content; margin-inline: auto; }

/* =============================================================
   16. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-meta { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.88rem; color: var(--cream-3); }
.footer-meta a:hover { color: var(--gold); }
.footer-credits { font-size: 0.78rem; color: var(--cream-3); opacity: 0.7; }
.footer-credits a { color: var(--cream-3); text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

/* =============================================================
   17. Responsive base tuning
   ============================================================= */
@media (min-width: 540px) {
  .problem-grid { gap: 1.75rem; }
}
@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}
