/* =====================================================================
 * styles.css — Estilo Equilibrarte "Envejecimiento saludable"
 * Fondo blanco, verde profundo de marca, verde claro, toque de azul ADN.
 * Tipografía: Montserrat (sans geométrica).
 * Mobile-first: estilos base = celular; @media = pantallas grandes.
 * Para cambiar colores, editá las variables de :root.
 * ===================================================================== */
:root {
  --green-900: #2f5420;     /* verde muy oscuro (footer, textos fuertes) */
  --green-700: #3f6e2a;     /* verde principal de la marca (wordmark, botones) */
  --green-500: #6fa04a;     /* verde medio (íconos, líneas) */
  --green-100: #eef5e8;     /* verde muy claro (fondos de sección) */
  --blue: #4aa3d8;          /* azul ADN: acento secundario, usar poco */
  --cream: #ffffff;         /* fondo general: blanco */
  --white: #ffffff;
  --text: #2b3327;
  --muted: #6b7167;         /* gris de "Envejecimiento saludable" */
  --radius: 18px;
  --shadow: 0 8px 26px rgba(47, 84, 32, .09);
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: var(--sans);     /* (antes serif; ahora todo es sans geométrica) */
  --script: var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--text); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--green-900); }
h2 { font-size: clamp(1.55rem, 5.4vw, 2.2rem); text-align: center; }
.container { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: 3.2rem 0; }
.eyebrow { display: block; text-align: center; letter-spacing: .26em; text-transform: uppercase; font-size: .75rem; color: var(--green-500); font-weight: 600; margin-bottom: .5rem; }
.eyebrow-light { color: var(--green-100); }
.lead-text { text-align: center; color: var(--muted); max-width: 42ch; margin: 0 auto 2rem; }
.script { color: var(--green-500); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; padding: .5rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .85rem 1.6rem;
  border-radius: 999px; border: 0; font: 600 1rem var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease; }
