:root{
  /* Header/Footer tokens (namespaced) */
  --hf-brand:#32afb4;
  --hf-brand-2:#1e696c;
  --hf-brand-strong:#237a7e;
  --hf-ring:#94e2e5;
  --hf-shadow:0 10px 30px rgba(2,6,23,.08);
  --hf-grad: linear-gradient(90deg, var(--hf-brand), var(--hf-brand-2));
  --hf-logo-url: url('/logo.png');
  --hf-dock-gap: 0px;
}

/* Barra de progreso superior */
.hf-scroll-progress{
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--hf-brand), var(--hf-brand-2));
  z-index: 1600;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* Skip link */
.hf-skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.hf-skip-link:focus{
  position: fixed;
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  z-index: 2000;
  border-radius: 8px;
}

/* Header */
.hf-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.hf-container{
  width: min(var(--page-max, 1280px), 92%);
  margin-inline: auto;
}
.hf-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 0;
}
.hf-grad-text{
  background: var(--hf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hf-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  color: var(--ink, #0f172a);
  text-decoration: none;
  font-size: 18px;
  letter-spacing:.2px;
}
.hf-brand-logo{
  width: 28px;
  height: 28px;
  background-image: var(--hf-logo-url, none);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex: 0 0 28px;
}

/* Nav */
.hf-nav ul{
  list-style:none;
  display:flex;
  gap: 12px;
  padding:0;
  margin:0;
}
.hf-nav a{
  color: var(--ink, #0f172a);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  gap:8px;
}
.hf-nav a:hover{ background: rgba(2,6,23,.06); }
.hf-nav a[aria-current="page"]{
  background: rgba(50,175,180,.14);
  color: #0a3f41;
}
.hf-nav-ic{
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Botón hamburguesa */
.hf-nav-toggle{
  display:none;
  background:none;
  border:0;
  padding:6px;
  margin:0 0 0 auto;
  cursor:pointer;
}
.hf-nav-toggle:focus{ outline: 3px solid var(--hf-ring); border-radius: 10px; }
.hf-nav-toggle-bar{
  display:block;
  width: 26px;
  height: 2px;
  background: var(--ink, #0f172a);
  margin: 6px 0;
  border-radius: 2px;
}

/* Menú móvil */
@media (max-width: 900px){
  .hf-nav{
    display:none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
    transform: translateY(-10px);
    transition: transform .35s ease, opacity .35s ease, visibility .35s ease;
  }
  .hf-nav.hf-open{
    display:block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .hf-nav ul{ flex-direction: column; gap: 0; }
  .hf-nav a{ display:flex; padding: 12px 20px; }
  .hf-nav-toggle{ display:block; }
}

/* Header shrink */
.hf-header.hf-shrink .hf-header-inner{ padding: 6px 0; }
.hf-header.hf-shrink{
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px) saturate(120%);
  border-bottom-color: rgba(30,105,108,.25);
}
.hf-header.hf-shrink .hf-brand{ color: var(--hf-brand-strong); }
.hf-header.hf-shrink .hf-nav a{ color: var(--hf-brand-strong); }
.hf-header.hf-shrink .hf-nav a[aria-current="page"]{ background: rgba(50,175,180,.18); color:#0a3f41; }
.hf-header.hf-shrink .hf-nav-toggle-bar{ background: var(--hf-brand-strong); }

/* Footer */
.hf-footer{
  border-top: 1px solid var(--border, #e5e7eb);
  margin-top: 26px;
  background: var(--bg, #f9fafb);
  margin-bottom: var(--hf-dock-gap, 0px);
}
.hf-footer-inner{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  padding: 14px 0 22px;
}
.hf-footer-inner .hf-social,
.hf-footer-inner .hf-footer-copy{ flex: 1 1 100%; }
.hf-footer-copy{ font-size: .9rem; color: var(--muted, #6b7280); margin: 0; }

/* Redes sociales */
.hf-social{ display:flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hf-social-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #0f172a);
  border: 1px solid var(--border, #e5e7eb);
  text-decoration:none;
  font-size: 13px;
  box-shadow: var(--hf-shadow);
  transition: transform .1s ease, filter .15s ease;
}
.hf-social-pill:hover,
.hf-social-pill:focus-visible{
  filter: brightness(1.05);
  transform: translateY(-1px);
  outline: 0;
}


/* Colores de marca (solo en hover/focus para mantener look profesional) */
.hf-soc-facebook:where(:hover,:focus-visible){ color: #1877F2; }
.hf-soc-instagram:where(:hover,:focus-visible){ color: #E4405F; }
.hf-soc-x:where(:hover,:focus-visible){ color: #111; }
.hf-soc-youtube:where(:hover,:focus-visible){ color: #FF0000; }
.hf-soc-tiktok:where(:hover,:focus-visible){ color: #111; }
.hf-soc-linkedin:where(:hover,:focus-visible){ color: #0A66C2; }
.hf-pill-ic{
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  flex: 0 0 18px;
}
.hf-social-svg{
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

/* Iconos de redes (reemplazo de emojis por monogramas minimalistas) */
.hf-pill-monogram{
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.2px;
  border: 1px solid var(--border, #e5e7eb);
  background: rgba(2,6,23,.04);
  color: currentColor;
  text-transform: lowercase;
}
.hf-pill-monogram.hf-mono-upper{ text-transform: uppercase; letter-spacing: 0; }
@media (max-width: 420px){
  .hf-social-pill{ height: 32px; padding: 0 10px; font-size: 12px; }
  .hf-pill-txt{ display:none; }
}

/* WhatsApp FAB */
.hf-wa-fab{
  position: fixed;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(30px + env(safe-area-inset-bottom));
  width: clamp(44px, 12vw, 56px);
  height: clamp(44px, 12vw, 56px);
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25D366;
  box-shadow: 0 12px 30px rgba(2,6,23,.18);
  transition: box-shadow .2s ease, filter .2s ease;
  z-index: 1300;
}
.hf-wa-fab:where(:hover,:focus-visible){
  filter: brightness(1.04);
  box-shadow: 0 14px 34px rgba(2,6,23,.22);
}
.hf-wa-ic{ width: 24px; height: 24px; fill: currentColor; }

/* Evita scroll de fondo cuando el menú está abierto */
body.hf-menu-open{ overflow: hidden; }
