/* Estilo de navegación reutilizado desde index.html */

/* EuroSuite v17 · barra de menús basada en categorías de la edición de escritorio. */
.eu-nav-layout{gap:9px;}
.eu-brand{gap:8px;flex:none;letter-spacing:-.025em;}
.eu-brand-stack{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;white-space:nowrap;line-height:1.09;gap:3px;}
.eu-brand-name{display:block;font-size:1.05rem;font-weight:850;line-height:1.05;}
.eu-brand-domain{display:block;font-size:.72rem;font-weight:700;color:var(--secondary);letter-spacing:.025em;line-height:1.1;}
.eu-menu-bar{gap:1px;}
.eu-menu-bar .nav-link{font-size:.835rem;padding:.54rem .46rem;gap:3px;min-height:41px;}
.eu-menu-bar .chevron{font-size:.86rem;margin-left:1px;line-height:1;}
.eu-menu-bar .eu-nav-icon{justify-content:center;gap:4px;min-width:38px;padding:.5rem .42rem;}
.eu-menu-bar .eu-nav-icon svg{display:block;flex:none;}
.eu-mobile-label{display:none;}
.eu-menu-bar .dropdown-menu{min-width:240px;max-width:min(365px,90vw);max-height:min(70vh,590px);}
.eu-menu-bar .nav-item:nth-child(-n+3) .dropdown-menu{right:auto;left:0;}
.eu-menu-all{font-weight:800;color:var(--primary)!important;}
.eu-menu-divider{height:1px;margin:5px 6px;background:var(--line);}
.eu-nav-help .dropdown-menu{right:0;left:auto;}
.eu-nav-theme .theme-toggle{width:39px;height:39px;}
@media(min-width:992px) and (max-width:1160px){
 .eu-brand-name{font-size:.96rem;}
 .eu-nav-layout{gap:5px;}
 .eu-menu-bar .nav-link{font-size:.77rem;padding:.5rem .34rem;gap:2px;}
 .eu-menu-bar .eu-nav-icon{min-width:34px;padding:.5rem .3rem;}
 .eu-menu-bar .chevron{font-size:.75rem;}
 .eu-nav-theme .theme-toggle{width:36px;height:36px;}
}
@media(max-width:991.98px){
 .eu-nav-layout{gap:10px;}
 .eu-brand-name{font-size:1.02rem;}
 .eu-menu-bar{display:block;}
 .eu-menu-bar .nav-link{font-size:.98rem;padding:.7rem .82rem;width:100%;justify-content:flex-start;min-height:44px;}
 .eu-menu-bar .eu-nav-icon{justify-content:flex-start;padding:.7rem .82rem;}
 .eu-mobile-label{display:inline;}
 .eu-menu-bar .dropdown-menu{position:static;left:auto!important;right:auto!important;max-width:none;width:100%;max-height:none;box-shadow:none;overflow:visible;}
 .eu-nav-theme .theme-toggle{margin:.55rem .85rem;}
}
@media(max-width:380px){.eu-brand-name{font-size:.91rem}.eu-brand-domain{font-size:.69rem}.eu-brand{gap:6px}.eu-brand img{width:35px;height:35px}}


