/* Centro de Ayuda (/help): opciones junto a los dispositivos + ventana de video.
   Las pestañas y los dispositivos usan download-devices.css. */

/* ---------- Panel de opciones (columna derecha) ---------- */
.tu-panel {
    position: relative;
    padding: 1.8rem 1.6rem 1.6rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 255, 255, 0.1), transparent 55%),
        rgba(5, 12, 20, 0.88);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

.tu-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #7ff;
}
.tu-panel-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #00ffff; box-shadow: 0 0 8px #00ffff; }

.tu-panel h3 {
    margin: 0.6rem 0 0.2rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}
.tu-panel > p {
    margin: 0 0 1.2rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.58);
}

.tu-ops { display: flex; flex-direction: column; gap: 0.65rem; }

.tu-op {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.025);
    text-align: left;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.dv-panel.in .tu-op { animation: tuOpIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: calc(0.45s + var(--i) * 90ms); }
@keyframes tuOpIn { to { opacity: 1; transform: none; } }

.tu-op:hover {
    border-color: rgba(0, 255, 255, 0.55);
    background: rgba(0, 255, 255, 0.06);
    box-shadow: 0 0 22px rgba(0, 255, 255, 0.12);
}
.tu-op:focus-visible { outline: 2px solid #00ffff; outline-offset: 3px; }

.tu-op-ico {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    background: rgba(0, 255, 255, 0.08);
    color: #00ffff;
}
.tu-op-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tu-op-txt { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.tu-op-titulo { font-family: 'Orbitron', monospace; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.4px; color: #fff; }
.tu-op-sub { font-family: 'Rajdhani', sans-serif; font-size: 0.92rem; line-height: 1.3; color: rgba(255, 255, 255, 0.55); }

.tu-op-play {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #00ffff;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.45);
    transition: transform 0.25s ease;
}
.tu-op-play svg { width: 15px; height: 15px; margin-left: 2px; fill: #021015; }
.tu-op-play.pronto { background: rgba(0, 255, 255, 0.15); box-shadow: none; }
.tu-op-play.pronto svg { fill: #7ff; }
.tu-op:hover .tu-op-play { transform: scale(1.1); }

.tu-op-meta {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0.35rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(0, 255, 255, 0.75);
}

/* ---------- Soporte ---------- */
.tu-soporte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 1180px;
    margin: 3.5rem auto 0;
    padding: 1.3rem 1.6rem;
    border-radius: 16px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    background: linear-gradient(100deg, rgba(37, 211, 102, 0.08), rgba(5, 12, 20, 0.85) 60%);
}
.tu-soporte h3 { margin: 0 0 0.2rem; font-family: 'Orbitron', monospace; font-size: 0.95rem; color: #fff; }
.tu-soporte p { margin: 0; font-family: 'Rajdhani', sans-serif; font-size: 1rem; color: rgba(255, 255, 255, 0.6); }
.tu-soporte-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding: 0.75rem 1.2rem;
    border-radius: 10px;
    background: #25d366;
    color: #04210f;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tu-soporte-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tu-soporte-btn:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(37, 211, 102, 0.45); }

/* ---------- Ventana del video ---------- */
html.tv-bloqueo { overflow: hidden; }

.tv-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tv-overlay.activo { opacity: 1; }

.tv-modal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    width: min(1180px, 100%);
    max-height: calc(100dvh - 2.5rem);
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    background: #050b11;
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.12), 0 40px 90px rgba(0, 0, 0, 0.7);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tv-overlay.activo .tv-modal { transform: none; }

.tv-x {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tv-x svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tv-x:hover { border-color: #00ffff; background: rgba(0, 255, 255, 0.15); }
.tv-x:focus-visible { outline: 2px solid #00ffff; outline-offset: 2px; }

.tv-main { overflow-y: auto; min-width: 0; }

.tv-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}
.tv-player iframe, .tv-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tv-portada {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    border: 0;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.14), #000 70%) center / cover no-repeat;
    cursor: pointer;
}
.tv-portada::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); transition: background 0.2s ease; }
.tv-portada:hover::before { background: rgba(0, 0, 0, 0.15); }
.tv-play {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.95);
    box-shadow: 0 0 0 12px rgba(0, 255, 255, 0.18), 0 0 46px rgba(0, 255, 255, 0.6);
    transition: transform 0.25s ease;
}
.tv-play svg { width: 32px; height: 32px; margin-left: 5px; fill: #021015; }
.tv-portada:hover .tv-play { transform: scale(1.08); }
.tv-portada:focus-visible { outline: 3px solid #00ffff; outline-offset: -6px; }

.tv-vacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    background:
        linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
        radial-gradient(circle at 50% 42%, rgba(0, 255, 255, 0.16), transparent 60%),
        #02070b;
}
.tv-vacio-orbe { position: relative; flex: 0 0 auto; width: 76px; height: 76px; margin-bottom: 0.7rem; }
.tv-vacio-orbe::before, .tv-vacio-orbe i { content: ''; position: absolute; border-radius: 50%; }
.tv-vacio-orbe::before {
    inset: 0;
    border: 10px solid rgba(0, 240, 232, 0.85);
    box-shadow: 0 0 28px rgba(0, 240, 232, 0.7), inset 0 0 14px rgba(0, 255, 245, 0.8);
    animation: tvLatido 3s ease-in-out infinite;
}
.tv-vacio-orbe i { inset: -13px; border: 2px dashed rgba(0, 255, 255, 0.4); animation: tvGiro 16s linear infinite; }
.tv-vacio strong { font-family: 'Orbitron', monospace; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.tv-vacio > span:last-child { font-family: 'Rajdhani', sans-serif; font-size: 0.98rem; color: rgba(255, 255, 255, 0.55); }
@keyframes tvGiro { to { transform: rotate(360deg); } }
@keyframes tvLatido {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 232, 0.55), inset 0 0 10px rgba(0, 255, 245, 0.7); }
    50% { box-shadow: 0 0 36px rgba(0, 240, 232, 0.95), inset 0 0 16px rgba(0, 255, 245, 1); }
}

.tv-info { padding: 1.3rem 1.5rem 1.5rem; }
.tv-kicker { font-family: 'Orbitron', monospace; font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #7ff; }
.tv-info h3 { margin: 0.4rem 0 0.25rem; font-family: 'Orbitron', monospace; font-size: 1.3rem; font-weight: 800; color: #fff; }
.tv-resumen { margin: 0 0 1rem; font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; color: rgba(255, 255, 255, 0.62); }

.tv-breve {
    counter-reset: tvp;
    list-style: none;
    margin: 0;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}
.tv-breve li {
    counter-increment: tvp;
    display: flex;
    gap: 0.7rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}
.tv-breve li::before {
    content: counter(tvp);
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.1);
    font-family: 'Orbitron', monospace;
    font-size: 0.68rem;
    font-weight: 800;
    color: #00ffff;
}
.tv-breve b { color: #fff; }

.tv-enlaces { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.tv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    border-radius: 9px;
    border: 1px solid rgba(0, 255, 255, 0.45);
    background: rgba(0, 255, 255, 0.1);
    font-family: 'Orbitron', monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #00ffff;
    transition: all 0.2s ease;
}
.tv-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tv-btn:hover { background: #00ffff; color: #021015; box-shadow: 0 0 18px rgba(0, 255, 255, 0.45); }

/* Lista lateral (como "a continuación" de YouTube) */
.tv-lista {
    overflow-y: auto;
    padding: 3.6rem 1rem 1rem;
    border-left: 1px solid rgba(0, 255, 255, 0.12);
    background: #03080d;
}
.tv-lista h4 {
    margin: 0 0 0.8rem 0.3rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.tv-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    margin-bottom: 0.4rem;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.tv-item:hover { background: rgba(255, 255, 255, 0.04); }
.tv-item.activo { background: rgba(0, 255, 255, 0.07); border-color: rgba(0, 255, 255, 0.35); }
.tv-item:focus-visible { outline: 2px solid #00ffff; outline-offset: 1px; }
.tv-item-mini {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 92px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    background: radial-gradient(circle, rgba(0, 255, 255, 0.16), #02070b 75%);
    color: #00ffff;
}
.tv-item-mini svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tv-item-mini em {
    position: absolute;
    bottom: 3px;
    right: 3px;
    padding: 0 0.3rem;
    border-radius: 3px;
    background: #00ffff;
    font-family: 'Rajdhani', sans-serif;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    color: #021015;
}
.tv-item-txt { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.tv-item-txt b { font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-weight: 700; line-height: 1.25; color: #fff; }
.tv-item-txt span { font-family: 'Rajdhani', sans-serif; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .tv-modal { grid-template-columns: 1fr; overflow-y: auto; }
    .tv-main { overflow: visible; }
    .tv-lista { overflow: visible; padding: 1rem; border-left: 0; border-top: 1px solid rgba(0, 255, 255, 0.12); }
}

@media (max-width: 640px) {
    .tu-panel { padding: 1.3rem 1rem 1.1rem; border-radius: 16px; }
    .tu-panel h3 { font-size: 1.1rem; }
    .tu-op { padding: 0.75rem 0.8rem; column-gap: 0.7rem; }
    .tu-op-ico { width: 40px; height: 40px; }
    .tu-op-titulo { font-size: 0.74rem; }
    .tu-op-sub { font-size: 0.85rem; }
    .tu-op-play { width: 34px; height: 34px; }
    .tu-soporte { flex-direction: column; align-items: flex-start; margin-top: 2.5rem; }
    .tv-overlay { padding: 0; place-items: stretch; }
    .tv-modal { max-height: 100dvh; border-radius: 0; border: 0; }
    .tv-x { top: 8px; right: 8px; }
    .tv-info { padding: 1rem 1rem 1.2rem; }
    .tv-info h3 { font-size: 1.1rem; }
    .tv-play { width: 64px; height: 64px; }
    .tv-play svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .tu-op { opacity: 1; transform: none; }
    .dv-panel.in .tu-op { animation: none; }
    .tv-overlay, .tv-modal { transition: none; }
    .tv-vacio-orbe::before, .tv-vacio-orbe i { animation: none; }
}
