/* =========================================================
   mdsavio.com — hoja de estilos
   Concepto: carta de ajuste SMPTE. Cada faceta de Marcelo es
   una barra de color: broadcast (cian), música (amarillo),
   escritura (magenta), lab (azul). El resto, grafito y papel.
   ========================================================= */

:root {
  /* Base */
  --ink: #111317;          /* grafito con sesgo azul, fondo general */
  --panel: #191c21;        /* superficies elevadas */
  --rule: #2b2f37;         /* filetes y bordes */
  --paper: #ecebe6;        /* texto principal */
  --muted: #9a9fa8;        /* texto secundario */

  /* Barras SMPTE (75 %), ajustadas para pantalla */
  --bar-white: #c0c0c0;
  --bar-yellow: #d4c21c;
  --bar-cyan: #1fb9c6;
  --bar-green: #2fb24c;
  --bar-magenta: #c42fbd;
  --bar-red: #cc2b3b;
  --bar-blue: #2a46cc;
  --blue-text: #8ea0ff;     /* azul legible sobre fondo oscuro */
  --magenta-text: #e472de;

  /* Tipografía */
  --f-display: "Big Shoulders Display", "Arial Narrow", "DejaVu Sans Condensed", "Roboto Condensed", sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Escala (cuarta justa aprox.) */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.75rem;
  --t-xl: clamp(2.5rem, 6vw, 4.5rem);
  --t-hero: clamp(3.75rem, 13vw, 11.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --measure: 62ch;

  color-scheme: dark;
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--bar-yellow); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bilingüe: solo se muestra el idioma activo */
html[data-lang="es"] .en, html[data-lang="en"] .es { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(17, 19, 23, .92); backdrop-filter: blur(10px); border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { width: 108px; height: auto; filter: invert(1) brightness(1.1); mix-blend-mode: screen; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; font-size: var(--t-sm); font-weight: 500; letter-spacing: .01em; padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--c, var(--paper)); }
.nav a[data-c="cyan"] { --c: var(--bar-cyan); }
.nav a[data-c="yellow"] { --c: var(--bar-yellow); }
.nav a[data-c="magenta"] { --c: var(--bar-magenta); }
.nav a[data-c="blue"] { --c: var(--blue-text); }
.lang-toggle {
  font: 600 var(--t-sm)/1 var(--f-body); color: var(--paper); background: none;
  border: 1px solid var(--rule); border-radius: 2px; padding: .45rem .6rem; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--paper); }
.menu-btn { display: none; background: none; border: 0; color: var(--paper); padding: .5rem; cursor: pointer; }
.menu-btn svg { display: block; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: calc(4rem + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: var(--t-md); padding-block: .75rem; border-bottom: 1px solid var(--rule); }
  .nav a:hover { border-bottom-color: var(--c, var(--rule)); }
  .site-header.menu-open { background: var(--ink); }
}

/* ---------- Hero: carta de ajuste → programa ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 960px);
  min-height: min(92svh, 960px);
  display: grid; align-items: end;
  background: #000;
}
.hero__media, .bars { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media { opacity: 0; transition: opacity .12s linear; }
.hero.is-live .hero__media { opacity: 1; }
.hero__media::after { /* legibilidad del rótulo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.82) 100%);
}

/* Barras SMPTE dibujadas con CSS */
.bars { display: grid; grid-template-rows: 67fr 8fr 25fr; transition: opacity .12s linear; }
.hero.is-live .bars { opacity: 0; }
.bars__main, .bars__mid, .bars__low { display: grid; }
.bars__main { grid-template-columns: repeat(7, 1fr); }
.bars__mid  { grid-template-columns: repeat(7, 1fr); }
.bars__low  { grid-template-columns: 5fr 5fr 5fr 5fr 1.67fr 1.67fr 1.66fr 5fr; }
.bars span { display: block; }

