/* Cabecera independiente: HTML/CSS estándar, sin dependencias de WordPress ni fuentes de iconos. */
:root { --hb-header-blue: #13447e; --hb-header-blue-dark: #0d315d; }
.hb-contactbar, .hb-header, .hb-contactbar *, .hb-header * { box-sizing: border-box; }
.hb-contactbar { width:100%; background:var(--hb-header-blue-dark); color:#fff; font: inherit; }
.hb-header-inner { width:min(1200px, calc(100% - 40px)); margin-inline:auto; }
.hb-contactbar-inner { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.hb-contactbar a { display:block; color:#fff !important; -webkit-text-fill-color:#fff; font-size:12px; line-height:1.35; text-decoration:none; }
.hb-contactbar a:hover, .hb-contactbar a:focus-visible { text-decoration:underline; }
.hb-phone { margin-right:auto; text-align:left; white-space:nowrap; }
.hb-email { margin-left:auto; text-align:right; overflow-wrap:anywhere; }
.hb-header { position:relative; z-index:100; width:100%; background:#fff; border-bottom:1px solid #e4e9ef; box-shadow:0 2px 8px rgba(20,45,75,.06); }
.hb-mainbar { min-height:86px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.hb-brand { display:flex; align-items:center; flex:0 0 auto; text-decoration:none; }
.hb-brand img { display:block; width:106px; height:60px; object-fit:contain; }
.hb-desktop-nav { display:flex; align-items:center; justify-content:flex-end; gap:4px; margin-left:auto; }
.hb-desktop-nav a, .hb-mobile-nav a { display:block; padding:13px 15px; border-radius:4px; color:#26384b; text-decoration:none; font-size:15px; line-height:1.25; font-weight:600; transition:background-color .15s ease,color .15s ease; }
.hb-desktop-nav a:hover, .hb-desktop-nav a:focus-visible, .hb-mobile-nav a:hover, .hb-mobile-nav a:focus-visible { background:#eaf1f9; color:var(--hb-header-blue-dark); }
.hb-desktop-nav a[aria-current="page"], .hb-mobile-nav a[aria-current="page"] { background:var(--hb-header-blue); color:#fff !important; }
.hb-mobile-menu { display:none; position:relative; margin-left:auto; }
.hb-mobile-menu summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:8px; color:var(--hb-header-blue); font-weight:700; padding:10px; border-radius:5px; }
.hb-mobile-menu summary::-webkit-details-marker { display:none; }
.hb-menu-icon { width:22px; display:flex; flex-direction:column; gap:4px; }
.hb-menu-icon i { display:block; height:2px; width:100%; border-radius:2px; background:currentColor; }
.hb-mobile-menu[open] summary { background:#eaf1f9; }
.hb-mobile-nav { position:absolute; top:calc(100% + 8px); right:0; width:min(280px, calc(100vw - 28px)); padding:8px; background:#fff; border:1px solid #e0e7ef; border-radius:8px; box-shadow:0 12px 30px rgba(15,40,70,.18); }
.hb-mobile-nav a { padding:12px 14px; }
@media (max-width: 767px) {
  .hb-header-inner { width:calc(100% - 28px); }
  .hb-contactbar-inner { min-height:36px; gap:8px; }
  .hb-contactbar a { font-size:clamp(9px, 2.8vw, 12px); }
  .hb-phone { flex:0 0 auto; }
  .hb-email { max-width:54%; }
  .hb-mainbar { min-height:72px; gap:12px; }
  .hb-brand img { width:94px; height:auto; max-height:56px; }
  .hb-desktop-nav { display:none; }
  .hb-mobile-menu { display:block; }
}
@media (max-width:350px) { .hb-contactbar-inner { gap:5px; } .hb-contactbar a { font-size:9px; } .hb-email { max-width:51%; } }
@media (prefers-reduced-motion:reduce) { .hb-desktop-nav a,.hb-mobile-nav a { transition:none; } }

/* Ajuste tipográfico: contacto superior y pie de página más legibles. */
.hb-contactbar a {
  font-size: 14px;
}
#footer .footer-contact,
#footer .footer-legal {
  font-size: 15px;
  line-height: 1.75;
}
#footer .footer-contact strong {
  font-size: 16px;
}
#footer .footer-legal a {
  font-size: 14px;
}
#footer .footer-copyright {
  font-size: 13px;
}
@media (max-width: 767px) {
  .hb-contactbar a {
    font-size: clamp(10px, 3vw, 13px);
  }
  #footer .footer-contact,
  #footer .footer-legal {
    font-size: 15px;
  }
}
@media (max-width: 350px) {
  .hb-contactbar a { font-size: 9px; }
}
