/* ==========================
   PALETA Y TEMAS
========================== */

body[data-theme="light"] {
    --bg-body: #f5f4fb;
    --bg-card: #ffffff;
    --bg-header: #ff3b6b;
    --bg-topbar: #c2185b;
    --bg-footer: #1b1b1f;
    --text-main: #222;
    --text-invert: #ffffff;
    --accent: #ff9f1c;
}

body[data-theme="dark"] {
    --bg-body: #14121f;
    --bg-card: #1f1b2e;
    --bg-header: #e91e63;
    --bg-topbar: #880e4f;
    --bg-footer: #000000;
    --text-main: #f5f5f5;
    --text-invert: #ffffff;
    --accent: #ffcc00;
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ==========================
   TOP BAR
========================== */
.top-bar {
    background: var(--bg-topbar);
    color: var(--text-invert);
    padding: 6px 0;
    font-size: 0.9rem;
}

/* ==========================
   NAVBAR
========================== */
.navbar-main {
    background: linear-gradient(90deg, #ff3b6b, #ff7a3c);
}

.navbar-main .navbar-brand .logo-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.navbar-main .logo-subtitle {
    font-size: 0.75rem;
    color: #ffe1ef;
}

/* ==========================
   BANNER ANIMADO
========================== */
.banner-animado {
    background: linear-gradient(90deg, #ff3b6b, #ff7a3c, #ffcc00);
    color: #fff;
    padding: 6px 0;
    overflow: hidden;
    position: relative;
}

.banner-texto {
    white-space: nowrap;
    animation: ticker 18s linear infinite;
    font-size: 0.95rem;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==========================
   SLIDER PORTAL
========================== */
.portal-slider {
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.slider-img {
    max-height: 380px;
    object-fit: cover;
}

/* ==========================
   COLUMNAS PORTAL
========================== */
.portal-column {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.seccion-titulo {
    font-weight: 700;
    color: #ff3b6b;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

/* Bloques provenientes del backend */
.bloque {
    margin-bottom: 20px;
}

.bloque h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.bloque img {
    width: 100%;
    max-width: 25px;
    border-radius: 12px;
    margin: 8px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Tarjetas de publicidad y noticias */
.card-anuncio {
    border-radius: 18px;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    background: var(--bg-card);
}

/* ===========================================
   TARJETAS DE PUBLICIDAD DE ALTURA FIJA
   =========================================== */
.card-anuncio {
    height: 320px; /* puedes ajustar 280 / 300 / 350 */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

/* Contenedor fijo para imágenes */
.card-anuncio .img-container {
    width: 100%;
    height: 150px; /* altura fija del área visual */
    overflow: hidden;
    border-radius: 12px;
    margin: 8px 0;
}

/* Imagen recortada sin deformarse */
.card-anuncio .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* mantiene proporción y recorta suavemente */
    object-position: center; /* centra la imagen */
}

/* Zona del texto */
.card-anuncio .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}




.card-noticia {
    border-radius: 18px;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

.badge-publicidad {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: rgba(255,59,107,0.08);
    color: #ff3b6b;
    border-radius: 999px;
    padding: 4px 10px;
}
/* Fin Bloques provenientes del backend */



/* ==========================
   PANEL INFERIOR
========================== */
.portal-bottom {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* ==========================
   FOOTER
========================== */
.footer-main {
    background: var(--bg-footer);
    color: var(--text-invert);
    padding: 5px 0;
    /*padding: 25px 0;*/
    margin-top: 10px;
    /*margin-top: 20px;*/
    margin-bottom: 15px;
}

/* ============================
   REPRODUCTOR MIX RADIO PARANÁ
   ============================ */

#mrp-player {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    max-width: 960px;
    height: 70px;
    border-radius: 999px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

#mrp-player .mrp-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #111827 0%, #020617 60%, #111827 100%);
    opacity: 0.90;
}

#mrp-player .mrp-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Logo + texto */
.mrp-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.mrp-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.8);
}

.mrp-text {
    line-height: 1.15;
}

.mrp-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.mrp-live {
    font-size: 0.82rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mrp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.9);
    animation: mrp-pulse 1.5s infinite;
}

@keyframes mrp-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Botón play/pause */
.mrp-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: #ef4444;
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.mrp-btn:hover {
    background: #f97316;
    transform: scale(1.05);
}

/* Volumen */
.mrp-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e5e7eb;
    margin-left: auto;
}

.mrp-volume i {
    font-size: 1rem;
}

.mrp-volume input[type="range"] {
    width: 110px;
    accent-color: #ef4444;
}

/* Botón WhatsApp */
.mrp-wa {
    background: #22c55e;
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    transition: background .2s, transform .1s;
}

.mrp-wa:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    #mrp-player {
        height: 62px;
    }
    .mrp-logo {
        display: none;
    }
    .mrp-title {
        font-size: 0.9rem;
    }
    .mrp-live {
        display: none;
    }
    .mrp-volume input[type="range"] {
        width: 80px;
    }
}

@media (max-width: 520px) {
    .mrp-volume {
        display: none;
    }
    .mrp-wa {
        display: none !important;
    }
    .mrp-content {
        justify-content: space-between;
    }
}
/* ============================
   REPRODUCTOR MIX RADIO PARANÁ
   ============================ */

/* ===== REPRODUCTOR FLOTANTE - ESTE ESTÁ ROTO NO USAR POR LAS DUDAS ===== */
/* ================= PLAYER DISNEY 2024 – MIX RADIO PREMIUM ================= */

.mix-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    height: 90px;
    padding: 15px 22px;

    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-top: 3px solid #ff0055;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-family: 'Segoe UI', sans-serif;
    z-index: 999999;

    transition: transform .35s ease;
    transform: translateY(100%);
}

.mix-player.visible {
    transform: translateY(0);
}

/* IZQUIERDA */
.mix-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mix-cover {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid #ff0055;

    transition: transform .3s ease, box-shadow .3s ease;
}

.mix-playing .mix-cover {
    box-shadow: 0 0 12px rgba(255,0,85,0.38);
    transform: scale(1.02);
}

/* TEXTO */
.mix-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.mix-title, .mix-now {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
}

.mix-title {
    font-size: 19px;
    font-weight: 700;
    color: #ff0055;
}

.mix-now {
    font-size: 14px;
    color: #444;
    margin-top: 3px;
}

/* BARRA SUAVE PROGRESO */
.mix-progress {
    width: 55vw;
    height: 3px;
    background: rgba(0,0,0,0.08);
    border-radius: 30px;
    overflow: hidden;
    margin-top: 6px;
    display: none;
}

.mix-progress-fill {
    height: 100%;
    width: 0%;
    background: #ff0055;
    transition: width 0.5s linear;
}

.mix-playing .mix-progress {
    display: block;
}

/* BOTÓN */
.mix-btn {
    width: 60px;
    height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    border: none;

    background: #ff0055;
    cursor: pointer;
    transition: transform .2s ease, background .25s, box-shadow .3s;
}

.mix-btn:active {
    transform: scale(.88);
}

.mix-playing .mix-btn {
    animation: playPulse 2.5s ease-in-out infinite;
}

@keyframes playPulse {
    0% { box-shadow: 0 0 0 rgba(255,0,85,0.3); }
    50% { box-shadow: 0 0 15px rgba(255,0,85,0.6); }
    100% { box-shadow: 0 0 0 rgba(255,0,85,0.3); }
}

.mix-btn i {
    font-size: 34px;
    color: #fff;
}

/* IFRAMME OCULTO */
.mix-frame-hidden {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    border: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {

    .mix-player {
        height: 80px;
        padding: 10px 14px;
    }

    .mix-cover {
        width: 48px;
        height: 48px;
    }

    .mix-title {
        font-size: 16px;
    }

    .mix-now {
        font-size: 12px;
    }

    .mix-btn {
        width: 52px;
        height: 52px;
    }

    .mix-btn i {
        font-size: 30px;
    }

    .mix-progress {
        max-width: 40vw;
    }
}

/* ================= EXPANDABLE BODY ================= */

.rd-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all .35s ease;
}

/* AL EXPANDIR */
.rd-player.expanded .rd-body {
    max-height: 420px;
    opacity: 1;
    padding-top: 15px;
    transform: translateY(0);
}

/* EXPAND BUTTON */
.rd-expand-btn {
    margin: 0 auto;
    margin-top: 10px;
    border: none;
    background: transparent;
    color: #ff0055;
    font-size: 26px;
    cursor: pointer;
    transition: transform .25s;
}

.rd-expand-btn:active {
    transform: scale(0.9);
}

body[data-theme="dark"] .rd-expand-btn {
    color: #ff66aa;
}

/* Mobile Compact */
@media (max-width: 600px) {
    .rd-cover {
        width: 56px !important;
        height: 56px !important;
    }

    .rd-btn {
        width: 52px;
        height: 52px;
    }

    .rd-title {
        font-size: 18px;
    }

    .rd-now {
        font-size: 13px;
    }
}

/* ===== FIN REPRODUCTOR FLOTANTE ===== */


/* ==========================
   PLAYER FLOTANTE
========================== */
.player-flotante {
    position: fixed;
    bottom: 15px;
    right: 15px;
    left: 15px;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 18px;
    padding: 10px 16px;
    z-index: 1050;
    border: 2px solid rgba(255,255,255,0.5);
}

.player-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    background: #fff;
}

