/* ============================================================
   DHA Innovación y Servicios — Hoja de estilos
   Sitio institucional · producción · sin dependencias JS
   ============================================================ */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Paleta de marca */
  --cocoa:      #664E44;
  --cocoa-700:  #523E36;
  --cocoa-300:  #8E776C;
  --dusty:      #B89487;
  --dusty-600:  #A07B6E;
  --cream:      #FAF4E9;
  --peach:      #FFE0D6;
  --sage:       #C1C3B0;
  --sage-line:  #DDDED4;
  --ink:        #2C2622;
  --hairline:   #E7DDCE;

  /* Tipografía */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-label:   'Jost', system-ui, sans-serif;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Reset mínimo ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 4rem);
}

/* ── Motivo eyebrow (etiqueta en versalitas) ──────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-label);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dusty-600);
  margin: 0;
}
.eyebrow::before,
.eyebrow.center::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--dusty);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 69vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 9vh, 6rem) 0 clamp(2.25rem, 6vh, 3.75rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(110% 70% at 50% 8%, var(--peach) 0%, transparent 58%);
  opacity: 0.55;
}
.hero > * { position: relative; }
.hero__logo {
  width: min(352px, 60vw);
  margin: 0 auto clamp(1.75rem, 4.5vh, 2.75rem);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cocoa);
  font-size: clamp(2.5rem, 1.7rem + 4.4vw, 4.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.hero .lede {
  max-width: 42ch;
  font-size: 1.25rem;
  color: var(--cocoa);
  line-height: 1.55;
  margin: 0 auto;
  text-wrap: balance;
}
.scroll-cue {
  margin-top: clamp(2rem, 5.5vh, 3.5rem);
  width: 1px;
  height: clamp(32px, 5.5vh, 52px);
  background: linear-gradient(var(--dusty), transparent);
}

/* ── Ritmo de secciones ───────────────────────────────────── */
.block { padding: clamp(4.5rem, 12vh, 8rem) 0; }

/* ── Misión (bloque cocoa de anclaje) ─────────────────────── */
.mission {
  text-align: center;
  background: var(--cocoa);
}
.mission .eyebrow {
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--dusty);
}
.mission .eyebrow::before,
.mission .eyebrow::after {
  background: var(--dusty);
  opacity: 0.7;
}
.mission h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--cream);
  font-size: clamp(1.625rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 28ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ── Áreas de actuación ───────────────────────────────────── */
.areas .eyebrow { justify-content: center; }
.areas .head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vh, 3.75rem);
}
.area-cols {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}
.area {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--cocoa);
  font-size: 1.5rem;
  line-height: 1.25;
  padding: 1.4rem 1rem;
  border-bottom: 1px solid var(--sage-line);
}
.area:first-child { border-top: 1px solid var(--sage-line); }

/* ── Principios (greige sage muy sutil) ───────────────────── */
.principles {
  background: color-mix(in srgb, var(--sage) 20%, var(--cream));
}
.principles .eyebrow { justify-content: center; }
.principles .head {
  text-align: center;
  margin-bottom: clamp(3rem, 7vh, 4.5rem);
}
.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.75rem, 6vw, 4rem);
}
.principle { text-align: center; }
.principle .num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--dusty);
  margin-bottom: 1rem;
}
.principle h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cocoa);
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}
.principle p {
  margin: 0 auto;
  max-width: 28ch;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--sage-line);
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(2.5rem, 6vh, 3.5rem);
  text-align: center;
}
.footer__logo { height: 150px; width: auto; margin: 0 auto 1.5rem; }
footer .email { margin: 0 0 1.25rem; }
footer .email a {
  font-family: var(--font-label);
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  color: var(--dusty-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}
footer .email a:hover {
  color: var(--cocoa);
  border-bottom-color: var(--dusty);
}
footer .place {
  font-family: var(--font-label);
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cocoa-300);
  margin: 0 0 0.9rem;
}
footer .legal {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--cocoa-300);
  margin: 0;
}

/* ── Fade-ins sutiles (solo CSS, sin JavaScript) ──────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.9s var(--ease) forwards;
  }
  .d1 { animation-delay: 0.08s; }
  .d2 { animation-delay: 0.16s; }
  .d3 { animation-delay: 0.24s; }
  .d4 { animation-delay: 0.32s; }
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ── Escritorio: 4 áreas + 3 principios en columnas ───────── */
@media (min-width: 760px) {
  .cols { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .principle { padding: 0 clamp(1.5rem, 3vw, 2.5rem); }
  .principle + .principle { border-left: 1px solid var(--sage-line); }

  .area-cols {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
    border-top: 1px solid var(--sage-line);
    border-bottom: 1px solid var(--sage-line);
  }
  .area {
    border-bottom: 0;
    padding: clamp(1.75rem, 3vw, 2.5rem) 1rem;
    font-size: clamp(1.1rem, 0.8rem + 0.7vw, 1.35rem);
  }
  .area:first-child { border-top: 0; }
  .area + .area { border-left: 1px solid var(--sage-line); }
}
