/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Header */
header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

/* Reproductor de radio */
#radio-player {
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    padding: 10px;
}

/* Cards */
.card {
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Footer */
footer {
    margin-top: 50px;
}

.social-links a {
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
} 


/* assets/css/style.css */

/* Estilos para el Header */
header {
    border-bottom: 3px solid #f0b501; /* Un toque de color en el borde inferior */
}
header .navbar-nav .nav-link {
    font-weight: 500;
    margin-right: 15px; /* Espacio entre los elementos del menú */
    transition: color 0.3s ease;
}
header .navbar-nav .nav-link:hover,
header .navbar-nav .nav-link.active {
    color: #ffc107 !important; /* Color amarillo para hover y activo */
}
header .navbar-brand h1 {
    margin-bottom: 0;
    font-size: 2.2rem;
}
header .form-control {
    border-radius: 20px;
    border: none;
}
header .btn-outline-light {
    border-radius: 20px;
    border-color: #ffc107;
    color: #ffc107;
    transition: all 0.3s ease;
}
header .btn-outline-light:hover {
    background-color: #ffc107;
    color: #343a40;
}


/* Estilos para las tarjetas de noticias */
.card.h-100 {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 10px; /* Bordes redondeados */
    overflow: hidden; /* Asegura que la imagen no sobresalga */
}

.card.h-100:hover {
    transform: translateY(-5px); /* Pequeño efecto de elevación al pasar el mouse */
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; /* Sombra más pronunciada */
}

.news-card-img {
    border-bottom: 3px solid #007bff; /* Borde inferior para la imagen */
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6c757d;
    flex-grow: 1; /* Permite que el texto ocupe el espacio disponible */
    overflow: hidden;
    text-overflow: ellipsis;
    /* max-height: 3.8em; /* Ajusta esto si necesitas un número específico de líneas */
    /* display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; */
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #f0b501;
    border-color: #f0b501;
}

/* Estilos para la paginación */
.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}
.pagination .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.pagination .page-link:hover {
    color: #f0b501;
    background-color: #e9ecef;
}

/* Estilos para la vista de noticia individual */
.news-article {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}
.news-article h1 {
    font-size: 2.5rem;
    color: #343a40;
    margin-bottom: 20px;
}
.news-article img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.news-article .news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

/* Responsividad básica */
@media (max-width: 767.98px) {
    header .navbar-brand h1 {
        font-size: 1.8rem;
    }
    header .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
    }
    header .d-flex {
        width: 100%;
        margin-top: 10px;
    }
    header .form-control {
        width: 100%;
    }
    .news-article {
        padding: 15px;
    }
}



   .schedule-nav .nav-link {
        color: #6c757d;
        font-weight: 500;
        border: 0;
        border-bottom: 3px solid transparent;
    }
    .schedule-nav .nav-link.active {
        color: var(--brand-blue, #20397a);
        background-color: transparent;
        border-bottom-color: var(--brand-blue, #20397a);
    }
    .program-row {
        display: flex;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
        transition: background-color 0.3s;
    }
    .program-row:last-child {
        border-bottom: 0;
    }
    .program-row.is-live {
        background-color: #e8f0fe; /* Un azul claro para destacar */
        border-left: 5px solid var(--brand-blue, #20397a);
    }
    .program-time {
        flex: 0 0 120px;
        font-weight: 700;
        color: var(--brand-blue, #20397a);
    }
    .program-img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 50%;
        margin-right: 1rem;
    }
    .program-details h5 {
        margin-bottom: 0.25rem;
        font-size: 1.1rem;
    }
    .program-details p {
        margin-bottom: 0;
        color: #6c757d;
    }
    .live-badge {
        font-size: 0.8rem;
        font-weight: 700;
        padding: 0.3em 0.6em;
        background-color: #dc3545;
        color: white;
        border-radius: 0.25rem;
        animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }