/* ===== PALETA DE COLORES Y VARIABLES GLOBALES (ACTUALIZADO) ===== */
:root {
    --c-navbar: #C89266;
    --c-background: #3D290E;
    --c-player: #80390F;
    --c-footer: #782200; /* Color de footer actualizado */
    --c-logo: #EA5C1F;
    --c-play-button: #E53935; /* Variable para el botón rojo */
    --c-text-primary: #FFFFFF;
    --c-text-secondary: #e0d9cf;
}

/* ===== ESTILOS BASE (ACTUALIZADO) ===== */
body {
    /* Fuente principal cambiada a Poppins */
    font-family: 'Poppins', sans-serif;
    background-color: var(--c-background);
    color: var(--c-text-primary);
}

/* ===== NAVBAR PERSONALIZADO (ACTUALIZADO) ===== */
.navbar {
    background-color: var(--c-navbar);
    padding: 0.5rem 0;
}
.navbar-brand .logo-img {
    /* SE QUITA EL CÍRCULO NARANJA DEL LOGO */
    width: 120px; /* Ajusta el tamaño si es necesario */
    height: auto;
    margin-right: 15px;
}
/* Contenedor para el nuevo título */
.logo-text-wrapper .brand-title {
    line-height: 1; /* Para juntar las líneas de texto */
    margin: 0;
}
/* Estilo para "Radio" */
.logo-text-wrapper .brand-title--part1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* Regular */
    font-size: 55px;
    color: var(--c-background);
    display: block; /* Para que ocupe su propia línea */
    letter-spacing: -0.01em; /* Tracking opcional */
}
/* Estilo para "Obra Misionera" */
.logo-text-wrapper .brand-title--part2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900; /* Black */
    font-size: 27px;
    color: var(--c-background);
    display: block; /* Para que ocupe su propia línea */
    letter-spacing: -0.015em; /* Tracking opcional */
}
/* Estilo para el subtítulo/lema */
.logo-text-wrapper .brand-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 300; /* Light */
    font-size: 14px;
    color: #5c452a;
    margin-top: 5px;
    letter-spacing: 0.02em; /* Tracking opcional */
}
.navbar-nav .nav-link {
    color: white !important; /* <--- AÑADE !important AL FINAL DEL COLOR */
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}
.navbar-toggler {
    border-color: rgba(61, 41, 14, 0.4);
}


/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 80vh;
    background-image: url(img/fondo.jpeg) ;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}
