/* ============================================================
   PDS PREVENCIÓN — Sistema de diseño
   Claridad institucional cálida · navy + blanco mandan,
   cian y coral son acento.
   ============================================================ */

:root {
  /* ---- Color: marca ---- */
  --cian:        #1CA9E1;   /* acento, enlaces, detalle, hover, triángulo */
  --cian-600:    #1690C2;
  --cian-050:    #E8F6FD;   /* tinte muy suave para fondos de apoyo */
  --navy:        #0E3A5C;   /* texto, titulares, autoridad institucional */
  --navy-700:    #0A2C46;
  --navy-900:    #071E30;
  --ink:         #13202B;   /* casi-negro */

  /* ---- Color: acción + estados ---- */
  --coral:       #FF7A45;   /* SOLO botón de acción principal */
  --coral-600:   #F0612B;
  --coral-700:   #DE5320;
  --sage:        #9FC089;   /* cumplido / ok / checks */
  --sage-600:    #7FA468;
  --sage-050:    #EEF4E9;   /* fondo de sección desaturado */
  --sage-bg:     #F1F6EC;

  /* ---- Neutros cálidos ---- */
  --white:       #FFFFFF;
  --off-white:   #F7FAFB;   /* blanco roto */
  --paper:       #FBFDFE;
  --gray-text:   #5B6470;   /* cuerpo secundario */
  --gray-300:    #C6D0D8;
  --gray-200:    #E1E8ED;
  --gray-100:    #EEF2F5;
  --line:        #E3EAEF;   /* bordes sutiles */

  /* ---- Tipografía ---- */
  --font-head: "Satoshi", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero:   clamp(2.6rem, 5.4vw, 4.6rem);
  --fs-h1:     clamp(2.1rem, 3.6vw, 3.1rem);
  --fs-h2:     clamp(1.7rem, 2.6vw, 2.4rem);
  --fs-h3:     clamp(1.2rem, 1.7vw, 1.45rem);
  --fs-lead:   clamp(1.12rem, 1.5vw, 1.32rem);
  --fs-body:   1.0625rem;   /* 17px */
  --fs-sm:     0.9375rem;   /* 15px */
  --fs-xs:     0.8125rem;   /* 13px */
  --fs-eyebrow:0.78rem;

  --lh-tight:  1.08;
  --lh-snug:   1.28;
  --lh-body:   1.7;

  /* ---- Espacio + forma ---- */
  --container:  1200px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --section-y:  clamp(4.5rem, 9vw, 8rem);
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  18px;
  --radius-pill:999px;

  /* ---- Sombras (sutiles, cálidas) ---- */
  --shadow-xs: 0 1px 2px rgba(14,58,92,.06);
  --shadow-sm: 0 2px 8px rgba(14,58,92,.07);
  --shadow:    0 10px 30px -12px rgba(14,58,92,.18);
  --shadow-lg: 0 24px 60px -22px rgba(14,58,92,.28);
  --shadow-coral: 0 12px 28px -10px rgba(255,122,69,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================ Reset / base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--cian); color: #fff; }

:focus-visible {
  outline: 3px solid var(--cian);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================ Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--sage { background: var(--sage-bg); }
.section--navy { background: var(--navy); color: var(--off-white); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cian-600);
}
.eyebrow::before {
  content: "";
  width: 14px; height: 12px;
  background: currentColor;
  -webkit-mask: var(--tri-mask) center / contain no-repeat;
          mask: var(--tri-mask) center / contain no-repeat;
}
.section--navy .eyebrow { color: var(--cian); }

:root {
  /* triángulo de marca como máscara reutilizable */
  --tri-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M12 1.5 22.5 18.5H1.5z'/%3E%3C/svg%3E");
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--gray-text);
}
.section--navy .lead { color: #C9D8E4; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin-top: .7rem; }
.section-head .lead { margin-top: 1rem; }

/* ============================================================ Botones */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .01em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius-sm);
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* CTA principal — coral, único */
.btn--cta {
  --btn-bg: var(--coral);
  box-shadow: var(--shadow-coral);
}
.btn--cta:hover { --btn-bg: var(--coral-600); }

.btn--navy { --btn-bg: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-700); }

/* Secundario fantasma */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border: 1.5px solid var(--gray-300);
}
.btn--ghost:hover { --btn-bg: var(--off-white); border-color: var(--navy); }
.section--navy .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.32); }
.section--navy .btn--ghost:hover { --btn-bg: rgba(255,255,255,.08); border-color: #fff; }

.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--cian-600);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-arrow:hover { gap: .7rem; color: var(--navy); }

/* ============================================================ Badges / sellos */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--cian-050);
  color: var(--cian-600);
}
.pill--sage { background: var(--sage-050); color: var(--sage-600); }

/* check de "cumplido" */
.tick {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
}
.tick svg { width: 13px; height: 13px; }

/* ============================================================ Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
