/* ── CNN INTERRUPCIÓN DE SEÑAL — Panamá 1989 ── */

.cnn-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cnn-overlay.open {
    display: flex;
}

/* FASE 1: estático */
.cnn-static {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0;
    animation: staticFlash 0.8s steps(1) forwards;
}

@keyframes staticFlash {
    0%   { opacity: 1; background-position: 0 0; }
    10%  { background-position: -50px 20px; }
    20%  { background-position: 30px -40px; opacity: 1; }
    30%  { background-position: -20px 60px; }
    40%  { background-position: 70px -10px; opacity: 0.8; }
    50%  { background-position: -60px 30px; }
    60%  { background-position: 10px -70px; opacity: 1; }
    70%  { background-position: -80px 50px; }
    80%  { background-position: 40px -20px; opacity: 0.6; }
    90%  { background-position: -30px 80px; opacity: 0; }
    100% { opacity: 0; }
}

/* FASE 2: barras de color */
.cnn-bars {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    animation: barsAppear 0.4s ease 0.8s forwards, barsDisappear 0.4s ease 1.8s forwards;
}

.cnn-bars .bar {
    flex: 1;
    height: 100%;
}

@keyframes barsAppear {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes barsDisappear {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* FASE 3: mensaje */
.cnn-message {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    opacity: 0;
    animation: msgAppear 0.6s ease 2.2s forwards;
    text-align: center;
    padding: 40px;
    max-width: 700px;
}

@keyframes msgAppear {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cnn-logo {
    font-family: 'Share Tech Mono', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #c1121f;
    letter-spacing: 0.15em;
    border: 4px solid #c1121f;
    padding: 4px 20px;
    line-height: 1;
    animation: logoBlink 1.2s steps(1) infinite 2.2s;
}

@keyframes logoBlink {
    0%, 100% { border-color: #c1121f; color: #c1121f; }
    50%       { border-color: #fff; color: #fff; }
}

.cnn-breaking {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: #aaa;
    text-transform: uppercase;
}

.cnn-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.9;
    border-left: 2px solid #c1121f;
    padding-left: 20px;
    text-align: left;
}

.cnn-text .blink {
    animation: textBlink 1s steps(1) infinite;
}

@keyframes textBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.cnn-redirect {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: #666;
    letter-spacing: 0.2em;
    margin-top: 8px;
}

/* scanline global sobre todo */
.cnn-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 20;
}