/* Cabecera de mauroaguirre.com dentro de páginas con estilos propios (p. ej. /MetodoIA/). */
@font-face { font-family: "Lexend"; src: url(fonts/lexend.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
.site-head { --c-ink: #0f1b33; --c-ink-2: #3d4a63; --c-muted: #6b7489; --c-line: #e4e8ef; --c-soft: #f6f8fb; --c-accent: #0f9d8a; --c-accent-2: #0b7d6e; --head: 72px;
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--c-line); font: 400 16px/1.5 "Lexend", system-ui, sans-serif; color: var(--c-ink); transition: transform .38s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.site-head * { box-sizing: border-box; }
.site-head a { color: inherit; text-decoration: none; }
.site-head.oculto { transform: translateY(-100%); }
.site-head.sombra { box-shadow: 0 8px 28px rgba(15,27,51,.08); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; width: min(1200px, 100% - 64px); height: var(--head); margin-inline: auto; padding: 0; }
.site-head .brand { display: flex; align-items: center; gap: 11px; }
.site-head .brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c-accent); }
.site-head .brand span { display: flex; flex-direction: column; }
.site-head .brand b { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.site-head .brand small { font-size: 12px; color: var(--c-muted); line-height: 1.3; }
.site-head .nav { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--c-ink-2); }
.site-head .nav a { position: relative; padding: 8px 12px; border-radius: 9px; transition: color .2s, background .2s; }
.site-head .nav a:hover { color: var(--c-ink); background: var(--c-soft); }
.site-head .nav a.nav-curso { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--c-ink); color: #fff; font-weight: 600; }
.site-head .nav a.nav-curso:hover { background: var(--c-accent-2); }
.site-head .nav a.nav-curso i { padding: 2px 7px; border-radius: 99px; background: var(--c-accent); font: 600 10.5px/1.4 "Plex Mono", monospace; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.site-head .menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 11px; background: #fff; cursor: pointer; place-items: center; padding: 0; }
.site-head .menu-btn span { position: relative; display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--c-ink); }
.site-head .menu-btn span::before, .site-head .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--c-ink); transition: transform .25s; }
.site-head .menu-btn span::before { top: -6px; } .site-head .menu-btn span::after { top: 6px; }
.site-head.abierto .menu-btn span { background: transparent; }
.site-head.abierto .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.site-head.abierto .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
/* la barra propia del curso queda debajo, como submenú */
.site-header { top: 72px !important; transition: top .38s cubic-bezier(.2,.7,.2,1), background-color .3s, border-color .3s !important; }
html.cab-oculta .site-header { top: 0 !important; }
@media (max-width: 900px) {
  .site-head { --head: 64px; }
  .site-header { top: 64px !important; }
  .site-head .menu-btn { display: grid; }
  .site-head .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: 0 18px 30px rgba(15,27,51,.08); font-size: 17px; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .site-head.abierto .nav { opacity: 1; transform: none; visibility: visible; }
  .site-head .nav a { padding: 14px 6px; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .site-head .nav a.nav-curso { margin: 10px 0 0; justify-content: center; padding: 12px; border-radius: 12px; border-bottom: 0; }
}
@media (max-width: 760px) { .site-header .header-inner { justify-content: flex-end; } .site-head .wrap { width: calc(100% - 32px); } .site-head .brand img { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .site-head, .site-header { transition: none !important; } }