.hero__content { position: relative; z-index: 2; padding-block: 8rem clamp(2rem, 5vw, 3.5rem); }
.lower-third { display: grid; gap: 1rem; max-width: 100%; }
.hero h1 {
  font-family: var(--f-display); font-weight: 900; font-size: var(--t-hero);
  line-height: .82; letter-spacing: -.01em; text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 span { display: block; }
.hero__roles {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none;
}
.hero__roles li {
  font-size: var(--t-sm); font-weight: 600; padding: .35rem .7rem .35rem .6rem;
  background: rgba(17,19,23,.72); border-left: 4px solid var(--c);
}
.hero__bottom { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; margin-top: 1.75rem; }
.hero__lead { max-width: 46ch; font-size: var(--t-md); line-height: 1.45; color: #e3e2dc; }

.tc { display: flex; align-items: center; gap: .9rem; }
.tc__readout {
  font: 600 1rem/1 var(--f-body); font-variant-numeric: tabular-nums; letter-spacing: .04em;
  background: rgba(0,0,0,.7); padding: .6rem .75rem; border: 1px solid rgba(255,255,255,.18);
  white-space: nowrap;
}
.tc__readout small { font-size: .7rem; color: var(--muted); margin-right: .5rem; letter-spacing: .08em; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 var(--t-sm)/1 var(--f-body); color: #000; background: var(--paper);
  border: 0; border-radius: 2px; padding: .85rem 1.1rem; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #fff; }
.btn svg { flex: none; }
.btn--ghost { background: transparent; color: var(--paper); border: 1px solid var(--rule); }
.btn--ghost:hover { background: var(--panel); border-color: var(--paper); }

/* ---------- Franja de canales ---------- */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); }
.channel {
  --c: var(--bar-white);
  display: grid; gap: .25rem; align-content: start;
  padding: 1.1rem var(--gutter) 1.4rem; text-decoration: none;
  border-top: 10px solid var(--c); background: var(--panel);
  border-right: 1px solid var(--ink);
}
.channel:hover { background: #20242a; }
.channel strong { font-family: var(--f-display); font-weight: 800; font-size: var(--t-lg); text-transform: uppercase; letter-spacing: .01em; }
.channel span { font-size: var(--t-sm); color: var(--muted); }
.channel--cyan { --c: var(--bar-cyan); }
.channel--yellow { --c: var(--bar-yellow); }
.channel--magenta { --c: var(--bar-magenta); }
.channel--blue { --c: var(--bar-blue); }
@media (max-width: 760px) { .channels { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 54rem; }
.section-head h2 {
  font-family: var(--f-display); font-weight: 900; font-size: var(--t-xl);
  text-transform: uppercase; letter-spacing: -.005em; line-height: .9;
  display: flex; align-items: center; gap: .9rem;
}
.section-head h2::before { /* chip de color de la faceta */
  content: ""; flex: none; width: .55em; height: .55em; background: var(--c, var(--paper));
}
.section-head p { font-size: var(--t-md); line-height: 1.5; color: #d6d5cf; max-width: var(--measure); }
.s-cyan { --c: var(--bar-cyan); }
.s-yellow { --c: var(--bar-yellow); }
.s-magenta { --c: var(--bar-magenta); }
.s-blue { --c: var(--bar-blue); }
h3 { font-size: var(--t-lg); font-weight: 700; letter-spacing: -.01em; }
.prose { display: grid; gap: 1rem; max-width: var(--measure); color: #d8d7d1; }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about figure { margin: 0; }
.about figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; filter: grayscale(.25) contrast(1.05); }
.about figcaption { font-size: var(--t-sm); color: var(--muted); margin-top: .6rem; }
.about h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.75rem); text-transform: uppercase; line-height: .92; margin-bottom: 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 2.25rem 0 0; border-top: 1px solid var(--rule); }
.facts div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--t-sm); color: var(--muted); }
.facts dd { margin: .15rem 0 0; font-weight: 600; font-size: var(--t-md); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about figure img { aspect-ratio: 1/1; max-height: 520px; } }

