/*
Theme Name: RRHH Guatemala
Theme URI: https://rrhh.com.gt
Author: rrhh.com.gt
Description: Tema informativo de recursos humanos para Guatemala y Centroamérica. Versión 2.0 con diseño moderno.
Version: 2.0.0
Text Domain: rrhh-gt
*/

/* ─── VARIABLES ─── */
:root {
  --hero:         #0D1B2A;
  --green:        #16785A;
  --green-h:      #0f5a43;
  --green-light:  #e8f5f0;
  --amber:        #F5A623;
  --text:         #111827;
  --muted:        #6B7280;
  --bg:           #F9FAFB;
  --white:        #fff;
  --border:       #E5E7EB;
  --shadow:       0 2px 8px rgba(0,0,0,.07);
  --shadow-lg:    0 8px 24px rgba(0,0,0,.09);
  --radius:       10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green-h); }
img { max-width: 100%; height: auto; display: block; }
p, li { font-size: 16px; line-height: 1.7; }
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.25; color: var(--text); }

/* ─── LAYOUT ─── */
.rrhh-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.rrhh-section   { padding: 72px 0; }
.rrhh-section--sm { padding: 48px 0; }

/* ─── HEADER ─── */
.rrhh-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.rrhh-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}

/* Logo */
.rrhh-logo {
  font-size: 21px; font-weight: 800; letter-spacing: -.4px;
  color: var(--text) !important; display: flex; align-items: center; gap: 0;
}
.rrhh-logo span { color: var(--green); }
.rrhh-logo-dot { color: var(--amber); }

/* Logo — header */
.rrhh-logo-img-wrap { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.rrhh-header-logo-img { max-height: 42px; width: auto; display: block; }

/* Logo — footer (sobre fondo oscuro) */
.rrhh-footer-logo-img { max-height: 38px; width: auto; display: block; margin-bottom: 14px; }

/* Desktop nav (WP menu) */
.rrhh-nav-wrap nav > ul,
.rrhh-nav-fallback {
  display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0;
}
.rrhh-nav-wrap nav > ul > li > a,
.rrhh-nav-fallback > li > a,
.rrhh-nav-fallback a {
  display: block; padding: 7px 14px; font-size: 14px; font-weight: 600;
  color: var(--text); border-radius: 7px; transition: all .15s; white-space: nowrap;
}
.rrhh-nav-wrap nav > ul > li > a:hover,
.rrhh-nav-fallback > li > a:hover { background: var(--green-light); color: var(--green); }
.rrhh-nav-wrap nav > ul > li.rrhh-cta > a,
.rrhh-nav-fallback .rrhh-cta a {
  background: var(--green); color: var(--white) !important;
  padding: 8px 18px; margin-left: 8px;
}
.rrhh-nav-wrap nav > ul > li.rrhh-cta > a:hover,
.rrhh-nav-fallback .rrhh-cta a:hover { background: var(--green-h); }
/* hide sub-menus */
.rrhh-nav-wrap nav > ul > li > ul { display: none; }

/* Hamburger */
.rrhh-burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; border-radius: 6px; transition: background .15s;
}
.rrhh-burger:hover { background: var(--bg); }
.rrhh-burger span { display: block; width: 23px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* Mobile nav */
.rrhh-mobile-nav {
  display: none; background: var(--white); border-top: 1px solid var(--border);
  padding: 12px 24px 20px; position: absolute; top: 66px; left: 0; right: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.10); z-index: 199;
}
.rrhh-mobile-nav.is-open { display: block; }
.rrhh-mobile-nav a {
  display: block; padding: 13px 0; font-size: 15px; font-weight: 600;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.rrhh-mobile-nav a:last-child { border-bottom: none; }
.rrhh-mobile-nav a:hover { color: var(--green); }

/* ─── HERO ─── */
.rrhh-hero {
  background: var(--hero);
  padding: 84px 0 76px;
  position: relative; overflow: hidden;
}
.rrhh-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 65% 50%, rgba(22,120,90,.22) 0%, transparent 65%);
  pointer-events: none;
}
.rrhh-hero__inner { position: relative; z-index: 1; }
.rrhh-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(22,120,90,.18); border: 1px solid rgba(22,120,90,.4);
  color: #4ade80; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 26px;
}
.rrhh-hero__badge::before {
  content: ''; width: 7px; height: 7px; background: #4ade80;
  border-radius: 50%; animation: rrhh-pulse 2s infinite;
}
@keyframes rrhh-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.rrhh-hero h1 {
  font-size: clamp(32px, 5vw, 58px); font-weight: 800; color: var(--white);
  line-height: 1.13; margin-bottom: 22px; max-width: 680px;
}
.rrhh-hero h1 em { color: var(--amber); font-style: normal; }
.rrhh-hero__sub {
  font-size: 18px; color: rgba(255,255,255,.68); line-height: 1.65;
  max-width: 540px; margin-bottom: 38px;
}
.rrhh-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 60px; }

