/* ============================================================
   macario.cc — home.css  (rediseño fiel a dillionverma/Magic UI
   portfolio, el que usa aryankarma.com)
   • Columna angosta alineada a la izquierda
   • Hero con avatar + blur-fade carácter por carácter
   • Dock flotante abajo (estilo macOS) como navegación
   Scopeado bajo .hx. Respeta las CSS vars del tema.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

/* En la home, la barra superior global se oculta: el dock es la nav */
.nav { display: none !important; }

.hx {
  --hx-ui:     'Inter', system-ui, -apple-system, sans-serif;
  --hx-maxw:   680px;
  --hx-card:   color-mix(in srgb, var(--surface) 55%, var(--bg));
  --hx-card-hi:color-mix(in srgb, var(--surface) 100%, var(--bg));
  font-family: var(--hx-ui);
  letter-spacing: -0.011em;
  padding-bottom: 8rem; /* espacio para el dock */
  position: relative;
}

/* En modo Matrix: fuente hacker tipo terminal en toda la home */
html.hx-matrix .hx {
  --hx-ui: 'Space Mono', ui-monospace, monospace;
  letter-spacing: -0.01em;
  font-size: 0.94em; /* Space Mono es ancha: bajamos un poco la escala */
}
html.hx-matrix .hx .hx-greet,
html.hx-matrix .hx .hx-ptitle {
  letter-spacing: 0;
}

/* ── Banda animada superior: FlickeringGrid + logo ─────────── */
.hx-top {
  position: relative; height: 150px; overflow: hidden;
  display: flex; align-items: flex-end;
  /* full-bleed: rompe el ancho del site-wrap (1400px) y ocupa todo el viewport */
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.hx-top canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* Mask radial (elipse) que concentra la cuadrícula en un blob central e
     INTERSECTADA con un degradado lineal que la desvanece hacia abajo, para
     que el borde inferior se funda con el fondo (negro en Noir). */
  -webkit-mask-image: radial-gradient(ellipse 58% 125% at 50% 30%, #000 6%, transparent 76%),
                      linear-gradient(to bottom, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 125% at 50% 30%, #000 6%, transparent 76%),
                      linear-gradient(to bottom, #000 58%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.hx-top-inner {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--hx-maxw); margin: 0 auto; padding: 0 1.5rem 1.1rem;
}
.hx-logo {
  max-height: 38px; width: auto; display: block;
  opacity: 0; transform: scale(.92); filter: blur(6px);
  animation: hx-pop .55s ease .15s forwards;
}

.hx-wrap {
  position: relative; z-index: 1;
  max-width: var(--hx-maxw);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0;
}

/* ── "Aquí desde hace N años" (NumberTicker) ───────────────── */
/* Línea de estado del hero (sin pill, inline): uptime + ubicación */
.hx-status {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem .9rem;
  margin-top: 1.15rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--text-muted);
}
.hx-status-seg { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.hx-status-k   { color: var(--text-muted); }
.hx-status-sep { color: var(--border); }
.hx-status-loc { color: var(--text); }
.hx-status-pin { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), .55)); }
.hx-since-num { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(var(--accent-rgb), .45); }
.hx-since-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0; box-shadow: 0 0 8px rgba(var(--accent-rgb), .75); animation: hx-pulse 1.8s ease-in-out infinite; }
@keyframes hx-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ── Reveal (blur-fade tipo Magic UI) ─────────────────────── */
.hx [data-reveal] {
  opacity: 0; transform: translateY(8px); filter: blur(6px);
  transition: opacity .5s ease, transform .5s ease, filter .5s ease;
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}
.hx [data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .hx [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ============================================================
   HERO  — texto a la izquierda, avatar a la derecha
   ============================================================ */
.hx-hero {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.5rem; margin-bottom: 3.5rem;
}
.hx-hero-text { flex: 1 1 auto; min-width: 0; }

/* Título hero del home (.hx-greet) y de páginas interiores (.hx-ptitle):
   mismo tratamiento — DotGothic16, color acento, mismo tamaño, cursor "_". */
.hx-greet, .hx-ptitle {
  font-family: 'DotGothic16', monospace; font-weight: 400;
  font-size: clamp(1.3rem, 5vw, 2.6rem);
  line-height: 1.1; letter-spacing: 0; color: var(--accent);
  hyphens: none; text-shadow: 0 0 12px rgba(var(--accent-rgb), .4);
}
.hx-greet  { margin-bottom: .75rem; white-space: nowrap; }
.hx-ptitle { margin: 0 0 1.15rem; }   /* título único de página interior (sin breadcrumb ni segundo título) */
/* cursor terminal parpadeante (reemplaza el 👋, mismo color que el título) */
.hx-cur {
  display: inline-block; color: var(--accent); font-weight: 400;
  animation: hx-tblink 1.1s step-start infinite;
}
/* cada palabra es atómica: no se parte a mitad en pantallas angostas */
.hx-greet .word { display: inline-block; white-space: nowrap; }
.hx-greet .wave { display: inline-block; transform-origin: 70% 70%; animation: hx-wave 2.4s ease-in-out infinite; }
@keyframes hx-wave {
  0%,60%,100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); }
}
/* blur-fade carácter por carácter en el saludo */
.hx-greet .ch {
  display: inline-block; white-space: pre;
  opacity: 0; filter: blur(8px); transform: translateY(8px);
  animation: hx-char .45s ease forwards; animation-delay: var(--d, 0ms);
}
@keyframes hx-char { to { opacity: 1; filter: blur(0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .hx-greet .ch { opacity:1; filter:none; transform:none; animation:none; } .hx-cur { animation: none; } }

.hx-sub {
  font-size: clamp(.95rem, 2vw, 1.05rem);
  line-height: 1.6; color: var(--text-muted); font-weight: 400;
  max-width: 36ch;
}
/* En Matrix la fuente (Space Mono) es más ancha: damos más medida para que
   el subtítulo no se parta en dos líneas como en Inter (Noir). */
html.hx-matrix .hx .hx-sub { max-width: 46ch; }

.hx-avatar {
  flex-shrink: 0;
  width: clamp(80px, 22vw, 112px); aspect-ratio: 1/1;
  border-radius: 50%; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 0; transform: scale(.85); filter: blur(8px);
  animation: hx-pop .5s ease .1s forwards;
}
@keyframes hx-pop { to { opacity: 1; transform: none; filter: blur(0); } }
.hx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hx-avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.6rem; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

/* ============================================================
   SECCIONES (apiladas, columna angosta)
   ============================================================ */
.hx-section { margin-bottom: 3rem; }
.hx-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.hx-sec-title {
  font-family: var(--hx-ui); font-weight: 700;
  font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text);
}
.hx-more {
  font-family: var(--font-mono);
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); transition: opacity .2s;
}
.hx-more:hover { opacity: .65; }

