/* ================================================================
   ZENNARDX — SISTEMA DE DISEÑO v2
   Paleta ajustada tras revisión: vino (marca ya establecida) +
   azul marino (confianza/profesionalismo) + grafito. Sin halos
   neón, sin parpadeos — sobrio, de marca grande.
   ================================================================ */

:root{
  /* color — base */
  --bg:        #0a0a0b;
  --bg-1:      #131315;
  --bg-2:      #1b1b1f;

  /* color — marca (vino, ya establecido en miniaturas) */
  --wine:      #8f1226;
  --wine-dark: #5c0f1a;

  /* color — confianza (nuevo, uso deliberado y acotado) */
  --navy:      #10192b;
  --navy-2:    #1c2740;
  --navy-brd:  #2a3a5c;

  /* color — acento mínimo */
  --gold:      #c5a059;

  /* color — texto */
  --off:       #ede7e2;
  --off-72:    rgba(237,231,226,.72);
  --off-52:    rgba(237,231,226,.50);
  --off-30:    rgba(237,231,226,.26);
  --line:      rgba(237,231,226,.09);
  --line-2:    rgba(237,231,226,.16);
  --glass-bg:  rgba(19,19,21,.6);
  --glass-brd: rgba(237,231,226,.11);

  /* type */
  --ff-display: 'Anton', sans-serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* misc */
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --spine:     3px;
  --ease:      cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--off);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,p{ margin: 0; }

::selection{ background: var(--wine); color: var(--off); }

:focus-visible{
  outline: 2px solid var(--navy-brd);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------
   GRANO — igual principio que Estilo 1A de miniaturas, muy sutil.
   ---------------------------------------------------------------- */
.grain{
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
  opacity: .025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------
   AMBIENTE — antes eran dos manchas grandes de rojo saturado.
   Ahora: mucho más tenue, y una de las dos es azul marino, no
   vino — así el fondo lee "grafito con profundidad", no "rojo".
   ---------------------------------------------------------------- */
.ambient{
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 520px at 90% -10%, rgba(143,18,38,.14), transparent 62%),
    radial-gradient(650px 520px at -12% 82%, rgba(16,25,43,.55), transparent 62%);
}

/* ----------------------------------------------------------------
   LA VETA — línea vertical fija, ahora quieta y sobria (sin
   pulso animado, sin brillo). Marca de continuidad, no efecto.
   ---------------------------------------------------------------- */
.spine{
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--spine); z-index: 3;
  background: linear-gradient(180deg, var(--wine-dark), var(--navy) 100%);
  opacity: .85;
}
@media (max-width: 860px){
  .spine{ left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--wine-dark), var(--navy) 100%); }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ----------------------------------------------------------------
   LAYOUT BASE
   ---------------------------------------------------------------- */
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
@media (max-width: 860px){
  .wrap{ padding: 0 20px; }
  body{ padding-top: 2px; }
}

.eyebrow{
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--off-52);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before{ content: ""; width: 18px; height: 1px; background: var(--wine); }

section{ position: relative; z-index: 1; padding: 84px 0; border-bottom: 1px solid var(--line); }
section:last-of-type{ border-bottom: none; }

h2.h-section{
  font-family: var(--ff-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 38px);
  margin-top: 14px;
  line-height: 1.08;
}

.lede{ max-width: 62ch; color: var(--off-72); font-size: 16.5px; margin-top: 16px; }

