/* ===========================================================
   RH Gerencial — sistema de diseño compartido (Coral & Fucsia)
   Usado por: RH Gerencial.html · RH Academy.html · Postula.html
   =========================================================== */
:root {
  --white:  #FFFFFF;
  --paper2: #F4F4F6;
  --paper3: #FBF8F6;
  --black:  #0A0A0B;
  --black-alt: #141416;
  --grey:   #5B5B63;          /* texto secundario (oscurecido para mejor contraste) */
  --grey-soft: #8A8A92;
  --grey-40: rgba(10,10,11,0.40);
  --rule:   rgba(10,10,11,0.12);
  --coral:  #FF4946;
  --fucsia: #FF1A8C;
  --grad:   linear-gradient(100deg, #FF4946 0%, #FF1A8C 100%);
  --pad:    clamp(20px, 5vw, 64px);
  --maxw:   1320px;
  font-family: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--black);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
section, footer, header { scroll-margin-top: 84px; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.label { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.label .dot { width: 11px; height: 11px; background: var(--grad); flex: 0 0 auto; }
.label span { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }

/* ---- LOGO ---- */
.logo { display: inline-flex; align-items: baseline; gap: 9px; }
.logo.lockup { align-items: center; gap: 11px; }
.logo .logo-stack { display: flex; flex-direction: column; gap: 3px; }
.logo.lockup .word { font-size: 18px; line-height: 1; }
.logo .tagline { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-soft); white-space: nowrap; line-height: 1; }
.logo .rh { display: inline-flex; align-items: flex-end; font-weight: 800; font-size: 22px; letter-spacing: -0.05em; line-height: 1; }
.logo .sq { position: relative; width: 6px; height: 6px; margin-left: 2px; margin-bottom: 1px; }
.logo .sq i { position: absolute; inset: 0; background: var(--coral); }
.logo .sq i + i { left: 42%; top: 42%; width: 58%; height: 58%; background: var(--fucsia); inset: auto; }
.logo .word { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }

/* ---- HEADER / NAV ---- */
header.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
header.nav.scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 24px -16px rgba(10,10,11,0.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--grey); position: relative; padding: 4px 0; transition: color .18s; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--grad); transition: width .22s ease; }
.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--black); }
.nav-links a.active::after { width: 100%; }
.nav-links a:hover::after { width: 100%; }
.btn-grad {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; white-space: nowrap;
  color: var(--white); background: var(--grad); border-radius: 2px; padding: 11px 22px;
  transition: transform .16s ease, box-shadow .16s ease; box-shadow: 0 0 0 rgba(255,26,140,0);
  border: none; cursor: pointer;
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(255,26,140,0.6); }
.btn-out { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--white);
  border: 1px solid rgba(255,255,255,0.42); border-radius: 2px; padding: 11px 22px; transition: border-color .18s, background .18s; cursor: pointer; }
.btn-out:hover { border-color: var(--white); background: rgba(255,255,255,0.09); }
.btn-dark { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--black);
  border: 1px solid var(--black); border-radius: 2px; padding: 11px 22px; transition: background .18s, color .18s; cursor: pointer; }
.btn-dark:hover { background: var(--black); color: var(--white); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--black); margin: 5px 0; transition: .25s; }

/* ---- FOOTER / CONTACTO ---- */
footer.site { background: var(--black); color: var(--white); padding: clamp(64px, 9vw, 92px) 0 52px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.foot-top h2 { font-weight: 800; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -0.035em; margin: 0; }
.foot-contact { text-align: right; min-width: 280px; }
.foot-contact .name { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 6px; font-weight: 500; }
.foot-contact .mail { font-size: 19px; font-weight: 700; }
.foot-contact .mail:hover { text-decoration: underline; }
.foot-contact .phone { font-size: 19px; font-weight: 800; width: fit-content; margin-left: auto; margin-top: 4px; white-space: nowrap; }
.foot-cta { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 80px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.16); font-size: 13.5px; color: rgba(255,255,255,0.55); font-weight: 500; gap: 16px; flex-wrap: wrap; }

/* ---- RESPONSIVE (compartido) ---- */
@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--rule); padding: 8px var(--pad) 20px;
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: 0 16px 30px -20px rgba(0,0,0,.4); z-index: 49; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--rule); }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-links .btn-grad { margin-top: 12px; }
  .hamburger { display: block; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-contact { text-align: left; min-width: 0; }
  .foot-contact .phone { margin-left: 0; }
  .foot-cta { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 400px) { .logo .tagline { display: none; } }