/* ── About (prosa) ─────────────────────────────────────────── */
.hx-prose { font-size: .92rem; line-height: 1.75; color: var(--text-muted); font-weight: 400; }
.hx-prose a { color: var(--accent); text-decoration: none; }
.hx-prose a:hover { text-decoration: underline; }

/* ── Now playing (banda) ───────────────────────────────────── */
.hx-now {
  display: flex; align-items: center; gap: .9rem;
  background: var(--hx-card); border: 1px solid var(--border);
  border-radius: 12px; padding: .8rem 1rem;
  transition: border-color .3s var(--ease);
}
.hx-now:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.hx-now img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.hx-now-label {
  font-family: var(--font-mono); font-size: .54rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: .4rem; margin-bottom: .2rem;
}
.hx-now-title { font-size: .9rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-now-sub { font-family: var(--font-mono); font-size: .56rem; color: var(--text-muted); }

/* ── Posts (filas estilo ResumeCard) ───────────────────────── */
.hx-rows { display: flex; flex-direction: column; gap: .5rem; }
.hx-row {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .85rem; border-radius: 12px;
  margin-inline: -.85rem; /* el contenido alinea con el borde de la columna; el hover respira en el canalón */
  border: 1px solid transparent;
  transition: border-color .25s, background .25s, transform .25s;
}
.hx-row:hover {
  background: var(--hx-card);
  border-color: var(--border);
  transform: translateX(3px);
}
/* filas dentro de un panel frosted (p.ej. /blog): flush y sin desplazamiento */
.hx-panel .hx-row { margin-inline: 0; }
.hx-panel .hx-row:hover { transform: none; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.hx-row-thumb {
  width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0;
  overflow: hidden; background: var(--surface); border: 1px solid var(--border);
}
.hx-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hx-row-thumb.feat { width: 64px; height: 64px; }
.hx-row-body { min-width: 0; flex: 1; }
.hx-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.hx-row-title {
  font-weight: 600; font-size: .95rem; color: var(--text); line-height: 1.3;
  letter-spacing: -.01em;
}
.hx-row-title .star { color: var(--accent); font-size: .8em; margin-right: .25rem; }
.hx-row-date {
  font-family: var(--font-mono); font-size: .58rem; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0;
}
.hx-row-excerpt {
  font-size: .82rem; line-height: 1.55; color: var(--text-muted); margin-top: .2rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Cabecera de página (listas internas) ──────────────────── */
.hx-page-head { margin-bottom: 2rem; }
.hx-page-title {
  font-family: var(--hx-ui); font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 2.7rem); letter-spacing: -.035em;
  color: var(--text); line-height: 1.04;
}
.hx-page-sub { margin-top: .55rem; color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.hx-author-bio { line-height: 1.75; }
.hx-author-bio p, .hx-author-bio div { margin: 0 0 .9rem; }
.hx-author-bio p:last-child, .hx-author-bio div:last-child { margin-bottom: 0; }
.hx-author-bio a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); text-decoration: none; }
.hx-author-bio a:hover { border-bottom-color: var(--accent); }

/* ── Chips de categoría / etiqueta ─────────────────────────── */
.hx-cats { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .45rem; }
.hx-cat {
  font-family: var(--font-mono); font-size: .52rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  padding: .18em .55em; border-radius: 999px; transition: background .2s, border-color .2s;
}
.hx-cat:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ── Paginación ────────────────────────────────────────────── */
.hx-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.hx-pager-btn {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--border); padding: .55em 1.1em; border-radius: 999px;
  transition: border-color .2s, color .2s, background .2s;
}
.hx-pager-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--hx-card); }
.hx-pager-info { font-family: var(--font-mono); font-size: .58rem; color: var(--text-muted); }