/* Donativos voluntarios de EuroSuite Utilities. Adaptación del diseño LoTTERY/lab. */
.eu-nav-donation .btn-paypal-header{display:inline-flex;align-items:center;justify-content:center;gap:.28rem;white-space:nowrap;font-size:.80rem;font-weight:750;line-height:1.3;padding:.39rem .55rem;border:1px solid #8ac5ed;border-radius:999px;background:#ddf0ff;color:#084b72;text-decoration:none;box-shadow:0 .12rem .35rem rgba(8,75,114,.06)}
.eu-nav-donation .btn-paypal-header:hover,.eu-nav-donation .btn-paypal-header:focus-visible{background:#c5e5fb;border-color:#62b1e1;color:#063b5b;text-decoration:none}
.eu-nav-donation .btn-paypal-header:focus-visible,.eu-nav-support .nav-link:focus-visible{outline:2px solid #0d6efd;outline-offset:2px}
.eu-nav-donation .eu-paypal-label-short{display:none}
.eu-nav-support .nav-link{font-weight:700;color:var(--primary)}
html[data-theme="dark"] .eu-nav-donation .btn-paypal-header{background:#144b73;border-color:#6fb9e7;color:#f3faff}
html[data-theme="dark"] .eu-nav-donation .btn-paypal-header:hover,html[data-theme="dark"] .eu-nav-donation .btn-paypal-header:focus{background:#21618e;border-color:#9bd6fa;color:#fff}
@media(min-width:992px) and (max-width:1199px){.eu-nav-donation .eu-paypal-label-full{display:none}.eu-nav-donation .eu-paypal-label-short{display:inline}.eu-nav-donation .btn-paypal-header{padding:.35rem .45rem;font-size:.78rem}.eu-nav-support .nav-link{padding-left:.35rem;padding-right:.35rem;font-size:.79rem}}
@media(max-width:991.98px){.eu-nav-donation .btn-paypal-header{margin:.35rem .82rem;min-height:39px;padding:.52rem .8rem;font-size:.91rem}.eu-nav-support .nav-link{padding-left:.82rem}}


/* Elementos comunes normalizados de todas las páginas EuroSuite */
.eu-shared-footer{width:min(100% - 2.5rem,1160px);margin:1.6rem auto 0;padding:1.5rem 0 .5rem;border-top:1px solid var(--line,#dce5f0);color:var(--text,#152337);font:400 15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}
.eu-shared-footer *{box-sizing:border-box}
.eu-shared-footer h2{font-size:1.1rem;line-height:1.35;margin:0 0 1rem;color:var(--text,#152337)}
.eu-shared-footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1.2rem}
.eu-shared-footer-link{min-width:0;padding:.85rem 1rem;border:1px solid var(--line,#dce5f0);background:var(--card,#fff);border-radius:12px}
.eu-shared-footer-link a{font-size:.94rem;font-weight:750;color:var(--primary,#2367d1);overflow-wrap:anywhere}
.eu-shared-footer-link p{margin:.28rem 0 0;font-size:.84rem;line-height:1.5;color:var(--secondary,#52647c)}
.eu-shared-footer-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between;margin-top:1.1rem}
.eu-shared-paypal{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;font:750 .91rem/1.3 system-ui,sans-serif;padding:.68rem 1.1rem;border:1px solid #8ac5ed;border-radius:999px;background:#ddf0ff;color:#084b72!important;text-decoration:none!important}
.eu-shared-paypal:hover,.eu-shared-paypal:focus-visible{background:#c5e5fb;border-color:#62b1e1;color:#063b5b!important}
.eu-shared-paypal-note{font-size:.83rem;color:var(--secondary,#52647c);margin:0}
.eu-shared-utility-help{margin-top:1.1rem;font-size:.89rem}
.eu-shared-utility-help summary{cursor:pointer;font-weight:700;color:var(--text,#152337)}
.eu-shared-utility-help-links{display:flex;flex-wrap:wrap;gap:.5rem 1.1rem;margin-top:.6rem}
.eu-shared-utility-help-links a{color:var(--primary,#2367d1)}
html[data-theme="dark"] .eu-shared-paypal{background:#144b73;border-color:#6fb9e7;color:#f3faff!important}
html[data-theme="dark"] .eu-shared-paypal:hover{background:#21618e;color:#fff!important}
@media(max-width:700px){.eu-shared-footer-links{grid-template-columns:1fr}.eu-shared-footer{width:min(100% - 1.6rem,1160px)}}
@media print{.eu-shared-footer,nav.site-nav{display:none!important}}

/* ===== PIE COMUN EUROSUITE (v2): derivado de index.html ===== */
/* Aislamiento de estilos para utilidades con temas CSS independientes. */
footer.eu-global-footer {
  display:block !important; visibility:visible !important; opacity:1 !important;
  position:relative !important; float:none !important; clear:both;
  inset:auto; z-index:1; box-sizing:border-box;
  width:100% !important; max-width:none !important; min-height:0;
  margin:2.25rem 0 0 !important; padding:2rem 0 2.2rem !important;
  border-top:1px solid var(--line,#dce5f0) !important;
  border-radius:0 !important;
  background:var(--card,#fff) !important;
  color:var(--text,#18283b) !important;
  text-align:left; font:400 15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif !important;
}
footer.eu-global-footer *,footer.eu-global-footer *::before,footer.eu-global-footer *::after {box-sizing:border-box}
footer.eu-global-footer .eu-footer-container {
  display:block; width:min(100% - 2.5rem,1160px) !important;
  max-width:1160px !important; min-width:0; margin:0 auto !important; padding:0 !important;
}
footer.eu-global-footer .footer-logo{text-align:center;margin:0 auto 1.2rem}
footer.eu-global-footer .footer-logo img{display:block;width:auto;max-width:min(480px,100%);height:auto;margin:0 auto;border-radius:8px}
footer.eu-global-footer .footer-grid{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem 2rem;color:var(--secondary,#52647c);font-size:.88rem}
footer.eu-global-footer .footer-grid>div{flex:1 1 0;min-width:0;max-width:none}
footer.eu-global-footer .footer-title{font-weight:800;color:var(--text,#18283b);font-size:1rem;margin:0 0 .35rem}
footer.eu-global-footer .footer-grid p{margin:.25rem 0 .5rem;line-height:1.6}
footer.eu-global-footer a{overflow-wrap:anywhere}
footer.eu-global-footer .footer-grid a,footer.eu-global-footer .eu-footer-tools a{color:var(--primary,#2367d1)}
footer.eu-global-footer .eu-footer-tools{display:flex;flex-wrap:wrap;gap:.55rem 1.4rem;margin:1rem 0 0;padding:1rem 0 .4rem;border-top:1px solid var(--line,#dce5f0);font-size:.88rem;font-weight:650}
footer.eu-global-footer .eu-footer-tools a{text-decoration:none}
footer.eu-global-footer .eu-footer-tools a:hover,footer.eu-global-footer .eu-footer-tools a:focus-visible{text-decoration:underline}
footer.eu-global-footer .eu-shared-footer{display:block;max-width:none;width:100%;margin:1.25rem 0 0;padding:1.2rem 0 0;border-top:1px solid var(--line,#dce5f0);font:inherit;color:inherit}
footer.eu-global-footer .eu-shared-footer h2{font-weight:800;font-size:1.09rem;color:var(--text,#18283b)}
footer.eu-global-footer .eu-shared-footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem 1.1rem}
footer.eu-global-footer .eu-shared-footer-link{display:block;min-width:0;border:1px solid var(--line,#dce5f0);border-radius:12px;padding:.85rem 1rem;background:var(--card,#fff)}
footer.eu-global-footer .eu-shared-footer-link a{color:var(--primary,#2367d1);font-size:.94rem;font-weight:750;text-decoration:none}
footer.eu-global-footer .eu-shared-footer-link a:hover,footer.eu-global-footer .eu-shared-footer-link a:focus-visible{text-decoration:underline}
footer.eu-global-footer .eu-shared-footer-link p{margin:.32rem 0 0;font-size:.86rem;line-height:1.5;color:var(--secondary,#52647c)}
footer.eu-global-footer .eu-shared-footer-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:.7rem;margin-top:1.15rem}
footer.eu-global-footer a.eu-shared-paypal{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;border:1px solid #8ac5ed;border-radius:999px;background:#ddf0ff;color:#084b72 !important;font-weight:750;font-size:.91rem;padding:.65rem 1.1rem;text-decoration:none}
footer.eu-global-footer a.eu-shared-paypal:hover,footer.eu-global-footer a.eu-shared-paypal:focus-visible{background:#c5e5fb;color:#063b5b !important;outline-offset:2px}
footer.eu-global-footer .eu-shared-paypal-note{font-size:.83rem;color:var(--secondary,#52647c);margin:.2rem 0}
footer.eu-global-footer .eu-shared-utility-help{margin-top:1.1rem;font-size:.89rem}
footer.eu-global-footer .eu-shared-utility-help summary{cursor:pointer;font-weight:700;color:var(--text,#18283b)}
footer.eu-global-footer .eu-shared-utility-help-links{display:flex;flex-wrap:wrap;gap:.5rem 1.1rem;margin-top:.65rem}
footer.eu-global-footer .eu-shared-utility-help a{color:var(--primary,#2367d1)}
html[data-theme="dark"] footer.eu-global-footer a.eu-shared-paypal{background:#144b73;color:#f3faff !important;border-color:#6fb9e7}
html[data-theme="dark"] footer.eu-global-footer a.eu-shared-paypal:hover{background:#21618e;color:#fff !important}
@media(max-width:700px){
 footer.eu-global-footer .eu-footer-container{width:min(100% - 1.6rem,1160px) !important}
 footer.eu-global-footer .footer-grid{flex-direction:column;gap:.5rem}
 footer.eu-global-footer .footer-grid>div{width:100%}
 footer.eu-global-footer .eu-shared-footer-links{grid-template-columns:minmax(0,1fr)}
 footer.eu-global-footer{padding:1.35rem 0 1.8rem !important}
}
@media print{footer.eu-global-footer{display:none !important}}

/* Navegación móvil: el panel completo se desplaza dentro del alto visible.
   Así también son accesibles las opciones de submenús largos, como Cálculo,
   sin afectar al diseño de escritorio ni al contenido de las páginas. */
@media (max-width: 991.98px) {
  .site-nav #mainNav.collapse.show {
    max-height: calc(100vh - 96px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
}
