/* Panel de servicios con fotografía y transiciones de desvanecido. */
.nav.services-open { background: #061321ed; }
.nav-service-toggle { position: relative; }
.nav-service-toggle::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--y); opacity: 0; transition: opacity .2s ease; }
.nav-service-toggle[aria-expanded=true]::after { opacity: 1; }
.nav-service-toggle[aria-expanded=true] > span { transform: rotate(225deg); margin-top: 3px; }
.services-mega.nav-pop { position: fixed; left: 50%; right: auto; top: 76px; width: min(1240px, calc(100vw - 80px)); max-height: calc(100dvh - 96px); display: grid; grid-template-columns: 70% 30%; gap: 0; padding: 0; border: 1px solid #ffffff78; border-radius: 15px; background: #f8fafc; color: #13202d; box-shadow: 0 22px 70px #0006; opacity: 0; transform: translate(-50%, -8px); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.services-mega.nav-pop[hidden] { display: none; }
.services-mega.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.services-mega::before { content: ''; position: absolute; left: var(--services-pointer-x, 35%); top: -10px; width: 20px; height: 20px; transform: translateX(-50%) rotate(45deg); background: #fafbfd; border-top: 1px solid #ffffff78; border-left: 1px solid #ffffff78; }
.services-mega-content { position: relative; padding: 35px 38px 26px; background: linear-gradient(120deg, #fff, #f4f6f8); border-radius: 14px 0 0 14px; overflow-y: auto; }
.services-mega-eyebrow { margin: 0 0 6px; color: #b57c00; font-size: 11px; font-weight: 600; line-height: 1.5; text-transform: uppercase; letter-spacing: .24em; }
.services-mega h2 { font-size: clamp(25px, 2.55vw, 34px); line-height: 1.09; letter-spacing: -.04em; margin: 0 0 22px; }
.services-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 15px; }
.services-mega-grid > a { display: grid; grid-template-columns: 54px 1fr 19px; align-items: start; gap: 14px; padding: 15px 13px; border: 1px solid #fff; background: #ffffffb3; border-radius: 11px; box-shadow: 0 4px 14px #172c4006; text-decoration: none; color: #13202d; opacity: 1; transition: background .2s, border-color .2s, box-shadow .2s; }
.services-mega-grid > a:hover, .services-mega-grid > a:focus-visible { background: #fff8e7; border-color: #f0cf78; color: #13202d; box-shadow: 0 4px 18px #bf8b0510; }
.services-mega-grid b { font-size: 13px; line-height: 1.35; font-weight: 700; margin: 3px 0 6px; letter-spacing: -.03em; }
.services-mega-grid small { font-size: 12px; line-height: 1.5; color: #748094; font-weight: 400; margin: 0; }
.services-mega-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 10px; color: #b88305; background: linear-gradient(135deg, #fff3cd, #ffedb3); box-shadow: 0 3px 8px #d5a63214; }
.services-mega-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.services-mega-arrow { font-size: 23px; line-height: 1; color: #695224; padding-top: 5px; }
.services-mega-help { display: grid; grid-template-columns: 35px 1fr auto; gap: 19px; align-items: center; border-top: 1px solid #e1e6ec; padding-top: 23px; margin-top: 22px; }
.services-mega-help > svg { width: 30px; height: 33px; fill: none; stroke: #b17e00; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.services-mega-help h3 { font-size: 14px; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 5px; }
.services-mega-help p { font-size: 11px; line-height: 1.5; color: #748094; margin: 0; }
.services-mega-help a { display: inline-flex; align-items: center; gap: 12px; color: #b47c00; font-size: 12px; font-weight: 600; opacity: 1; text-decoration: none; white-space: nowrap; border: 0; }
.services-mega-help a:hover { color: #7d5500; }
.services-mega-help a > span { font-size: 23px; line-height: 1; }
.services-mega-photo { position: relative; margin: 0; overflow: hidden; border-radius: 0 14px 14px 0; background: #101b23; min-height: 410px; }
.services-mega-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; opacity: 1; transition: opacity .18s ease; }
.services-mega-photo > img.is-switching { opacity: 0; }
.services-mega-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #04111bf2, #04111b70 32%, transparent 65%); pointer-events: none; }
.services-mega-photo figcaption { position: absolute; bottom: 29px; left: 30px; right: 18px; z-index: 1; border-left: 2px solid var(--y); padding-left: 18px; color: #fff; }
.services-mega-photo figcaption p { text-transform: uppercase; letter-spacing: .12em; font-size: 8px; font-weight: 500; line-height: 1.5; color: #e0e5ea; margin: 0 0 10px; }
.services-mega-photo figcaption h3 { font-size: clamp(20px, 1.85vw, 27px); line-height: 1.13; letter-spacing: -.03em; margin: 0; }
@media (max-width: 1200px) and (min-width: 961px) {
  .services-mega-content { padding: 28px 30px 23px; }
  .services-mega h2 { font-size: 28px; margin-bottom: 20px; }
  .services-mega-grid { gap: 10px 12px; }
  .services-mega-grid > a { grid-template-columns: 46px 1fr 15px; gap: 12px; padding: 12px 10px; }
  .services-mega-icon { width: 46px; height: 46px; }
  .services-mega-icon svg { width: 26px; height: 26px; }
  .services-mega-grid b { font-size: 12px; }
  .services-mega-grid small { font-size: 11px; }
  .services-mega-help { gap: 15px; padding-top: 19px; margin-top: 20px; }
  .services-mega-help h3 { font-size: 13px; }
  .services-mega-help p { font-size: 10px; }
  .services-mega-help a { font-size: 11px; }
  .services-mega-photo figcaption { left: 23px; padding-left: 15px; }
}
@media (max-height: 620px) and (min-width: 961px) {
  .services-mega.nav-pop { max-height: calc(100dvh - 88px); }
  .services-mega-content { padding-block: 23px 20px; }
  .services-mega-photo { min-height: 0; }
}
@media (max-width: 960px) {
  .services-mega.nav-pop { position: relative; inset: auto; left: auto; top: auto; width: 100%; max-height: none; grid-template-columns: 1fr; margin: 9px 0 12px; transform: translateY(-6px); border-radius: 10px; box-shadow: none; overflow: hidden; }
  .services-mega.is-open { transform: translateY(0); }
  .services-mega::before { display: none; }
  .services-mega-content { padding: 24px; border-radius: 10px 10px 0 0; overflow: visible; }
  .services-mega-eyebrow { font-size: 9px; }
  .services-mega h2 { font-size: 26px; }
  .services-mega-grid > a { padding: 13px; border: 1px solid #fff; }
  .services-mega-help { grid-template-columns: 30px 1fr; gap: 13px; }
  .services-mega-help a { grid-column: 2; padding: 0; justify-self: start; border: 0; }
  .services-mega-photo { min-height: 215px; border-radius: 0 0 10px 10px; }
  .services-mega-photo > img { object-position: center 35%; }
  .services-mega-photo figcaption { bottom: 22px; left: 24px; }
  .services-mega-photo figcaption h3 { font-size: 24px; }
}
@media (max-width: 600px) {
  .services-mega-content { padding: 20px 15px; }
  .services-mega h2 { font-size: 23px; margin-bottom: 18px; }
  .services-mega-grid { grid-template-columns: 1fr; gap: 9px; }
  .services-mega-grid > a { grid-template-columns: 43px 1fr 18px; padding: 11px; gap: 12px; }
  .services-mega-icon { width: 43px; height: 43px; }
  .services-mega-icon svg { width: 25px; height: 25px; }
  .services-mega-grid b { font-size: 12px; margin-top: 0; margin-bottom: 4px; }
  .services-mega-grid small { font-size: 10px; }
  .services-mega-help { margin-top: 17px; padding-top: 17px; }
  .services-mega-help h3 { font-size: 12px; }
  .services-mega-help p { font-size: 10px; }
  .services-mega-help a { font-size: 11px; }
  .services-mega-photo { min-height: 185px; }
  .services-mega-photo figcaption h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .services-mega.nav-pop, .services-mega-photo > img, .nav-service-toggle::after { transition: none; }
}