/* ── Post individual ───────────────────────────────────────── */
.hx-post-meta {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: .9rem;
}
.hx-post-meta a { color: var(--text-muted); transition: color .2s; }
.hx-post-meta a:hover { color: var(--accent); }
.hx-post-cover { margin: 1.75rem 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.hx-post-cover img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.hx-post-lead { font-size: 1.06rem; line-height: 1.8; color: var(--text-muted); margin: 0 0 1.5rem; }
.hx-post-author {
  display: flex; gap: 1rem; align-items: flex-start;
  border-top: 1px solid var(--border); padding: 1.5rem 0; margin-top: 1rem;
}
.hx-post-author img, .hx-post-author .av {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border);
}
.hx-post-author .av {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--accent); font-family: var(--font-mono); font-size: 1.1rem;
}
.hx-post-author .name { font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.hx-post-author .bio { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
/* El cuerpo del post y secciones alinean con la columna en todos los anchos
   (vence el `padding ... !important` que theme.css aplica a ≤1100px) */
.hx .post-content { max-width: none !important; margin: 0 !important; padding: .25rem 0 1.5rem !important; }
.hx .post-nav { padding: 1.25rem 0 !important; }
.hx .comments-section { padding-left: 0 !important; padding-right: 0 !important; }

/* ── Extracto destacado (claramente distinto del cuerpo) ──── */
.hx-excerpt {
  position: relative; margin: 1.75rem 0;
  padding: 1.05rem 1.3rem 1.1rem 1.4rem;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 0 12px 12px 0;
}
.hx-excerpt-label {
  display: block; margin-bottom: .5rem;
  font-family: var(--font-mono); font-size: .54rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
}
.hx-excerpt-label::before { content: '// '; opacity: .6; }
.hx-excerpt-text {
  font-size: .98rem; line-height: 1.6; color: var(--text-muted); font-style: italic;
}

/* ── Autor compacto (foto + nombre + mini bio en una línea) ── */
.hx-author-min {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 0; margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-decoration: none; transition: opacity .2s;
}
.hx-author-min:hover { opacity: .85; }
.hx-author-min img, .hx-author-min .av {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
}
.hx-author-min .av {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--accent); font-family: var(--font-mono); font-size: 1rem;
}
.hx-author-min .meta { min-width: 0; display: flex; align-items: baseline; gap: .5rem; }
.hx-author-min .name { font-weight: 600; color: var(--text); font-size: .9rem; white-space: nowrap; flex-shrink: 0; }
.hx-author-min .bio {
  font-size: .8rem; color: var(--text-muted); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
@media (max-width: 560px) {
  .hx-author-min .meta { flex-direction: column; gap: .1rem; align-items: flex-start; }
  .hx-author-min .bio { white-space: normal; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; }
}

/* ── Nube de etiquetas ─────────────────────────────────────── */
.hx-tagcloud { display: flex; flex-wrap: wrap; gap: .45rem .5rem; align-items: baseline; }
.hx-tagcloud a {
  font-family: var(--font-mono); letter-spacing: .03em; line-height: 1.2;
  color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px;
  padding: .22em .75em; transition: color .2s, border-color .2s, background .2s;
}
.hx-tagcloud a:hover {
  color: var(--accent); border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.hx-tagcloud a.on {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

/* ============================================================
   FEED estilo Tumblr (/blog): cada entrada completa por formato
   ============================================================ */
.hx-feed { margin-bottom: 2.75rem; }
.hx-feed + .hx-feed { border-top: 1px solid var(--border); padding-top: 2.75rem; }

.hx-feed-head { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .7rem; margin-bottom: 1rem; }
.hx-feed-label {
  font-family: var(--font-mono); font-size: .54rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); text-shadow: 0 0 8px rgba(var(--accent-rgb), .3);
}
.hx-feed-label::before { content: '// '; opacity: .6; }
.hx-feed-date {
  margin-left: auto; font-family: var(--font-mono); font-size: .58rem;
  color: var(--text-muted); white-space: nowrap; transition: color .2s;
}
.hx-feed-date:hover { color: var(--accent); }

.hx-feed-title {
  display: block; font-family: var(--hx-ui); font-weight: 700;
  font-size: clamp(1.2rem, 3.4vw, 1.6rem); letter-spacing: -.02em; line-height: 1.2;
  color: var(--text); margin-bottom: .7rem; transition: color .2s;
}
a.hx-feed-title:hover { color: var(--accent); }

.hx-feed-body { font-size: .95rem; line-height: 1.7; }
.hx-feed-lede { font-size: 1rem; line-height: 1.65; color: var(--text-muted); margin: 0; }
.hx-feed-body.is-fold {
  max-height: 19em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent 99%);
          mask-image: linear-gradient(#000 60%, transparent 99%);
}
.hx-feed-more {
  display: inline-block; margin-top: .55rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); transition: opacity .2s;
}
.hx-feed-more:hover { opacity: .7; }

/* Pie de cada entrada: etiquetas + barra de acciones */
.hx-feed-foot { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.35rem; }
.hx-feed-tags { display: flex; flex-wrap: wrap; gap: .4rem .7rem; }
.hx-feed-tag { font-family: var(--font-mono); font-size: .56rem; color: var(--text-muted); transition: color .2s; }
.hx-feed-tag:hover { color: var(--accent); }
.hx-feed-actions {
  display: flex; align-items: center; gap: 1.1rem;
  padding-top: .75rem; border-top: 1px solid var(--border);
}
.hx-feed-act {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); background: none; border: none; cursor: pointer; padding: 0;
  transition: color .2s;
}
.hx-feed-act svg { width: 14px; height: 14px; }
.hx-feed-act:hover { color: var(--accent); }
.hx-feed-act--perma { margin-left: auto; }

/* ── Photoset (grids inteligentes por conteo) ── */
.hx-photoset { display: grid; gap: 4px; border-radius: 14px; overflow: hidden; }
.hx-photoset[data-count="1"] { grid-template-columns: 1fr; }
.hx-photoset[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.hx-photoset[data-count="3"],
.hx-photoset[data-count="5"],
.hx-photoset[data-count="6"] { grid-template-columns: repeat(3, 1fr); }
.hx-photoset[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
.hx-pset-item {
  display: block; overflow: hidden; aspect-ratio: 1/1;
  background: var(--surface); cursor: zoom-in;
}
.hx-pset-item img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease), filter .3s; }
.hx-pset-item:hover img { transform: scale(1.04); filter: brightness(.85); }
/* foto única: respeta la altura natural (no recorta a cuadrado) */
.hx-photoset[data-count="1"] .hx-pset-item { aspect-ratio: auto; cursor: zoom-in; }
.hx-photoset[data-count="1"] .hx-pset-item img { height: auto; }
.hx-feed-cap { font-family: var(--font-mono); font-size: .6rem; color: var(--text-muted); margin-top: .6rem; }

/* ── Masthead del blog ── */
.hx-bloghead { margin-bottom: 2.5rem; }
.hx-bloghead-id { display: flex; align-items: center; gap: 1rem; }
.hx-bloghead-av {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
              0 0 18px rgba(var(--accent-rgb), .18);
}
.hx-bloghead-text { min-width: 0; }
.hx-bloghead-desc { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; color: var(--text-muted); }
.hx-bloghead-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1.15rem; }
.hx-bloghead-tags-lbl {
  font-family: var(--font-mono); font-size: .5rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); margin-right: .2rem;
}
.hx-bloghead-tags-lbl::before { content: '// '; opacity: .55; }

