/* Estilos para la página de detalle de noticias */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Hero de la noticia */
.news-hero {
    padding: 120px 0 30px;
    background-color: var(--light-color);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

/* Contenido principal */
.news-detail {
    padding: 60px 0;
    background-color: #fff;
}

.news-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.news-main-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.news-header {
    margin-bottom: 30px;
}

.news-tag {
    display: inline-block;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.news-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-right: 25px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.news-featured-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 40px;
}

.news-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 30px 0 20px;
}

.news-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 25px 0 15px;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content ul, 
.news-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.news-content li {
    margin-bottom: 10px;
}

.news-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.news-content a:hover {
    color: var(--primary-color);
}

.news-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.news-share p {
    margin-right: 15px;
    font-weight: 500;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.email {
    background-color: #7f8c8d;
}

.news-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.news-tags p {
    margin-right: 15px;
    font-weight: 500;
    color: var(--primary-color);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
}

.tag-link {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.tag-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

.news-author-box {
    display: flex;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.author-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.author-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: white;
    border-radius: 50%;
    color: var(--primary-color);
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: var(--transition);
}

.author-social a:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Comentarios */
.news-comments {
    margin-bottom: 40px;
}

.news-comments h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.comment-list {
    margin-bottom: 40px;
}

.comment {
    display: flex;
    margin-bottom: 30px;
}

.comment-reply {
    margin-left: 60px;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    position: relative;
}

.comment-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent var(--light-color) transparent transparent;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-header h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.comment-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.comment-text {
    margin-bottom: 15px;
    color: var(--text-color);
}

.comment-actions .reply-btn {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.comment-actions .reply-btn:hover {
    text-decoration: underline;
}

/* Formulario de comentarios */
.comment-form h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 10px;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    left: 0;
    bottom: -1px;
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.search-form button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background-color: var(--primary-color);
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    margin-bottom: 20px;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recent-post-image:hover img {
    transform: scale(1.1);
}

.recent-post-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.recent-post-info h4 a {
    color: var(--primary-color);
    transition: var(--transition);
}

.recent-post-info h4 a:hover {
    color: var(--secondary-color);
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.post-date i {
    margin-right: 5px;
}

/* Categories Widget */
.categories-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.categories-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.categories-list a {
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    transition: var(--transition);
}

.categories-list a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.categories-list span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
}

.tags-cloud .tag {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.tags-cloud .tag:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-content h3 {
    color: white;
    border-bottom: none;
    padding-bottom: 0;
}

.cta-content h3::after {
    display: none;
}

.cta-content p {
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.cta-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* Related News */
.related-news {
    padding: 60px 0;
    background-color: var(--light-color);
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.newsletter-text {
    flex: 1;
    padding-right: 50px;
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-text p {
    opacity: 0.9;
}

.newsletter-form {
    flex: 1;
}

.newsletter-form form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 0 30px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--light-color);
}

/* Responsive */
@media (max-width: 992px) {
    .news-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        position: static;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-text {
        padding-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .news-header h1 {
        font-size: 2rem;
    }
    
    .news-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto 20px;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin: 0 auto 15px;
    }
    
    .comment-content {
        text-align: center;
    }
    
    .comment-content::before {
        display: none;
    }
    
    .comment-reply {
        margin-left: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .news-hero {
        padding: 100px 0 20px;
    }
    
    .news-detail {
        padding: 40px 0;
    }
    
    .news-share, 
    .news-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-share p, 
    .news-tags p {
        margin-bottom: 10px;
    }
    
    .comment-header {
        flex-direction: column;
    }
}