.player-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.player-subtitle {
    font-size: 0.8rem;
    color: #888;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
    .portal-slider {
        border-radius: 0;
    }
    .player-flotante {
        border-radius: 0;
        right: 0;
        left: 0;
        max-width: 100%;
    }
}

/* $$================
 ESTO ES UN EXTRA PARA HACER QUE REPRODUCTOR SEA FLOTANTE
=============== */ 
.player-flotante {
    position: fixed;
    bottom: 15px;
    right: 15px;
    left: 15px;
    max-width: 520px;
    margin: 0 auto;
    background: linear-gradient(90deg, #1db954, #ff3b6b);
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    z-index: 1050;
    display: flex;
    align-items: center;
}

.player-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    object-fit: cover;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.player-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.player-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

.player-bar {
    width: 140px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 999px;
    overflow: hidden;
}

.player-bar-fill {
    width: 40%;
    height: 100%;
    background: #fff;
    border-radius: 999px;
    animation: barMove 3s infinite alternate;
}

@keyframes barMove {
    0% { width: 10%; }
    100% { width: 90%; }
}

@media (max-width: 768px) {
    .player-flotante {
        border-radius: 0;
        left: 0;
        right: 0;
        max-width: 100%;
    }
}

/* ##################### OTRO TOQUE MÁS################################ */

/* Neon hover en títulos de sección */
.seccion-titulo {
    position: relative;
}

.seccion-titulo::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff3b6b, #ff9f1c);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(255,63,111,0.7);
}