/* ─── BUTTONS ─── */
.rrhh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 700;
  border-radius: var(--radius); transition: all .2s; cursor: pointer;
}
.rrhh-btn--green { background: var(--green); color: var(--white); }
.rrhh-btn--green:hover { background: var(--green-h); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(22,120,90,.4); }
.rrhh-btn--ghost {
  background: rgba(255,255,255,.09); color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
}
.rrhh-btn--ghost:hover { background: rgba(255,255,255,.18); color: var(--white); }
.rrhh-btn--outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.rrhh-btn--outline:hover { background: var(--green); color: var(--white); }

/* Hero stats */
.rrhh-hero__stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; max-width: 620px; }
.rrhh-stat { border-left: 2px solid rgba(22,120,90,.55); padding-left: 16px; }
.rrhh-stat__num { display: block; font-size: 32px; font-weight: 800; color: var(--white); line-height: 1; }
.rrhh-stat__lbl { display: block; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ─── TICKER ─── */
.rrhh-ticker { background: var(--green); padding: 11px 0; overflow: hidden; user-select: none; }
.rrhh-ticker__track {
  display: flex; white-space: nowrap;
  animation: rrhh-ticker 36s linear infinite;
}
.rrhh-ticker__track:hover { animation-play-state: paused; }
.rrhh-ticker__item {
  display: inline-flex; align-items: center;
  color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 0 28px;
}
.rrhh-ticker__item::after { content: '·'; margin-left: 28px; color: rgba(255,255,255,.35); }
@keyframes rrhh-ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ─── CATEGORY CARDS ─── */
.rrhh-cats { background: var(--white); padding: 80px 0; }
.rrhh-section-head { text-align: center; margin-bottom: 52px; }
.rrhh-section-head h2 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.rrhh-section-head p { font-size: 17px; color: var(--muted); }
.rrhh-cats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }

.rrhh-cat-card {
  display: block; text-decoration: none !important;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 28px 22px;
  transition: all .22s; position: relative; overflow: hidden;
}
.rrhh-cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green); transform: scaleX(0); transition: transform .25s;
  transform-origin: left;
}
.rrhh-cat-card:hover { box-shadow: var(--shadow-lg); border-color: var(--green); transform: translateY(-4px); }
.rrhh-cat-card:hover::before { transform: scaleX(1); }
.rrhh-cat-card__icon { font-size: 38px; margin-bottom: 14px; line-height: 1; }
.rrhh-cat-card__pill {
  display: inline-block; background: var(--green-light); color: var(--green);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px;
}
.rrhh-cat-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.rrhh-cat-card p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; }
.rrhh-cat-card__link { font-size: 13px; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 4px; transition: gap .15s; }
.rrhh-cat-card:hover .rrhh-cat-card__link { gap: 8px; }

