/* Header Component */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    padding: 20px 0;
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-header .app-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.app-header-actions {
    display: flex;
    gap: 15px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Navigation Component */
.app-navigation {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-tabs {
    display: flex;
    align-items: center;
    
}
@media (max-width: 768px) {
    .logo-title {
        display: none;
    }
    
    .nav-tabs {
        justify-content: space-around;
        width: 100%;
    }
}
.nav-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-tab i {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.nav-tab span {
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .nav-tab {
        padding: 20px 0;
    }
    
    .nav-tab i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .nav-tab span {
        font-size: 0.9rem;
    }
}

/* Publicidad Component */
/* ===== PUBLICIDAD COMPONENT - CON MODAL ===== */

/* Publicidad Card Mejorada */
.publicidad-card {
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.publicidad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.publicidad-image-container {
    position: relative;
    overflow: hidden;
}

.publicidad-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.publicidad-card:hover .publicidad-img {
    transform: scale(1.05);
}

.publicidad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publicidad-card:hover .publicidad-overlay {
    opacity: 1;
}

.publicidad-expand-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.publicidad-expand-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Modal para Imagen Completa */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.image-modal-container {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 20px 20px 0 0;
}

.image-modal-title {
    margin: 0;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.image-modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.image-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    max-height: 70vh;
    overflow: auto;
}

.image-modal-img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.image-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.image-modal-footer .btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.image-modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Efectos de carga para imágenes */
.publicidad-img.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .image-modal-container {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .app-header h1 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}
    .footer p {
        font-size: 0.7rem;
    }
    
    img, svg {
  
    height: 50px;
}
.app-header {
   
    padding: 8px 44px;
    
}
    .image-modal-header {
        padding: 15px 20px;
    }
    
    .image-modal-body {
        padding: 20px;
        max-height: 60vh;
    }
    
    .image-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .image-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .publicidad-overlay {
        opacity: 1;
        background: rgba(0,0,0,0.2);
    }
    
    .publicidad-expand-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .image-modal-header {
        padding: 12px 15px;
    }
    
    .image-modal-title {
        font-size: 1.1rem;
    }
    
    .image-modal-body {
        padding: 15px;
        max-height: 50vh;
    }
    
    .image-modal-footer {
        padding: 12px 15px;
    }
    
    .publicidad-img {
        height: 200px;
    }
}

/* Mejoras para grid de publicidad */
.publicidad-grid {
    gap: 25px;
}

.publicidad-info {
    padding: 20px;
}

.publicidad-titulo {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.3;
}

.publicidad-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.publicidad-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.8rem;
    color: #999;
}

.publicidad-meta .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
}

/* Smooth transitions */
.publicidad-card,
.publicidad-img,
.publicidad-overlay,
.image-modal-overlay,
.image-modal-container {
    transition: all 0.3s ease;
}

/* Radio Component */
.radio-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .radio-container {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.player-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    gap: 15px;
}

.player-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.player-btn:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.player-btn.play {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
}

.player-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.station-list {
    max-height: 600px;
    overflow-y: auto;
}

.station-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin-bottom: 10px;
}

.station-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.station-item.active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    border-left: 4px solid var(--primary-color);
}

.station-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #ffed4a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--text-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.station-info {
    flex: 1;
}

.station-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.station-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}




/* Radio Single View */
.radio-single-view {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 0;
}

.radio-main-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.radio-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.radio-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
}

.radio-info {
    flex: 1;
}

