/* ===== BLOG STYLES - EXTENSIÓN DE LA LANDING ===== */

/* Asegurar que heredamos la tipografía de la landing */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Container que coincida con la landing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Asegurar que los botones mantengan el estilo de la landing */
.btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: white !important;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 18px 35px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px);
}

/* Header/Navigation */
.blog-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(1, 49, 91, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.blog-nav {
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #01315B;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #3DD5FA;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3DD5FA;
}

.btn-nav {
    background: linear-gradient(135deg, #01315B 0%, #3DD5FA 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(1, 49, 91, 0.3);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1, 49, 91, 0.4);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #01315B;
    cursor: pointer;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #01315B 0%, #3DD5FA 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.hero-stat .stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Featured Article */
.featured-article {
    padding: 80px 0;
    background: #f8f9fa;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-badge {
    background: linear-gradient(135deg, #01315B, #3DD5FA);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.featured-text h2 {
    font-size: 2.5rem;
    color: #01315B;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.featured-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 0.9rem;
}

.meta-item i {
    color: #3DD5FA;
}

.read-more-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.featured-image {
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Categories Filter */
.blog-categories {
    padding: 60px 0 40px;
    background: white;
}

.categories-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(1, 49, 91, 0.1);
    color: #01315B;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #01315B 0%, #3DD5FA 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1, 49, 91, 0.3);
}

/* Blog Articles */
.blog-articles {
    padding: 40px 0 80px;
    background: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(1, 49, 91, 0.1);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
}

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

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

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #01315B, #3DD5FA);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-content {
    padding: 30px 25px;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #01315B;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.4;
}

.article-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.article-content .article-meta {
    margin-bottom: 20px;
    gap: 15px;
}

.meta-date,
.meta-reading {
    color: #999;
    font-size: 0.85rem;
}

.article-link {
    color: #3DD5FA;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: #01315B;
    transform: translateX(5px);
}

.article-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.article-link:hover::after {
    transform: translateX(3px);
}

/* Load More */
.load-more-section {
    text-align: center;
}

.load-more-btn {
    background: rgba(1, 49, 91, 0.1);
    color: #01315B;
    border: 2px solid rgba(1, 49, 91, 0.2);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #01315B 0%, #3DD5FA 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 49, 91, 0.3);
}

/* Newsletter */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    color: #01315B;
    margin-bottom: 20px;
    font-weight: bold;
}

.newsletter-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.newsletter-form-input {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(1, 49, 91, 0.2);
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.newsletter-input:focus {
    outline: none;
    border-color: #3DD5FA;
    box-shadow: 0 0 0 3px rgba(61, 213, 250, 0.1);
}

.newsletter-btn {
    background: linear-gradient(135deg, #01315B 0%, #3DD5FA 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 49, 91, 0.3);
}

.newsletter-privacy {
    color: #999;
    font-size: 0.85rem;
    text-align: center;
}

/* Blog CTA */
.blog-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #01315B 0%, #3DD5FA 100%);
    color: white;
    text-align: center;
}

.blog-cta .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.blog-cta .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.blog-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.blog-cta .btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.blog-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.blog-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px 35px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Blog Footer - Mismo estilo que la landing */
.blog-footer {
    background: #01315B;
    color: white;
    padding: 60px 0 40px;
}

.blog-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-footer .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    align-items: start;
}

.blog-footer .footer-section:first-child {
    max-width: 350px;
}

/* Alineación de títulos */
.blog-footer .footer-section h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #3DD5FA, #81d4fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.blog-footer .footer-section h4 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: white;
}

.blog-footer .footer-section p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.blog-footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-footer .footer-section ul li {
    margin-bottom: 15px;
}

.blog-footer .footer-section ul li a,
.blog-footer .footer-section ul li {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    line-height: 1.6;
    display: block;
}

.blog-footer .footer-section ul li a:hover {
    color: #3DD5FA;
}

/* Iconos en líneas de contacto */
.blog-footer .footer-section ul li a i,
.blog-footer .footer-section ul li i {
    width: 20px;
    text-align: left;
    margin-right: 8px;
    color: #3DD5FA;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(61, 213, 250, 0.1);
    border: 2px solid rgba(61, 213, 250, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3DD5FA;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: #3DD5FA;
    color: #01315B;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 213, 250, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-content,
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Navigation Mobile */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: 15px 30px;
        border-bottom: 1px solid rgba(1, 49, 91, 0.1);
        margin: 0;
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-menu .btn-nav {
        margin: 15px 30px 5px;
        text-align: center;
        justify-content: center;
    }
    
    /* Hero */
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .hero-stat .stat-number {
        font-size: 2rem;
    }
    
    /* Featured Article */
    .featured-article {
        padding: 60px 0;
    }
    
    .featured-text h2 {
        font-size: 2rem;
    }
    
    .featured-text p {
        font-size: 1rem;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    /* Categories */
    .blog-categories {
        padding: 40px 0 30px;
    }
    
    .categories-filter {
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Articles */
    .blog-articles {
        padding: 30px 0 60px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .article-content {
        padding: 25px 20px;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    /* Newsletter */
    .newsletter-section {
        padding: 60px 0;
    }
    
    .newsletter-form-input {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-text h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-text p {
        font-size: 1rem;
    }
    
    /* CTA */
    .blog-cta {
        padding: 60px 0;
    }
    
    .blog-cta .cta-content h2 {
        font-size: 2rem;
    }
    
    .blog-cta .cta-content p {
        font-size: 1rem;
    }
    
    .blog-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .blog-cta .btn-primary,
    .blog-cta .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Footer responsive - mismo estilo que la landing */
    .blog-footer {
        padding: 40px 0 30px;
    }
    
    .blog-footer .container {
        padding: 0 20px;
    }
    
    .blog-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .blog-footer .footer-section:first-child {
        max-width: none;
    }
    
    .blog-footer .footer-section h3 {
        font-size: 1.8rem;
    }
    
    .blog-footer .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .featured-text h2 {
        font-size: 1.6rem;
    }
    
    .newsletter-text h2 {
        font-size: 1.5rem;
    }
    
    .blog-cta .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .article-content h3 {
        font-size: 1.1rem;
    }
    
    .hero-stat .stat-number {
        font-size: 1.8rem;
    }
}

/* Hidden class for filtering */
.article-card.hidden {
    display: none;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message for newsletter */
.newsletter-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
    display: none;
}

.newsletter-success.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}