/* ============================================================
   BASE · Variables, reset, tipografía global y tokens comunes
   ============================================================ */

:root {
  --verde: #7be886;
  --verde-soft: #d8f5dc;
  --azul: #0434b2;
  --azul-soft: #eaefff;
  --naranja: #FF7A00;
  --naranja-hover: #E86C00;
  --bg: #FAF6EC;
  --bg-soft: #F3EFE3;
  --surface: #ECF7CE;      /* verde limón clarito (reemplaza los blancos) */
  --text: #1B1F23;
  --text-mute: #5A6472;
  --text-soft: #8892A0;
  --hairline: #E6EAF0;
  --hairline-soft: #F0F3F7;
  --radius: 14px;
  --radius-lg: 22px;
  --max-w: 1240px;
  --pad-x: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================================
   TOKENS COMUNES
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--verde);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(123, 232, 134, 0.25);
}
.eyebrow strong { color: var(--text); font-weight: 600; }

h1, h2, h3 { font-family: 'Manrope', sans-serif; letter-spacing: -0.03em; }
h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.5vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text);
}
h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.accent {
  display: inline-block;
  position: relative;
}
.accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 10px;
  background: var(--verde);
  z-index: -1;
  opacity: 0.6;
}
.accent-blue { color: var(--azul); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 24px;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--naranja);
  color: #fff;
  box-shadow: 0 1px 2px rgba(255, 122, 0, 0.15), 0 6px 16px rgba(255, 122, 0, 0.22);
}
.btn-primary:hover {
  background: var(--naranja-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(255, 122, 0, 0.18), 0 10px 22px rgba(255, 122, 0, 0.28);
}
.btn-primary:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }
.btn-primary .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost { color: var(--text); padding: 15px 8px; }
.btn-ghost:hover { color: var(--azul); }
.btn-ghost .arrow { transition: transform .2s ease; }
.btn-ghost:hover .arrow { transform: translateX(3px); }
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--hairline);
}
.btn-outline:hover { border-color: var(--text); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-child > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-child.in > * {
  opacity: 1;
  transform: none;
}
.reveal-child.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-child.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-child.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-child.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-child.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-child.in > *:nth-child(6) { transition-delay: .40s; }

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
section {
  padding: 96px 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head .eyebrow { margin-bottom: 24px; }
.section-head p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-mute);
  margin-top: 20px;
}

/* ============================================================
   RESPONSIVE · reglas globales (variables, section, botones, reveal)
   ============================================================ */
@media (max-width: 860px) {
  :root { --pad-x: 20px; }
  section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 17px; }
}

@media (max-width: 520px) {
  .btn { padding: 13px 20px; font-size: 15px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-child > * { opacity: 1; transform: none; }
}
