/* Estilos profesionales optimizados para todos los artículos del blog */
/* Archivo centralizado para mejorar rendimiento y evitar CSS inline duplicado */

/* Contenedor principal del artículo */
.article-content,
.blog-content {
    font-size: 17px;
    line-height: 1.8;
    color: #2d3748;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Títulos principales */
.article-content h2,
.blog-content h2 {
    font-size: 32px;
    color: #1a202c;
    margin-top: 50px;
    margin-bottom: 25px;
    border-left: 5px solid #2ecc71;
    padding-left: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Subtítulos */
.article-content h3,
.blog-content h3 {
    font-size: 24px;
    color: #2d3748;
    margin-top: 35px;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Párrafos */
.article-content p,
.blog-content p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
    color: #4a5568;
}

/* Listas */
.article-content ul,
.article-content ol,
.blog-content ul,
.blog-content ol {
    margin: 25px 0;
    padding-left: 35px;
}

.article-content li,
.blog-content li {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #4a5568;
}

/* Texto en negrita */
.article-content strong,
.blog-content strong {
    color: #1a202c;
    font-weight: 600;
}

/* Listas de beneficios con estilo */
.benefits-list li {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 14px;
    border-left: 4px solid #2ecc71;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.benefits-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(46,204,113,0.15);
}

/* Cajas de información */
.info-box,
.warning-box,
.step-box,
.faq-item,
.testimonial {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.info-box:hover,
.warning-box:hover,
.step-box:hover,
.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Tablas de comparación */
.comparison-table table {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Lista de recursos */
.resources-list li {
    background: linear-gradient(135deg, #f7fafc 0%, #e6f7ff 100%);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.resources-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.15);
}

.resources-list a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
}

.resources-list a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Footer del artículo */
.article-footer {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Contenedor del blog (para artículos que usan blog-container) */
.blog-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Header del blog */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    border-bottom: 3px solid #2ecc71;
}

.blog-header h1 {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Badge de año */
.year-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Meta información del blog */
.blog-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 15px;
}

.blog-meta span {
    margin-right: 20px;
}

/* Contenedor de artículo alternativo */
.article-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Optimización para pantallas grandes (>1400px) */
@media (min-width: 1400px) {
    .article-content,
    .blog-content,
    .blog-container,
    .article-container {
        max-width: 1200px;
        font-size: 18px;
        padding: 0 40px;
    }
    
    .article-content h2,
    .blog-content h2 {
        font-size: 36px;
    }
    
    .article-content h3,
    .blog-content h3 {
        font-size: 26px;
    }
    
    .article-content p,
    .blog-content p {
        line-height: 1.9;
    }
    
    .blog-header h1 {
        font-size: 48px;
    }
}

@media (min-width: 1600px) {
    .article-content,
    .blog-content,
    .blog-container,
    .article-container {
        max-width: 1400px;
        padding: 0 60px;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .article-content,
    .blog-content,
    .blog-container,
    .article-container {
        padding: 0 15px;
        font-size: 16px;
    }
    
    .article-content h2,
    .blog-content h2 {
        font-size: 26px;
    }
    
    .article-content h3,
    .blog-content h3 {
        font-size: 20px;
    }
    
    .blog-header h1 {
        font-size: 32px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr !important;
    }
    
    .benefits-list li,
    .resources-list li {
        padding: 12px 14px;
    }
}

/* Transiciones suaves para todos los elementos interactivos */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
