/* ══════════════════════════════════════════════════════════════════
   Red Dunes · «Cambia de canal» (1.0.0) · Motor5 ⇄ Canal5
   Banda negra a todo el ancho, con un 5 gigante en filete al fondo (el número que
   comparten las dos marcas), la pantalla con el rótulo del canal y el mando, y la
   guía de seis noticias. .dr--tv (Canal5 en Motor5): líneas de barrido en la
   pantalla. .dr--road (Motor5 en Canal5): las rayas de la carretera que corren
   bajo la pantalla.
   ══════════════════════════════════════════════════════════════════ */
.dr {
    --dr-bg: #0B0B0C; --dr-2: #141417; --dr-3: #1E1E22; --dr-red: #FF2424; --dr-line: rgba(255, 255, 255, .1);
    --dr-ease: cubic-bezier(.2, .8, .2, 1); --dr-skew: -12deg;
    position: relative; overflow: hidden; isolation: isolate;
    margin: 56px calc(50% - 50vw) 0; padding: 64px 0 60px;
    background:
        radial-gradient(900px 420px at 88% 105%, rgba(255, 36, 36, .22), transparent 62%),
        radial-gradient(700px 360px at 4% -10%, rgba(255, 255, 255, .06), transparent 60%),
        var(--dr-bg);
    color: #fff; font-family: 'Inter', system-ui, sans-serif;
}
.dr *, .dr *::before, .dr *::after { box-sizing: border-box; }
.dr a { color: inherit; text-decoration: none !important; }
.dr__in { position: relative; z-index: 1; max-width: 1224px; margin: 0 auto; padding: 0 28px; }
/* el 5 gigante, en filete */
.dr__five {
    position: absolute; z-index: 0; right: -2vw; top: 50%; transform: translateY(-50%) skewX(var(--dr-skew));
    font: 900 min(46vw, 640px)/.78 'Inter', sans-serif; letter-spacing: -.06em;
    color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .06); pointer-events: none; user-select: none;
}

/* ── Cabecera ── */
.dr__h { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--dr-line); }
.dr__brand { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dr__eye { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.dr__eye i { width: 22px; height: 2px; border-radius: 2px; background: var(--dr-red); }
.dr__logo { display: inline-block; line-height: 0; }
.dr .dr__logo img { display: block; width: auto !important; height: 52px !important; max-width: none !important; margin: 0 !important; }
.dr__tag { margin: 0; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.dr__cta { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 10px; background: #fff; color: #0B0B0C !important; font-size: 14px; font-weight: 900; letter-spacing: -.1px; overflow: hidden; transition: transform .25s var(--dr-ease), box-shadow .25s var(--dr-ease); }
.dr__cta::before { content: ""; position: absolute; inset: 0; background: var(--dr-red); transform: translateX(-101%); transition: transform .35s var(--dr-ease); }
.dr__cta > * { position: relative; }
.dr__cta:hover { color: #fff !important; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(255, 36, 36, .8); }
.dr__cta:hover::before { transform: none; }
.dr__cta svg { transition: transform .25s var(--dr-ease); }
.dr__cta:hover svg { transform: translate(2px, -2px); }

/* ── Rejilla: pantalla + guía ── */
.dr__g { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 34px; align-items: start; }

/* ── La pantalla ── */
.dr__tv { min-width: 0; }
.dr__scr {
    position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 7px var(--dr-2), 0 0 0 8px rgba(255, 255, 255, .06), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.dr__sl { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .35s var(--dr-ease), visibility 0s .35s; }
.dr__sl.is-on { opacity: 1; visibility: visible; transition: opacity .35s var(--dr-ease); }
.dr__sl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6.5s linear; }
.dr__sl.is-on img { transform: scale(1.1); }
.dr__sl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .86) 100%); }
/* rótulo del canal, como el de la tele al cambiar */
.dr__osd { position: absolute; z-index: 2; top: 16px; left: 18px; display: inline-flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.dr__osd b { font-size: 12px; font-weight: 900; letter-spacing: 2.4px; }
.dr__osd em { font-style: normal; font-size: 28px; font-weight: 900; letter-spacing: -1px; color: #fff; }
.dr__live { position: absolute; z-index: 2; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 6px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); font-size: 10.5px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.dr__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--dr-red); animation: dr-pulse 1.6s ease-out infinite; }
@keyframes dr-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 36, 36, .7); } 100% { box-shadow: 0 0 0 9px rgba(255, 36, 36, 0); } }
.dr__cap { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 9px; }
.dr__t { font-size: 25px; font-weight: 900; line-height: 1.13; letter-spacing: -.7px; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dr__ago { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .62); }
.dr__sl:hover .dr__t { text-decoration: underline; text-decoration-color: var(--dr-red); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* etiquetas: sección y plataforma */
.dr__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.dr-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase; color: #fff; white-space: nowrap; }
.dr-chip i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); transform: skewX(var(--dr-skew)); flex: 0 0 auto; }
.dr-chip--pf { color: rgba(255, 255, 255, .78); letter-spacing: .4px; text-transform: none; font-size: 11.5px; font-weight: 800; }
.dr__chips small { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .45); letter-spacing: 0; }

