/* Cabecera compartida — misma que la del inicio.
   Autocontenida: no depende de las variables :root de cada página. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

.sh-scope{
  --sh-ink:#16204a;
  --sh-ink-soft:#4a5480;
  --sh-photon:#2e8fff;
  --sh-fiber:#22e4c8;
  --sh-solar:#ffb238;
  --sh-nebula:#0b1442;
  --sh-mist:#f5f7ff;
  --sh-white:#ffffff;
  --sh-border:rgba(22,32,74,0.12);
  --sh-mono:'JetBrains Mono', ui-monospace, monospace;
  --sh-body:'Manrope', ui-sans-serif, system-ui, sans-serif;
  --sh-container:1180px;

  position:sticky; top:0; z-index:2000;
  background:rgba(255,255,255,0.85); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--sh-border);
  font-family:var(--sh-body);
}
.sh-scope a{ color:inherit; text-decoration:none; }
.sh-scope *,.sh-scope *::before,.sh-scope *::after{ box-sizing:border-box; }

/* la cabecera usa más ancho que el contenido: si no, queda pegada a los bordes */
.sh-wrap{ max-width:1320px; margin:0 auto; padding:0 2rem; }
.sh-row{ display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; padding:1.2rem 0; gap:1.5rem; }

.sh-logo{ display:flex; align-items:center; gap:.7rem; flex:none; font-family:var(--sh-mono); white-space:nowrap; }
.sh-logo img{ height:3.2rem; width:3.2rem; border-radius:50%; display:block; }
.sh-logo strong{ font-size:1.2rem; font-weight:700; color:var(--sh-ink); letter-spacing:.02em; }
.sh-logo span{ font-size:1.2rem; font-weight:700; color:var(--sh-photon); }

.sh-nav{ display:none; align-items:center; gap:1.75rem; flex:0 1 auto; min-width:0; }
.sh-nav a, .sh-dropdown > button{
  position:relative; font-size:.92rem; font-weight:600; color:var(--sh-ink-soft);
  background:none; border:none; display:flex; align-items:center; gap:.3rem; padding:0;
  font-family:inherit; cursor:pointer; white-space:nowrap;
}
.sh-nav > a::after{
  content:''; position:absolute; left:0; bottom:-6px; height:2px; width:0;
  background:linear-gradient(90deg,var(--sh-photon),var(--sh-fiber)); transition:width .25s ease;
}
.sh-nav a:hover{ color:var(--sh-ink); }
.sh-nav > a:hover::after{ width:100%; }
/* página actual */
.sh-nav > a[aria-current="page"]{ color:var(--sh-ink); }
.sh-nav > a[aria-current="page"]::after{ width:100%; }

.sh-dropdown{ position:relative; }
.sh-dropdown > button svg{ width:.85rem; height:.85rem; transition:transform .2s ease; }
.sh-dropdown.open > button svg{ transform:rotate(180deg); }
.sh-dropdown > button:hover{ color:var(--sh-ink); }
.sh-panel{
  position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%);
  min-width:230px; background:var(--sh-white); border:1px solid var(--sh-border);
  border-radius:14px; padding:.6rem; box-shadow:0 20px 45px -20px rgba(22,32,74,0.35);
  display:none; z-index:60;
}
.sh-dropdown.open .sh-panel{ display:block; }
.sh-panel a{
  display:flex; align-items:center; gap:.5rem; padding:.55rem .7rem; border-radius:8px;
  font-size:.86rem; color:var(--sh-ink-soft); font-weight:500;
}
.sh-panel a:hover{ background:var(--sh-mist); color:var(--sh-photon); }