/* ── Toast (compartir) ── */
.hx-toast {
  position: fixed; left: 50%; bottom: 5.5rem; z-index: 300;
  transform: translateX(-50%) translateY(12px);
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--hx-card-hi); border: 1px solid var(--accent); color: var(--accent);
  padding: .5rem 1.1rem; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.hx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive feed ── */
@media (max-width: 560px) {
  .hx-bloghead-av { width: 52px; height: 52px; }
  .hx-photoset[data-count="3"],
  .hx-photoset[data-count="5"],
  .hx-photoset[data-count="6"] { grid-template-columns: repeat(2, 1fr); }
  .hx-feed-actions { gap: .85rem; }
  .hx-feed-act--perma .hx-feed-act-tx { display: inline; }
}

/* ── Formato: FOTO (media a sangre de la columna) ── */
.hx-feed-media { display: block; }
.hx-feed-media.post-content { padding: 0 !important; }
.hx-feed--photo .block-image,
.hx-feed--photo .block-gallery { margin: 0 !important; }
.hx-feed--photo .block-image img { width: 100%; display: block; border-radius: 14px; }
.hx-feed--photo .block-image figcaption {
  font-family: var(--font-mono); font-size: .6rem; color: var(--text-muted); margin-top: .5rem;
}
.hx-feed--photo .block-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.hx-feed--photo .block-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }

/* ── Formato: CITA (sin caja, estilo Tumblr: texto grande + comilla de acento) ── */
.hx-feed--quote .block-quote,
.hx-post--quote .block-quote {
  margin: 0; position: relative; padding: .35rem 0 0 1.7rem;
  background: none; border: 0; border-radius: 0;
}
.hx-feed--quote blockquote,
.hx-post--quote blockquote {
  font-family: var(--hx-ui); font-weight: 500; font-style: normal;
  font-size: clamp(1.45rem, 4vw, 2.1rem); line-height: 1.32; letter-spacing: -.02em;
  color: var(--text); border: 0; padding: 0; margin: 0; background: none;
}
.hx-feed--quote .block-quote::before,
.hx-post--quote .block-quote::before {
  content: '\201C'; position: absolute; left: -.15rem; top: -.3rem;
  font-size: 3rem; line-height: 1; color: var(--accent); opacity: .5;
}
.hx-feed--quote cite,
.hx-post--quote cite {
  display: block; margin-top: .9rem; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .06em; color: var(--text-muted); font-style: normal;
}

/* ── Formato: VIDEO ── */
.hx-feed--video .block-video iframe {
  width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 12px;
}