/* ─── ARTICLES GRID ─── */
.rrhh-articles { padding: 72px 0; background: var(--bg); }
.rrhh-articles__hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; }
.rrhh-articles__hd h2 { font-size: 28px; font-weight: 800; }
.rrhh-articles__hd a { font-size: 14px; font-weight: 600; color: var(--green); }
.rrhh-articles__hd a:hover { text-decoration: underline; }
.rrhh-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.rrhh-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: all .22s;
  display: flex; flex-direction: column;
}
.rrhh-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.rrhh-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--green-light); flex-shrink: 0; }
.rrhh-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rrhh-card:hover .rrhh-card__thumb img { transform: scale(1.06); }
.rrhh-card__no-img { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 42px; }
.rrhh-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.rrhh-cat-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  background: var(--green-light); color: var(--green);
  padding: 3px 9px; border-radius: 100px; margin-bottom: 10px;
}
.rrhh-card__title { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; flex: 1; }
.rrhh-card__title a { color: var(--text); }
.rrhh-card__title a:hover { color: var(--green); }
.rrhh-card__excerpt { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.rrhh-card__date { font-size: 12px; color: var(--muted); }

/* ─── SALARY MINI-WIDGET ─── */
.rrhh-salary-strip {
  background: linear-gradient(135deg, var(--green) 0%, #0a4a35 100%);
  padding: 56px 0; margin: 0;
}
.rrhh-salary-strip__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.rrhh-salary-strip h3 { font-size: 26px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.rrhh-salary-strip p { color: rgba(255,255,255,.72); font-size: 15px; margin-bottom: 28px; }
.rrhh-salary-table { width: 100%; border-collapse: collapse; }
.rrhh-salary-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.5); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); text-align: left; }
.rrhh-salary-table td { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; color: rgba(255,255,255,.85); }
.rrhh-salary-table td:last-child { text-align: right; font-weight: 700; font-size: 15px; color: var(--white); }
.rrhh-salary-table tr:last-child td { border-bottom: none; }

/* ─── CTA BAND ─── */
.rrhh-cta-band { background: var(--hero); padding: 80px 0; text-align: center; }
.rrhh-cta-band h2 { font-size: 36px; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.rrhh-cta-band p { font-size: 18px; color: rgba(255,255,255,.62); max-width: 520px; margin: 0 auto 36px; }

/* ─── FOOTER ─── */
.rrhh-footer { background: var(--hero); border-top: 1px solid rgba(255,255,255,.05); padding: 60px 0 32px; }
.rrhh-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.rrhh-footer__logo { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.rrhh-footer__logo span { color: var(--green); }
.rrhh-footer__tagline { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.65; max-width: 260px; }
.rrhh-footer__col h4 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.38); margin-bottom: 18px; }
.rrhh-footer__col a { display: block; font-size: 14px; color: rgba(255,255,255,.62); margin-bottom: 11px; transition: color .15s; }
.rrhh-footer__col a:hover { color: var(--white); }
.rrhh-footer__bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: rgba(255,255,255,.3); }
.rrhh-footer__bottom a { color: rgba(255,255,255,.3); }
.rrhh-footer__bottom a:hover { color: rgba(255,255,255,.6); }

/* ─── SINGLE POST ─── */
.rrhh-post-header { background: var(--hero); padding: 52px 0 40px; }
.rrhh-post-category { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--amber); margin-bottom: 14px; }
.rrhh-post-header h1 { font-size: clamp(24px, 4.5vw, 44px); font-weight: 800; color: var(--white); line-height: 1.22; max-width: 800px; }
.rrhh-post-meta { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.48); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.rrhh-post-meta__sep { opacity: .3; }
.rrhh-featured-img { max-height: 500px; overflow: hidden; }
.rrhh-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.rrhh-post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 48px 0 88px; align-items: start; }
.rrhh-post-content { background: var(--white); border-radius: var(--radius); padding: 40px; border: 1px solid var(--border); }
.rrhh-post-content h2 { font-size: 22px; font-weight: 700; margin: 34px 0 12px; padding-top: 8px; }
.rrhh-post-content h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; color: var(--green); }
.rrhh-post-content p { margin-bottom: 18px; line-height: 1.75; }
.rrhh-post-content ul, .rrhh-post-content ol { margin: 0 0 18px 24px; line-height: 1.75; }
.rrhh-post-content li { margin-bottom: 7px; }
.rrhh-post-content strong { font-weight: 700; }
.rrhh-post-content table { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: 14px; }
.rrhh-post-content thead th { background: var(--green); color: var(--white); padding: 10px 14px; text-align: left; }
.rrhh-post-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.rrhh-post-content tr:nth-child(even) td { background: var(--bg); }
.rrhh-post-content blockquote { border-left: 4px solid var(--green); padding: 12px 20px; margin: 0 0 20px; background: var(--green-light); border-radius: 0 8px 8px 0; }

