/* ===================================================================
   NOREX — Capital Humano
   Base styles: tokens, resets, typography, layout primitives
=================================================================== */

:root{
  /* ---- Brand colors (from Norex brand manual) ---- */
  --ink:        #1E1E1E;
  --ink-70:     #1E1E1EB3;
  --blue:       #1546A3;
  --blue-700:   #0E3475;
  --blue-500:   #1546A3;
  --blue-400:   #2E63C4;
  --blue-100:   #E7EDF7;
  --blue-50:    #F2F5FB;
  --slate:      #7F91AD;
  --slate-200:  #D8DEE9;
  --slate-100:  #EEF1F6;

  --paper:      #FBFBFD;
  --white:      #FFFFFF;

  --success:    #1E8E5A;

  /* ---- Type ---- */
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* ---- Layout ---- */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;

  --shadow-card: 0 1px 2px rgba(30,30,30,.06), 0 10px 24px -12px rgba(21,70,163,.18);
  --shadow-pop:  0 20px 45px -18px rgba(14,52,117,.35);

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

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

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  margin: 0 0 .5em;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1{ font-size: var(--fs-h1); }
h2{ font-size: var(--fs-h2); }
h3{ font-size: var(--fs-h3); font-weight: 700; }

p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }

ul{ margin:0; padding:0; list-style:none; }

.lead{
  font-size: var(--fs-lead);
  color: var(--ink-70);
  max-width: 62ch;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-weight: 700;
  font-size: .8rem;
  color: var(--blue);
  margin-bottom: .9em;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* ---- Layout ---- */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section{
  padding-block: clamp(3.5rem, 3rem + 3vw, 6.5rem);
}
.section--tight{ padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }

.section-head{
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.6rem + 2vw, 3.5rem);
}
.section-head--center{ margin-inline:auto; text-align:center; }

.grid{ display:grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
.grid-5{ grid-template-columns: repeat(5,1fr); }

@media (max-width: 980px){
  .grid-3, .grid-4, .grid-5{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4, .grid-5{ grid-template-columns: 1fr; }
}

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

.skip-link{
  position:absolute; left:1rem; top:-3rem;
  background:var(--ink); color:var(--white);
  padding:.7rem 1.1rem; border-radius: var(--radius-s);
  z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus{ top:1rem; }

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

/* ---- Buttons ---- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6em;
  font-family: inherit;
  font-weight: 700;
  font-size: .98rem;
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-pop);
}
.btn--primary:hover{ background: var(--blue-400); }

.btn--ghost{
  background: transparent;
  border-color: var(--slate-200);
  color: var(--ink);
}
.btn--ghost:hover{ border-color: var(--blue); color: var(--blue); }

.btn--on-dark{
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn--on-dark:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }

.btn--whatsapp{
  background: #25D366;
  color: #06210F;
  box-shadow: 0 14px 30px -14px rgba(37,211,102,.55);
}
.btn--whatsapp:hover{ background:#22c15d; }

.btn--block{ width:100%; }
.btn--sm{ padding:.7em 1.2em; font-size:.9rem; }

/* ---- Tag / badge ---- */
.tag{
  display:inline-flex;
  align-items:center;
  gap:.45em;
  font-size:.8rem;
  font-weight:700;
  color: var(--blue);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding:.4em .8em;
  border-radius: 999px;
}

/* ---- Diagonal wedge divider (signature Norex device) ---- */
.wedge{
  position: relative;
  overflow: hidden;
}
.wedge::after{
  content:"";
  position:absolute;
  right:-2%; bottom:-1px;
  width: 46%; height: 60%;
  background: var(--ink);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events:none;
}
.wedge__bar{
  position:absolute; left:0; right:0; bottom:0; height:10px;
  background: var(--blue);
  z-index:2;
}
