/* W07-COMP01 | Componentes compartidos: encabezado, navegación, pie. */
.demo-ribbon { background: #0d304b; color: #ebd5a5; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 6px 12px; }
.site-header { background: var(--hr-cream); position: sticky; top: 0; z-index: 45; box-shadow: 0 1px 0 #e8e3d9; }
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--hr-text); flex-shrink: 0; }
.hrplus-logo { display: block; width: 92px; height: 57px; object-fit: contain; /* mismo recurso y sin filtros en ambas ubicaciones */ }
.brand-text strong, .footer-brand strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.brand-text small, .footer-brand small { display: block; font-size: 10px; font-weight: 600; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { position: relative; display: inline-block; text-decoration: none; white-space: nowrap; font-size: 12px; font-weight: 700; padding: 16px 2px; }
.nav a:hover { color: #94620b; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; height: 3px; bottom: 7px; left: 0; right: 0; background: var(--hr-gold); border-radius: 4px; }
.btn-gold { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-size: 12px; font-weight: 800; white-space: nowrap; background: linear-gradient(#e6b54f 0%,#c48d1a 67%,#9d6811 100%); color: white; border: 1px solid #b47e0b; text-decoration: none; box-shadow: 0 5px 10px #452f0019; }
.btn-gold:hover { filter: brightness(.96); }
.menu-toggle { display: none; color: var(--hr-navy); border: 1px solid var(--hr-line); padding: 8px 12px; border-radius: 8px; background: var(--hr-cream); font-size: 20px; }
.site-footer { background: var(--hr-navy-deep); color: #e8e5dd; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; min-height: 92px; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.footer-brand small { font-size: 11px; font-weight: 400; color: #bbc2ce; }
.footer-links { display: flex; gap: 17px; align-items: center; }
.footer-links a { font-size: 11px; color: #ebeff4; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { font-size: 10px; color: #a6b2bd; white-space: nowrap; }
@media (max-width: 1120px) { .header-row { flex-wrap: wrap; padding-block: 12px; } .nav { order: 3; width: 100%; justify-content: center; } .footer-row { flex-wrap: wrap; } }
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; min-height: 72px; }
  .brand { gap: 8px; }
  .brand .hrplus-logo { width: 78px; height: auto; max-height: 49px; }
  .brand-text strong { font-size: 12px; }
  .brand-text small { font-size: 8px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav-cta { display: none; }
  .nav { display: none; order: 4; flex-direction: column; align-items: stretch; width: 100%; gap: 0; border-top: 1px solid var(--hr-line); padding-block: 8px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav a[aria-current="page"]::after { bottom: 5px; right: auto; width: 36px; left: 8px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 22px; }
  .footer-links { flex-wrap: wrap; }
  .footer-legal { white-space: normal; }
}

/* W07-COMP02 | Navegacion y footer: legibilidad corporativa. */
.nav { gap: 7px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 13px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  transition: color .16s ease, background-color .16s ease;
}
.nav a:hover, .nav a:focus-visible {
  color: #805309; background: rgba(199, 139, 15, .09);
}
.nav a[aria-current="page"] { color: var(--hr-navy); }
.nav a[aria-current="page"]::after {
  left: 10px; right: 10px; bottom: 5px;
}
.nav-cta { font-size: 14px; min-height: 44px; }
.menu-toggle { min-width: 44px; min-height: 44px; }
.footer-links { gap: 8px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
.footer-links a:hover, .footer-links a:focus-visible {
  color: #f6c66a; background: rgba(232, 174, 52, .10);
  text-decoration: underline; text-decoration-color: var(--hr-gold-bright);
  text-underline-offset: 5px;
}
.footer-legal { font-size: 11px; }
@media (max-width: 760px) {
  .nav { gap: 0; }
  .nav a { padding: 13px 12px; min-height: 46px; }
  .nav a[aria-current="page"]::after {
    right: auto; left: 12px; width: 36px; bottom: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav a, .footer-links a { transition: none; }
}

/* W10-COR01-NAV-MOVIL | Panel flotante sin cambio de altura del encabezado.
   Solo afecta pantallas <= 760px; conserva el sistema visual W07. */
@media (max-width: 760px) {
  .site-header .header-row {
    position: relative;
    flex-wrap: nowrap;
  }
  .site-header .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    bottom: auto;
    order: initial;
    width: auto;
    margin: 0;
    z-index: 46;
    background: var(--hr-cream);
    border: 1px solid var(--hr-line);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 22px rgba(9, 26, 48, .16);
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}


/* Recursos editorial: tarjeta original visible; recepción por correo, sin carga web de archivos. */

/* P202-COR04-V2 | Espacio exterior Contacto */
@media (max-width: 760px) {
  .r5-page[data-r5-page="contacto"] > .r5-shell.r5-section {
    padding-top: 24px !important;
  }
}


/* P247-COR10 | CTA DORADOS
   Igualacion visual con .btn-gold aprobado.
   Sin modificar tamanos, enlaces, textos ni estructura.
*/
.r5-page .r5-button,
.services-cta__band .services-cta__link,
.methodology-guidance__band .methodology-guidance__cta {
    background: linear-gradient(#e6b54f 0%,#c48d1a 67%,#9d6811 100%) !important;
    border: 1px solid #b47e0b !important;
    border-radius: 10px !important;
    color: white !important;
    box-shadow: 0 5px 10px #452f0019 !important;
}
/* FIN P247-COR10 */
