
#noticiasHeader{
    height: 600px;
    background-color: var(--secondary-color);
}

#noticiasHeader .banner-one-inner .title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(227, 15, 24, 0.3) 0%, rgba(227, 15, 24, 0.15) 40%, transparent 60%);
    z-index: -1;
    border-radius: 50%;
}

@media (max-width: 768px) {
    #noticiasHeader .banner-one-inner .title::after {
        width: 300px;
        height: 300px;
    }

    #noticiasHeader{
        height: auto;
    }
}

.noticiasSection{
    background-color: var(--secondary-color);
}

/* Nuevos estilos para el grid de noticias */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid específico para pantallas grandes - máximo 3 columnas */
@media (min-width: 1200px) {
    .noticias-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Grid para pantallas medianas - 2 columnas */
@media (min-width: 768px) and (max-width: 1199px) {
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Grid para pantallas pequeñas - 1 columna */
@media (max-width: 767px) {
    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.noticia-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.noticia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.noticia-meta {
    padding: 1.5rem 2rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.noticia-meta .categoria {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noticia-meta .fecha {
    color: #666;
    font-size: 1.2rem;
    font-weight: 500;
}

.noticia-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 2rem 2rem 2rem;
}

.noticia-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
}

.noticia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-card:hover .noticia-image img {
    transform: scale(1.05);
}

.noticia-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.noticia-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.noticia-card:hover .noticia-titulo {
    color: var(--primary-color);
}

.noticia-resumen {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#backToNewsButton {
    font-size: 1.2rem;
}

.btn-leer-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-leer-mas:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.btn-leer-mas i {
    transition: transform 0.3s ease;
}

.btn-leer-mas:hover i {
    transform: translateX(4px);
}

/* Animación del botón cuando se hace hover en toda la tarjeta */
.noticia-card:hover .btn-leer-mas {
    color: var(--accent-color);
    transform: translateX(4px);
}

.noticia-card:hover .btn-leer-mas i {
    transform: translateX(4px);
}

/* Estilos para el enlace de la noticia */
.noticia-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.noticia-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .noticias-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .noticia-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .noticia-image {
        height: 200px;
    }
    
    .noticia-meta {
        padding: 1rem 1.5rem 0 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .noticia-titulo {
        font-size: 1.55rem;
    }
    
    .noticia-resumen {
        font-size: 1.3rem;
        -webkit-line-clamp: 3;
    }

    #backToNewsButton {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .noticias-grid {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .noticia-meta {
        padding: 1rem 1rem 0 1rem;
    }
    
    .noticia-content {
        padding: 0 1rem 1rem 1rem;
    }
    
    .noticia-titulo {
        font-size: 1.325rem;
    }
    
    .noticia-resumen {
        font-size: 1.2rem;
        -webkit-line-clamp: 2;
    }
    
    .noticia-image {
        height: 180px;
    }
}

/* Estilos para la página de detalle de noticias */
.breadcrumb-section {
    background-color: var(--secondary-color) !important;
    padding: 110px 0 0px 0; background-color: var(--secondary-color);
}

@media screen and (max-width: 1200px) {
    .breadcrumb-section {
        padding: 100px 0 0px 0;
    }
    
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item{
    font-size: 1.2rem;
}


.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--accent-color);
    content: ">";
}


#breadcrumb-current {
    color: var(--primary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.article-header {
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-meta .categoria {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive font-size para .article-meta .categoria */
@media (max-width: 1200px) {
    .article-meta .categoria {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .article-meta .categoria {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .article-meta .categoria {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .article-meta .categoria {
        font-size: 0.9rem;
    }
}

.article-meta .fecha {
    color: #666;
    font-size: 1.3rem;
    font-weight: 500;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.article-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: fit-content;
    margin: 0 auto;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
    white-space: pre-line;
}

.article-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.article-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.3;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.125rem;
    color: #555;
}

.article-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-share span {
    font-weight: 600;
    color: #666;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Artículos relacionados */
.related-articles {
    background-color: var(--secondary-color) !important;
}

.related-article-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-image {
    height: 200px;
    min-height: 250px;
    overflow: hidden;
}

@media (min-width: 768px) and (max-width: 992px) {
    .related-image {
        min-height: 350px;
    }
    .related-content h4{
        font-size: 1.8rem !important;
    }
    .related-content p{
        font-size: 1.3rem !important;
    }
}

@media (max-width: 768px) {
    .related-content h4{
        font-size: 1.6rem !important;
    }
    .related-content p {
        font-size: 1.2rem !important;
    }
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.related-content p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin: auto 0 0 0;
    padding: 0 20px 10px;
}

.btn-read-more .btn-leer-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-read-more .btn-leer-mas i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover {
    color: var(--secondary-color);
}

/* Animación del botón cuando se hace hover en toda la tarjeta */
.related-article-card:hover .btn-read-more {
    color: var(--accent-color);
}

.related-article-card:hover .btn-leer-mas {
    color: var(--accent-color);
    transform: translateX(4px);
}

.related-article-card:hover .btn-leer-mas i {
    transform: translateX(4px);
}

/* Responsive para página de detalle */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1.3rem;
    }
    
    .article-content h3 {
        font-size: 1.5rem;
    }
    
    .article-content h4 {
        font-size: 1.25rem;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-share {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-content {
        font-size: 1.2rem;
    }
}

/* Styles for HTML content in news articles */
.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.article-content a:visited {
    color: #8B5A96;
}

/* External link indicator */
.article-content a[target="_blank"]:after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
}

/* Emoji support */
.article-content {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    white-space: pre-line;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content h1, .article-content h2, .article-content h3, 
.article-content h4, .article-content h5, .article-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.article-content ul, .article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.25rem;
}

.article-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #666;
}

.article-content code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.article-content th, .article-content td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.article-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Original post link styles */
.original-post-container {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    border-radius: 5px;
}

.original-post-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.original-post-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.original-post-link:visited {
    color: #8B5A96;
}