/* Impulsa RH & Alma Quezada — v4 tonos azules (ver docs/handoff/README.md) */
:root {
  --cream: #FAF6EF;
  --cream-2: #F1EBE0;
  --navy: #0E1A3A;
  --blue: #2F5BD3;
  --blue-mid: #2E4E9E;
  --blue-light: #8FB0FF;
  --blue-pale: #DCE6FA;
  --blue-pale-2: #E4E9F4;
  --blue-tint: #C9D6F2;
  --blue-tint-2: #E3E8F3;
  --ink-muted: #3D4763;
  --ink-muted-2: #2A3450;
  --ink-soft: #1F2B4D;
  --on-navy-muted: #AEB8CF;
  --track: #E3DCD0;
  --orange: #F07A1E;
  --line: rgba(14, 26, 58, 0.14);
  --line-navy: rgba(250, 246, 239, 0.15);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.2, .8, .2, 1);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { display: block; }
input, textarea, button { font-family: inherit; }
::selection { background: var(--blue); color: var(--cream); }

@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg) } 50% { transform: translateY(-12px) rotate(2deg) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes loaderOut { to { transform: translateY(-100%) } }
@keyframes loaderText { from { transform: translateY(100%) } to { transform: none } }
@keyframes loaderBar { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.6); opacity: 0 } }

