/* ============================================================
   Escuela de Bienestar / Método TONIC — Design System
   Estilo: cercano y artesanal — paleta pastel cálida (melocotón,
   salvia y crema), tipografía manuscrita + redondeada, formas
   orgánicas ("blobs") en vez de rectángulos rígidos.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Fredoka:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  /* Color */
  --peach-100: #fbe4d6;
  --peach-300: #f4bfa2;
  --peach-500: #ef9b74;
  --peach-600: #dd7a4e;
  --sage-100: #e9f0dd;
  --sage-300: #c3d6ac;
  --sage-500: #93b073;
  --sage-700: #5f7a49;
  --sage-900: #37472a;
  --clay-500: #c1653f;
  --cream-050: #fffaf2;
  --cream-100: #fdf3e6;
  --cream-200: #f8e6d0;
  --ink-900: #4a3f33;
  --ink-600: #7d6d5a;
  --white: #fffefb;

  /* Type */
  --font-display: 'Fredoka', sans-serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Quicksand', sans-serif;

  /* Layout */
  --max-w: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 22px;
  --blob-1: 62% 38% 34% 66% / 60% 32% 68% 40%;
  --blob-2: 40% 60% 65% 35% / 45% 55% 45% 55%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-900);
  background: var(--cream-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--sage-900);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; max-width: 62ch; }
p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  color: var(--ink-600);
  max-width: 58ch;
}

.italic-accent {
  font-family: var(--font-script);
  font-weight: 700;
  font-style: normal;
  color: var(--clay-500);
  font-size: 1.08em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-050);
  border-bottom: 1px solid rgba(95, 122, 73, 0.16);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 32px);
  padding-top: 13px;
  padding-bottom: 13px;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--sage-900);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span {
  font-family: var(--font-script);
  color: var(--peach-600);
  font-weight: 700;
  font-size: 1.15em;
}

nav.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1px, 0.6vw, 6px);
  align-items: center;
}

nav.main-nav a,
.nav-dropdown-toggle {
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-900);
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
nav.main-nav a.active,
nav.main-nav a:hover,
.nav-dropdown-toggle.active,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle:focus-visible { background: var(--sage-100); color: var(--sage-700); }

/* ---------- Nav dropdowns (Programas / Recursos) ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
.nav-dropdown-toggle svg {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown-toggle:focus-visible svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 240px;
  background: var(--white);
  border: 1px solid rgba(95, 122, 73, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(74, 63, 51, 0.14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown-menu a.active,
.nav-dropdown-menu a:hover { background: var(--sage-100); color: var(--sage-700); }

.nav-toggle { display: none; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-700);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease, rotate 0.2s ease;
  white-space: nowrap;
}
.btn-whatsapp:hover { background: var(--sage-900); transform: translateY(-2px) rotate(-1deg); }
.btn-whatsapp svg { width: 16px; height: 16px; fill: currentColor; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px dashed var(--clay-500);
  color: var(--clay-500);
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-outline:hover { background: var(--clay-500); color: var(--white); transform: rotate(1deg); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--peach-600);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: var(--blob-1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(221, 122, 78, 0.4);
  text-decoration: none;
  transition: transform 0.25s ease, border-radius 0.4s ease;
}
.wa-float:hover { transform: scale(1.08) rotate(-4deg); border-radius: var(--blob-2); }
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(44px, 9vw, 100px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: var(--sage-100);
  border-radius: var(--blob-1);
  z-index: -1;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-script);
  color: var(--peach-600);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 10px;
  display: block;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-figure {
  position: relative;
  border-radius: var(--blob-1);
  overflow: hidden;
  aspect-ratio: 4/5;
  transform: rotate(-2deg);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 4px var(--cream-050);
}
.hero-stat-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  padding: 16px 22px;
  border-radius: 18px;
  border: 2px dashed var(--peach-500);
  box-shadow: 0 12px 28px rgba(74, 63, 51, 0.15);
  font-family: var(--font-display);
  transform: rotate(-3deg);
}
.hero-stat-card strong {
  display: block;
  font-size: 1.9rem;
  color: var(--sage-900);
}
.hero-stat-card span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-600);
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 340px; margin: 0 auto 28px; }
}

/* ---------- Sections ---------- */
section { padding: clamp(48px, 8vw, 96px) 0; position: relative; }
.section-tight { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(24px, 4vw, 40px); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.band-forest { background: var(--sage-900); color: var(--cream-100); }
.band-forest h2, .band-forest h3 { color: var(--white); }
.band-forest p { color: rgba(253, 243, 230, 0.85); }
.band-cream2 { background: var(--cream-200); }

/* ---------- Pillars / grid ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.pillars-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .pillars-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars-4 { grid-template-columns: 1fr; } }

.pillar {
  border-top: 3px dashed var(--peach-500);
  padding-top: 20px;
}
.pillar:nth-child(2) { border-top-color: var(--sage-500); }
.pillar:nth-child(3) { border-top-color: var(--clay-500); }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--ink-600); font-size: 0.98rem; }

/* ---------- Method steps (real sequence -> numbered is justified) ---------- */
.tonic-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .tonic-plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tonic-plans { grid-template-columns: 1fr; } }

