/* ============================================================
   Terapeuta Mar Rubio — terapeutamarrubio.com
   Identidade: brand.json (sage/forest green · Playfair + Nunito)
   Página de marca: tema claro fixo (não segue dark mode do visitante)
   ============================================================ */

:root {
  --crema: #FAF9F5;
  --crema-2: #F3F1EA;
  --white: #FFFFFF;
  --sage: #ADC0A5;
  --sage-light: #E4EBDF;
  --sage-mist: #F0F4EC;
  --forest: #54943A;
  --forest-dark: #3F7529;
  --ink: #3E4348;
  --ink-soft: #6A7076;
  --line: #E2E0D8;
  --shadow: 0 10px 30px rgba(62, 67, 72, 0.08);
  --radius: 18px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Nunito", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--forest); text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografia ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; color: var(--ink); }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

.section-sub {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.accent { color: var(--forest); }
.accent-italic { font-style: italic; color: var(--forest); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(84, 148, 58, 0.32);
}

.btn-primary:hover { background: var(--forest-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--sage);
}

.btn-ghost:hover { background: var(--sage-light); }

.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Navbar ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(62,67,72,0.06); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-logo { display: flex; align-items: baseline; gap: 10px; }

.nav-logo .mr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
}

.nav-logo .tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
}

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }

.nav-links a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--forest); }

.nav-cta { padding: 11px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  padding: 150px 0 80px;
  background:
    radial-gradient(700px 400px at 88% 10%, rgba(173, 192, 165, 0.28), transparent 65%),
    radial-gradient(500px 350px at 5% 90%, rgba(173, 192, 165, 0.18), transparent 60%),
    var(--crema);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 8px; }

.hero .slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--forest);
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-checks { list-style: none; margin-bottom: 32px; display: grid; gap: 10px; }

.hero-checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }

.hero-checks svg { width: 21px; height: 21px; flex: none; margin-top: 3px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo { position: relative; justify-self: center; }

.hero-photo img {
  width: min(380px, 80vw);
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 190px 190px var(--radius) var(--radius);
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 120px; height: 120px;
  background: url("../img/mariposa.png") center / contain no-repeat;
  opacity: 0.85;
  transform: rotate(12deg);
  z-index: 2;
}

.hero-badge {
  position: absolute;
  left: -14px; bottom: 26px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--forest); animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(84, 148, 58, 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(84, 148, 58, 0); }
}

/* ---------- Seções genéricas ---------- */

.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-alt { background: var(--white); }
.section-sage { background: var(--sage-mist); }

/* ---------- Dores (¿Te suena?) ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(62,67,72,0.05);
}

.pain-card::before {
  content: "“";
  display: block;
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--sage);
  margin-bottom: 12px;
  font-style: normal;
}

.pain-closer {
  text-align: center;
  margin-top: 44px;
  font-size: 1.15rem;
}

.pain-closer strong { color: var(--forest); }

/* ---------- Diferenciais ---------- */

.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.diff-card {
  background: var(--crema);
  border-radius: var(--radius);
  padding: 34px 28px;
  border: 1px solid var(--line);
}

.diff-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--forest);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.diff-card h3 { margin-bottom: 10px; }
.diff-card p { color: var(--ink-soft); font-size: 0.98rem; }

.diff-quote {
  margin-top: 40px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--ink);
}

.diff-quote strong { color: var(--forest); font-weight: 700; }

/* ---------- Método AMar ---------- */

.metodo-intro { text-align: center; max-width: 700px; margin: 0 auto 50px; }

.metodo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.metodo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--sage);
  transition: transform 0.2s ease;
}

.metodo-card:hover { transform: translateY(-4px); }

.metodo-card .letter {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 8px;
}

.metodo-card h3 { font-size: 1.35rem; margin-bottom: 4px; }

.metodo-card .sub {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--forest);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.metodo-card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Temas ---------- */

.temas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 880px; margin: 0 auto; }

.tema-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  font-weight: 600;
}

.tema-item svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }

/* ---------- Testimonios ---------- */

.video-wrap {
  max-width: 720px;
  margin: 0 auto 54px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.prints-scroller {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.prints-scroller::-webkit-scrollbar { height: 8px; }
.prints-scroller::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 8px; }
.prints-scroller::-webkit-scrollbar-track { background: var(--crema-2); border-radius: 8px; }

.print-card {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
  background: var(--white);
}

.print-card img { width: 100%; height: auto; }

.prints-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Sobre mí ---------- */

.sobre-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.sobre-photo img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
}

.sobre-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--forest);
  border-left: 4px solid var(--sage);
  padding-left: 18px;
  margin: 22px 0;
}

.formacion { list-style: none; margin-top: 22px; display: grid; gap: 12px; }

.formacion li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }

.formacion svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* ---------- Cómo empezar ---------- */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}

.step-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 800;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest);
  transition: transform 0.2s ease;
  flex: none;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- CTA final ---------- */

.cta-final {
  background: linear-gradient(135deg, var(--sage) 0%, #9DB394 100%);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 260px; height: 260px;
  background: url("../img/mariposa.png") center / contain no-repeat;
  opacity: 0.14;
  transform: rotate(-14deg);
}

.cta-final h2 { color: #2E3A2A; margin-bottom: 14px; }

.cta-final p {
  color: #3E4A39;
  font-size: 1.12rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-final .btn-primary { box-shadow: 0 10px 28px rgba(63, 117, 41, 0.4); }

/* ---------- Footer ---------- */

.footer { background: var(--white); border-top: 1px solid var(--line); padding: 44px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer .brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }

.footer p { font-size: 0.88rem; color: var(--ink-soft); }

.footer-links { display: flex; gap: 18px; align-items: center; }

.footer-links a { font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 7px; }

.footer-links svg { width: 18px; height: 18px; }

/* ---------- WhatsApp flutuante ---------- */

.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}

.wa-float:hover { transform: scale(1.08); }

.wa-float svg { width: 32px; height: 32px; }

/* ---------- Reveal (progressivo, visível sem JS) ---------- */

@media (prefers-reduced-motion: no-preference) {
  body.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  body.js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-checks { justify-items: center; }
  .hero-actions { justify-content: center; }
  .hero-photo { order: -1; }
  .hero { padding-top: 120px; }
  .pain-grid, .diff-grid, .metodo-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .sobre-grid { grid-template-columns: 1fr; gap: 36px; }
  .sobre-photo { text-align: center; }
  .sobre-photo img { margin: 0 auto; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .pain-grid, .diff-grid, .metodo-grid, .steps-grid, .temas-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: var(--crema);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 22px 24px 26px;
    gap: 18px;
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta-desktop { display: none; }
}