/* Glow en hover sobre cards */
.portal-column:hover {
    box-shadow: 0 0 25px rgba(255,63,111,0.35);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    transform: translateY(-2px);
}

/* Glow en el slider */
.portal-slider {
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

/* -------------------------------------------------------------------------------------------------- */

//* ==========================================================
   PLAYER MIX RADIO PARANÁ — ESTILO DISNEY 2024 (PREMIUM)
   ========================================================== */

.mix-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    height: 90px;
    padding: 15px 22px;

    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-top: 3px solid #ff0055;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-family: 'Segoe UI', sans-serif;
    z-index: 999999;

    transition: transform .35s ease;
    transform: translateY(100%);
}

.mix-player.visible {
    transform: translateY(0);
}

/* MINI PLAYER */
.mix-player.mini {
    height: 72px;
    padding: 10px 16px;
}



/* ==========================================================
   SECCIÓN IZQUIERDA
   ========================================================== */

.mix-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mix-cover {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid #ff0055;

    transition: transform .3s ease, box-shadow .3s ease;
}

.mix-player.mini .mix-cover {
    width: 48px;
    height: 48px;
}

.mix-playing .mix-cover {
    transform: scale(1.02);
}



/* ==========================================================
   TEXTO Y AHORA SUENA
   ========================================================== */