.btn:active { transform: scale(.98); }
.btn-main { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(79, 107, 62, .3); }
.btn-main:hover { background: var(--green-900); }
.btn-outline { background: transparent; color: var(--green-700); border: 1.5px solid var(--green-700); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.header { background: var(--cream); border-bottom: 1px solid var(--green-100); padding: .6rem 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
/* Wordmark "Equilibrarte" con dos hojitas sobre la "br" (como el logo) */
.brand { text-decoration: none; }
.wordmark { position: relative; display: inline-block; font: 600 1.45rem/1 var(--sans); color: var(--green-700); letter-spacing: -.01em; padding-top: .45em; }
.wordmark .leaves { position: absolute; top: -.05em; left: 57%; width: .95em; height: .6em; color: var(--green-700); }
.wordmark-lg { font-size: clamp(2.3rem, 11vw, 3.4rem); }
.tagline { display: block; border-top: 1.5px solid var(--green-700); margin-top: .35rem; padding-top: .3rem; font: 500 .95rem var(--sans); color: var(--muted); text-align: center; letter-spacing: .01em; }
.header .btn { min-height: 40px; padding: .45rem 1rem; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { background: #fff; overflow: hidden; }
.hero-media { margin: 0 -1.25rem; }
.hero-media img { width: 100%; aspect-ratio: 900 / 681; object-fit: cover; }
.hero-text { text-align: center; padding: .4rem 0 2.6rem; }
.hero-brand { display: inline-flex; align-items: center; gap: .4rem; font: 600 .75rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--green-700); background: var(--green-100); border-radius: 999px; padding: .4rem .9rem; margin: 0 0 .9rem; }
.hero-brand svg { width: 16px; height: 16px; color: var(--blue); }
.hero h1 { font-size: clamp(2rem, 9vw, 3.2rem); margin-bottom: .5rem; color: var(--green-700); }
.hero h1 .script { display: block; color: var(--green-500); }
.hero-text p:not(.hero-brand) { color: var(--muted); max-width: 34ch; margin: 0 auto 1.5rem; font-size: 1.08rem; }
.hero-ctas { display: grid; gap: .8rem; max-width: 360px; margin: 0 auto; }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.pillar { background: var(--white); border-radius: var(--radius); padding: 1.2rem .9rem; text-align: center; box-shadow: var(--shadow); }
.pillar:last-child { grid-column: 1 / -1; }
.pillar h3 { font-size: .95rem; font-weight: 600; margin: .6rem 0 0; }
.icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; border: 1.5px solid var(--green-500); color: var(--green-700); background: #fff; }
.icon-blue { color: var(--blue); }
.section-mark { display: block; width: 34px; height: 34px; margin: 0 auto .5rem; color: var(--blue); }
.icon svg { width: 28px; height: 28px; }

/* Franja de temas */
.topics { background: var(--green-700); color: #fff; }
.topics ul { list-style: none; margin: 0; padding: 1rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.topics li::before { content: '•'; margin-right: .5rem; color: #bfe0a6; }

/* ---------- Servicios ---------- */
.services-bg { background: var(--green-100); }
.services { display: grid; gap: 1rem; }
.service { background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.3rem; box-shadow: var(--shadow); border-top: 4px solid var(--green-500); }
.service-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.service-top .icon { margin: 0; flex: none; }
.service h3 { font-size: 1.12rem; margin: 0; }
.service p { margin: 0 0 1rem; color: var(--muted); }
.service .btn { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: .45rem .9rem; border-radius: 999px; background: var(--green-100); color: var(--green-900); font-size: .9rem; font-weight: 600; text-decoration: none; }

/* ---------- Formulario ---------- */
.form-section { background: linear-gradient(180deg, var(--green-700), var(--green-900)); color: #fff; }
.form-section h2 { color: #fff; }
.form-section .lead-text { color: var(--green-100); }
.form-card { background: var(--cream); color: var(--text); border-radius: var(--radius); padding: 1.5rem 1.2rem; max-width: 520px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 1.5px solid #cdd6c3; border-radius: 12px; font: 16px var(--sans); background: #fff; color: var(--text); }
.field input:focus, .field select:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(79, 107, 62, .2); }
[aria-invalid="true"] { border-color: #b3261e !important; }
.err { color: #b3261e; font-size: .82rem; min-height: 1em; display: block; margin-top: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; }
.check input { width: 22px; height: 22px; flex: none; margin-top: .1rem; accent-color: var(--green-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot anti-spam */
.form-card .btn { width: 100%; margin-top: .4rem; }
.form-status { text-align: center; font-size: .9rem; min-height: 1.2em; margin: .6rem 0 0; color: #b3261e; }
.form-alt { text-align: center; font-size: .9rem; margin: 1rem 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #e3eedb; text-align: center; padding: 2.5rem 0 6rem; font-size: .9rem; }
.footer a { color: #fff; }
.footer .wordmark, .footer .wordmark .leaves { color: #fff; }
.footer .brand { display: inline-block; margin-bottom: .2rem; }
.footer .tagline { border-color: #bfe0a6; color: #dfeed4; max-width: 230px; margin: .35rem auto 1rem; }
.footer address { font-style: normal; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Páginas simples (gracias / privacidad) ---------- */
.simple { min-height: 100vh; display: flex; flex-direction: column; }
.simple main { flex: 1; padding: 3rem 0; }
.thanks { text-align: center; max-width: 520px; margin: 0 auto; }
.thanks .icon { width: 76px; height: 76px; margin: 0 auto 1.2rem; }
.thanks h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); color: var(--green-700); }
.thanks .btn { width: 100%; max-width: 360px; margin: .4rem auto; }
.legal { max-width: 760px; } .legal h1 { font-size: 2rem; } .legal h2 { text-align: left; font-size: 1.2rem; margin-top: 1.6rem; }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 820px) {
  .section { padding: 4.5rem 0; }
  .hero .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; }
  .hero-media { order: 2; }
  .hero-media img { -webkit-mask-image: none; mask-image: none; }
  .hero-text { text-align: left; padding: 3rem 0; }
  .hero-text p:not(.hero-brand) { margin-left: 0; }
  .hero-media { margin: 0; }
  .hero-ctas { grid-auto-flow: column; justify-content: start; max-width: none; margin: 0; }
  .pillars { grid-template-columns: repeat(5, 1fr); }
  .pillar:last-child { grid-column: auto; }
  .services { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.services-note { text-align: center; font-size: .85rem; color: var(--muted); max-width: 46ch; margin: 1.6rem auto 0; }

/* Botones de redes sociales (pie de página) */
.social { display: flex; justify-content: center; gap: .75rem; margin: 1.2rem 0 .6rem; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; text-decoration: none; font-weight: 600; transition: background .2s; }
.social-btn:hover, .social-btn:focus-visible { background: rgba(255,255,255,.12); }
.social-btn svg { width: 20px; height: 20px; }
