/* =====================================================
   EM-HUMAN — main.css
   Variables, reset, base typography, layout, utilidades
   ===================================================== */

:root {
  /* Fondos — crema cálida, no blanco frío */
  --cream:       #F4F1EB;
  --cream-mid:   #EAE5DB;
  --cream-dark:  #E0D9CC;
  --white:       #FFFFFF;

  /* Marca */
  --navy:        #1C3050;
  --navy-mid:    #2B4A80;
  --navy-light:  #4A72A8;
  --navy-pale:   #E8EFF8;

  --amber:       #8A5A14;
  --amber-mid:   #A87028;
  --amber-light: #C99040;
  --amber-pale:  #F5EDD8;

  /* Texto */
  --text:         #1A2838;
  --text-body:    #3D4E5E;
  --text-muted:   #6A7888;
  --text-on-dark: #D0DCE8;
  --text-on-dark-muted: #8AA4BA;

  /* Bordes */
  --border:       #C0B8AE;
  --border-light: #DDD8D0;
  --border-dark:  rgba(255,255,255,0.14);

  /* Sombras — sutiles, no tech */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.09);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.11);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);

  /* Tipografía */
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans:  'Source Sans 3', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;

  /* Espaciado */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.25rem;
  --s6:  1.5rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;

  /* Layout */
  --max-w: 1180px;
  --section-pad: clamp(3.5rem, 7vw, 6rem);

  /* Bordes redondeados — mínimo, corporativo */
  --r:    2px;
  --r-md: 4px;

  /* Transiciones */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 180ms;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* --- Tipografía base --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 400; }
h4 { font-size: 1rem; }

p { color: var(--text-body); line-height: 1.75; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--text); }

/* --- Contenedor --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s8);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--s5); }
}

/* --- Encabezados de sección --- */
.section-header { margin-bottom: var(--s12); }
.section-header--center { text-align: center; }

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-mid);
  margin-bottom: var(--s4);
}

.section-header h2 { margin-bottom: 0; }

.section-header p {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 560px;
  margin-top: var(--s4);
}
.section-header--center p { margin-left: auto; margin-right: auto; }

/* Línea divisora bajo título de sección */
.section-header__rule {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--amber-mid);
  margin: var(--s5) 0 0;
}
.section-header--center .section-header__rule { margin-left: auto; margin-right: auto; }

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.7rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--r);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
  border: 1.5px solid var(--navy);
}
.btn--primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.40);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.70);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--white);
}
.btn--white:hover { background: var(--cream); border-color: var(--cream); }

.btn--lg { padding: 0.875rem 2rem; font-size: 0.95rem; }
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }

/* --- Utilidades --- */
.text-muted   { color: var(--text-muted); }
.text-navy    { color: var(--navy); }
.text-amber   { color: var(--amber-mid); }

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }

/* --- Helpers responsive --- */
@media (max-width: 640px) { .hide-mobile { display: none !important; } }
