/* MG 2026 - navigation system, form affordances and contact channels */
:root{--mg-action:#7DFF16;--mg-action-ink:#061006}
html{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
/* Keep one context dropdown above all page content. */
html body .site-nav.institutional-nav{z-index:3500!important;overflow:visible!important}
html body .site-nav.institutional-nav .nav-shell{position:relative;isolation:isolate;overflow:visible!important}
html body .site-nav.institutional-nav .rd-nav-dropdown{position:static!important}
html body .site-nav.institutional-nav .rd-nav-dropdown:not(.open)>.mg-mega-v2{display:none!important;pointer-events:none!important;visibility:hidden!important;opacity:0!important}
html body .site-nav.institutional-nav .rd-nav-dropdown.open>.mg-mega-v2{display:grid!important;pointer-events:auto!important;visibility:visible!important;opacity:1!important}
html body .site-nav.institutional-nav .nav-links .rd-nav-trigger{font-size:12px!important;font-weight:690!important;padding:9px 2px!important;gap:8px!important;letter-spacing:0!important}
html body .site-nav.institutional-nav .nav-links>a.nav-text{font-size:12px!important;font-weight:690!important}
html body .site-nav.institutional-nav .rd-nav-trigger:hover,
html body .site-nav.institutional-nav .rd-nav-dropdown.open>.rd-nav-trigger{color:var(--rd-hover)!important}
html body .site-nav.institutional-nav .rd-nav-trigger:focus{outline:0!important;box-shadow:none!important}
html body .site-nav.institutional-nav .rd-nav-trigger:focus-visible{box-shadow:inset 0 -2px 0 var(--mg-action)!important}
html body .site-nav.institutional-nav .rd-mega-panel.mg-mega-v2{
  grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;
  position:absolute!important;top:calc(100% + 7px)!important;left:50%!important;right:auto!important;
  width:min(1220px,calc(100vw - 50px))!important;max-width:none!important;
  min-width:0!important;max-height:min(75vh,740px)!important;overflow:auto!important;
  margin:0!important;padding:0!important;gap:0!important;
  background:var(--rd-surface)!important;color:var(--rd-ink)!important;
  border:1px solid var(--rd-rule)!important;border-radius:15px!important;
  box-shadow:0 22px 68px rgba(0,0,0,.16)!important;
  transform:translate(-50%,0)!important;animation:mgMenuAppear .20s ease-out!important;
  z-index:3800!important;
}
@keyframes mgMenuAppear{from{opacity:0;transform:translate(-50%,-7px)}to{opacity:1;transform:translate(-50%,0)}}
html body .site-nav.institutional-nav .rd-mega-panel.mg-mega-v2::before{
  content:"";position:sticky;display:block;top:0;left:0;grid-row:1;grid-column:1;
  height:2px;width:100%;background:var(--mg-action);
  transform:scaleX(0);transform-origin:left;animation:mgMegaLine .63s cubic-bezier(.22,1,.36,1) .04s forwards;
  z-index:1
}
@keyframes mgMegaLine{to{transform:scaleX(1)}}
html body .site-nav.institutional-nav .mg-mega-intro{padding:22px 34px 10px;display:flex;align-items:baseline;justify-content:space-between;gap:30px}
html body .site-nav.institutional-nav .mg-mega-intro strong{font-size:18px;font-weight:780;letter-spacing:-.035em;color:var(--rd-ink)}
html body .site-nav.institutional-nav .mg-mega-intro p{margin:0;font-size:12px;line-height:1.65;color:var(--rd-muted);max-width:610px}
html body .site-nav.institutional-nav .mg-mega-cols{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:28px!important;padding:18px 34px 26px!important}
html body .site-nav.institutional-nav .mg-mega-col{min-width:0}
html body .site-nav.institutional-nav .mg-mega-col-head{padding:5px 0 18px;margin-bottom:4px;border-bottom:1px solid var(--rd-rule);display:grid;gap:8px}
html body .site-nav.institutional-nav .mg-mega-col-head span{font-size:11px;color:var(--rd-accent);font-weight:830;letter-spacing:.14em}
html body .site-nav.institutional-nav .mg-mega-col-head small{font-size:12px;color:var(--rd-muted);line-height:1.45}
html body .site-nav.institutional-nav a.mg-mega-link{display:flex!important;flex-direction:column!important;gap:7px!important;min-height:92px!important;padding:19px 0 17px!important;max-width:100%;color:var(--rd-ink)!important;box-shadow:none!important;outline:0!important;border-bottom:1px solid var(--rd-rule)!important;text-decoration:none!important;background:transparent!important;transform:none!important;border-radius:0!important;transition:color .17s ease!important}
html body .site-nav.institutional-nav .mg-mega-link strong{font-size:14px;font-weight:740;letter-spacing:-.02em;line-height:1.3}
html body .site-nav.institutional-nav .mg-mega-link small{font-size:12px;font-weight:460;line-height:1.55;color:var(--rd-muted)}
html body .site-nav.institutional-nav .mg-mega-link:hover strong,
html body .site-nav.institutional-nav .mg-mega-link:focus-visible strong{color:var(--rd-hover)!important}
html body .site-nav.institutional-nav .mg-mega-link:focus-visible{box-shadow:inset 0 -2px var(--mg-action)!important}
html body .site-nav.institutional-nav .mg-mega-bottom{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:15px 34px;border-top:1px solid var(--rd-rule);background:var(--rd-soft)}
html body .site-nav.institutional-nav .mg-mega-bottom>span{font-size:10px;letter-spacing:.11em;color:var(--rd-muted);font-weight:740}
html body .site-nav.institutional-nav .mg-mega-bottom a{font-size:11px;letter-spacing:.04em;color:var(--rd-accent);font-weight:840;display:inline-flex;align-items:center;gap:12px;text-decoration:none;white-space:nowrap}
html body .site-nav.institutional-nav .mg-mega-bottom a:hover{color:var(--rd-hover)}
html body .site-nav.institutional-nav .mg-mega-bottom a span{font-size:17px;line-height:1;transition:transform .2s}
html body .site-nav.institutional-nav .mg-mega-bottom a:hover span{transform:translate(3px,-2px)}
/* Avoid neon rectangles in the header; maintain underline for keyboard focus. */
html body .site-nav.institutional-nav .nav-links>a.nav-text:focus-visible,
html body .site-nav.institutional-nav .nav-links .rd-nav-trigger:focus-visible{outline:none!important;border-radius:0!important;box-shadow:inset 0 -2px 0 var(--mg-action)!important}
/* Main CTA: readable in both themes and all states. */
html body .site-nav.institutional-nav .nav-actions .nav-cta,
html body .site-nav.institutional-nav .nav-actions .nav-cta:hover,
html body .site-nav.institutional-nav .nav-actions .nav-cta:focus-visible,
html body .btn:not(.back):not(.btn-ghost):not(.secondary),
html body .btn:not(.back):not(.btn-ghost):not(.secondary):hover,
html body .btn:not(.back):not(.btn-ghost):not(.secondary):focus-visible{
  background:#7DFF16!important;color:#071006!important;border-color:#7DFF16!important;text-shadow:none!important;
}
html body .btn:not(.back):not(.btn-ghost):not(.secondary) *,html body .btn:not(.back):not(.btn-ghost):not(.secondary):hover *{color:#071006!important;fill:currentColor}
/* Slim line growing under focused application inputs, no full-outline box. */
html body #applicationForm .field{position:relative;isolation:isolate}
html body #applicationForm .field::after{content:"";position:absolute;pointer-events:none;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:var(--mg-action);transform:scaleX(0);transform-origin:left center;transition:transform .45s cubic-bezier(.22,1,.36,1);z-index:4}
html body #applicationForm .field:focus-within::after{transform:scaleX(1)}
html body #applicationForm input:not([type=radio]):focus,
html body #applicationForm textarea:focus,
html body #applicationForm select:focus{
 outline:none!important;box-shadow:none!important;border-color:var(--rd-rule)!important;
}
html body #applicationForm input:not([type=radio]):focus-visible,
html body #applicationForm textarea:focus-visible,
html body #applicationForm select:focus-visible{outline:none!important;box-shadow:none!important}
html body #applicationForm{position:relative;--mg-wizard:33.333%}
html body #applicationForm::after{content:"";pointer-events:none;position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#7DFF16 0 var(--mg-wizard),var(--rd-rule) var(--mg-wizard) 100%);border-radius:99px;transition:background .3s ease}
/* Contact channels: four legitimate options, e-mail pending actual address. */
html body .mg-institutional-footer .footer-link-col a.mg-footer-channel{font-size:13px;margin:0 0 13px;color:inherit;text-decoration:none;transition:color .18s ease}
html body .mg-institutional-footer .footer-link-col a.mg-footer-channel:hover{color:#7DFF16}
html body .mg-institutional-footer .footer-social{gap:9px}
html body .mg-institutional-footer .footer-social a{width:38px;height:38px;display:grid;place-items:center}
html body .mg-contact-main .inst-pagehero{padding-bottom:57px}
html body .mg-contact-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding-bottom:22px}
html body .mg-contact-card{padding:29px 21px 24px;min-height:240px;border:1px solid var(--rd-rule);border-radius:14px;display:flex;flex-direction:column;align-items:flex-start;background:var(--rd-surface)}
html body .mg-contact-icon{color:var(--rd-accent);height:25px}
html body .mg-contact-card h2{font-size:23px!important;line-height:1.16!important;margin:18px 0 9px!important;color:var(--rd-ink)!important}
html body .mg-contact-card p{font-size:13px;color:var(--rd-muted);line-height:1.55;margin:0 0 20px}
html body .mg-contact-card a{color:var(--rd-accent);font-size:12px;font-weight:730;margin-top:auto;word-break:break-word;text-decoration:none}
html body .mg-contact-card a:hover{color:var(--rd-hover);text-decoration:underline;text-underline-offset:3px}
html body .mg-contact-pending{display:block;font-size:12px;margin-top:auto;line-height:1.4;color:var(--rd-muted)}
html body .mg-contact-footnote{font-size:14px;margin:18px 0 0;color:var(--rd-muted)}
html body .mg-contact-footnote a{color:var(--rd-accent);font-weight:740;text-decoration:underline;text-underline-offset:4px}
@media(max-width:1180px) and (min-width:1051px){
 html body .site-nav.institutional-nav .rd-nav-dropdown{display:flex!important}
 html body .site-nav.institutional-nav .rd-mega-panel.mg-mega-v2{display:none!important}
 html body .site-nav.institutional-nav .rd-nav-dropdown.open>.mg-mega-v2{display:grid!important}
 html body .site-nav.institutional-nav .nav-shell{gap:14px!important}
 html body .site-nav.institutional-nav .nav-links{gap:13px!important}
}
@media(max-width:1050px){
 html body .site-nav.institutional-nav .rd-nav-dropdown{display:none!important}
 html body .site-nav.institutional-nav .rd-mega-panel.mg-mega-v2{display:none!important}
 html body .mg-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 html body .mg-contact-grid{grid-template-columns:1fr;gap:11px}
 html body .mg-contact-card{min-height:0;padding:22px}
 html body .mg-contact-card h2{font-size:20px!important}
 html body .mg-contact-footnote{font-size:13px}
}
@media(prefers-reduced-motion:reduce){html body .rd-mega-panel.mg-mega-v2,
 html body .rd-mega-panel.mg-mega-v2::before,
 html body #applicationForm .field::after{animation:none!important;transition:none!important}
 html body .rd-mega-panel.mg-mega-v2::before{transform:none!important}}

/* Preserve the secondary Metodologia outline button on both themes. */
html body .hero .btn.secondary,html body .hero .btn.secondary:hover{background:transparent!important;border:1px solid var(--rd-rule)!important;color:var(--rd-ink)!important;box-shadow:none!important}
html body .hero .btn.secondary:hover{border-color:var(--mg-action)!important;color:var(--rd-hover)!important}
html body .hero .btn.secondary .arrow,html body .hero .btn.secondary:hover .arrow{color:inherit!important}

/* Transparent pointer bridge between navbar and opened menu. */
html body .site-nav.institutional-nav .rd-nav-dropdown.open::after{content:""!important;display:block!important;position:absolute!important;top:100%!important;left:0;right:0;height:10px;z-index:3700;background:transparent;pointer-events:auto}

/* MG correction: one shared baseline for links, menu triggers and carets. */
@media(min-width:901px){html body .institutional-nav .nav-links{display:flex!important;align-items:center!important;gap:24px!important}html body .institutional-nav .nav-links>.nav-text,html body .institutional-nav .nav-links .rd-nav-trigger{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:40px!important;padding:0!important;line-height:1!important;margin:0!important;white-space:nowrap}html body .institutional-nav .rd-nav-dropdown{display:flex!important;align-items:center!important;height:40px!important}html body .institutional-nav .rd-nav-trigger svg{width:12px;height:12px;flex-shrink:0;vertical-align:middle}html body .institutional-nav .rd-mega-panel.mg-mega-v2{width:100%!important;max-width:1220px!important;top:100%!important}}
.mg-institutional-footer a.mg-footer-channel{display:flex!important;align-items:center;gap:10px;min-height:32px;line-height:1.35}.mg-footer-channel svg{width:18px;height:18px;flex:0 0 18px;color:currentColor}.mg-footer-channel:hover svg{color:var(--mg-action,#7DFF16)}