/* interferencia al cambiar de canal */
.dr__noise {
    position: absolute; inset: -20%; z-index: 4; opacity: 0; pointer-events: none; mix-blend-mode: screen;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px;
}
.dr__scr.is-zap .dr__noise { animation: dr-zap .34s steps(6) both; }
.dr__scr.is-zap .dr__sl.is-on { animation: dr-roll .34s var(--dr-ease) both; }
@keyframes dr-zap { 0% { opacity: .9; transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -3%); } 60% { opacity: .6; transform: translate(-3%, 6%); } 80% { transform: translate(4%, 2%); } 100% { opacity: 0; transform: translate(0, 0); } }
@keyframes dr-roll { 0% { filter: brightness(2.2) contrast(.6) saturate(0); transform: scaleY(.92); } 55% { filter: brightness(1.3) saturate(.6); transform: scaleY(1.01); } 100% { filter: none; transform: none; } }

/* Canal5 en Motor5: líneas de barrido de la tele */
.dr--tv .dr__scr::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px); }
/* Motor5 en Canal5: las rayas de la carretera bajo la pantalla */
.dr--road .dr__scr::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .9) 0 34px, transparent 34px 64px); background-size: 64px 4px; animation: dr-road 1.1s linear infinite; opacity: .85; }
@keyframes dr-road { to { background-position: -64px 0; } }