.i { font-family: var(--serif); font-style: italic; font-weight: 400; }
.wrap { max-width: 1280px; margin: 0 auto; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.eyebrow--navy { color: var(--blue-light); }
.h2 { margin: 0; font-weight: 600; font-size: clamp(36px, 5vw, 72px); line-height: 0.95; letter-spacing: -0.05em; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
section { position: relative; z-index: 1; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--blue); color: var(--cream); display: flex; flex-direction: column; justify-content: flex-end; padding: 5vw; animation: loaderOut 1s cubic-bezier(.8, 0, .2, 1) 1.3s forwards; pointer-events: none; }
.loader__mask { overflow: hidden; }
.loader__text { font-weight: 600; font-size: clamp(56px, 13vw, 220px); line-height: 0.9; letter-spacing: -0.06em; animation: loaderText .9s var(--ease-out) both; }
.loader__bar { height: 3px; margin-top: 3vw; background: var(--cream); transform-origin: left; animation: loaderBar 1.2s cubic-bezier(.6, 0, .2, 1) both; }

/* Capas fijas */
.cursor { position: fixed; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--navy); mix-blend-mode: difference; pointer-events: none; z-index: 150; display: none; transition: width .3s, height .3s, margin .3s; }
.cursor.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.peek { position: fixed; left: 0; top: 0; width: 280px; aspect-ratio: 3/2; object-fit: cover; border-radius: 20px; pointer-events: none; z-index: 40; opacity: 0; transform: scale(0.6); transition: opacity .3s, transform .4s var(--ease-out); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.peek.is-on { opacity: 1; transform: scale(1) rotate(-4deg); }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--blue); z-index: 100; }
.blob { position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 91, 211, 0.28), transparent 65%); pointer-events: none; z-index: 0; filter: blur(20px); will-change: transform; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 16px 20px; }
.nav { width: 100%; max-width: 1280px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(250, 246, 239, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(14, 26, 58, 0.12); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand img { height: 34px; width: auto; }
.brand .i { font-size: 19px; color: var(--blue-mid); }
.nav__links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav__link { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background .2s; }
.nav__link:hover { background: rgba(14, 26, 58, 0.08); color: var(--navy); }
.nav__cta { padding: 12px 20px; border-radius: 999px; background: var(--blue); color: var(--cream); font-size: 15px; font-weight: 600; transition: background .25s; }
.nav__cta:hover { background: var(--navy); color: var(--cream); }
@media (max-width: 760px) {
  .nav__link { display: none; }
  .brand .i { display: none; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 14px; border-radius: 999px; font-size: 18px; transition: background .25s, box-shadow .25s; }
.btn--primary { padding: 22px 32px; background: var(--blue); color: var(--cream); font-weight: 600; }
.btn--primary:hover { background: var(--navy); color: var(--cream); box-shadow: 0 0 0 8px rgba(47, 91, 211, 0.2); }
.btn--ghost { padding: 22px 28px; border: 1px solid rgba(14, 26, 58, 0.3); font-weight: 500; }
.btn--ghost:hover { background: rgba(14, 26, 58, 0.08); color: var(--navy); }

/* Hero */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 24px 48px; max-width: 1280px; margin: 0 auto; }
.hero__deco { position: absolute; right: 4%; top: 18%; width: min(34vw, 380px); aspect-ratio: 1; pointer-events: none; }
.hero__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(46, 78, 158, 0.35); animation: spin 50s linear infinite; }
.hero__ring2 { position: absolute; inset: 16%; border-radius: 50%; border: 1px solid rgba(47, 91, 211, 0.4); animation: spin 30s linear infinite reverse; }
.hero__badge { position: absolute; inset: 34%; border-radius: 50%; background: var(--blue); display: grid; place-items: center; color: var(--cream); font-weight: 700; text-align: center; font-size: clamp(14px, 1.4vw, 18px); line-height: 1.1; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; font-size: 15px; color: var(--ink-muted); }
.dot { position: relative; width: 10px; height: 10px; flex: none; }
.dot span { position: absolute; inset: 0; border-radius: 50%; background: var(--orange); }
.dot span + span { animation: pulse 2s ease-out infinite; }
.hero h1 { transform-origin: left bottom; will-change: transform; margin: 0; font-weight: 600; font-size: clamp(48px, 9.2vw, 148px); line-height: 0.92; letter-spacing: -0.055em; }
.hero h1 > span { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 > span:last-child { padding-bottom: 0.08em; }
.hero h1 [data-rise] { display: inline-block; }
.hero h1 .i { color: var(--blue); letter-spacing: -0.03em; }
.hero__bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px; align-items: end; margin-top: 48px; }
.hero__lead { margin: 0; max-width: 520px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Franja */
.marquee { position: relative; z-index: 1; overflow: hidden; padding: 28px 0; border-top: 1px solid rgba(14, 26, 58, 0.12); border-bottom: 1px solid rgba(14, 26, 58, 0.12); }
.marquee__skew { will-change: transform; }
.marquee__run { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__item { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-size: clamp(32px, 5vw, 72px); font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px rgba(14, 26, 58, 0.55); }
.marquee__sep { width: 0.5em; height: 0.5em; flex: none; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; font-size: 0.32em; -webkit-text-stroke: 0; }

/* Pilares */
.pilares { max-width: 1280px; margin: 0 auto; padding: clamp(96px, 12vw, 160px) 24px 40px; }
.pilares .head-row { margin-bottom: 56px; }
.pilares h2 { margin: 0; font-weight: 600; font-size: clamp(40px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.05em; max-width: 780px; }
.pilares h2 .i { color: var(--blue-mid); }
.hint { font-size: 15px; color: var(--ink-muted); }
.pilares__stack { display: flex; flex-direction: column; gap: 24px; }
.pilar { position: sticky; border-radius: 36px; padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; align-items: center; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.5); }
.pilar--1 { top: 110px; background: var(--navy); color: var(--cream); }
.pilar--2 { top: 136px; background: var(--blue-mid); color: var(--cream); }
.pilar--3 { top: 162px; background: var(--blue-pale); color: var(--navy); }
.pilar__label { font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.pilar--1 .pilar__label { color: var(--blue-light); }
.pilar--2 .pilar__label { color: var(--blue-tint); }
.pilar--3 .pilar__label { color: var(--blue-mid); }
.pilar h3 { margin: 0 0 16px; font-weight: 600; font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.045em; }
.pilar p { margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; }
.pilar--1 p { color: var(--on-navy-muted); }
.pilar--2 p { color: var(--blue-tint-2); }
.pilar--3 p { color: var(--ink-muted-2); }
.pilar__img { justify-self: end; width: min(100%, 300px); animation: floaty 7s ease-in-out infinite; }
.pilar--2 .pilar__img { animation-duration: 8s; animation-delay: -2s; }
.pilar--3 .pilar__img { animation-duration: 9s; animation-delay: -4s; }
.pilar__img img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 24px; }

/* Nosotros */
.nosotros { max-width: 1280px; margin: 0 auto; padding: clamp(96px, 12vw, 170px) 24px; }
.nosotros .eyebrow { margin-bottom: 28px; }
.words { margin: 0; font-weight: 500; font-size: clamp(28px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -0.035em; text-wrap: pretty; }
.words span { transition: opacity .3s; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; margin-top: 64px; }
.cols p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-muted); text-wrap: pretty; }
.acc { margin-top: 96px; border-top: 1px solid var(--line); }
.acc__row { border-bottom: 1px solid var(--line); padding: 28px 0; cursor: pointer; }
.acc__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.acc__title { display: flex; align-items: baseline; gap: 24px; }
.acc__num { font-size: 15px; color: var(--ink-muted); }
.acc__name { font-weight: 600; font-size: clamp(36px, 6vw, 88px); line-height: 1; letter-spacing: -0.05em; transition: color .3s; }
.acc__plus { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 1px solid rgba(14, 26, 58, 0.3); display: grid; place-items: center; font-size: 22px; transition: transform .4s; }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-ui); }
.acc__body > div { overflow: hidden; }
.acc__body p { margin: 24px 0 0 48px; max-width: 820px; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; color: var(--ink-soft); }
.acc__body p.is-long { max-width: 900px; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3; }
.acc__row.is-open .acc__name { color: var(--blue); }
.acc__row.is-open .acc__plus { transform: rotate(45deg); }
.acc__row.is-open .acc__body { grid-template-rows: 1fr; }