/* Sidebar */
.rrhh-sidebar { position: sticky; top: 80px; }
.rrhh-sidebar-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.rrhh-sidebar-box h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.rrhh-sidebar-box ul { list-style: none; }
.rrhh-sidebar-box ul li a { display: block; font-size: 13px; color: var(--text); padding: 7px 0; border-bottom: 1px solid var(--border); }
.rrhh-sidebar-box ul li:last-child a { border-bottom: none; }
.rrhh-sidebar-box ul li a:hover { color: var(--green); }

/* ─── ARCHIVE ─── */
.rrhh-archive-header { background: var(--hero); padding: 52px 0; }
.rrhh-archive-header h1 { font-size: 38px; font-weight: 800; color: var(--white); }
.rrhh-archive-header p { color: rgba(255,255,255,.58); font-size: 16px; margin-top: 10px; }

/* ─── PAGE ─── */
.rrhh-page-wrap { max-width: 820px; margin: 0 auto; padding: 52px 24px 88px; }
.rrhh-page-wrap h1 { font-size: 36px; font-weight: 800; margin-bottom: 28px; }
.rrhh-page-body h2 { font-size: 22px; font-weight: 700; margin: 30px 0 12px; }
.rrhh-page-body p { margin-bottom: 18px; line-height: 1.75; }
.rrhh-page-body ul, .rrhh-page-body ol { margin: 0 0 18px 22px; line-height: 1.75; }

/* ─── BREADCRUMB ─── */
.rrhh-breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); padding: 11px 0; font-size: 13px; color: var(--muted); }
.rrhh-breadcrumb a { color: var(--muted); }
.rrhh-breadcrumb a:hover { color: var(--green); }
.rrhh-breadcrumb__sep { margin: 0 7px; opacity: .5; }

/* ─── PAGINATION ─── */
.rrhh-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 48px 0 16px; }
.rrhh-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; border: 1px solid var(--border); color: var(--text);
}
.rrhh-pagination .current { background: var(--green); color: var(--white); border-color: var(--green); }
.rrhh-pagination a.page-numbers:hover { border-color: var(--green); color: var(--green); }

/* ─── 404 ─── */
.rrhh-404 { text-align: center; padding: 110px 24px; }
.rrhh-404__num { font-size: 110px; font-weight: 900; color: var(--green); line-height: 1; }
.rrhh-404 h2 { font-size: 28px; font-weight: 700; margin: 16px 0 8px; }
.rrhh-404 p { color: var(--muted); margin-bottom: 32px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .rrhh-cats__grid    { grid-template-columns: repeat(2,1fr); }
  .rrhh-grid          { grid-template-columns: repeat(2,1fr); }
  .rrhh-post-layout   { grid-template-columns: 1fr; }
  .rrhh-salary-strip__inner { grid-template-columns: 1fr; }
  .rrhh-footer__grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
  .rrhh-hero__stats   { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 768px) {
  .rrhh-nav-wrap,
  .rrhh-nav-fallback  { display: none; }
  .rrhh-burger        { display: flex; }
  .rrhh-hero          { padding: 56px 0 52px; }
  .rrhh-hero__stats   { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .rrhh-cats__grid    { grid-template-columns: 1fr 1fr; }
  .rrhh-grid          { grid-template-columns: 1fr; }
  .rrhh-articles__hd  { flex-direction: column; gap: 10px; }
  .rrhh-footer__grid  { grid-template-columns: 1fr; gap: 28px; }
  .rrhh-footer__bottom { flex-direction: column; text-align: center; }
  .rrhh-cta-band h2   { font-size: 26px; }
  .rrhh-section-head h2 { font-size: 26px; }
}
@media (max-width: 540px) {
  .rrhh-cats__grid    { grid-template-columns: 1fr; }
  .rrhh-hero__ctas    { flex-direction: column; }
  .rrhh-hero__stats   { grid-template-columns: repeat(2,1fr); }
  .rrhh-post-content  { padding: 24px; }
  .rrhh-salary-strip  { padding: 40px 0; }
}