.sh-actions{ display:flex; align-items:center; gap:1rem; flex:none; }
.sh-portal{ display:none; font-size:.88rem; font-weight:700; color:var(--sh-ink-soft); white-space:nowrap; }
.sh-portal:hover{ color:var(--sh-ink); }
.sh-social{ display:none; align-items:center; gap:.4rem; }
.sh-social a{
  width:2rem; height:2rem; border-radius:999px; border:1px solid var(--sh-border);
  display:flex; align-items:center; justify-content:center; color:var(--sh-ink-soft);
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.sh-social a:hover{ background:var(--sh-photon); border-color:var(--sh-photon); color:var(--sh-white); }

.sh-btn{
  display:inline-flex; align-items:center; gap:.55rem; padding:.9rem 1.7rem;
  font-family:var(--sh-mono); font-weight:700; font-size:.85rem;
  text-transform:uppercase; letter-spacing:.08em; border-radius:999px; white-space:nowrap;
  border:1px solid transparent;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.sh-btn:hover{ transform:translateY(-2px); }
.sh-btn-outline{ background:transparent; color:var(--sh-ink); border-color:var(--sh-border); }
.sh-btn-outline:hover{ border-color:var(--sh-photon); color:var(--sh-photon); }
.sh-btn-solar{ background:linear-gradient(135deg,var(--sh-solar),#ff9a3d); color:var(--sh-nebula); box-shadow:0 10px 30px -10px rgba(255,178,56,0.6); }
.sh-btn-solar:hover{ box-shadow:0 14px 34px -8px rgba(255,178,56,0.75); }

.sh-toggle{
  display:flex; width:2.5rem; height:2.5rem; align-items:center; justify-content:center;
  background:none; border:1px solid var(--sh-border); border-radius:8px; color:var(--sh-ink); cursor:pointer;
}
.sh-toggle span{ display:block; width:1.1rem; height:2px; background:currentColor; position:relative; }
.sh-toggle span::before,.sh-toggle span::after{ content:''; position:absolute; left:0; width:100%; height:2px; background:currentColor; }
.sh-toggle span::before{ top:-6px; }
.sh-toggle span::after{ top:6px; }

#sh-mobile{ display:none; border-top:1px solid var(--sh-border); background:var(--sh-white); }
#sh-mobile.open{ display:block; }
#sh-mobile .sh-wrap{ padding:1.2rem 1.25rem 1.6rem; display:flex; flex-direction:column; gap:.3rem; }
#sh-mobile a{ padding:.65rem 0; font-weight:600; color:var(--sh-ink); font-size:.98rem; border-bottom:1px solid var(--sh-border); }
#sh-mobile .sh-acc summary{ padding:.65rem 0; font-weight:600; color:var(--sh-ink); border-bottom:1px solid var(--sh-border); list-style:none; display:flex; justify-content:space-between; cursor:pointer; }
#sh-mobile .sh-acc summary::-webkit-details-marker{ display:none; }
#sh-mobile .sh-acc[open] summary{ color:var(--sh-photon); }
#sh-mobile .sh-acc .sub{ padding-left:1rem; display:flex; flex-direction:column; }
#sh-mobile .sh-acc .sub a{ display:block; border-bottom:none; font-weight:500; color:var(--sh-ink-soft); padding:.4rem 0; }
#sh-mobile .sh-btn{ margin-top:1rem; justify-content:center; }
#sh-mobile .sh-social{ display:flex; margin-top:1.1rem; }

/* Debajo de 1180px el menú completo no cabe sin apretarse: va el hamburguesa */
@media (min-width:1180px){
  .sh-nav{ display:flex; }
  .sh-portal{ display:block; }
  .sh-social{ display:flex; }
  .sh-toggle{ display:none; }
  #sh-mobile{ display:none !important; }
}
/* modo compacto: las redes siguen en el menú móvil y en el pie */
@media (min-width:1180px) and (max-width:1420px){
  .sh-social{ display:none; }
  .sh-wrap{ padding:0 1.5rem; }
  .sh-nav{ gap:1.6rem; }
  .sh-actions{ gap:.9rem; }
  .sh-btn{ padding:.8rem 1.3rem; }
}
@media (min-width:1180px) and (max-width:1300px){
  .sh-portal{ display:none; }
}
@media (max-width:1179px){
  .sh-wrap{ padding:0 1.25rem; }
}