/* Metodología */
.metodo { background: var(--navy); color: var(--cream); border-radius: 48px 48px 0 0; }
.metodo__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 48px; }
.metodo__head { max-width: 1280px; width: 100%; margin: 0 auto 40px; padding: 0 24px; }
.metodo__head .i { color: var(--blue-light); }
.metodo__intro { margin: 0; max-width: 420px; font-size: 17px; line-height: 1.55; color: var(--on-navy-muted); }
.track { display: flex; gap: 20px; padding: 0 max(24px, calc((100vw - 1232px) / 2)); will-change: transform; }
.paso { flex: none; width: min(78vw, 440px); min-height: 360px; border-radius: 32px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; color: var(--navy); }
.paso__n { font-weight: 600; font-size: 96px; line-height: 0.8; letter-spacing: -0.06em; }
.paso h3 { margin: 0 0 14px; font-weight: 600; font-size: 30px; line-height: 1.05; letter-spacing: -0.03em; }
.paso p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-muted); }
.paso--a { background: var(--cream); }
.paso--b { background: var(--blue-pale-2); }
.paso--b p { color: var(--ink-muted-2); }
.paso--c { background: var(--blue); color: var(--cream); }
.paso--c p { color: var(--blue-pale); }
.metodo__bar { max-width: 1280px; width: 100%; margin: 36px auto 0; padding: 0 24px; display: flex; align-items: center; gap: 20px; }
.metodo__rail { flex: 1; height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; }
.metodo__fill { height: 100%; width: 20%; background: var(--blue); border-radius: 4px; }
.metodo__bar span { font-size: 14px; color: var(--on-navy-muted); white-space: nowrap; }
.metodo.is-narrow .metodo__sticky { position: relative; height: auto; }
.metodo.is-narrow .track { flex-direction: column; transform: none !important; }
.metodo.is-narrow .paso { width: 100%; }
.metodo.is-narrow .metodo__bar { display: none; }

