/* Estilos para la sección de noticias RSS */
/* Mejorar el placeholder cuando no hay imagen */
.noticia-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

/* Gradientes diferentes según la categoría */
.noticia-card .noticia-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Efecto de patrón de fondo */
.noticia-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.5;
}

/* Asegurar que el emoji esté al frente */
.noticia-placeholder::after {
    content: '📰';
    position: relative;
    z-index: 1;
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Variaciones de gradiente por categoría */
.noticia-card:nth-child(3n+1) .noticia-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.noticia-card:nth-child(3n+2) .noticia-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.noticia-card:nth-child(3n+3) .noticia-placeholder {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
/* Widget Euríbor */
.euribor-widget {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.euribor-header {
    text-align: center;
    margin-bottom: 40px;
}

.euribor-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.euribor-intro {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.euribor-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.euribor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.euribor-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.euribor-item:hover {
    transform: translateY(-5px);
}

.euribor-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.euribor-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3056D3;
}

.euribor-change {
    font-size: 0.9rem;
    margin-top: 5px;
}

.euribor-change.positive {
    color: #28a745;
}

.euribor-change.negative {
    color: #dc3545;
}

/* Sección principal de noticias */
.noticias-rss-section {
    padding: 80px 0;
    background: #ffffff;
}

.noticias-header {
    text-align: center;
    margin-bottom: 50px;
}

.noticias-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

/* Filtros */
.noticias-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #3056D3;
    color: white;
    border-color: #3056D3;
}

.filter-btn.active {
    background: #3056D3;
    color: white;
    border-color: #3056D3;
}

/* Grid de noticias */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Tarjeta de noticia */
.noticia-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.noticia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.noticia-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.noticia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.noticia-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.noticia-category {
    display: inline-block;
    padding: 5px 15px;
    background: #3056D3;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.noticia-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.noticia-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.noticia-date {
    font-size: 0.85rem;
    color: #999;
}

.noticia-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #3056D3;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.noticia-link:hover {
    gap: 10px;
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-spinner p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Botón Cargar Más */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

#load-more-btn {
    padding: 15px 50px;
    font-size: 1.1rem;
}

/* Lista con estilo */
.planning-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.planning-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
}

.planning-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3056D3;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .euribor-grid {
        grid-template-columns: 1fr;
    }
    
    .noticias-title {
        font-size: 2rem;
    }
    
    .euribor-title {
        font-size: 2rem;
    }
    
    .noticias-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
}