/* ---------- Broadcast ---------- */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.skill { border-top: 2px solid var(--bar-cyan); padding-top: 1rem; }
.skill h3 { font-size: var(--t-md); margin-bottom: .5rem; }
.skill p { font-size: .95rem; color: #c9c8c2; }
@media (max-width: 980px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .skills { grid-template-columns: 1fr; } }

/* Escaleta (trayectoria) */
.rundown-wrap { margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.rundown-wrap > h3 { margin-bottom: 1.25rem; }
.table-scroll { overflow-x: auto; }
.rundown { width: 100%; border-collapse: collapse; font-size: .975rem; min-width: 640px; }
.rundown th { text-align: left; font-size: var(--t-sm); font-weight: 600; color: var(--muted); padding: .6rem 1rem .6rem 0; border-bottom: 2px solid var(--bar-cyan); }
.rundown td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rundown td:first-child { font-family: var(--f-display); font-weight: 800; font-size: var(--t-lg); line-height: 1; width: 6.5rem; font-variant-numeric: tabular-nums; }
.rundown td:nth-child(2) { font-weight: 600; width: 34%; }
.rundown td:nth-child(3) { color: #c9c8c2; }
.rundown td:last-child { color: var(--muted); white-space: nowrap; }
.rundown tr.is-now td { background: rgba(31, 185, 198, .08); }
.rundown tr.is-now td:first-child { color: var(--bar-cyan); padding-left: .75rem; }
@media (max-width: 640px) {
  .rundown { min-width: 0; }
  .rundown thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rundown tr { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .rundown td { display: block; padding: 0; border: 0; width: auto !important; }
  .rundown td:first-child { grid-row: span 3; }
  .rundown td:nth-child(3) { margin-top: .25rem; }
  .rundown td:last-child { white-space: normal; font-size: var(--t-sm); margin-top: .25rem; }
  .rundown tr.is-now { background: rgba(31, 185, 198, .08); padding-inline: .75rem; }
  .rundown tr.is-now td { background: none; }
  .rundown tr.is-now td:first-child { padding-left: 0; }
}

/* Trabajo destacado */
.feature { margin-bottom: clamp(3.5rem, 7vw, 5rem) !important; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: 1.5rem; }
.feature img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.feature .prose h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; line-height: .95; }
.feature .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: var(--t-sm); color: var(--muted); }
.feature .meta b { color: var(--paper); font-weight: 600; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

.clients h3 { font-size: var(--t-md); font-weight: 600; color: var(--muted); margin-bottom: 1.25rem; }
.clients img { width: 100%; max-width: 1100px; opacity: .85; }

/* ---------- Música ---------- */
.releases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.release { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.release__cover { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.release h3 { font-family: var(--f-display); font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; margin-bottom: .4rem; }
.release p { color: #c9c8c2; font-size: .975rem; }
@media (max-width: 860px) { .releases { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .release { grid-template-columns: 8rem minmax(0, 1fr); } }

.listen { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.player {
  background: var(--panel); border-top: 6px solid var(--bar-yellow);
  min-height: 352px; display: grid; place-content: center; gap: 1rem; text-align: center; padding: 2rem 1.25rem;
}
.player.is-loaded { padding: 0; display: block; border-top: 0; background: transparent; }
.player iframe { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; }
.player p { color: var(--muted); font-size: var(--t-sm); max-width: 38ch; margin-inline: auto; }
.platforms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.platforms a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.platforms a span { color: var(--muted); font-weight: 400; font-size: var(--t-sm); }
.platforms a:hover { color: var(--bar-yellow); }
.collab { margin-top: clamp(3rem, 6vw, 4.5rem); position: relative; }
.collab img { width: 100%; aspect-ratio: 1400/474; object-fit: cover; }
.collab figcaption { margin-top: .75rem; font-size: var(--t-sm); color: var(--muted); }
.collab figcaption a { color: var(--paper); }
@media (max-width: 860px) { .listen { grid-template-columns: 1fr; } }

/* ---------- Escritura ---------- */
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.book-cover { margin: 0; max-width: 380px; width: 100%; }
.book-cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; box-shadow: 14px 14px 0 var(--bar-magenta); }
.tagline { font-size: var(--t-md); line-height: 1.5; color: var(--paper); border-left: 3px solid var(--bar-magenta); padding-left: 1rem; margin: 0; }
.tagline span { display: block; }
.book .prose h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.5rem, 6vw, 4.25rem); text-transform: uppercase; line-height: .88; color: var(--paper); }
.status { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--t-sm); font-weight: 600; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--magenta-text); }
@media (max-width: 820px) { .book { grid-template-columns: 1fr; } .book-cover { max-width: 300px; } }

/* ---------- Lab ---------- */
.lab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.lab article { display: grid; grid-template-rows: auto 1fr; background: var(--panel); }
.lab img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.lab .lab__body { padding: 1.25rem 1.25rem 1.5rem; display: grid; gap: .6rem; align-content: start; }
.lab h3 { font-size: var(--t-md); }
.lab p { font-size: .95rem; color: #c9c8c2; }
.lab a { color: var(--blue-text); font-weight: 600; font-size: var(--t-sm); }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
.contact h2 { font-family: var(--f-display); font-weight: 900; font-size: var(--t-xl); text-transform: uppercase; line-height: .9; margin-bottom: 1.25rem; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.mail output { font-size: var(--t-md); font-weight: 600; user-select: all; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.socials a { display: grid; padding: .8rem .5rem .8rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; font-size: .95rem; }
.socials a span { color: var(--muted); font-weight: 400; font-size: var(--t-sm); }
.socials a:hover { color: var(--bar-cyan); }

.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--paper); background: var(--panel);
  border: 1px solid var(--rule); border-radius: 2px; padding: .8rem .9rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--bar-cyan); box-shadow: 0 0 0 1px var(--bar-cyan); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bar-red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__note { font-size: var(--t-sm); color: var(--muted); }
.form__status { font-size: .95rem; font-weight: 600; min-height: 1.5em; }
.form__status.ok { color: var(--bar-green); }
.form__status.err { color: #ff7a85; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row, .socials { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.footer-bars { display: grid; grid-template-columns: repeat(7, 1fr); height: 6px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.75rem 2.25rem; font-size: var(--t-sm); color: var(--muted); padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px)); }
.site-footer a { color: var(--paper); }

/* ---------- Reel (diálogo) ---------- */
.reel { width: min(1100px, 94vw); padding: 0; border: 0; background: #000; color: var(--paper); }
.reel::backdrop { background: rgba(0,0,0,.86); }
.reel video { width: 100%; aspect-ratio: 16/9; background: #000; }
.reel__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .75rem; font-size: var(--t-sm); }
.reel__bar a { color: var(--muted); }
.reel__close { background: none; border: 1px solid var(--rule); color: var(--paper); font: 600 var(--t-sm)/1 var(--f-body); padding: .5rem .75rem; cursor: pointer; }

/* =========================================================
   EFECTOS: señal, monitores y onda
   ========================================================= */

/* Enlace a music europe en la navegación */
.nav .nav__europe { border: 1px solid var(--bar-yellow); color: var(--bar-yellow); padding: .35rem .65rem; border-radius: 2px; }
.nav .nav__europe:hover { background: var(--bar-yellow); color: #111; }
@media (max-width: 820px) { .nav .nav__europe { margin-top: .75rem; text-align: center; border-bottom: 1px solid var(--bar-yellow); } }

/* Líneas de barrido CRT + barra de "roll" muy suave */
.hero__scan {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: .55;
}
.hero__scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22%; top: -22%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.05), transparent);
  animation: roll 9s linear infinite;
}
@keyframes roll { to { top: 100%; } }

/* Corte de carta de ajuste a programa: desgarro de señal */
.hero.is-cutting .bars { z-index: 1; opacity: 1; animation: tear .5s steps(7) both; }
.hero.is-cutting .hero__media { opacity: 1; animation: lock .55s ease-out both; }
@keyframes tear {
  0%   { clip-path: inset(0 0 0 0); transform: none; filter: none; }
  20%  { clip-path: inset(10% 0 62% 0); transform: translateX(-6%); filter: hue-rotate(90deg); }
  40%  { clip-path: inset(48% 0 20% 0); transform: translateX(9%) skewX(-8deg); }
  60%  { clip-path: inset(70% 0 4% 0); transform: translateX(-12%); filter: saturate(3); }
  80%  { clip-path: inset(30% 0 55% 0); transform: translateX(4%); }
  100% { clip-path: inset(50% 0 50% 0); transform: none; opacity: 0; }
}
@keyframes lock {
  0%   { filter: contrast(2.2) saturate(0) brightness(1.6); transform: scale(1.04) translateY(-1.5%); }
  35%  { filter: contrast(1.4) saturate(2) hue-rotate(-30deg); transform: scale(1.02) translateY(.8%); }
  100% { filter: none; transform: none; }
}

/* Monitores de forma de onda y vectorscopio */
.scopes {
  position: absolute; z-index: 2; top: calc(5rem + env(safe-area-inset-top, 0px)); right: var(--gutter);
  display: flex; gap: .5rem; opacity: 0; transition: opacity .6s ease .3s;
}
.hero.is-live .scopes.is-on { opacity: 1; }
.scopes figure { margin: 0; background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.14); padding: .35rem .35rem .25rem; }
.scopes canvas { display: block; }
.scopes figcaption { font-size: .62rem; letter-spacing: .08em; color: #8fd9a0; margin-top: .2rem; }
@media (max-width: 980px) { .scopes { display: none; } }

/* Títulos que "enganchan" la señal */
.decoding { color: var(--paper); }
.decoding .glyph { color: var(--c, var(--bar-cyan)); }

/* Carrusel */
.carousel { position: relative; min-width: 0; }
.carousel__viewport { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; touch-action: pan-y; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 2.5rem 1rem .8rem;
  font-size: var(--t-sm); background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.slide.is-entering img { animation: slideTear .55s steps(8) both; }
.slide.is-entering::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0 46%, rgba(31,185,198,.55) 50%, transparent 54% 100%);
  background-size: 100% 220%; animation: sweep .55s ease-out both; mix-blend-mode: screen;
}
@keyframes slideTear {
  0%   { clip-path: inset(0 0 85% 0); transform: translateX(-5%); filter: saturate(3) hue-rotate(60deg); }
  25%  { clip-path: inset(30% 0 40% 0); transform: translateX(6%); }
  50%  { clip-path: inset(0 0 30% 0); transform: translateX(-2%); filter: contrast(1.6); }
  75%  { clip-path: inset(0 0 6% 0); transform: translateX(1%); }
  100% { clip-path: inset(0); transform: none; filter: none; }
}
@keyframes sweep { from { background-position: 0 100%; } to { background-position: 0 0; } }
.carousel__ui { display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: .5rem .75rem; margin-top: .75rem; }
.carousel__btn {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
}
.carousel__btn:hover { border-color: var(--bar-cyan); color: var(--bar-cyan); }
.carousel__count { font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: center; }
.carousel__count b { color: var(--paper); }
.carousel__progress { height: 2px; background: var(--rule); position: relative; overflow: hidden; }
.carousel__progress span { position: absolute; inset: 0; background: var(--bar-cyan); transform-origin: left; transform: scaleX(0); }
.carousel.is-playing .carousel__progress span { animation: fill var(--car-ms, 5500ms) linear forwards; }
.carousel.is-paused .carousel__progress span { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* Onda orgánica de la sección de música */
#musica { position: relative; isolation: isolate; overflow: hidden; }
.wave {
  position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: 420px; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}

/* Banner music europe */
.europe {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 1.5rem;
  padding: 1.1rem 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); text-decoration: none;
  background: var(--bar-yellow); color: #111;
}
.europe img { width: 96px; height: auto; }
.europe__text { display: grid; gap: .15rem; }
.europe__text strong { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; line-height: 1; }
.europe .btn { background: #111; color: var(--paper); }
.europe:hover .btn { background: #000; }
@media (max-width: 560px) { .europe { grid-template-columns: auto minmax(0, 1fr); } .europe .btn { grid-column: 1 / -1; justify-content: center; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media, .bars { transition: none; }
  .hero__scan::after, .hero.is-cutting .bars, .hero.is-cutting .hero__media,
  .slide.is-entering img, .slide.is-entering::after { animation: none !important; }
  .wave { display: none; }
}
