/* Institutional navigation. Keep overrides scoped to the shared header. */
.fovipol-header {
    --header-green: #004E36;
    background: var(--fovipol-gray);
    font-family: "Montserrat", sans-serif;
}
.fovipol-header .main-menu__wrapper { background: transparent; }
.stricky-header.fovipol-header { background: var(--fovipol-gray); }
.fovipol-header .main-menu__wrapper-inner {
    display: flex; align-items: center; gap: 24px;
    max-width: 1920px; width: 100%; margin: 0 auto; padding: 24px 32px;
}
.fovipol-header .main-menu__logo {
    position: static; margin: 0; flex: 0 0 auto;
}
.fovipol-header .header-v2__logo-link {
    display: flex; align-items: center; gap: 10px; padding: 0;
    background: transparent; width: auto; height: auto;
}
.fovipol-header .header-v2__logo-pnp { height: 64px; width: auto; object-fit: contain; }
.fovipol-header .header-v2__logo-fovipol { height: 57px; width: auto; object-fit: contain; }
.fovipol-header .main-menu__bottom { flex: 1; min-width: 0; }
.fovipol-header .main-menu__bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: nowrap; gap: 24px; padding: 0; box-shadow: none;
}
.fovipol-header .main-menu__list {
    display: flex; align-items: center; flex-wrap: nowrap; gap: 12px;
}
.fovipol-header .main-menu__list > li { padding: 8px 0; }
.fovipol-header .main-menu__list > li + li { margin-left: 0; }
.fovipol-header .main-menu__list > li > a {
    color: #403F41; font-size: 13px; font-weight: 600;
    letter-spacing: 0; padding: 8px 0; white-space: nowrap;
}
.fovipol-header .main-menu__list > li:hover > a,
.fovipol-header .main-menu__list > li.current > a,
.fovipol-header .main-menu__list > li:focus-within > a {
    background: transparent; color: var(--header-green); text-shadow: none;
}
.fovipol-header .main-menu__list > li:focus-within > ul {
    visibility: visible; opacity: 1; transform: translateY(0) scaleY(1);
}
.fovipol-header .main-menu__list > .btn-destacado-rojo { padding: 0; margin-left: 10px; }
.fovipol-header .main-menu__list > .btn-destacado-rojo > a {
    background: linear-gradient(var(--fovipol-red), var(--fovipol-red-deep)); color: #fff;
    border-radius: 14px; padding: 17px 18px; font-weight: 800;
}
.fovipol-header .btn-destacado-rojo i { display: none; }
.fovipol-header .main-menu__right { flex-shrink: 0; }
.fovipol-header .main-menu__actions { display: flex; align-items: center; gap: 8px; }
.fovipol-header .main-menu__search-box { display: block; margin: 0 4px 0 0; padding: 0; }
.fovipol-header .main-menu__search-box:before,
.fovipol-header .header-v2__divider { display: none; }
.fovipol-header .main-menu__btn-box { margin: 0; }
.fovipol-header .main-menu__btn,
.mobile-nav__wrapper .mobile-nav__btn {
    background: linear-gradient(var(--fovipol-green), var(--fovipol-green-deep)); color: #fff;
    border-radius: 14px; padding: 17px 16px; font-size: 12px;
    line-height: 20px; font-weight: 500; white-space: nowrap; text-transform: uppercase;
}
.fovipol-header .main-menu__btn:before { display: none; }
.fovipol-header .main-menu__btn:hover,
.fovipol-header .btn-destacado-rojo > a:hover { filter: brightness(1.08); }
.fovipol-header .autocomplete-wrapper,
.mobile-nav__wrapper .autocomplete-wrapper { position: relative; }
.fovipol-header .search-form,
.mobile-nav__wrapper .search-form {
    display: flex; align-items: center; background: #BBBDC0;
    border-radius: 14px; padding: 4px; box-shadow: none;
}
.fovipol-header .search-form .search,
.mobile-nav__wrapper .search-form .search {
    background: transparent; border: 0; color: #403F41; padding: 0 10px;
    height: 46px; width: 112px; min-width: 0; font-size: 13px;
}
.fovipol-header .search::placeholder,
.mobile-nav__wrapper .search::placeholder { color: #403F41; opacity: 1; }
.fovipol-header .btnsearch,
.mobile-nav__wrapper .btnsearch {
    background: linear-gradient(var(--fovipol-green), var(--fovipol-green-deep)); color: white;
    border: 0; border-radius: 11px; width: 46px; height: 46px;
    padding: 0; font-size: 22px; flex-shrink: 0; cursor: pointer;
}
.fovipol-header .btnsearch:before,
.mobile-nav__wrapper .btnsearch:before { display: none; }
.fovipol-header .autocomplete-results,
.mobile-nav__wrapper .autocomplete-results {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%;
    width: 260px; max-width: 80vw; max-height: 240px; overflow-y: auto;
    background: white; color: #333; z-index: 1000; border-radius: 8px;
    box-shadow: 0 8px 20px #0002;
}
.autocomplete-results:empty { display: none; }
.fovipol-header .autocomplete-results div:hover,
.mobile-nav__wrapper .autocomplete-results div:hover { background: #eee; }
.fovipol-header a:focus-visible,
.fovipol-header button:focus-visible,
.fovipol-header input:focus-visible { outline: 2px solid var(--fovipol-green-deep); outline-offset: 3px; }
.fovipol-header .mobile-nav__toggler { display: none; }
.mobile-nav__wrapper .mobile-nav__search-box { margin: 16px 0; }
.mobile-nav__wrapper .search-form .search { flex: 1; }
.mobile-nav__wrapper .mobile-nav__btn,
.mobile-nav__wrapper .btn-preinscripcion-mobile {
    display: block; margin: 12px 0; text-align: center;
}
.mobile-nav__wrapper .btn-preinscripcion-mobile {
    background: linear-gradient(var(--fovipol-red), var(--fovipol-red-deep)); color: #fff;
    border-radius: 14px; padding: 14px 10px; font-size: 13px; font-weight: 800;
}
/* The cloned desktop CTA is replaced by the panel's dedicated CTA. */
.mobile-nav__container .btn-destacado-rojo { display: none; }
@media (min-width: 1440px) and (max-width: 1699px) {
    .fovipol-header .main-menu__wrapper-inner { padding: 20px 18px; gap: 16px; }
    .fovipol-header .main-menu__bottom-inner { gap: 14px; }
    .fovipol-header .main-menu__list { gap: 9px; }
    .fovipol-header .main-menu__list > li > a { font-size: 12px; }
    .fovipol-header .main-menu__btn { font-size: 11px; padding: 15px 12px; }
    .fovipol-header .main-menu__list > .btn-destacado-rojo > a { padding: 15px 12px; }
    .fovipol-header .search-form .search { width: 85px; }
    .fovipol-header .header-v2__logo-pnp { height: 54px; }
    .fovipol-header .header-v2__logo-fovipol { height: 48px; }
}
/* Switch before the complete row becomes crowded. */
@media (max-width: 1439px) {
    .stricky-header.fovipol-header { display: none !important; }
    .fovipol-header .main-menu__wrapper-inner { padding: 16px 20px; }
    .fovipol-header .main-menu__list,
    .fovipol-header .main-menu__right { display: none; }
    .fovipol-header .main-menu__bottom-inner { justify-content: flex-end; }
    .fovipol-header .mobile-nav__toggler { display: inline-flex; padding: 10px; font-size: 26px; color: var(--fovipol-green-deep); }
    .fovipol-header .header-v2__logo-pnp { height: 48px; }
    .fovipol-header .header-v2__logo-fovipol { height: 42px; }
}

/* Mobile reference: right drawer, dimmed/blurred page and compact actions. */
.mobile-nav__wrapper {
    transform: none; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 250ms ease, visibility 250ms ease;
    height: 100dvh;
}
.mobile-nav__wrapper.expanded {
    transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity 250ms ease, visibility 250ms ease;
}
.mobile-nav__wrapper .mobile-nav__overlay {
    background: rgb(0 0 0 / 50%); opacity: 1; backdrop-filter: blur(3px);
}
.mobile-nav__wrapper .mobile-nav__content {
    width: min(340px, 86vw); margin-left: auto;
    background: var(--fovipol-green-deep); color: #fff;
    padding: max(16px, env(safe-area-inset-top)) 30px max(28px, env(safe-area-inset-bottom));
    transform: translateX(100%); opacity: 1; visibility: visible;
    transition: transform 250ms ease; overscroll-behavior: contain;
}
.mobile-nav__wrapper.expanded .mobile-nav__content {
    transform: translateX(0); transition: transform 250ms ease;
}
.mobile-nav__heading { display: flex; align-items: center; justify-content: space-between; margin: 0 -10px 16px; }
.mobile-nav__heading h2 { color: white; font-size: 20px; font-weight: 600; line-height: 26px; margin: 0; }
.mobile-nav__heading .mobile-nav__close {
    position: static; display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: 0; background: transparent; color: white;
    font-size: 18px; padding: 0;
}
.mobile-nav__content .mobile-nav__container { border: 0; }
.mobile-nav__content .main-menu__list > li:not(:last-child) { border: 0; }
.mobile-nav__content .main-menu__list > li > a {
    height: auto; min-height: 43px; padding: 5px 10px;
    font-size: 16px; font-weight: 400; line-height: 24px;
}
.mobile-nav__content .main-menu__list li a.expanded { color: #fff; }
.mobile-nav__content .main-menu__list > li > a > button {
    background: transparent; width: 32px; height: 32px;
}
.mobile-nav__content .main-menu__list > li > a > button.expanded { background: transparent; color: white; }
.mobile-nav__content .main-menu__list > li > ul > li > a {
    height: auto; min-height: 44px; padding: 8px 10px;
    line-height: 22px; font-size: 14px;
}
.mobile-nav__wrapper .mobile-nav__search-box { margin: 18px 0 12px; }
.mobile-nav__wrapper .search-form { border-radius: 28px; padding: 0 10px; }
.mobile-nav__wrapper .search-form .search { height: 48px; font-size: 18px; color: var(--fovipol-green-dark); }
.mobile-nav__wrapper .search::placeholder { color: var(--fovipol-green-dark); }
.mobile-nav__wrapper .btnsearch { background: transparent; color: var(--fovipol-green-dark); width: 40px; height: 44px; font-size: 23px; }
.mobile-nav__wrapper .btn-preinscripcion-mobile {
    margin: 0 0 10px; padding: 22px 8px; border-radius: 22px;
    background: linear-gradient(var(--fovipol-red), var(--fovipol-red-deep)); font-size: 18px; line-height: 26px;
}
.mobile-nav__quick-links { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }
.mobile-nav__wrapper .mobile-nav__btn {
    margin: 0; padding: 14px 4px; border-radius: 14px; background: #BBBDC0;
    color: var(--fovipol-green-dark); font-size: 10px; line-height: 18px; font-weight: 600;
}
.mobile-nav__wrapper .mobile-nav__btn:before { display: none; }
.mobile-nav__wrapper a:focus-visible,
.mobile-nav__wrapper button:focus-visible,
.mobile-nav__wrapper input:focus-visible { outline: 2px solid white; outline-offset: 2px; }
@media (max-width: 359px) {
    .mobile-nav__wrapper .mobile-nav__content { padding-left: 18px; padding-right: 18px; }
    .mobile-nav__wrapper .btn-preinscripcion-mobile { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-nav__wrapper, .mobile-nav__wrapper.expanded,
    .mobile-nav__wrapper .mobile-nav__content,
    .mobile-nav__wrapper.expanded .mobile-nav__content { transition: none; }
}