.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in{ opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------------
   NAV
   ---------------------------------------------------------------- */
.nav{
  position: sticky; top: 0; z-index: 10;
  padding: 16px 0;
  background: rgba(10,10,11,.78);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap{ display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-brand{ font-family: var(--ff-display); font-size: 19px; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.nav-brand .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--wine); }
.nav-links{ display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--off-72); }
.nav-links a{ transition: color .2s var(--ease); white-space: nowrap; }
.nav-links a:hover{ color: var(--off); }
@media (max-width: 780px){ .nav-links{ display: none; } }

/* ----------------------------------------------------------------
   BOTONES — más planos, menos glow.
   ---------------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 21px; border-radius: 10px;
  font-family: var(--ff-body); font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-primary{ background: var(--wine); color: var(--off); }
.btn-primary:hover{ background: #a3172f; }

.btn-navy{ background: var(--navy); color: var(--off); border-color: var(--navy-brd); }
.btn-navy:hover{ border-color: var(--off-30); }

.btn-ghost{ background: transparent; color: var(--off); border-color: var(--line-2); }
.btn-ghost:hover{ border-color: var(--off-30); background: rgba(237,231,226,.03); }

.btn-sm{ padding: 9px 16px; font-size: 13px; border-radius: 8px; }

/* ----------------------------------------------------------------
   BARRA DE CONFIANZA — stats públicas reales (subs, vistas,
   videos, antigüedad). Estilo panel de datos, no vanidad.
   ---------------------------------------------------------------- */
.trust-bar{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.trust-chip{
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  min-width: 128px;
}
.trust-chip .k{
  font-family: var(--ff-mono); font-size: 20px; font-weight: 600;
  color: var(--off); font-variant-numeric: tabular-nums;
}
.trust-chip .l{ font-size: 11.5px; color: var(--off-52); letter-spacing: .04em; text-transform: uppercase; }
.trust-chip.is-live .k::before{
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--wine); margin-right: 7px; vertical-align: middle;
}
.trust-chip.is-static .k::before{ background: var(--off-30); }

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero{ padding: 96px 0 80px; border-bottom: 1px solid var(--line); }
.hero h1{
  font-family: var(--ff-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(48px, 9vw, 92px); line-height: .95; letter-spacing: .01em;
  margin: 16px 0 0;
}
.hero .lede{ font-size: 17.5px; margin-top: 20px; }
.hero-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }

/* ----------------------------------------------------------------
   TARJETA — más plana, borde más presente, sin barrido de brillo.
   ---------------------------------------------------------------- */
.card{
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover{ transform: translateY(-3px); border-color: var(--line-2); }

/* ----------------------------------------------------------------
   SOBRE EL CANAL
   ---------------------------------------------------------------- */
.about-grid{ display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; margin-top: 32px; align-items: start; }
.about-grid p{ color: var(--off-72); font-size: 16px; }
.about-grid p + p{ margin-top: 14px; }
.about-side{ padding: 22px; }
.about-side .line{ display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.about-side .line:last-child{ border-bottom: none; }
.about-side .line span:first-child{ color: var(--off-52); }
.about-side .line span:last-child{ font-family: var(--ff-mono); }
@media (max-width: 860px){ .about-grid{ grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------
   VIDEOS
   ---------------------------------------------------------------- */
.video-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 900px){ .video-grid{ grid-template-columns: 1fr; } }
.video-card{ overflow: hidden; }
.video-card .thumb{ aspect-ratio: 16/9; background: var(--bg-2); position: relative; overflow: hidden; }
.video-card .thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.video-card:hover .thumb img{ transform: scale(1.04); }
.video-card .play{ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-card .play svg{ width: 42px; height: 42px; opacity: .92; }
.video-card .meta{ padding: 15px 17px 17px; }
.video-card .meta h3{ font-size: 14.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card .meta .date{ font-family: var(--ff-mono); font-size: 11px; color: var(--off-52); margin-top: 7px; display: block; }

.video-empty{ grid-column: 1 / -1; padding: 40px 26px; text-align: center; }
.video-empty p{ color: var(--off-52); font-size: 14px; max-width: 46ch; margin: 0 auto 16px; }

/* ----------------------------------------------------------------
   SHORTS — fila horizontal, formato vertical.
   ---------------------------------------------------------------- */
.shorts-row{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 900px){ .shorts-row{ grid-template-columns: repeat(2, 1fr); } }
.short-card{ overflow: hidden; }
.short-card .thumb{ aspect-ratio: 9/16; background: var(--bg-2); position: relative; overflow: hidden; }
.short-card .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.short-card .tag{
  position: absolute; top: 10px; left: 10px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: .06em;
  background: rgba(10,10,11,.7); border: 1px solid var(--line-2);
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.short-card .meta{ padding: 11px 13px 13px; }
.short-card .meta h3{ font-size: 12.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shorts-empty{ grid-column: 1/-1; text-align: center; padding: 24px; color: var(--off-52); font-size: 13.5px; }

/* ----------------------------------------------------------------
   NOVEDADES — panel editable a mano (reemplaza a "Comunidad").
   ---------------------------------------------------------------- */
.updates-list{ margin-top: 28px; display: flex; flex-direction: column; gap: 1px; }
.update-row{
  display: grid; grid-template-columns: 100px 84px 1fr; gap: 18px; align-items: baseline;
  padding: 16px 20px;
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
}
.update-row:first-child{ border-radius: var(--radius) var(--radius) 0 0; }
.update-row:last-child{ border-radius: 0 0 var(--radius) var(--radius); }
.update-row + .update-row{ border-top: none; }
.update-row .tag{
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-brd); background: var(--navy); border: 1px solid var(--navy-brd);
  padding: 4px 9px; border-radius: 999px; text-align: center; width: fit-content;
}
.update-row .date{ font-family: var(--ff-mono); font-size: 12px; color: var(--off-52); }
.update-row .text{ font-size: 14.5px; color: var(--off-72); }
@media (max-width: 640px){
  .update-row{ grid-template-columns: 1fr; gap: 6px; }
}

/* ----------------------------------------------------------------
   ZENNARDX HUB
   ---------------------------------------------------------------- */
.hub{ display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-top: 32px; }
@media (max-width: 900px){ .hub{ grid-template-columns: 1fr; } }
.hub-copy p{ color: var(--off-72); margin-top: 15px; font-size: 16px; }
.hub-tags{ display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.hub-tag{ font-family: var(--ff-mono); font-size: 11.5px; color: var(--off-72); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.hub-actions{ display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.hub-visual{
  aspect-ratio: 1/1; max-width: 320px; margin: 0 auto; border-radius: 24px;
  background: linear-gradient(155deg, var(--navy-2), var(--bg-2));
  border: 1px solid var(--navy-brd);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hub-visual::before, .hub-visual::after{ content: ""; position: absolute; width: 52px; height: 52px; border-radius: 14px; background: rgba(10,10,11,.6); border: 1px solid var(--line-2); }
.hub-visual::before{ left: 24px; top: 50%; transform: translateY(-50%); }
.hub-visual::after{ right: 24px; top: 50%; transform: translateY(-50%); }
.hub-visual svg{ width: 84px; height: 84px; position: relative; z-index: 1; }
.hub-badge{
  position: absolute; bottom: -13px; left: 50%; transform: translateX(-50%);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 15px; font-family: var(--ff-mono); font-size: 11.5px; color: var(--off-72);
}

/* ----------------------------------------------------------------
   REDES
   ---------------------------------------------------------------- */
.social-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 900px){ .social-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .social-grid{ grid-template-columns: 1fr; } }
.social-card{ padding: 20px; display: flex; align-items: center; gap: 15px; }
.social-card .ic{ width: 40px; height: 40px; border-radius: 10px; background: rgba(237,231,226,.05); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-card .ic svg{ width: 20px; height: 20px; }
.social-card .label{ font-weight: 700; font-size: 14.5px; }
.social-card .sub{ color: var(--off-52); font-size: 12.5px; margin-top: 2px; }
.social-card:hover .ic{ background: var(--wine); }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
footer{ padding: 40px 0 60px; position: relative; z-index: 1; }
footer .wrap{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.foot-tags{ font-family: var(--ff-mono); font-size: 11.5px; color: var(--off-52); letter-spacing: .03em; }
.foot-copy{ font-size: 13px; color: var(--off-52); }

/* ================================================================
   PÁGINA "SOBRE MÍ"
   ================================================================ */
.about-hero{ padding: 90px 0 60px; display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
@media (max-width: 780px){ .about-hero{ grid-template-columns: 1fr; text-align: center; } }
.about-photo{
  width: 100%; aspect-ratio: 1/1; border-radius: 20px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--glass-brd);
}
.about-photo img{ width: 100%; height: 100%; object-fit: cover; }
.about-photo.is-empty{ display: flex; align-items: center; justify-content: center; color: var(--off-30); font-family: var(--ff-mono); font-size: 12px; text-align: center; padding: 20px; }

/* Patrón imagen-con-reserva: si el archivo todavía no existe en
   Neocities, muestra un aviso en vez de un ícono de imagen rota.
   En cuanto subís el archivo con el nombre exacto, aparece solo —
   no hace falta tocar el código de nuevo. */
.ph-box{ position: relative; }
.ph-box img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-empty{
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center; text-align: center;
  padding: 16px; background: var(--bg-2);
  color: var(--off-30); font-family: var(--ff-mono); font-size: 11.5px; line-height: 1.5;
}
.ph-empty code{ color: var(--off-52); }

.bio-block{ margin-top: 30px; max-width: 68ch; }
.bio-block p{ color: var(--off-72); font-size: 16.5px; margin-top: 16px; }
.bio-block p:first-child{ margin-top: 0; }

.fact-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
@media (max-width: 780px){ .fact-grid{ grid-template-columns: 1fr 1fr; } }
.fact-card{ padding: 18px; }
.fact-card .k{ font-family: var(--ff-mono); font-size: 11px; color: var(--off-52); text-transform: uppercase; letter-spacing: .05em; }
.fact-card .v{ margin-top: 8px; font-size: 15px; font-weight: 600; }

.gallery{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
@media (max-width: 780px){ .gallery{ grid-template-columns: 1fr 1fr; } }
.gallery-item{ aspect-ratio: 4/5; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); border: 1px solid var(--glass-brd); }
.gallery-item img{ width: 100%; height: 100%; object-fit: cover; }
.gallery-item.is-empty{ display: flex; align-items: center; justify-content: center; color: var(--off-30); font-family: var(--ff-mono); font-size: 11px; text-align: center; padding: 14px; }

/* ================================================================
   PÁGINA 404 — LIQUID GLASS (recolor: vino + azul marino)
   ================================================================ */
.void{ min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 24px; }
.void-blob{ position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.void-blob.b1{ width: 480px; height: 480px; background: radial-gradient(circle at 30% 30%, var(--wine), transparent 70%); top: -10%; left: -10%; }
.void-blob.b2{ width: 420px; height: 420px; background: radial-gradient(circle at 60% 40%, var(--navy-2), transparent 70%); bottom: -12%; right: -8%; animation-delay: -7s; }
.void-blob.b3{ width: 320px; height: 320px; background: radial-gradient(circle at 50% 50%, var(--wine-dark), transparent 70%); top: 40%; left: 55%; animation-delay: -12s; }
@keyframes drift{ 0%{ transform: translate(0,0) scale(1); } 100%{ transform: translate(28px,-22px) scale(1.06); } }

.glass-card{
  position: relative; z-index: 2; width: min(560px, 100%); padding: 54px 42px; border-radius: 26px; text-align: center;
  background: rgba(19,19,21,.45); border: 1px solid rgba(237,231,226,.14);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 36px 70px -28px rgba(0,0,0,.65), inset 0 1px 0 rgba(237,231,226,.12);
  overflow: hidden;
}
.glass-card::before{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,20%), rgba(237,231,226,.12), transparent 60%);
  pointer-events: none; transition: opacity .3s var(--ease);
}
.glass-card .rim{ position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(237,231,226,.04); }

.void-code{
  font-family: var(--ff-display); font-size: clamp(66px, 15vw, 112px); line-height: .9; letter-spacing: .02em;
  background: linear-gradient(160deg, var(--off) 25%, var(--wine) 125%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.void-eyebrow{ justify-content: center; margin-top: 8px; }
.void-eyebrow::before{ display: none; }
.void-title{ font-family: var(--ff-display); font-weight: 400; text-transform: uppercase; font-size: clamp(19px, 2.6vw, 24px); margin-top: 16px; }
.void-text{ color: var(--off-72); font-size: 15px; max-width: 40ch; margin: 13px auto 0; }
.void-actions{ display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce){ .void-blob{ animation: none; } }