.plan-card {
  background: var(--white);
  border: 2px dashed rgba(95, 122, 73, 0.35);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease;
}
.plan-card:nth-child(even) { transform: rotate(1deg); }
.plan-card:nth-child(odd) { transform: rotate(-1deg); }
.plan-card:hover { transform: rotate(0deg) translateY(-3px); }
.plan-card .plan-index {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--peach-600);
  font-size: 2rem;
  line-height: 1;
}
.plan-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.plan-card p { font-size: 0.92rem; color: var(--ink-600); margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 24px;
}
@media (max-width: 980px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--cream-200);
  box-shadow: 0 10px 24px rgba(74, 63, 51, 0.08);
}
.testi-card:nth-child(3n+2) { transform: rotate(-1deg); }
.testi-card:nth-child(3n+3) { transform: rotate(1deg); }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--sage-900);
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.testi-body { padding: 18px 20px 22px; }
.testi-quote {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink-900);
  margin-bottom: 10px;
  line-height: 1.35;
}
.testi-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sage-700);
}
.testi-role {
  font-size: 0.82rem;
  color: var(--ink-600);
}

/* ---------- Eventos ---------- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
}
.event-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: start;
  border-left: 3px dashed var(--sage-500);
  padding-left: 20px;
}
@media (max-width: 560px) { .event-item { grid-template-columns: 1fr; gap: 4px; } }
.event-date {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--peach-600);
  font-size: 1.1rem;
}
.event-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.event-format {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sage-700);
  background: var(--sage-100);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.event-item img {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  margin-top: 10px;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--white);
  border: 2px dashed rgba(95, 122, 73, 0.3);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease;
}
.blog-card:nth-child(3n+2) { transform: rotate(1deg); }
.blog-card:nth-child(3n+3) { transform: rotate(-1deg); }
.blog-card:hover { transform: rotate(0deg) translateY(-3px); }
.blog-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 4px;
}
.article-body img {
  width: 100%;
  border-radius: var(--radius);
  margin: 4px 0 20px;
}
.blog-tag {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--peach-600);
  font-size: 1.05rem;
}
.blog-card h3 { margin-bottom: 2px; }
.blog-excerpt { color: var(--ink-600); font-size: 0.95rem; margin-bottom: 4px; }
.blog-card .read-more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sage-700);
  text-decoration: none;
}
.blog-card .read-more:hover { text-decoration: underline; }

.article-body { max-width: 680px; margin: 0 auto; }
.article-meta {
  font-family: var(--font-script);
  color: var(--peach-600);
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 8px;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: clamp(48px, 8vw, 88px) 0;
}
.cta-band h2 { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Founder story ---------- */
.story-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
@media (max-width: 860px) { .story-block { grid-template-columns: 1fr; } }
.story-figure img { border-radius: var(--blob-2); transform: rotate(1.5deg); }
.pull-quote {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--sage-900);
  border-left: 4px dashed var(--peach-500);
  padding-left: 22px;
  margin: 28px 0;
}
.credentials-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.credentials-list li {
  font-size: 0.82rem;
  font-weight: 600;
  border: 2px dashed var(--sage-500);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--sage-700);
}

/* ---------- Product (Agua Kangen) ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 860px) { .product-hero { grid-template-columns: 1fr; } }
.benefit-list { list-style: none; padding: 0; margin: 22px 0; }
.benefit-list li {
  padding: 12px 0 12px 30px;
  border-bottom: 2px dashed rgba(95, 122, 73, 0.25);
  position: relative;
  font-size: 0.98rem;
}
.benefit-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 17px;
  width: 10px; height: 10px;
  background: var(--peach-600);
  border-radius: var(--blob-1);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--white);
  border: 2px dashed var(--sage-500);
  border-radius: var(--radius);
  padding: 28px;
}
.social-row { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sage-700);
  border: 2px solid var(--sage-100);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.social-row a:hover { background: var(--sage-100); color: var(--sage-900); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--sage-900);
  color: rgba(253, 243, 230, 0.8);
  padding: 44px 0 28px;
  margin-top: 0;
  font-size: 0.88rem;
  border-top: 6px dashed var(--peach-500);
}
footer.site-footer a { color: var(--cream-100); text-decoration: none; }
footer.site-footer .foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 2px dashed rgba(253, 243, 230, 0.2);
  margin-bottom: 20px;
}
.foot-disclaimer {
  max-width: 760px;
  font-size: 0.78rem;
  color: rgba(253, 243, 230, 0.55);
  line-height: 1.5;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  nav.main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--cream-050);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px var(--pad);
    gap: 14px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { font-size: 1.1rem; }
  .nav-dropdown { display: contents; }
  .nav-dropdown-toggle {
    pointer-events: none;
    padding: 4px 12px 0;
    margin-top: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-600);
  }
  .nav-dropdown-toggle svg { display: none; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 0 12px;
    min-width: 0;
    gap: 10px;
  }
  .nav-dropdown-menu a { font-size: 1.1rem; padding: 0; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-toggle span {
    width: 24px; height: 2px; background: var(--sage-900); border-radius: 2px;
  }
  .btn-whatsapp.header-only { display: none; }
}

/* Content is visible by default (progressive enhancement).
   JS adds .reveal-pending only when it can safely animate AND
   guarantees removal via IntersectionObserver or a timeout fallback. */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-pending.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-pending { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