.radio-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.radio-subtitle {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.radio-status {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-playing {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.status-paused {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

/* Radio Visualizer */
.radio-visualizer {
    position: relative;
    height: 120px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visualizer-bars {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 40px;
}

.visualizer-bars .bar {
    width: 6px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: all 0.3s ease;
}

.visualizer-bars .bar:nth-child(1) { height: 20px; }
.visualizer-bars .bar:nth-child(2) { height: 30px; }
.visualizer-bars .bar:nth-child(3) { height: 40px; }
.visualizer-bars .bar:nth-child(4) { height: 30px; }
.visualizer-bars .bar:nth-child(5) { height: 20px; }

.visualizer-bars .bar.animated {
    animation: barAnimation 1.5s infinite ease-in-out;
}

.visualizer-bars .bar.animated:nth-child(1) { animation-delay: 0s; }
.visualizer-bars .bar.animated:nth-child(2) { animation-delay: 0.1s; }
.visualizer-bars .bar.animated:nth-child(3) { animation-delay: 0.2s; }
.visualizer-bars .bar.animated:nth-child(4) { animation-delay: 0.3s; }
.visualizer-bars .bar.animated:nth-child(5) { animation-delay: 0.4s; }

@keyframes barAnimation {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.3); }
}

.radio-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.radio-waves .wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
}

.wave-1 { width: 80px; height: 80px; }
.wave-2 { width: 120px; height: 120px; }
.wave-3 { width: 160px; height: 160px; }

.radio-waves .wave.pulse {
    animation: wavePulse 2s infinite;
}

.wave-1.pulse { animation-delay: 0s; }
.wave-2.pulse { animation-delay: 0.5s; }
.wave-3.pulse { animation-delay: 1s; }

@keyframes wavePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Radio Controls */
.radio-controls {
    text-align: center;
    margin: 30px 0 20px;
}

.control-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.control-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
}

.control-btn.primary.playing {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.control-btn.secondary {
    background: #f8f9fa;
    color: var(--primary-color);
    border: 2px solid #e9ecef;
}

.control-btn:hover {
    transform: scale(1.1);
}

.volume-control {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: #5e7fe4;
    border-radius: 25px;
}

.volume-control.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

/* Radio Meta */
.radio-meta {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.meta-item:hover {
    color: var(--primary-color);
}

.meta-item i {
    font-size: 1rem;
}

/* Station Info Card */
.station-info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.station-info-card .card-body {
    padding: 20px;
}

.info-section h4 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.station-description {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.info-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

/* Welcome Message */
.welcome-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.welcome-content {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 300px;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.welcome-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-content h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.welcome-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.welcome-play-btn {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.welcome-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Error Notification */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    z-index: 1001;
    animation: slideInRight 0.3s ease;
}

.error-notification button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Feed centrado tipo Instagram/Facebook */
.publicidad-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    /* background: #f5f6fa; */
    min-height: 100vh;
}

/* Cada post ocupa todo el ancho hasta 500px */
.publicidad-post {
    width: 100%;
    max-width: 500px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.publicidad-post-header {
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
}

.publicidad-post-img-container {
    background: #222;
    overflow: hidden;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publicidad-post-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0;
}

.publicidad-post-body {
    background: #fff;
}

.publicidad-desc {
    font-size: 1.1rem;
    color: #333;
}

.publicidad-expand-btn {
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border: none;
    background: #fff;
    color: #333;
    transition: background 0.2s;
}
.publicidad-expand-btn:hover {
    background: #3498db;
    color: #fff;
}

/* Footer Player Mejorado */
.footer-player {
background: linear-gradient(135deg, var(--primary-color), #2980b9);    border-top: 2px solid var(--primary-color);
    padding: 12px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease;
}



@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.footer-player .app-container {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-player-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-player-icon.playing-animation {
    animation: pulse 2s infinite;
}

.footer-player-info {
    flex: 1;
    min-width: 0;
}

.footer-player-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.footer-player-desc {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-player-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-player-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-player-btn:hover {
    background-color: #f8f9fa;
    transform: scale(1.1);
}

.footer-player-close {
    color: #999;
    font-size: 1rem;
}

/* Asegurar que el contenido principal tenga espacio para el footer player */
.main-content {
    padding-bottom: 80px;
}

.content-with-footer {
    padding-bottom: 80px;
}


@media only screen and (max-width: 900px) {
      .app-header h1 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}
    .footer p {
        font-size: 0.7rem;
    }
    
    img, svg {
  
    height: 50px;
}
.app-header {
   
    padding: 8px 34px;
    
}
}