.mix-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.mix-title,
.mix-now {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
}

.mix-title {
    font-size: 19px;
    font-weight: 700;
    color: #ff0055;
}

.mix-now {
    font-size: 14px;
    color: #444;
}



/* ==========================================================
   BARRAS SPOTIFY MINI (ECUALIZADOR SUAVE)
   ========================================================== */

.mix-eq {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 18px;
    margin-top: 4px;
    opacity: 0;
    transition: opacity .3s ease;
}

.mix-playing .mix-eq {
    opacity: 1;
}

.mix-eq div {
    width: 3px;
    height: 4px;
    background: #ff0055;
    border-radius: 30px;
    opacity: .9;

    animation: spotifyBar 0.9s infinite ease-in-out alternate;
    transform-origin: bottom;
}

/* Variaciones de tiempo */
.mix-eq div:nth-child(1) { animation-delay: 0s; }
.mix-eq div:nth-child(2) { animation-delay: 0.15s; }
.mix-eq div:nth-child(3) { animation-delay: 0.30s; }
.mix-eq div:nth-child(4) { animation-delay: 0.45s; }

@keyframes spotifyBar {
    0% { height: 4px; }
    50% { height: 16px; }
    100% { height: 8px; }
}



/* ==========================================================
   BOTÓN PLAY / PAUSE
   ========================================================== */

.mix-btn {
    width: 60px;
    height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    border: none;
    background: #ff0055;

    cursor: pointer;
    transition: transform .2s ease, background .25s, box-shadow .3s;
}

.mix-btn:active {
    transform: scale(.88);
}

.mix-playing .mix-btn {
    animation: pulseBtn 2.5s ease-in-out infinite;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 rgba(255,0,85,0.25); }
    50% { box-shadow: 0 0 14px rgba(255,0,85,0.55); }
    100% { box-shadow: 0 0 0 rgba(255,0,85,0.25); }
}

.mix-btn i {
    font-size: 34px;
    color: white;
}



/* ==========================================================
   IFRAMME OCULTO SONIC
   ========================================================== */

.mix-frame-hidden {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    border: none;
}



/* ==========================================================
   MODO OSCURO
   ========================================================== */

[data-theme="dark"] .mix-player {
    background: rgba(15,15,15,0.75);
    border-top-color: #ff337a;
}

[data-theme="dark"] .mix-title { color: #ff337a; }
[data-theme="dark"] .mix-now   { color: #eee; }

[data-theme="dark"] .mix-eq div {
    background: #ff337a;
}



/* ==========================================================
   RESPONSIVE MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .mix-player {
        height: 82px;
        padding: 10px 14px;
    }

    .mix-cover {
        width: 48px;
        height: 48px;
    }

    .mix-title {
        font-size: 16px;
    }

    .mix-now {
        font-size: 12px;
    }

    .mix-btn {
        width: 52px;
        height: 52px;
    }

    .mix-btn i {
        font-size: 30px;
    }

    .mix-eq {
        height: 14px;
    }
}


/* Miniaturas de noticias: todas del mismo tamaño, sin deformarse */
.noticia-thumb {
    width: 100%;           /* ocupa todo el ancho de la card */
    height: 220px;         /* ajustá este valor a gusto: 180, 220, 250px, etc. */
    object-fit: cover;     /* recorta la imagen sin deformarla */
    border-top-left-radius: 0.5rem;   /* opcional, para que coincida con la card */
    border-top-right-radius: 0.5rem;
}