/* ── Formato: ENLACE (tarjeta) ── */
.hx-linkcard {
  display: flex; align-items: stretch; gap: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  transition: border-color .2s, transform .2s; text-decoration: none;
}
.hx-linkcard:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); transform: translateY(-2px); }
.hx-linkcard-img { flex-shrink: 0; width: 120px; background: var(--surface); overflow: hidden; }
.hx-linkcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-linkcard-body { flex: 1; min-width: 0; padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: center; }
.hx-linkcard-host {
  font-family: var(--font-mono); font-size: .54rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .3rem;
}
.hx-linkcard-title { font-weight: 600; font-size: .95rem; color: var(--text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-linkcard-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.5; margin-top: .3rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-linkcard-arrow { align-self: flex-start; padding: 1rem .9rem 0 0; color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.hx-linkcard:hover .hx-linkcard-arrow { color: var(--accent); }

/* ── Formato: CHAT ── */
.hx-chat { display: flex; flex-direction: column; gap: .5rem; }
.hx-chat-line {
  max-width: 88%; padding: .55rem .85rem; border-radius: 12px; line-height: 1.45; font-size: .92rem;
  border: 1px solid var(--border);
}
.hx-chat-line--a { align-self: flex-start; background: color-mix(in srgb, var(--surface) 70%, transparent); border-bottom-left-radius: 3px; }
.hx-chat-line--b { align-self: flex-end; background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); border-bottom-right-radius: 3px; }
.hx-chat-name { display: block; font-family: var(--font-mono); font-size: .52rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.hx-chat-text { color: var(--text); }

/* ── Formato: PREGUNTA/RESPUESTA (ask) ── */
.hx-ask { }
.hx-ask-q {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.15rem; position: relative; margin-bottom: 1.1rem;
}
.hx-ask-q::after { /* colita del globo */
  content: ''; position: absolute; left: 1.6rem; bottom: -8px; width: 14px; height: 14px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.hx-ask-who { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .4rem; }
.hx-ask-asker { color: var(--accent); }
.hx-ask-text { font-size: 1rem; line-height: 1.5; color: var(--text); }
.hx-ask-a { font-size: .95rem; line-height: 1.7; color: var(--text-muted); padding: 0 .25rem; }

/* ── Audio con carátula ── */
.hx-audio {
  display: flex; gap: 1rem; align-items: center; margin: 0;
  padding: .9rem; border: 1px solid var(--border); border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
}
.hx-audio-art { flex-shrink: 0; width: 76px; height: 76px; border-radius: 8px; overflow: hidden;
  background: var(--surface-2); }
.hx-audio-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-audio-art.is-empty { display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.8rem; }
.hx-audio-body { flex: 1; min-width: 0; }
.hx-audio-meta { margin-bottom: .45rem; }
.hx-audio-title { display: block; font-weight: 600; font-size: .92rem; color: var(--text); }
.hx-audio-artist { display: block; font-family: var(--font-mono); font-size: .58rem; color: var(--text-muted); margin-top: .12rem; }
.hx-audio audio { width: 100%; height: 34px; }
.hx-audio-cap { font-family: var(--font-mono); font-size: .58rem; color: var(--text-muted); margin-top: .4rem; }

@media (max-width: 560px) {
  .hx-linkcard-img { width: 92px; }
  .hx-chat-line { max-width: 94%; }
}

/* ── Galería /fotos ────────────────────────────────────────── */
.hx-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.hx-filters-lbl { font-family: var(--font-mono); font-size: .52rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.hx-filters-sep { width: 1px; height: 1.1rem; background: var(--border); margin: 0 .3rem; }

.hx-albums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.hx-album { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); }
.hx-album img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hx-album:hover img { transform: scale(1.05); }
.hx-album-ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: .7rem .8rem; background: linear-gradient(transparent 35%, rgba(0,0,0,.78)); }
.hx-album-title { font-weight: 600; font-size: .9rem; color: #fff; }
.hx-album-count { font-family: var(--font-mono); font-size: .52rem; color: rgba(255,255,255,.6); margin-top: .1rem; }

.hx-pgrid--masonry { columns: 3; column-gap: 6px; }
.hx-pgrid--masonry .photo-item { break-inside: avoid; margin-bottom: 6px; }
.hx-pgrid--uniform { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hx-pgrid--uniform .photo-item { aspect-ratio: 1/1; }
.hx-pgrid .photo-item { position: relative; overflow: hidden; border-radius: 8px; cursor: zoom-in; background: var(--surface); }
.hx-pgrid .photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease), filter .3s; }
.hx-pgrid .photo-item:hover img { transform: scale(1.05); filter: brightness(.8); }
.hx-pgrid .photo-caption { position: absolute; inset: auto 0 0 0; padding: .45rem .6rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .22s; pointer-events: none; }
.hx-pgrid .photo-item:hover .photo-caption { opacity: 1; }
.pc-title { font-size: .74rem; color: #fff; line-height: 1.25; }
.pc-loc { font-family: var(--font-mono); font-size: .5rem; color: rgba(255,255,255,.65); margin-top: .1rem; }

.hx-empty { text-align: center; padding: 4rem 1rem; }
.hx-empty-ico { font-size: 2.5rem; opacity: .2; margin-bottom: 1rem; }
.hx-empty-txt { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }

/* ============================================================
   LÍNEA "DASHBOARD" (reutilizable): campo de código de fondo +
   paneles frosted translúcidos + acentos terminal. Usado en
   /ignacio y /fotos. En Noir = ámbar, en Matrix = verde fósforo.
   ============================================================ */
.hx-stack { position: relative; z-index: 1; }
.hx-stack > * { position: relative; z-index: 1; }
.hx-codefield { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hx-codefield canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 78% 65% at 50% 35%, #000 25%, transparent 88%);
          mask-image: radial-gradient(ellipse 78% 65% at 50% 35%, #000 25%, transparent 88%);
}
.hx-crumb {
  font-family: 'VT323', monospace; font-size: 1.5rem; line-height: 1;
  color: var(--accent); letter-spacing: .04em; text-transform: lowercase;
  margin-bottom: 1.1rem; text-shadow: 0 0 12px rgba(var(--accent-rgb), .45);
}
.hx-crumb::before { content: '~/ '; opacity: .55; }
.hx-crumb::after { content: '_'; animation: hx-tblink 1.1s step-start infinite; margin-left: .05em; }
@keyframes hx-tblink { 50% { opacity: 0; } }
.hx-panel {
  position: relative;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  border: 1px solid var(--border); border-radius: 14px;
  padding: clamp(1.4rem, 4vw, 2.1rem);
  margin-bottom: 1.1rem;
  box-shadow: 0 14px 40px -22px rgba(0,0,0,.8),
              inset 0 0 0 1px color-mix(in srgb, var(--accent) 5%, transparent),
              0 0 24px rgba(var(--accent-rgb), .04);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hx-tlabel {
  font-family: var(--font-mono); font-size: .56rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(var(--accent-rgb), .3);
}
.hx-tlabel::before { content: '// '; opacity: .6; }
/* KPIs / readouts tipo monitor (rejilla con hairlines, números VT323 con glow) */
.hx-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; margin-bottom: 1.1rem;
  box-shadow: 0 14px 40px -22px rgba(0,0,0,.8), 0 0 24px rgba(var(--accent-rgb), .04);
}
.hx-stat {
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  padding: 1.3rem 1.2rem; transition: background .25s;
}
.hx-stat:hover { background: color-mix(in srgb, var(--accent) 8%, color-mix(in srgb, var(--surface) 74%, transparent)); }
.hx-readout {
  font-family: 'VT323', monospace; font-size: 2.6rem; line-height: .85;
  color: var(--accent); text-shadow: 0 0 16px rgba(var(--accent-rgb), .4);
}
.hx-stat-label {
  font-family: var(--font-mono); font-size: .5rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted); margin-top: .5rem;
}

@media (max-width: 520px) {
  .hx-pgrid--masonry { columns: 2; }
  .hx-pgrid--uniform { grid-template-columns: repeat(2, 1fr); }
}

/* ── Vinilos /vinilos (armonizado al ancho .hx) ────────────── */
/* 3 discos por fila, alineados a la columna (vence media queries de theme.css) */
.hx .vinyl-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem !important; padding: 0 !important;
}
@media (max-width: 520px) { .hx .vinyl-grid { grid-template-columns: repeat(2, 1fr) !important; } }
.hx .vinyl-card .vinyl-cover { border-radius: 10px; }
.hx .vinyl-info { padding: .6rem 0 0 !important; } /* texto alineado con el borde de la carátula */
.hx .vinyl-title-text { font-family: var(--hx-ui) !important; font-weight: 600; font-size: .9rem; letter-spacing: -.01em; }
.hx .vinyl-add-card { border-radius: 10px; }

/* KPIs alineados al borde y con tipografía del sistema */
.hx .vinyl-stats { padding: 0 0 1.75rem !important; gap: 2.25rem; margin-bottom: 2.25rem; }
.hx .vinyl-stat-val {
  font-family: var(--hx-ui) !important; font-weight: 700; font-size: 1.85rem;
  letter-spacing: -.025em; font-variant-numeric: tabular-nums;
}
/* Embed del player: responsive 16:9 (en vez de height fijo que desproporciona) */
.hx .vinyl-player iframe { width: 100% !important; max-width: 100%; }
.hx .vinyl-player iframe[src*="youtube"] { aspect-ratio: 16/9; height: auto !important; border-radius: 12px; }

/* ── Fotos (grid compacto en la columna) ───────────────────── */
.hx-photos {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr; gap: 6px;
}
.hx-photo {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  border-radius: 8px; cursor: zoom-in; background: var(--surface);
}
.hx-photo img { width:100%; height:100%; object-fit: cover;
  transition: transform .5s var(--ease), filter .3s; }
.hx-photo:hover img { transform: scale(1.08); filter: brightness(.8); }

/* ── Vinilos ───────────────────────────────────────────────── */
.hx-vinyls { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.hx-vinyl-cover {
  aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.hx-vinyl:hover .hx-vinyl-cover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.6);
}
.hx-vinyl-cover img { width:100%; height:100%; object-fit: cover; }
.hx-vinyl-name { margin-top: .5rem; font-size: .76rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-vinyl-sub { font-family: var(--font-mono); font-size: .54rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   PÍLDORAS roja / azul — elige tu realidad (Matrix vs Noir)
   ============================================================ */
.hx-pills {
  position: fixed; top: 1rem; right: 1.1rem; z-index: 250;
  display: inline-flex; gap: .35rem; align-items: center;
  padding: .28rem .4rem; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; animation: hx-pop .5s ease .4s forwards;
}
.hx-pill {
  position: relative; width: 30px; height: 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); cursor: pointer; padding: 0;
  transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
  filter: saturate(.72) brightness(.8);
}
.hx-pill::after { /* brillo superior tipo cápsula */
  content: ''; position: absolute; inset: 2px 3px auto 3px; height: 4px;
  border-radius: 999px; background: linear-gradient(rgba(255,255,255,.5), transparent);
}
.hx-pill-red  { background: linear-gradient(135deg, #ff5a5a, #a60000); }
.hx-pill-blue { background: linear-gradient(135deg, #5a86ff, #0a2bb0); }
.hx-pill:hover { transform: translateY(-1px) scale(1.07); filter: saturate(1) brightness(1); }
.hx-pill.active { filter: saturate(1.15) brightness(1.08); }
.hx-pill-red.active  { box-shadow: 0 0 0 2px var(--bg), 0 0 16px 2px rgba(255,70,70,.7); }
.hx-pill-blue.active { box-shadow: 0 0 0 2px var(--bg), 0 0 16px 2px rgba(80,120,255,.7); }
.hx-pill-tip {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(3px);
  font-family: var(--font-mono); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; color: var(--text-muted);
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.hx-pill:hover .hx-pill-tip { opacity: .85; transform: translateX(-50%) translateY(0); }

/* Señalamiento: invita a tomar la roja cuando estás en la realidad */
.hx-pills-hint {
  font-family: var(--font-mono); font-size: .48rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap; margin-right: .1rem;
  opacity: .5;
}
.hx-pills-hint::after { content: ' →'; color: var(--accent); opacity: .7; }
/* Pulso muy sutil en la píldora roja mientras NO estás en Matrix */
html:not(.hx-matrix) .hx-pill-red {
  animation: hx-pill-invite 3s ease-in-out infinite;
}
html:not(.hx-matrix) .hx-pill-red:hover { animation-play-state: paused; }
@keyframes hx-pill-invite {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,70,70,0); }
  50%     { box-shadow: 0 0 9px 1px rgba(255,70,70,.35); }
}
/* En Matrix: el señalamiento ya no hace falta */
html.hx-matrix .hx-pills-hint { display: none; }

/* ── Toggle día/noche (junto a las píldoras; sólo Noir) ── */
.hx-daynight {
  width: 26px; height: 26px; border-radius: 50%; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--border); color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.hx-daynight:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  transform: translateY(-1px);
}
.hx-daynight svg { width: 15px; height: 15px; }
.hx-daynight-div { width: 1px; height: 15px; background: var(--border); flex-shrink: 0; }
html.hx-matrix .hx-daynight, html.hx-matrix .hx-daynight-div { display: none; }

/* ============================================================
   AJUSTES DEL MODO DÍA (Noir claro). Matrix nunca lleva .hx-day.
   ============================================================ */
/* El logo es un PNG claro (para fondo oscuro): en día lo forzamos a silueta
   oscura con brightness(0) (respeta la transparencia; nítido sobre blanco) */
html.hx-day .hx-logo { filter: brightness(0) opacity(.82); }
/* En claro los glows de acento ensucian; títulos nítidos */
html.hx-day .hx-greet, html.hx-day .hx-ptitle { text-shadow: none; }
html.hx-day .hx-since-num { text-shadow: none; }
html.hx-day .hx-tlabel { text-shadow: none; }
html.hx-day .hx-readout { text-shadow: 0 0 1px rgba(var(--accent-rgb), .25); }

/* Detalle de foto: el "escenario" negro (letterbox) se aclara en día */
html.hx-day .hx-photo { background: var(--surface-2); }
/* Detalle de vinilo: el hero blur + gradiente están calibrados para oscuro;
   en día lo suavizamos a un lavado claro para que no sea un bloque gris */
html.hx-day .vinyl-hero-blur { filter: blur(40px) brightness(1.25) saturate(1.15) !important; opacity: .4; }
html.hx-day .vinyl-hero-grad {
  background: linear-gradient(to bottom, rgba(255,255,255,.35) 0%, var(--bg) 78%) !important;
}
/* Glow del "404" molesta en claro */
html.hx-day .nf-code, html.hx-day .hx-404 { text-shadow: none !important; }

/* ── Terminal "Despierta, Neo…" — CRT noventero (al tomar la roja) ── */
.hx-boot {
  position: fixed; inset: 0; z-index: 99999; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  font-family: 'VT323', 'Space Mono', ui-monospace, monospace;
  /* fósforo + viñeta */
  background: radial-gradient(ellipse 120% 100% at 50% 50%, #05140a 0%, #020a05 55%, #000 100%);
  animation: hx-crt-on .55s ease-out both;
}
@keyframes hx-crt-on { 0%{ filter:brightness(3) contrast(.4); transform:scaleY(.005); } 35%{ transform:scaleY(1); } 100%{ filter:none; transform:none; } }
/* scanlines */
.hx-boot::before {
  content:''; position:absolute; inset:0; pointer-events:none; z-index:2;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 1.5px, rgba(0,0,0,.32) 2.5px, rgba(0,0,0,.32) 3.5px);
}
/* franja de barrido que recorre la pantalla */
.hx-boot::after {
  content:''; position:absolute; left:0; right:0; top:0; height:24%; pointer-events:none; z-index:3;
  background: linear-gradient(rgba(80,255,130,0), rgba(80,255,130,.05), rgba(80,255,130,0));
  animation: hx-crt-scan 6.5s linear infinite;
}
@keyframes hx-crt-scan { from{ transform:translateY(-30%); } to{ transform:translateY(460%); } }
.hx-boot-inner {
  position:relative; z-index:1; width:min(92vw,560px);
  color:#3bff6a; white-space:pre-line; letter-spacing:.01em;
  font-size:clamp(.95rem,2.3vw,1.25rem); line-height:1.5;
  text-shadow:
    0 0 4px rgba(90,255,140,.9), 0 0 13px rgba(0,255,80,.55),   /* bloom de fósforo */
    .035em 0 rgba(255,40,60,.35), -.035em 0 rgba(40,140,255,.32); /* aberración cromática */
  animation: hx-crt-flicker 4s infinite steps(48);
}
@keyframes hx-crt-flicker {
  0%,100%{opacity:.97} 6%{opacity:.84} 7%{opacity:.99} 18%{opacity:.92}
  47%{opacity:.98} 49%{opacity:.8} 51%{opacity:.97} 73%{opacity:.95} 74%{opacity:.86} 76%{opacity:.98}
}
.hx-boot-cur {
  display:inline-block; width:.55em; height:.9em; background:#3bff6a;
  vertical-align:-.08em; margin-left:.04em; box-shadow:0 0 9px rgba(90,255,140,.85);
  animation: hx-boot-blink 1.05s steps(1) infinite;
}
@keyframes hx-boot-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hx-boot, .hx-boot-inner { animation: none; } }

/* ============================================================
   DOCK flotante (estilo macOS) — la navegación
   ============================================================ */
.hx-dock {
  position: fixed; left: 50%; bottom: 1.4rem;
  /* translate3d + will-change: capa de composición propia para que Safari
     pinte el backdrop-filter en la carga (bug: fixed+backdrop-filter invisible
     hasta hacer scroll). */
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
  z-index: 200;
  display: flex; align-items: flex-end; gap: .12rem;
  padding: .4rem .5rem .45rem;
  border-radius: 24px;
  /* ── Liquid glass: material translúcido refractivo (estilo Apple) ── */
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--surface) 55%, transparent),
    color-mix(in srgb, var(--surface) 38%, transparent));
  -webkit-backdrop-filter: blur(24px) saturate(1.9) brightness(1.06);
          backdrop-filter: blur(24px) saturate(1.9) brightness(1.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.5),        /* rim light superior (especular) */
    inset 0 0 0 1px rgba(255,255,255,.05),        /* borde interior tenue */
    inset 0 -10px 20px -14px rgba(0,0,0,.4),      /* profundidad inferior */
    0 14px 34px -10px rgba(0,0,0,.55),            /* sombra flotante */
    0 4px 12px -4px rgba(0,0,0,.35);
  opacity: 0; animation: hx-dock-in .5s ease .35s forwards;
}
/* Sheen especular que resbala por el cristal (reflejo de luz) */
.hx-dock::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255,255,255,.22) 0%, rgba(255,255,255,.05) 30%, rgba(255,255,255,0) 58%);
}
/* Animación propia: conserva translate3d(-50%) para no descentrar el dock */
@keyframes hx-dock-in {
  from { opacity: 0; transform: translate3d(-50%, 12px, 0); }
  to   { opacity: 1; transform: translate3d(-50%, 0, 0); }
}
.hx-dock-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 52px; padding: 7px 5px 5px; border-radius: 15px;
  color: var(--text-muted); text-decoration: none;
  transform: scale(var(--s, 1)); transform-origin: bottom center;
  transition: transform .12s ease, color .2s;
}
/* Píldora de cristal detrás del ítem (hover / activo) */
.hx-dock-item::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: transparent; transition: background .2s, box-shadow .2s;
}
.hx-dock-item:hover { color: var(--accent); }
.hx-dock-item:hover::after {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.hx-dock-item.active { color: var(--accent); }
.hx-dock-item.active::after {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 3px 10px -4px rgba(var(--accent-rgb), .45);
}
.hx-dock-item svg { width: 21px; height: 21px; }
.hx-dock-label {
  font-family: var(--font-mono); font-size: .44rem; letter-spacing: .05em;
  text-transform: uppercase; line-height: 1; white-space: nowrap;
  color: inherit; opacity: .9;
}
.hx-dock-sep { width: 1px; height: 34px; background: rgba(255,255,255,.12); margin: 0 .2rem; align-self: center; }
/* Utilidades del autor: ancladas a la derecha, no afectan el centro del menú */
.hx-dock-utils { left: auto; right: 1.25rem; transform: none; animation-name: hx-pop; }

/* Escuchando ahora (mini, fijo abajo-izquierda) */
.hx-now-mini {
  position: fixed; left: 1.1rem; bottom: 1.25rem; z-index: 200;
  display: inline-flex; align-items: center; gap: .5rem;
  max-width: 230px; padding: .35rem .6rem .35rem .35rem;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border); border-radius: 999px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text); text-decoration: none;
  opacity: 0; animation: hx-pop .5s ease .45s forwards;
  transition: border-color .25s;
}
.hx-now-mini:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.hx-now-mini img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  animation: hx-spin 8s linear infinite; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-now-mini-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin: 0 .3rem;
  animation: hx-wave 1.6s infinite; }