/* Servicios */
.servicios { background: var(--navy); color: var(--cream); padding: clamp(40px, 6vw, 80px) 24px clamp(96px, 12vw, 160px); }
.servicios .head-row { margin-bottom: 40px; }
.servicios h2 .i { color: var(--blue-light); }
.areas { border-top: 1px solid var(--line-navy); }
.area { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 8px; border-bottom: 1px solid var(--line-navy); border-radius: 0; }
.area:hover { padding-left: 32px; padding-right: 32px; background: var(--cream); color: var(--navy); border-radius: 24px; }
.area__t { display: flex; align-items: baseline; gap: 24px; }
.area__n { font-size: 14px; opacity: 0.7; }
.area__name { font-weight: 600; font-size: clamp(28px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.045em; }
.arrow { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--blue); color: var(--cream); display: grid; place-items: center; font-size: 22px; }

/* Blog */
.blog { max-width: 1280px; margin: 0 auto; padding: clamp(96px, 12vw, 160px) 24px 0; }
.blog .head-row { margin-bottom: 48px; }
.blog h2 { letter-spacing: -0.045em; }
.blog h2 .i { color: var(--blue); }
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: start; }
.post { display: block; border-radius: 28px; overflow: hidden; background: var(--navy); }
.post:nth-child(2) { margin-top: clamp(0px, 6vw, 80px); }
.post img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: top; }

/* Contacto */
.contacto { overflow: clip; padding: clamp(80px, 10vw, 140px) 24px 24px; }
.contacto h2 { will-change: transform; white-space: nowrap; margin: 0 0 64px; font-weight: 600; font-size: clamp(52px, 10vw, 168px); line-height: 0.88; letter-spacing: -0.06em; }
.contacto h2 .i { color: var(--blue); }
.contacto__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: start; }
.contacto__info { display: flex; flex-direction: column; gap: 28px; }
.contacto__info > p { margin: 0; font-size: 20px; line-height: 1.55; color: var(--ink-muted); max-width: 460px; }
.datos > div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.datos > div:last-child { border-bottom: 1px solid var(--line); }
.datos span:first-child { color: var(--ink-muted); }
.datos span:last-child { font-weight: 500; }
.form { display: flex; flex-direction: column; gap: 14px; background: var(--cream-2); border: 1px solid rgba(14, 26, 58, 0.12); border-radius: 32px; padding: clamp(24px, 3vw, 36px); }
.form__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.campo { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(14, 26, 58, 0.18); background: var(--cream); color: var(--navy); font-size: 16px; outline: none; width: 100%; }
.campo:focus { border-color: var(--blue); }
textarea.campo { resize: vertical; }
.form__label { font-size: 15px; font-weight: 600; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(14, 26, 58, 0.3); font-size: 15px; font-weight: 500; cursor: pointer; transition: all .2s; background: transparent; color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--blue); color: var(--cream); }
.form__submit { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-radius: 999px; border: none; background: var(--blue); color: var(--cream); font-size: 18px; font-weight: 600; cursor: pointer; transition: background .25s; }
.form__submit:hover { background: var(--navy); }
.form__submit:disabled { opacity: .6; cursor: wait; }
.form__error { margin: 0; color: #B3261E; font-size: 15px; }
.gracias { background: var(--blue); color: var(--cream); border-radius: 32px; padding: 48px 36px; display: flex; flex-direction: column; gap: 18px; min-height: 380px; justify-content: center; }
.gracias__check { font-size: 56px; line-height: 1; }
.gracias h3 { margin: 0; font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.gracias button { align-self: flex-start; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--cream); background: transparent; color: var(--cream); font-size: 15px; font-weight: 600; cursor: pointer; }
[hidden] { display: none !important; }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 120px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand img { width: 180px; height: auto; }

/* Sin animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader { display: none; }
}
