/**
 * Estilos específicos para la página de artículo individual
 */

/* Hero del artículo */
.article-hero {
    background: linear-gradient(135deg, #002C6B 0%, #004AAD 100%);
    color: white;
    padding: 120px 0 40px;
    margin-bottom: 0;
}

.article-hero .container {
    max-width: 900px;
}

.hero-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
}

.hero-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.hero-breadcrumbs a:hover {
    color: white;
    text-decoration: underline;
}

.hero-breadcrumbs .separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.6);
}

.article-hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
    line-height: 1.3;
}

.article-meta-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.article-meta-hero .article-author {
    display: flex;
    align-items: center;
}

.article-meta-hero .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Sección principal del artículo */
.article-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-main {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-featured-image {
    margin: -30px -30px 30px -30px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    height: 400px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido del artículo */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 28px;
    color: #002C6B;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 24px;
    color: #004AAD;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Compartir en redes */
.article-share {
    margin: 40px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 16px;
}

.article-share h3 {
    font-size: 1.4rem;
    color: #002C6B;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.share-button i {
    font-size: 1.2rem;
}

.share-button:nth-child(1) { background-color: #3b5998; }
.share-button:nth-child(2) { background-color: #1da1f2; }
.share-button:nth-child(3) { background-color: #0a66c2; }
.share-button:nth-child(4) { background-color: #25d366; }

/* Autor del artículo */
.article-author-bio {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
}

.author-image {
    margin-right: 20px;
}

.author-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 18px;
    color: #002C6B;
    margin-bottom: 5px;
}

.author-name {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.author-bio {
    color: #555;
    line-height: 1.6;
}

/* Artículos relacionados */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.related-articles h3 {
    font-size: 24px;
    color: #002C6B;
    margin-bottom: 25px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-article-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    background: white;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.related-article-image {
    height: 160px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 15px;
}

.related-article-content h4 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-article-content h4 a {
    color: #002C6B;
    text-decoration: none;
}

.related-article-content h4 a:hover {
    color: #00B1EB;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.related-article-meta .category {
    color: #00B1EB;
    font-weight: 500;
}

/* Comentarios */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.comments-section h3 {
    font-size: 24px;
    color: #002C6B;
    margin-bottom: 25px;
}

.comments-list {
    margin-bottom: 40px;
}

.comment {
    display: flex;
    margin-bottom: 30px;
}

.comment-avatar {
    margin-right: 20px;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.comment-content:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f8f9fa;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.comment-author {
    font-size: 18px;
    color: #002C6B;
    margin: 0;
    font-weight: 600;
}

.comment-date {
    font-size: 14px;
    color: #666;
}

.comment-text {
    color: #333;
    line-height: 1.6;
}

/* Formulario de comentarios */
.comment-form h3 {
    font-size: 24px;
    color: #002C6B;
    margin-bottom: 25px;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #00B1EB;
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.captcha-container {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-submit {
    background-color: #00B1EB;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.form-submit i {
    margin-left: 8px;
}

.form-submit:hover {
    background-color: #0091C8;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 30px;
}

.sidebar-section {
    background-color: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 1.2rem;
    color: #002C6B;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E5E7EB;
    font-weight: 600;
}

.sidebar-section.newsletter-section {
    background: linear-gradient(135deg, #002C6B 0%, #004AAD 100%);
    color: white;
}

.sidebar-section.newsletter-section .sidebar-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.subscribe-btn {
    width: 100%;
    background-color: #00B1EB;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.subscribe-btn:hover {
    background-color: #0091C8;
}

/* Notificaciones */
.notification {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.notification-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notification-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notification-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Media Queries */
@media (max-width: 991px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-hero {
        padding: 40px 0 30px;
    }
    
    .article-hero h1 {
        font-size: 28px;
    }
    
    .article-meta-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-featured-image {
        height: 250px;
    }
    
    .article-main {
        padding: 20px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-sidebar {
        margin-top: 30px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .comment-content:before {
        display: none;
    }
}

@media (max-width: 767px) {
    .article-hero h1 {
        font-size: 24px;
    }
    
    .article-featured-image {
        height: 200px;
        margin: -20px -20px 20px -20px;
    }
    
    .comment-form-grid {
        grid-template-columns: 1fr;
    }
    
    .article-author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}