/* SimonVisuales — main stylesheet (no external dependencies) */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrainsmono-var.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #0b0b0d;
  --bg-2: #121216;
  --bg-3: #1a1a20;
  --line: #2a2a32;
  --text: #f2f2f4;
  --muted: #9a9aa6;
  --red: #f90706;
  --red-soft: #ff3b30;
  --radius: 14px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.02; font-weight: 800; font-stretch: 75%; letter-spacing: -0.01em; text-transform: uppercase; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-3); padding: .1em .4em; border-radius: 4px; }
.mono { font-family: var(--mono); }
.small { font-size: 12px; }
.accent { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.4em; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-soft); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { font-size: 17px; padding: 1em 1.7em; }
.play-ico { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,13,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 170px; height: auto; }
.site-nav ul { display: flex; gap: 6px; align-items: center; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--bg-3); }
.site-nav a.nav-cta { color: #fff; background: var(--red); }
.site-nav a.nav-cta:hover { background: var(--red-soft); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--text); position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; content: ""; }
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { left: 0; top: -7px; }
.nav-toggle .bars::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { font-size: 20px; padding: 12px 16px; }
}

/* ---------- LED pixel grid texture ---------- */
.led-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(249,7,6,.22) 0 1.2px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
  opacity: .55;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 0; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 22px; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(249,7,6,.2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(52px, 7.6vw, 112px); font-stretch: 62%; font-weight: 900; line-height: .9; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions.center { justify-content: center; }
.hero-media { position: relative; width: 100%; justify-self: end; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 585 / 617; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.hero-media figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: 11px; letter-spacing: .14em; background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 4px; }

.ticker { margin-top: clamp(48px, 7vw, 88px); border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track li { padding: 18px 28px; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); white-space: nowrap; position: relative; }
.ticker-track li::after { content: "◆"; position: absolute; right: -6px; color: var(--red); font-size: 9px; top: 50%; transform: translateY(-50%); }
.ticker-track em { color: var(--red); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }
/* Segunda cinta: eventos, en sentido contrario. Lista duplicada + desplazamiento del 50% = bucle sin corte */
.ticker-events { margin-top: 0; border-top: 0; background: var(--bg); }
.ticker-events .ticker-track { animation-duration: 60s; animation-direction: reverse; }
.ticker-events-b { border-top: 1px solid var(--line); }
.ticker-events-b .ticker-track { animation-direction: normal; }
.ticker-events .ticker-track li { color: var(--text); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; aspect-ratio: 4 / 3; justify-self: start; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.kicker { font-size: 13px; color: var(--red); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.section h2 { font-size: clamp(40px, 6.5vw, 84px); font-stretch: 68%; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---------- YouTube facade ---------- */
.yt-facade { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.yt-facade:hover img { transform: scale(1.03); opacity: .85; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%;
  background: var(--red); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 40px rgba(249,7,6,.45);
  transition: transform .2s ease;
}
.yt-play .play-ico { border-width: 13px 0 13px 21px; margin-left: 6px; }
.yt-play:hover { transform: scale(1.08); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.service { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; transition: border-color .25s, transform .25s; }
.service:hover { border-color: var(--red); transform: translateY(-3px); }
.service-num { position: absolute; top: 24px; right: 26px; font-size: 13px; color: var(--muted); }
.service h3 { font-size: 30px; font-stretch: 70%; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.duo figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg); position: relative; }
.duo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.duo img.contain { object-fit: contain; padding: 24px; background: #0e0e12; }
.duo figcaption { padding: 14px 18px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 640px) { .duo { grid-template-columns: 1fr; } }

/* Montajes */
.section-lede { color: var(--muted); max-width: 38em; margin-top: 16px; font-size: 17px; }
.montajes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.montajes figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.montajes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.montajes figure:hover img { transform: scale(1.04); }
.montajes figcaption { padding: 14px 18px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 1024px) { .montajes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .montajes { grid-template-columns: 1fr; } }

.ecosystem { margin-top: 48px; }
.ecosystem h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; font-stretch: 100%; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.logo-wall li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; transition: border-color .25s, transform .25s; }
.logo-wall li:hover { border-color: var(--red); transform: translateY(-2px); }
.logo-wall img { max-width: 132px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.logo-wall .mono-logo img { filter: brightness(0) invert(1); opacity: .9; }
.logo-wall img.logo-icon { height: 40px; width: 40px; }
.logo-wall span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; text-align: center; }
@media (max-width: 480px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Quote ---------- */
.quote { padding: clamp(72px, 12vw, 150px) 0; text-align: center; background: radial-gradient(ellipse at center, rgba(249,7,6,.12), transparent 65%); }
.quote blockquote { margin: 0 auto; max-width: 18em; font-size: clamp(30px, 5vw, 62px); font-weight: 800; font-stretch: 70%; line-height: 1.05; text-transform: uppercase; }

/* ---------- Collaborations ---------- */
.collabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.collabs li { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.collabs img { width: 100%; aspect-ratio: 428 / 300; object-fit: cover; filter: grayscale(.6) contrast(1.05); transition: filter .35s; }
.collabs li:hover img { filter: none; }
.collabs li { transition: border-color .25s, transform .25s; }
.collabs li:hover { border-color: var(--red); transform: translateY(-3px); }
.collab-meta { padding: 16px 18px 18px; display: grid; gap: 4px; }
.collab-meta strong { font-size: 17px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: .01em; }
.collab-meta span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ---------- Video grid (generated) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.video-card a, .video-card button { all: unset; cursor: pointer; display: block; width: 100%; }
.video-card .thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card .thumb::after { content: ""; position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(249,7,6,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center/26px no-repeat; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; }
.video-card:hover .thumb img { transform: scale(1.05); }
.video-card:hover .thumb::after, .video-card button:focus-visible .thumb::after { opacity: 1; transform: none; }
.video-card h3 { font-family: var(--font); text-transform: none; font-stretch: 100%; font-size: 16px; font-weight: 600; line-height: 1.35; margin-top: 12px; }
.video-card time { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Instagram grid (generated) ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ig-grid li { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--bg-2); position: relative; }
.ig-grid a { display: block; height: 100%; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.ig-grid a:hover img { transform: scale(1.06); opacity: .85; }
.ig-grid .ig-badge { position: absolute; top: 8px; right: 8px; font-family: var(--mono); font-size: 10px; background: rgba(0,0,0,.65); padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact ---------- */
.contact { text-align: center; overflow: hidden; }
.contact .led-grid { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 0%, transparent 75%); }
.contact-inner { position: relative; }
.contact .lede { margin: 20px auto 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Patreon ---------- */
.pt-card a { position: relative; }
.pt-thumb { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #2a0d0d, var(--bg-3) 70%); }
.pt-thumb span { font-size: 40px; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.pt-card .thumb::after { display: none; }
.pt-badge { position: absolute; top: 10px; left: 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; background: rgba(0,0,0,.7); padding: 3px 7px; border-radius: 4px; }
.pt-badge.locked { background: var(--red); color: #fff; }
.pt-card p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 6px; }

/* ---------- 404 · Sin señal ---------- */
.nosignal { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
.nosignal h1 { font-size: clamp(56px, 11vw, 140px); font-stretch: 62%; margin-top: 8px; animation: flicker 4s infinite steps(1); }
.nosignal .kicker { display: inline-flex; align-items: center; gap: 10px; }
.nosignal .lede { margin: 20px auto 0; }
.nosignal .bars { display: flex; height: 14px; width: min(420px, 100%); margin: 0 auto 28px; border-radius: 3px; overflow: hidden; opacity: .85; animation: bars-fade 6s ease-in-out infinite; }
.nosignal .bars span { flex: 1; }
.nosignal .bars span:nth-child(1) { background: #c0c0c0; }
.nosignal .bars span:nth-child(2) { background: #c0c000; }
.nosignal .bars span:nth-child(3) { background: #00c0c0; }
.nosignal .bars span:nth-child(4) { background: #00c000; }
.nosignal .bars span:nth-child(5) { background: #c000c0; }
.nosignal .bars span:nth-child(6) { background: #c00000; }
.nosignal .bars span:nth-child(7) { background: #0000c0; }
.console { display: inline-grid; gap: 6px; margin: 32px auto 0; padding: 18px 22px; text-align: left; font-size: 13px; color: var(--muted); background: rgba(18,18,22,.8); border: 1px solid var(--line); border-radius: 10px; }
.console span { display: inline-block; min-width: 10ch; color: var(--red); }
@keyframes flicker { 0%, 100% { opacity: 1; } 92% { opacity: .35; } 93% { opacity: 1; } 96% { opacity: .6; } 97% { opacity: 1; } }
@keyframes bars-fade { 0%, 100% { opacity: .85; } 50% { opacity: .15; } }

/* ---------- Páginas legales ---------- */
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(44px, 7vw, 80px); font-stretch: 68%; }
.legal .lede { margin-bottom: 8px; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); font-stretch: 70%; margin: 48px 0 14px; }
.legal p + p { margin-top: 14px; }
.legal p, .legal dd { color: #cfcfd6; }
.legal a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }
.legal a.btn { text-decoration: none; }
.legal-data { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.legal-data dt { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 3px; }
.legal-data dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .legal-data { grid-template-columns: 1fr; gap: 2px; }
  .legal-data dd { margin-bottom: 12px; }
}
.legal .note { margin-top: 56px; }

/* ---------- Video modal ---------- */
.yt-modal { width: min(1100px, 94vw); padding: 0; border: 0; background: transparent; overflow: visible; }
.yt-modal::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(4px); }
.yt-modal-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.yt-modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