.hx-now-mini-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hx-now-mini-label { font-family: var(--font-mono); font-size: .5rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); }
.hx-now-mini-title { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .hx-now-mini { display: none; } } /* en móvil libera espacio para el dock */

/* (el tooltip .tip se reemplazó por labels visibles .hx-dock-label) */

/* ============================================================
   CONTACTO (sección final con grid animado de fondo)
   ============================================================ */
.hx-contact {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--hx-card);
  text-align: center; padding: clamp(3rem, 8vw, 4.5rem) 1.5rem;
  /* ancho del CONTENIDO (680 menos el canalón 2×1.5rem) para alinear con texto/logo */
  max-width: calc(var(--hx-maxw) - 3rem); margin: 1rem auto 0;
}
.hx-contact canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* Radial central INTERSECTADO con un desvanecido lineal hacia abajo, para
     que el borde inferior se funda con el fondo. */
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 72%),
                      linear-gradient(to bottom, #000 62%, transparent 100%);
          mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 72%),
                      linear-gradient(to bottom, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.hx-contact-inner { position: relative; z-index: 1; }
.hx-contact-kicker {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .75rem;
}
.hx-contact-title {
  font-family: var(--hx-ui); font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.03em;
  color: var(--text); line-height: 1.05; margin-bottom: .85rem;
}
.hx-contact-sub {
  font-size: .92rem; line-height: 1.6; color: var(--text-muted);
  max-width: 42ch; margin: 0 auto 1.75rem;
}
.hx-contact-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9rem;
  color: var(--on-accent, var(--bg)); background: var(--accent);
  padding: .75em 1.5em; border-radius: 999px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.hx-contact-btn:hover { transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(var(--accent-rgb), .5); opacity: .95; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) {
  .hx-photos  { grid-template-columns: repeat(3, 1fr); }
  .hx-vinyls  { grid-template-columns: repeat(3, 1fr); }
  .hx-greet, .hx-ptitle { font-size: clamp(1.25rem, 6vw, 2rem); }
  .hx-avatar  { width: clamp(64px, 18vw, 96px); }
  .hx-dock    { gap: 0; padding: .35rem .35rem .4rem; border-radius: 20px; }
  .hx-dock-item { width: 44px; padding: 6px 2px 4px; }
  .hx-dock-item svg { width: 19px; height: 19px; }
  .hx-dock-label { font-size: .4rem; letter-spacing: .02em; }
}
