/* =========================================================================
   BASE.CSS — Reset ligero, tipografía global y utilidades comunes
   ========================================================================= */

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

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

a { color: var(--blue-mid); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.15; font-weight: 700; }

/* ---- Contenedor centrado ---- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.2rem); }

/* ---- Sección genérica ---- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--off-white); }
.section--gray { background: var(--gray-light); } /* gris claro neutro #F5F5F5 */

/* ---- Encabezado de sección (etiqueta + título + descripción) ---- */
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-sans); font-weight: 700;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-mid); margin-bottom: .9rem;
}
.eyebrow::before { content: "—"; margin-right: .5rem; color: var(--blue-mid); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.section-title em { color: var(--blue-mid); font-style: italic; }
.section-desc { margin-top: 1rem; color: var(--text-muted); font-size: 1.06rem; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 700; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: all .22s ease; white-space: nowrap;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--blue-mid); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-mid); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--wa { background: var(--wa-green); color: #fff; }
.btn--wa:hover { background: var(--wa-green-dark); color: #fff; transform: translateY(-2px); }

/* ---- Animación de aparición al hacer scroll (activada por animaciones.js) ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .10s; }
.reveal.delay-2 { transition-delay: .20s; }
.reveal.delay-3 { transition-delay: .30s; }
.reveal.delay-4 { transition-delay: .40s; }

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