/* ── El mando ── */
.dr__remote { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.dr__ch { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: var(--dr-2); color: #fff; font: 900 11.5px/1 'Inter', sans-serif; letter-spacing: 1.6px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--dr-ease); }
.dr__ch:hover { background: var(--dr-red); border-color: var(--dr-red); transform: translateY(-1px); }
.dr__ch:active { transform: scale(.96); }
.dr__dots { flex: 1 1 auto; display: flex; gap: 6px; }
.dr__dots i { position: relative; flex: 1 1 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.dr__dots i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.dr__dots i.is-done::after { transform: scaleX(1); background: rgba(255, 255, 255, .5); }
.dr__dots i.is-on::after { background: var(--dr-red); animation: dr-fill var(--dr-t, 6s) linear both; }
.dr.is-paused .dr__dots i.is-on::after { animation-play-state: paused; }
@keyframes dr-fill { to { transform: scaleX(1); } }

/* ── La guía ── */
.dr__guide { list-style: none; margin: 0; padding: 0; counter-reset: none; border-top: 1px solid var(--dr-line); }
.dr__guide li { border-bottom: 1px solid var(--dr-line); }
.dr__guide a { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; padding: 15px 8px 15px 0; transition: background .2s; }
.dr__n { font-size: 26px; font-weight: 900; letter-spacing: -1.2px; line-height: 1; color: rgba(255, 255, 255, .22); font-variant-numeric: tabular-nums; transform: skewX(var(--dr-skew)); transition: color .25s; }
.dr__gx { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.dr__gx b { font-size: 15.5px; font-weight: 800; line-height: 1.28; letter-spacing: -.25px; color: rgba(255, 255, 255, .86); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.dr__bar { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; overflow: hidden; }
.dr__bar i { display: block; height: 100%; width: 100%; background: var(--dr-red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--dr-ease); }
.dr__guide li.is-on .dr__n, .dr__guide a:hover .dr__n { color: var(--dr-red); }
.dr__guide li.is-on .dr__gx b, .dr__guide a:hover .dr__gx b { color: #fff; }
.dr__guide li.is-on .dr__bar i { transform: scaleX(1); }

/* entrada al aparecer */
.dr.is-in .dr__h, .dr.is-in .dr__tv, .dr.is-in .dr__guide li { animation: dr-up .7s var(--dr-ease) both; }
.dr.is-in .dr__tv { animation-delay: .08s; }
.dr.is-in .dr__guide li:nth-child(1) { animation-delay: .14s; } .dr.is-in .dr__guide li:nth-child(2) { animation-delay: .19s; } .dr.is-in .dr__guide li:nth-child(3) { animation-delay: .24s; }
.dr.is-in .dr__guide li:nth-child(4) { animation-delay: .29s; } .dr.is-in .dr__guide li:nth-child(5) { animation-delay: .34s; } .dr.is-in .dr__guide li:nth-child(6) { animation-delay: .39s; }
@keyframes dr-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Tableta ── */
@media (max-width: 1024px) {
    .dr__g { grid-template-columns: 1fr; gap: 26px; }
    .dr__five { font-size: 80vw; right: -14vw; top: 30%; }
}

/* ── Móvil ── */
.dr--m { margin: 32px 0 0; padding: 34px 0 30px; }
.dr--m .dr__in { padding: 0 16px; }
.dr--m .dr__h { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 20px; padding-bottom: 18px; }
.dr--m .dr__logo img { height: 38px !important; }
.dr--m .dr__tag { font-size: 13.5px; }
.dr--m .dr__cta { height: 40px; padding: 0 16px; font-size: 13px; }
.dr--m .dr__scr { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 5px var(--dr-2), 0 0 0 6px rgba(255, 255, 255, .06); }
.dr--m .dr__osd { top: 12px; left: 13px; } .dr--m .dr__osd em { font-size: 22px; }
.dr--m .dr__live { top: 12px; right: 12px; font-size: 9.5px; padding: 4px 7px; }
.dr--m .dr__cap { left: 14px; right: 14px; bottom: 13px; gap: 6px; }
.dr--m .dr__t { font-size: 18px; letter-spacing: -.4px; -webkit-line-clamp: 3; }
.dr--m .dr__remote { margin-top: 16px; }
.dr--m .dr__ch { height: 36px; padding: 0 12px; }
.dr--m .dr__guide { margin-top: 6px; }
.dr--m .dr__guide a { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 13px 0; }
.dr--m .dr__n { font-size: 21px; }
.dr--m .dr__gx b { font-size: 14.5px; }
.dr--m .dr__five { font-size: 120vw; right: -30vw; top: 22%; }

@media (prefers-reduced-motion: reduce) {
    .dr__sl img, .dr__sl.is-on img { transition: none; transform: none; }
    .dr__scr.is-zap .dr__noise, .dr__scr.is-zap .dr__sl.is-on, .dr--road .dr__scr::after, .dr__live i, .dr.is-in * { animation: none !important; }
}

/* ── Atajos a las herramientas de la otra web ── */
.dr__tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px; }
.dr__tools-h { grid-column: 1 / -1; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.dr__tools a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--dr-line); border-radius: 10px; background: rgba(255, 255, 255, .03); font-size: 13.5px; font-weight: 800; letter-spacing: -.15px; transition: border-color .2s, background .2s, transform .2s var(--dr-ease); }
.dr__tools em { font-style: normal; font-size: 11px; font-weight: 900; color: var(--dr-red); font-variant-numeric: tabular-nums; }
.dr__tools svg { color: rgba(255, 255, 255, .45); transition: transform .2s var(--dr-ease), color .2s; }
.dr__tools a:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
.dr__tools a:hover svg { color: #fff; transform: translate(2px, -2px); }
.dr--m .dr__tools { margin-top: 20px; }
.dr--m .dr__tools a { min-height: 48px; padding: 9px 11px; font-size: 12.5px; gap: 8px; }
/* móvil: pantalla, mando, guía y, al final, los atajos */
.dr--m .dr__g { gap: 0; }
.dr--m .dr__tv { display: contents; }
.dr--m .dr__scr { order: 1; } .dr--m .dr__remote { order: 2; } .dr--m .dr__guide { order: 3; margin-top: 18px; } .dr--m .dr__tools { order: 4; }
