/* Estilos para Blog */

/* Hero del Blog */
.blog-hero {
    background: linear-gradient(135deg, #0a2540 0%, #1a3a5a 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-top: 80px;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #00c389;
}

.blog-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.blog-search {
    max-width: 500px;
    margin: 0 auto;
}

.blog-search input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.blog-search input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 195, 137, 0.3);
}

/* Breadcrumb */
.breadcrumb {
    background: #f5f5f5;
    padding: 15px 20px;
    font-size: 0.9rem;
    margin-top: 80px;
}

.breadcrumb a {
    color: #0a2540;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #00c389;
}

/* Blog Posts Section */
.blog-posts {
    padding: 60px 20px;
}

/* Filtros */
.blog-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #00c389;
    color: white;
    border-color: #00c389;
}

/* Grid de Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.blog-card.featured {
    grid-column: span 2;
    grid-row: span 1;
}

@media (max-width: 768px) {
    .blog-card.featured {
        grid-column: span 1;
    }
}

.card-image {
    background: linear-gradient(135deg, #00c389 0%, #0a9d6a 100%);
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
}

.image-placeholder {
    font-size: 4rem;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta-small {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.category {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 15px;
    color: #0a2540;
    font-weight: 600;
}

.date {
    color: #999;
}

.blog-card h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card h2 a {
    color: #0a2540;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h2 a:hover {
    color: #00c389;
}

.blog-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.read-more {
    color: #00c389;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more:hover {
    gap: 5px;
    color: #0a9d6a;
}

.reading-time {
    color: #999;
    font-size: 0.85rem;
}

.coming-soon {
    opacity: 0.7;
    pointer-events: none;
}

.coming-soon-badge {
    background: #ddd;
    color: #666;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Post Individual */
.blog-post {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.post-header {
    margin-bottom: 40px;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.intro {
    font-size: 1.2rem;
    color: #0a2540;
    font-weight: 500;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #00c389;
    border-radius: 4px;
}

/* Tabla de contenidos */
.toc {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}

.toc h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #0a2540;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: #00c389;
    text-decoration: none;
    transition: color 0.3s;
}

.toc a:hover {
    color: #0a9d6a;
    text-decoration: underline;
}

.post-content h2 {
    font-size: 1.6rem;
    color: #0a2540;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.post-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

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

.post-content strong {
    color: #00c389;
    font-weight: 600;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #00c389 0%, #0a9d6a 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.cta-box p {
    font-size: 1.05rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

/* Autor */
.post-author {
    display: flex;
    gap: 25px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin: 50px 0;
    align-items: flex-start;
}

.author-image {
    flex-shrink: 0;
}

.avatar {
    width: 80px;
    height: 80px;
    background: #00c389;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0a2540;
}

.author-info p {
    color: #666;
    line-height: 1.6;
}

/* Posts Relacionados */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #0a2540;
}

.related-posts .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.post-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.post-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.post-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.post-card h4 a {
    color: #0a2540;
    text-decoration: none;
}

.post-card h4 a:hover {
    color: #00c389;
}

.post-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-card .read-more {
    color: #00c389;
    font-weight: 600;
    text-decoration: none;
}

/* Newsletter */
.newsletter-cta {
    background: linear-gradient(135deg, #0a2540 0%, #1a3a5a 100%);
    color: white;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    margin-top: 80px;
}

.newsletter-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #00c389;
}

.newsletter-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 30px;
    background: #00c389;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #0a9d6a;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .post-author {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}