.hero__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(61, 41, 14, 0.6);
    backdrop-filter: blur(5px);
}
.hero__content {
    position: relative;
    z-index: 2;
}
.hero__title {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.play-button {
    /* COLOR DEL BOTÓN ACTUALIZADO A ROJO */
    background-color: var(--c-play-button);
    border: none;
    width: 80px; height: 80px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.play-button:hover {
    transform: scale(1.1);
    background-color: #ff5252; /* Un rojo un poco más claro para el hover */
}
.play-button i { 
    color: var(--c-text-primary); 
    font-size: 2rem; 
    /* Ajuste para centrar el ícono de play */
    transform: translateX(3px);
}
.play-button .fa-pause {
    transform: translateX(0); /* Resetea el ajuste para el ícono de pausa */
}

/* ===== SECCIÓN DE CONTENIDO ===== */
.content-section {
    padding: 4rem 1rem;
    text-align: center;
}
.section-title {
    color: var(--c-navbar);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


/* ===== REPRODUCTOR DE AUDIO (ACTUALIZADO) ===== */
.audio-player {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: var(--c-player);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}
.audio-player.visible {
    bottom: 0;
}
.player-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: auto;
}
.control-btn {
    /* COLOR DEL BOTÓN ACTUALIZADO A ROJO */
    background-color: var(--c-play-button);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.player-info {
    text-align: center;
    color: var(--c-text-primary);
}
.player-info span {
    font-size: 0.8rem;
    opacity: 0.8;
}
.player-info strong {
    display: block;
    font-size: 1rem;
}
.player-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-text-primary);
}
.volume-slider {
    width: 100px;
    cursor: pointer;
}


/* ===== FOOTER PROFESIONAL (ACTUALIZADO) ===== */
.footer {
    /* COLOR DE FONDO ACTUALIZADO */
    background-color: var(--c-footer);
    /* COLOR DE TEXTO PRIMARIO CAMBIADO A BLANCO PARA CONTRASTE */
    color: var(--c-text-primary);
    padding: 4rem 0 1rem 0;
}
.footer-widget .widget-title {
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--c-text-primary);
}
.footer-widget p {
    color: var(--c-text-secondary);
}
.footer-widget .footer-logo {
    width: 60px;
    /* Se mantiene el logo vibrante para que destaque */
    background-color: var(--c-logo); 
    padding: 5px;
    border-radius: 50%;
}
.footer-widget ul li a {
    color: var(--c-text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.footer-widget ul li a:hover {
    opacity: 0.8;
}
.podcast-platforms a, .social-icons a {
    color: var(--c-text-primary);
    font-size: 2rem;
    margin-right: 1.5rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.podcast-platforms a:hover, .social-icons a:hover {
    opacity: 0.8;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 2rem;
}
.footer-bottom p {
    margin: 0;
    color: var(--c-text-secondary);
    font-size: 0.9rem;
}



/* ===== MEDIA QUERIES PARA RESPONSIVIDAD ===== */
@media (max-width: 992px) {
    .hero__title { font-size: 3rem; }
    .hero__subtitle { font-size: 1.3rem; }
}

@media (max-width: 768px) {
    .navbar-brand .logo-img { width: 10px; }
    /* Ajuste de tamaño de fuente para el logo en móviles */
    .logo-text-wrapper .brand-title--part1 { font-size: 20px; }
    .logo-text-wrapper .brand-title--part2 { font-size: 10px; }
    .logo-text-wrapper .brand-subtitle { font-size: 12px; }

  @media (max-width: 768px) {
    /* ... (tus otros estilos para móvil se mantienen igual) ... */
    .logo-completo {
        width: 230px;
        height: auto;
    }
    
    .hero { height: 60vh; padding: 1rem; }
    .hero__title { font-size: 2.2rem; }
    .hero__subtitle { font-size: 1.1rem; margin-bottom: 1.5rem; }
    .play-button { width: 70px; height: 70px; }
    .play-button i { font-size: 1.5rem; }

    .content-section { padding: 3rem 1rem; }
    .section-title { font-size: 2rem; }

    /* ===== CORRECCIÓN DEL REPRODUCTOR RESPONSIVE ===== */
    .player-content {
        padding: 0.8rem 1rem;
        /* CLAVE 1: Aseguramos que el espacio se distribuya correctamente */
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem; /* Añadimos un espacio entre el botón y el volumen */
    }
    
    .player-info {
        display: none; /* Correcto, lo mantenemos oculto */
    }

    .player-volume {
        /* CLAVE 2: Usamos flexbox para que el control de volumen sea flexible */
        display: flex;
        align-items: center;
        flex-grow: 1; /* Permitimos que ocupe el espacio disponible */
        max-width: 150px; /* Le damos un ancho máximo para que no se expanda demasiado */
    }

    .volume-slider {
        /* CLAVE 3: Hacemos que la barra de volumen sea flexible */
        width: 100%; /* Ocupará todo el espacio disponible dentro de su contenedor */
    }
    /* ================================================= */

    .footer { text-align: center; }
    .podcast-platforms, .social-icons {
        justify-content: center;
        display: flex;
        gap: 1.5rem;
    }
    .podcast-platforms a, .social-icons a { margin-right: 0; }
}

    .footer { text-align: center; }
    .podcast-platforms, .social-icons {
        justify-content: center;
        display: flex;
        gap: 1.5rem;
    }
    .podcast-platforms a, .social-icons a { margin-right: 0; }
}


/* ===== NAVBAR PERSONALIZADO (CON LOGO ÚNICO) ===== */
.navbar {
    background-color: var(--c-navbar);
    padding: 0.5rem 0;
}

/* Eliminamos el fondo blanco y el padding extra del contenedor */
.navbar-brand {
    background-color: transparent;
    padding: 0;
}

/* Estilos para tu nuevo logo completo */
.logo-completo {
    width: 310px;  /* Ancho que especificaste */
    height: 78px;  /* Alto que especificaste */
    transition: transform 0.3s ease;
}

.logo-completo:hover {
    transform: scale(1.03); /* Efecto sutil al pasar el ratón */
}

.navbar-nav .nav-link {
    color: var(--c-background);
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.navbar-toggler {
    border-color: rgba(61, 41, 14, 0.4);
}
@media (max-width: 768px) {
    /* Ajuste responsivo para el nuevo logo */
    .logo-completo {
        width: 230px; /* Un tamaño más adecuado para móviles */
        height: auto;   /* Mantiene la proporción automáticamente */
    }

    /* ... aquí van el resto de tus estilos para móvil ... */
}

.footer-widget .footer-logo {
    /* Eliminamos el fondo, padding y borde para mostrar solo el logo */
    background-color: transparent;
    padding: 0;
    border-radius: 0;

    /* Ajustamos el tamaño para que se vea bien en el footer */
    width: 220px; /* Un tamaño ideal para la columna del footer */
    height: auto;   /* Mantenemos la proporción original */
}
/* ===== NUEVO DISEÑO DE REPRODUCTOR (BASADO EN REFERENCIA) ===== */
:root {
    --c-player-dark: #0d1626; /* Azul marino profundo */
    --c-orange-accent: #f26522; /* Naranja vibrante */
}

.audio-player {
    position: fixed;
    bottom: -120px; /* Oculto inicialmente */
    left: 0;
    width: 100%;
    height: 90px;
    background-color: var(--c-player-dark);
    display: flex;
    align-items: center;
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.audio-player.visible {
    bottom: 0;
}

/* Bloque naranja lateral */
.player-logo-block {
    background-color: var(--c-orange-accent);
    width: 100px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-logo-block img {
    width: 60px;
    height: auto;
}

.player-content-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 0 30px;
    justify-content: space-between;
}

/* Badge "Al aire" y textos */
.player-status-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-al-aire {
    background-color: var(--c-orange-accent);
    color: white;
    font-size: 11px;
    padding: 2px 12px;
    border-radius: 15px;
    width: fit-content;
    font-weight: 600;
}

.label-radio {
    color: #aeb4be;
    font-size: 13px;
    display: block;
}

.label-main {
    color: white;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Botón Play Circular */
.play-btn-circle {
    background-color: var(--c-orange-accent);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: var(--c-player-dark);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-btn-circle:hover { transform: scale(1.1); }
.play-btn-circle i { margin-left: 4px; } /* Ajuste visual para el icono play */

.vol-icon, .share-btn {
    color: white;
    font-size: 18px;
    opacity: 0.8;
}

.volume-control-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-slider-custom {
    width: 80px;
    accent-color: var(--c-orange-accent);
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .player-logo-block { width: 75px; }
    .player-logo-block img { width: 45px; }
    .player-content-wrapper { padding: 0 15px; }
    .label-main { font-size: 14px; }
    .play-btn-circle { width: 45px; height: 45px; font-size: 18px; }
}

.audio-player {
    position: fixed; /* Esto hace que el reproductor siga la pantalla */
    bottom: -120px;  /* Escondido por defecto */
    left: 0;
    width: 100%;
    z-index: 2000;   /* Asegura que esté por encima de todo */
    transition: bottom 0.5s ease;
}

.audio-player.visible {
    bottom: 0; /* Lo muestra al activarse */
}


/* ============================================================ */
/* ===== AJUSTE DE PROPORCIONES: CONTROLES DEL REPRODUCTOR ===== */
/* ============================================================ */

/* Contenedor principal de la derecha (Volumen + Play + Share) */
.player-controls-main {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Espacio equilibrado entre el bloque de volumen y los botones de acción */
    gap: 25px; 
    flex-shrink: 0; /* Evita que se aplasten si falta espacio */
}

/* --- Íconos Secundarios (Volumen y Compartir) --- */
/* Estilo base para que se vean proporcionales entre sí */
.vol-icon,
.share-btn {
    color: rgba(255, 255, 255, 0.8); /* Blanco con ligera transparencia para no competir con el play */
    font-size: 20px; /* Tamaño estándar para íconos secundarios */
    background: none;
    border: none;
    padding: 5px; /* Área de toque un poco más grande */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Efecto hover para los íconos secundarios */
.vol-icon:hover,
.share-btn:hover {
    color: white; /* Blanco puro al pasar el mouse */
    transform: scale(1.1); /* Pequeño efecto pop */
}


/* --- Botón Principal Circular (Play/Pause) --- */
.play-btn-circle {
    background-color: var(--c-orange-accent);
    border: none;
    /* Dimensiones ligeramente aumentadas para mayor protagonismo */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Color del ícono dentro del círculo */
    color: var(--c-player-dark); 
    /* Tamaño del ícono play/pause */
    font-size: 24px; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Sombra suave para darle profundidad */
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.4);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote sutil */
}

/* Ajuste óptico: el ícono 'play' triangular necesita moverse un poco a la derecha para verse centrado */
.play-btn-circle .fa-play {
    margin-left: 4px;
}
/* El ícono 'pause' ya es simétrico, reseteamos el margen */
.play-btn-circle .fa-pause {
    margin-left: 0;
}

/* Efecto hover y click del botón principal */
.play-btn-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.6);
}
.play-btn-circle:active {
    transform: scale(0.95); /* Efecto de presión al hacer click */
}


/* --- Wrapper del Volumen --- */
.volume-control-wrapper {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre el ícono de bocina y el slider */
}

/* Slider personalizado (mantenemos el estilo anterior) */
.volume-slider-custom {
    width: 90px; /* Un poco más ancho para mejor control */
    cursor: pointer;
    accent-color: var(--c-orange-accent);
}

/* --- Ajustes Responsive para Móviles --- */
@media (max-width: 768px) {
    .player-controls-main {
        gap: 15px; /* Menos espacio en móviles */
    }
    
    /* En móvil, el volumen suele ocultarse con d-none de Bootstrap, 
       así que ajustamos solo los botones visibles */
    .play-btn-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .share-btn {
        font-size: 18px;
    }
}

/* ===== NUEVA ESTÉTICA DEL REPRODUCTOR ===== */
:root {
    --c-player-dark: #0d1626; /* Azul profundo de referencia */
    --c-orange-accent: #f26522; /* Naranja vibrante */
}

.audio-player {
    position: fixed;
    bottom: -110px; /* Escondido por defecto */
    left: 0;
    width: 100%;
    height: 85px;
    background-color: var(--c-player-dark);
    display: flex;
    align-items: center;
    z-index: 3000;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 25px rgba(0,0,0,0.5);
}

/* Clase que activa el JS al dar Play */
.audio-player.visible {
    bottom: 0; 
}

.player-logo-block {
    background-color: var(--c-orange-accent);
    width: 90px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-logo-block img { width: 55px; height: auto; }

.player-content-wrapper {
    display: flex;
    width: 100%;
    padding: 0 25px;
    align-items: center;
    justify-content: space-between;
}

/* --- Controles Derecha (Proporciones arregladas) --- */
.player-controls-group {
    display: flex;
    align-items: center;
    gap: 20px; /* Espaciado uniforme */
}

.play-btn-circle {
    background-color: var(--c-orange-accent);
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(242, 101, 34, 0.3);
    transition: transform 0.2s;
}

.play-btn-circle:hover { transform: scale(1.08); }
.play-btn-circle .fa-play { margin-left: 4px; } /* Ajuste óptico */

.vol-icon, .share-btn {
    color: white;
    font-size: 19px;
    background: none;
    border: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.vol-icon:hover, .share-btn:hover { opacity: 1; }

.volume-slider-custom {
    width: 80px;
    accent-color: var(--c-orange-accent);
    cursor: pointer;
}

/* Badge y Textos */
.badge-al-aire {
    background: var(--c-orange-accent);
    color: white;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.label-main { color: white; font-weight: 900; font-size: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .player-logo-block { width: 70px; }
    .player-content-wrapper { padding: 0 15px; }
    .play-btn-circle { width: 46px; height: 46px; }
}

/* ===== ESTILOS REPRODUCTOR PERSISTENTE ===== */
:root {
    --c-player-dark: #0d1626; /* Azul profundo */
    --c-orange-accent: #f26522; /* Naranja vibrante */
}

.audio-player {
    position: fixed; /* Mantiene el reproductor pegado a la pantalla */
    bottom: -120px;  /* Escondido antes de dar Play */
    left: 0;
    width: 100%;
    height: 90px;
    background-color: var(--c-player-dark);
    display: flex;
    align-items: center;
    z-index: 9999;   /* Asegura que siempre esté al frente */
    transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
}

/* Esta clase se activa en el JS y lo mantiene fijo en pantalla */
.audio-player.visible {
    bottom: 0 !important; 
}

/* Bloque naranja izquierdo */
.player-logo-block {
    background-color: var(--c-orange-accent);
    width: 95px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.player-logo-block img { width: 55px; height: auto; }

/* Contenedor de controles y textos */
.player-content-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 0 30px;
    justify-content: space-between;
}

/* --- CONTROLES DERECHA (PROPORCIONES) --- */
.player-controls-right {
    display: flex;
    align-items: center;
    gap: 25px; /* Espaciado entre volumen, play y compartir */
}

.play-btn-circle {
    background-color: var(--c-orange-accent);
    border: none;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: var(--c-player-dark);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.play-btn-circle:hover { transform: scale(1.1); }
.play-btn-circle .fa-play { margin-left: 4px; } /* Ajuste visual */

.vol-icon, .share-btn {
    color: white;
    font-size: 20px;
    background: none;
    border: none;
    opacity: 0.8;
}

.volume-wrapper { align-items: center; gap: 10px; }
.volume-slider-custom { width: 80px; accent-color: var(--c-orange-accent); }

/* Badge "Al aire" */
.badge-al-aire {
    background: var(--c-orange-accent);
    color: white;
    font-size: 11px;
    padding: 2px 12px;
    border-radius: 15px;
    font-weight: 700;
}
.label-main { color: white; font-weight: 800; text-transform: uppercase; font-size: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .player-logo-block { width: 75px; }
    .player-content-wrapper { padding: 0 15px; }
    .play-btn-circle { width: 48px; height: 48px; font-size: 18px; }
    .player-controls-right { gap: 15px; }
}
/* ===== ESTILOS DEL REPRODUCTOR PERSISTENTE ===== */
:root {
    --c-player-dark: #0d1626; /* Azul marino profundo */
    --c-orange-accent: #f26522; /* Naranja vibrante */
    --c-play-red: #E53935; /* Rojo del botón según tu código */
}

.audio-player {
    position: fixed; /* Mantiene el reproductor pegado a la pantalla */
    bottom: -130px;  /* Escondido debajo antes de activarse */
    left: 0;
    width: 100%;
    height: 90px;
    background-color: var(--c-player-dark);
    display: flex;
    align-items: center;
    z-index: 9999;   /* Por encima de TODO el contenido */
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.6);
}

/* Esta clase lo mantiene FIJO en pantalla */
.audio-player.visible {
    bottom: 0 !important; 
}

/* Bloque naranja izquierdo */
.player-logo-block {
    background-color: var(--c-orange-accent);
    width: 100px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.player-logo-block img { width: 60px; height: auto; }

/* Distribución de contenido */
.player-content-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 0 30px;
    justify-content: space-between;
}

/* --- CONTROLES DERECHA Y PROPORCIONES --- */
.player-controls-right {
    display: flex;
    align-items: center;
    gap: 25px; /* Espaciado uniforme */
}

.play-btn-circle {
    background-color: var(--c-play-red);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    cursor: pointer;
}
.play-btn-circle:hover { transform: scale(1.1); }
.play-btn-circle .fa-play { margin-left: 4px; } /* Ajuste óptico */

.vol-icon, .share-btn {
    color: white;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
}

.volume-wrapper { display: flex; align-items: center; gap: 12px; }
.volume-slider-custom { width: 90px; accent-color: var(--c-orange-accent); }

/* Badge "Al aire" */
.badge-al-aire {
    background: var(--c-orange-accent);
    color: white;
    font-size: 11px;
    padding: 2px 12px;
    border-radius: 15px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .player-logo-block { width: 75px; }
    .player-content-wrapper { padding: 0 15px; }
    .play-btn-circle { width: 50px; height: 50px; font-size: 20px; }
}

/* ============================================================ */
/* ===== REPRODUCTOR CON COLOR DE FOOTER Y PERSISTENCIA ======= */
/* ============================================================ */

.audio-player {
    position: fixed;
    bottom: -150px; /* Escondido por defecto */
    left: 0;
    width: 100%;
    height: 90px;
    /* Cambio de color al del footer (#782200) */
    background-color: var(--c-footer); 
    display: flex;
    align-items: center;
    z-index: 9999; /* Máxima prioridad para seguir al usuario */
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
}

/* Clase que activa la visibilidad */
.audio-player.visible {
    bottom: 0 !important;
}

/* Ajuste del bloque de logo para que combine con el nuevo fondo */
.player-logo-block {
    background-color: var(--c-orange-accent);
    width: 100px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Aseguramos que los textos sean legibles sobre el fondo marrón */
.label-main {
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 16px;
}

.label-radio {
    color: var(--c-text-secondary);
    font-size: 13px;
}

/* Contenedor relativo para posicionar el popover */
.volume-control-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.vol-icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* El panel marrón que flota arriba */
.volume-popover {
    position: absolute;
    bottom: 60px; /* Distancia sobre el botón */
    left: 50%;
    transform: translateX(-50%);
    background-color: #782200; /* Color de tu footer */
    padding: 20px 10px;
    border-radius: 30px;
    display: none; /* Oculto por defecto */
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    z-index: 10001;
}

/* Se muestra cuando añadimos la clase .active con JS */
.volume-popover.active {
    display: flex;
    animation: fadeInVolume 0.2s ease-out;
}

/* Estilo del slider rotado */
.volume-slider-vertical {
    appearance: none;
    -webkit-appearance: none;
    width: 100px; /* Al rotar, esto será la altura */
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transform: rotate(-90deg); /* La magia ocurre aquí */
    margin: 45px 0; /* Espacio para que la rotación no choque */
    accent-color: var(--c-orange-accent);
}

@keyframes fadeInVolume {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== CONTROL DE VOLUMEN SLIM & COMPACTO ===== */
.volume-control-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.vol-icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px; /* Ícono ligeramente más pequeño */
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vol-icon-btn:hover { opacity: 1; }

/* Panel Marrón Ultra Delgado */
.volume-popover {
    position: absolute;
    bottom: 55px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #782200; /* Color del footer */
    padding: 10px 4px; /* Padding muy reducido */
    width: 32px; /* Ancho muy delgado */
    border-radius: 20px; /* Bordes más ajustados */
    display: none;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 10001;
}

.volume-popover.active {
    display: flex;
    animation: slideInCompact 0.2s ease-out;
}

/* Slider Fino */
.volume-slider-vertical {
    appearance: none;
    -webkit-appearance: none;
    width: 80px; /* Altura del control al estar rotado */
    height: 3px; /* Grosor de la línea muy fino */
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transform: rotate(-90deg);
    margin: 40px 0; /* Espaciado ajustado para la rotación */
    accent-color: var(--c-orange-accent);
}

/* Estilo para el "punto" del slider (Thumb) más pequeño */
.volume-slider-vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

@keyframes slideInCompact {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== DISEÑO DE VOLUMEN VERTICAL DELGADO ===== */
.volume-control-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.vol-icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.3s;
}

/* Panel vertical compacto */
.volume-popover {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #782200; /* Color del footer */
    padding: 12px 4px; /* Muy estrecho */
    width: 30px; /* Ancho minimalista */
    border-radius: 20px;
    display: none; /* Se activa con JS */
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 10000;
}

.volume-popover.active {
    display: flex;
    animation: slideUpSlim 0.2s ease-out;
}

/* Slider fino y rotado */
.volume-slider-vertical {
    appearance: none;
    -webkit-appearance: none;
    width: 80px; /* Altura del slider */
    height: 3px; /* Grosor de la línea */
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transform: rotate(-90deg);
    margin: 40px 0;
    accent-color: var(--c-orange-accent);
}

/* Punto del slider (Thumb) pequeño */
.volume-slider-vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
}

@keyframes slideUpSlim {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}