@font-face { font-family: "Open Sans"; src: url("assets/fonts/OpenSans-Regular.woff2") format("woff2"), url("assets/fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("assets/fonts/OpenSans-Semibold.woff2") format("woff2"), url("assets/fonts/OpenSans-Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("assets/fonts/OpenSans-Bold.woff2") format("woff2"), url("assets/fonts/OpenSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "HP Simplified"; src: url("assets/fonts/hp-simplifiedRegular.woff2") format("woff2"), url("assets/fonts/hp-simplifiedRegular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HP Simplified"; src: url("assets/fonts/hp-simplifiedBold.woff2") format("woff2"), url("assets/fonts/hp-simplifiedBold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Myriad Pro"; src: url("assets/fonts/Myriad-Pro-Regular.woff2") format("woff2"), url("assets/fonts/Myriad-Pro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root { --yellow: #ffd400; --ink: #111; --muted: #585a58; --dark: #0d1113; --line: #d9d9d5; --paper: #f3f4f1; --shell: min(1180px, calc(100% - 56px)); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Open Sans", sans-serif; line-height: 1.65; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; left: 18px; top: 12px; transform: translateY(-180%); padding: 10px 16px; background: var(--yellow); color: #111; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

/* Header */
.service-header { position: absolute; z-index: 100; inset: 0 0 auto; color: #fff; background: rgb(5 7 8 / 42%); border-bottom: 1px solid rgb(255 255 255 / 16%); }
.service-nav-shell { min-height: 106px; display: grid; grid-template-columns: 165px 1fr auto; align-items: center; gap: 34px; }
.service-brand { width: 145px; height: 84px; display: flex; align-items: center; }
.service-brand img { width: 132px; height: 108px; object-fit: contain; }
.service-nav { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 44px); }
.service-nav a { position: relative; padding: 36px 0 34px; font-family: "HP Simplified", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.service-nav a::after { content: ""; position: absolute; right: 100%; bottom: 24px; left: 0; height: 3px; background: var(--yellow); transition: right .2s ease; }
.service-nav a:hover::after, .service-nav a:focus-visible::after { right: 0; }
.services-menu-wrap { position: relative; display: flex; align-self: stretch; align-items: center; }
.services-menu-trigger { position: relative; padding: 36px 0 34px; border: 0; background: transparent; color: inherit; cursor: pointer; font-family: "HP Simplified", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.services-menu-trigger::after { content: ""; position: absolute; right: 100%; bottom: 24px; left: 0; height: 3px; background: var(--yellow); transition: right .2s ease; }
.services-menu-wrap:hover .services-menu-trigger::after, .services-menu-trigger:focus-visible::after, .services-menu-trigger[aria-expanded="true"]::after { right: 0; }
.services-menu { position: absolute; z-index: 125; top: calc(100% - 12px); left: 50%; width: 330px; padding: 9px 18px 14px; background: #202020; border-top: 3px solid var(--yellow); box-shadow: 0 22px 55px rgb(0 0 0 / 34%); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.services-menu-wrap:not(.is-hover-suppressed):hover .services-menu, .services-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.service-nav .services-menu a { display: block; padding: 12px 2px; border-top: 1px solid rgb(255 255 255 / 17%); color: rgb(255 255 255 / 82%); font-family: "Myriad Pro", sans-serif; font-size: 11px; letter-spacing: .1em; line-height: 1.4; }
.service-nav .services-menu a:first-child { border-top: 0; }
.service-nav .services-menu a::after { display: none; }
.service-nav .services-menu a:hover, .service-nav .services-menu a:focus-visible { color: var(--yellow); }
.service-nav-toggle { display: none; }
.service-actions { display: flex; align-items: center; gap: 18px; }
.service-language { font-family: "Myriad Pro", sans-serif; font-size: 13px; letter-spacing: .07em; }
.service-language span { opacity: .5; padding-inline: 4px; }
.client-access-wrap { position: relative; z-index: 120; }
.client-access { min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--yellow); background: var(--yellow); color: #111; cursor: pointer; font-family: "HP Simplified", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }

/* Service hero */
.service-hero { min-height: 640px; display: flex; align-items: flex-end; position: relative; overflow: hidden; background: var(--dark) var(--hero-image) center / cover no-repeat; color: #fff; }
.service-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(4 8 10 / 88%) 0%, rgb(4 8 10 / 62%) 38%, rgb(4 8 10 / 16%) 70%, rgb(4 8 10 / 7%) 100%); }
.service-hero__inner { position: relative; z-index: 1; padding-top: 160px; padding-bottom: 74px; }
.service-hero__copy { max-width: 730px; }
.service-hero h1 { max-width: 760px; margin: 0 0 24px; font-family: "HP Simplified", sans-serif; font-size: clamp(50px, 6.2vw, 88px); line-height: .94; letter-spacing: -.025em; text-transform: uppercase; }
.service-hero p { max-width: 690px; margin: 0; color: rgb(255 255 255 / 84%); font-size: 17px; line-height: 1.72; }
.service-hero strong, .service-section strong { color: inherit; }
.service-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.service-button { min-height: 49px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--yellow); background: var(--yellow); color: #111; font-family: "HP Simplified", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* Service content */
.service-intro { padding: 86px 0 72px; text-align: center; background: #fff; }
.service-intro h2, .service-section h2, .service-feature h2 { margin: 0 0 14px; font-family: "HP Simplified", sans-serif; font-size: clamp(34px, 4vw, 58px); line-height: .98; text-transform: uppercase; }
.service-intro h2::after, .service-section h2::after, .service-feature h2::after { content: ""; width: 54px; height: 3px; display: block; margin: 18px auto 20px; background: var(--yellow); }
.service-intro p { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 17px; }

/* Footer */
.service-footer { background: #050505; color: #fff; }
.service-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.55fr; gap: 48px; padding: 72px 0 54px; }
.service-footer__brand img { width: 155px; height: 125px; object-fit: contain; object-position: left center; }
.service-footer p { margin: 12px 0 0; color: rgb(255 255 255 / 66%); font-size: 12px; line-height: 1.7; }
.service-footer h3 { margin: 0 0 17px; color: var(--yellow); font-family: "HP Simplified", sans-serif; font-size: 15px; text-transform: uppercase; }
.service-footer__links { display: grid; gap: 10px; align-content: start; }
.service-footer__links a { color: rgb(255 255 255 / 76%); font-family: "Myriad Pro", sans-serif; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.service-footer__links a:hover, .service-footer__links a:focus-visible { color: var(--yellow); }
.service-certifications { min-width: 0; }
.service-certifications__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.service-certifications__list img { width: 100%; aspect-ratio: 2.95 / 1; object-fit: contain; }
.service-certifications__list .certificate-link { display: block; min-width: 0; }
.service-certifications__list .certificate-link img { display: block; transition: opacity .2s ease, transform .2s ease; }
.service-certifications__list .certificate-link:hover img, .service-certifications__list .certificate-link:focus-visible img { opacity: .86; transform: translateY(-2px); }
.service-certifications__list .certificate-link:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.service-footer__bottom { border-top: 1px solid rgb(255 255 255 / 12%); }
.service-footer__bottom-inner { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgb(255 255 255 / 52%); font-size: 10px; }
.service-signature { display: inline-flex; align-items: center; gap: 5px; color: currentColor; opacity: .7; }
.signature-planet { display: inline-block; margin-inline: .08em; filter: grayscale(1) brightness(0) invert(1); }
.service-whatsapp { position: fixed; z-index: 80; right: 24px; bottom: 22px; min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; gap: 11px; border-radius: 999px; background: var(--yellow); color: #111; box-shadow: 0 10px 28px rgb(0 0 0 / 22%); font-size: 12px; font-weight: 700; }
.service-whatsapp svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 40px, 700px); }
  .service-nav-shell { grid-template-columns: 132px 1fr auto; gap: 16px; }
  .service-nav { gap: 18px; }
  .service-nav a { font-size: 11px; }
  .services-menu-trigger { font-size: 11px; }
  .services-menu { width: 300px; }
  .service-language { display: none; }
  .service-footer__grid { grid-template-columns: 1fr 1fr; }
  .service-certifications { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 34px); }
  .service-header { background: rgb(5 7 8 / 62%); }
  .service-nav-shell { min-height: 82px; grid-template-columns: 100px 1fr auto; gap: 10px; }
  .service-brand { width: 94px; height: 68px; }
  .service-brand img { width: 90px; height: 84px; }
  .service-nav { position: absolute; top: 82px; right: 0; left: 0; display: none; padding: 18px; flex-direction: column; align-items: stretch; background: #080808; }
  .service-nav.is-open { display: flex; }
  .service-nav a { padding: 10px; }
  .service-nav a::after { display: none; }
  .services-menu-wrap { display: block; width: 100%; }
  .services-menu-trigger { width: 100%; padding: 10px; color: #fff; text-align: left; }
  .services-menu-trigger::after { display: none; }
  .services-menu { position: static; width: 100%; margin: 2px 0 4px; padding: 5px 11px 9px; box-shadow: none; transform: none; }
  .services-menu-wrap:not(.is-hover-suppressed):hover .services-menu, .services-menu.is-open { transform: none; }
  .service-nav .services-menu a { padding: 10px 2px; }
  .service-nav-toggle { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid currentColor; background: transparent; color: #fff; }
  .service-nav-toggle span { width: 19px; height: 2px; background: currentColor; }
  .service-actions { justify-self: end; }
  .client-access { min-height: 40px; padding: 0 11px; font-size: 10px; }
  .service-hero { min-height: 640px; background-position: 64% center; }
  .service-hero::before { background: linear-gradient(0deg, rgb(4 8 10 / 94%) 0%, rgb(4 8 10 / 70%) 49%, rgb(4 8 10 / 12%) 100%); }
  .service-hero__inner { padding-top: 150px; padding-bottom: 55px; }
  .service-hero h1 { font-size: clamp(42px, 13vw, 66px); }
  .service-hero p { font-size: 14px; line-height: 1.65; }
  .service-intro, .service-section { padding: 62px 0; }
  .service-intro p, .service-copy p { font-size: 14px; }
  .service-section h2, .service-intro h2 { font-size: 39px; }
  .service-footer__grid { display: block; padding: 58px 0 40px; }
  .service-footer__brand, .service-footer__links { margin-bottom: 42px; }
  .service-certifications__list { grid-template-columns: 1fr; }
  .service-footer__bottom-inner { min-height: 100px; flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
  .service-whatsapp { right: 14px; bottom: 14px; width: 52px; padding: 0; justify-content: center; }
  .service-whatsapp span { display: none; }
}

@media (max-width: 900px) {
  .service-language {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .service-actions { gap: 7px; }
  .service-language { font-size: 10px; letter-spacing: .03em; }
  .service-language span { padding-inline: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Mismo criterio en el pie de las páginas de servicio. */
@media (max-width: 680px) {
  .service-footer__grid { text-align: center; }
  .service-footer__brand img { object-position: center; margin-inline: auto; }

  .service-certifications__list {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 200px;
    margin-inline: auto;
  }

  .rite-trigger { max-width: 210px; }
}

/* Los títulos son palabras largas en mayúsculas ("DOCUMENTACION",
   "REORGANIZATION"): por debajo de ~360px no entran en una línea y se
   recortaban contra el borde. Solo se parten cuando no hay alternativa;
   a anchos normales esta regla no cambia nada. */
.service-page h1,
.service-page h2,
.service-page h3 {
  overflow-wrap: break-word;
}

/* Acceso Clientes: se abre con click y muestra los dos sistemas como
   tarjetas lado a lado; la que está bajo el puntero o el foco se pinta
   de amarillo y su texto e ícono pasan a negro. */
.client-access[aria-expanded="true"] {
  border-color: #ffd400;
  background: #111;
  color: #ffd400;
}

.client-access-menu {
  --access-yellow: #ffd400;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(540px, calc(100vw - 34px));
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #141414;
  border-top: 3px solid var(--access-yellow);
  color: #fff;
  box-shadow: 0 26px 60px rgb(0 0 0 / 40%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.client-access-menu::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 34px;
  width: 14px;
  height: 14px;
  background: var(--access-yellow);
  transform: rotate(45deg);
}

.client-access-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.client-access-menu > strong {
  font-family: "HP Simplified", sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .14em;
  color: rgb(255 255 255 / 64%);
}

.client-access-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.access-option {
  position: relative;
  min-height: 196px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(255 255 255 / 4%);
  color: #fff;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.access-option__icon {
  width: 52px;
  height: 52px;
  margin-bottom: auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--access-yellow);
  color: var(--access-yellow);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.access-option__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-option__eyebrow {
  margin: 22px 0 6px;
  font-family: "Myriad Pro", sans-serif;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 58%);
  transition: color .2s ease;
}

.access-option__title {
  font-family: "HP Simplified", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.access-option__go {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 50%);
  transition: color .2s ease, transform .2s ease;
}

.access-option__go svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-option:hover,
.access-option:focus-visible {
  border-color: var(--access-yellow);
  background: var(--access-yellow);
  color: #111;
  transform: translateY(-2px);
  outline: none;
}

.access-option:focus-visible { box-shadow: 0 0 0 2px #141414, 0 0 0 4px #fff; }

.access-option:hover .access-option__icon,
.access-option:focus-visible .access-option__icon {
  border-color: #111;
  background: #fff;
  color: #111;
}

.access-option:hover .access-option__eyebrow,
.access-option:focus-visible .access-option__eyebrow { color: rgb(0 0 0 / 62%); }

.access-option:hover .access-option__go,
.access-option:focus-visible .access-option__go {
  color: #111;
  transform: translate(2px, -2px);
}

@media (max-width: 760px) {
  /* En mobile el botón no está pegado al borde derecho: anclado a él, el
     panel se salía por la izquierda. Se posiciona contra el header, que
     ocupa todo el ancho, y la flecha se oculta porque ya no apunta al botón. */
  .client-access-wrap { position: static; }

  .client-access-menu {
    top: calc(100% - 8px);
    right: 14px;
    z-index: 120;
    width: min(440px, calc(100% - 28px));
    padding: 14px;
    gap: 12px;
  }

  .client-access-menu::before { display: none; }

  .client-access-menu > strong { font-size: 12px; }
  .client-access-options { gap: 10px; }
  .access-option { min-height: 164px; padding: 14px 12px 14px; }
  .access-option__icon { width: 42px; height: 42px; }
  .access-option__icon svg { width: 23px; height: 23px; }
  .access-option__eyebrow { margin: 16px 0 5px; font-size: 9px; letter-spacing: .12em; }
  .access-option__title { font-size: 15px; }
  .access-option__go { top: 12px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .client-access-menu,
  .access-option,
  .access-option__icon,
  .access-option__go { transition: none; }
  .access-option:hover,
  .access-option:focus-visible { transform: none; }
}
