/* ============================================================
   Método Kiru — Sistema de diseño
   Identidad propia, cálida y humana. Mentoría a domicilio 10-15.
   Tokens primero: cualquier color/espaciado/radius nuevo va aquí.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color — base cálida de papel */
  --paper:        #faf7f1;
  --paper-2:      #f4eee3;
  --paper-3:      #ede4d4;
  --white:        #ffffff;

  /* Tinta cálida (casi negro verdoso, no negro puro) */
  --ink:          #211f1a;
  --ink-soft:     #514d44;
  --ink-mute:     #8d887b;
  --line:         rgba(33, 31, 26, 0.12);
  --line-soft:    rgba(33, 31, 26, 0.07);

  /* Acento primario — terracota / arcilla (calidez, energía, CTA) */
  --clay:         #cf6b43;
  --clay-deep:    #b1542f;
  --clay-soft:    #f6e4d8;
  --clay-tint:    #fbeee5;

  /* Acento secundario — salvia (crecimiento, calma, confianza) */
  --sage:         #5f7d68;
  --sage-deep:    #486150;
  --sage-soft:    #e6ede6;
  --sage-tint:    #eef3ee;

  /* Detalle cálido — sol/ocre para destacar puntuales */
  --gold:         #e0a93f;
  --gold-soft:    #f7eccf;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radii — generosos, lenguaje redondeado y respirable */
  --r-sm:   10px;
  --r-md:   18px;
  --r-lg:   28px;
  --r-xl:   40px;
  --r-pill: 999px;

  /* Espaciado — grid de 8 */
  --s-1:  8px;
  --s-2:  16px;
  --s-3:  24px;
  --s-4:  32px;
  --s-5:  40px;
  --s-6:  48px;
  --s-8:  64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-16: 128px;
  --s-20: 160px;

  /* Sombras cálidas y suaves */
  --shadow-sm: 0 1px 2px rgba(33,31,26,.04), 0 2px 8px rgba(33,31,26,.05);
  --shadow-md: 0 4px 14px rgba(33,31,26,.06), 0 10px 30px rgba(33,31,26,.07);
  --shadow-lg: 0 12px 28px rgba(33,31,26,.08), 0 24px 60px rgba(33,31,26,.10);
  --shadow-clay: 0 10px 26px rgba(177,84,47,.20);

  /* Layout */
  --maxw: 1180px;
  --maxw-narrow: 820px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--clay-soft); color: var(--clay-deep); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

.display {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
}
.h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.02; }
.h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.serif-it { font-style: italic; }
.lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-3); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--s-16); }
.section-sm { padding-block: var(--s-10); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.95em 1.6em;
  border-radius: var(--r-pill);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: var(--shadow-clay);
}
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(177,84,47,.30); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }

.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn-wa { background: #25623f; color: #fff; }
.btn-wa:hover { background: #1f4f33; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-2) var(--s-3);
  max-width: var(--maxw); margin-inline: auto;
  left: 0; right: 0;
  transition: padding .4s var(--ease);
}
.nav-shell {
  position: fixed; inset: 0 0 auto 0; z-index: 99;
  height: 76px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity .4s var(--ease), border-color .4s var(--ease);
  pointer-events: none;
}
.nav-shell.solid { opacity: 1; border-bottom-color: var(--line-soft); }

.nav-links {
  display: flex; align-items: center; gap: var(--s-1);
}
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  padding: 0.5em 0.85em; border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta { margin-left: var(--s-1); }

.nav-burger { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); align-items: center; justify-content: center; }
.nav-burger span { display:block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .2s; }
.nav-burger span::before, .nav-burger span::after { content:""; position:absolute; left:0; width:20px; height:2px; background: var(--ink); border-radius:2px; transition: transform .3s var(--ease); }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 98;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-6) var(--s-4);
  gap: var(--s-1);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; padding: 0.35em 0;
  border-bottom: 1px solid var(--line-soft); color: var(--ink);
}
.mobile-menu .btn { margin-top: var(--s-3); align-self: flex-start; }

/* ---------- Logo / wordmark ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.5em; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; display:flex; align-items: baseline; gap: .28em; }
.logo-text .metodo { font-size: 0.62rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }

/* sprout animation on hover */
.logo-mark .sprout-leaf { transform-origin: 50% 92%; transition: transform .5s var(--ease-out); }
.logo:hover .leaf-l { transform: rotate(-9deg) scale(1.06); }
.logo:hover .leaf-r { transform: rotate(9deg) scale(1.06); }
.logo-mark .stem { transition: transform .5s var(--ease-out); transform-origin: 50% 100%; }
.logo:hover .stem { transform: scaleY(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: var(--s-12) var(--s-6); }
.footer a { color: color-mix(in srgb, var(--paper) 75%, transparent); transition: color .2s; }
.footer a:hover { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); margin-bottom: var(--s-10); }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 55%, transparent); margin-bottom: var(--s-2); font-weight: 600; }
.footer ul { display: flex; flex-direction: column; gap: .6em; font-size: .98rem; }
.footer .logo-text { color: var(--paper); }
.footer-tagline { color: color-mix(in srgb, var(--paper) 70%, transparent); max-width: 30ch; margin-top: var(--s-2); font-size: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); font-size: .85rem; color: color-mix(in srgb, var(--paper) 55%, transparent); flex-wrap: wrap; }

/* ---------- Cards & components ---------- */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 600; letter-spacing: -0.01em;
  background: var(--white); border: 1px solid var(--line);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }

.tag-clay { background: var(--clay-tint); color: var(--clay-deep); }
.tag-sage { background: var(--sage-tint); color: var(--sage-deep); }
.tag-gold { background: var(--gold-soft); color: #8a6311; }

/* divider line decorative */
.rule { height:1px; background: var(--line); border: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .section { padding-block: var(--s-10); }
  .section-sm { padding-block: var(--s-8); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
