/* ============================================
   BLOG PAGE STYLES - ACTUALIZADO
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    padding-top: 80px;
    margin: 0;
    line-height: 1.6;
}

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

/* ============================================
   HERO SECTION - CON PARTÍCULAS ANIMADAS
   ============================================ */

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blog-hero {
    background: #ffffff;
    padding: 140px 20px 100px 20px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #6b7280;
    margin: 0 auto;
    line-height: 1.6;
    max-width: 700px;
}

/* ============================================
   FEATURED POST
   ============================================ */

.featured-post-section {
    padding: 80px 20px;
    background: #f9fafb;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.featured-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.featured-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.featured-post:hover .featured-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.featured-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.post-category,
.post-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.post-category i,
.post-date i {
    font-size: 16px;
    color: #06b6d4;
}

.featured-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.featured-excerpt {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 32px;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.author-role {
    font-size: 13px;
    color: #6b7280;
}

.read-more-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

/* ============================================
   BLOG CATEGORIES
   ============================================ */

.blog-categories-section {
    padding: 40px 20px;
    background: #ffffff;
}

.category-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-btn:hover {
    border-color: #06b6d4;
    color: #06b6d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border-color: #06b6d4;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.category-btn i {
    font-size: 18px;
}

/* ============================================
   BLOG GRID
   ============================================ */

.blog-grid-section {
    padding: 60px 20px 100px 20px;
    background: #ffffff;
}

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

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
}

.blog-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 28px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: #06b6d4;
}

.blog-excerpt {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #9ca3af;
}

.read-time i {
    font-size: 16px;
}

.blog-link {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #06b6d4;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-link:hover {
    background: rgba(6, 182, 212, 0.1);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #06b6d4;
    color: #06b6d4;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border-color: #06b6d4;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   NEWSLETTER SECTION - CAMBIADO A FONDO BLANCO
   ============================================ */

.newsletter-section {
    padding: 100px 20px;
    background: #ffffff;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.3);
}

.newsletter-icon i {
    font-size: 36px;
    color: white;
}

.newsletter-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-subtitle {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 36px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    font-size: 16px;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.newsletter-btn {
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #1f2937;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 300px;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .blog-hero {
        padding: 120px 20px 80px 20px;
        min-height: 40vh;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .featured-post-section {
        padding: 60px 20px;
    }

    .featured-content {
        padding: 32px 24px;
    }

    .featured-title {
        font-size: 24px;
    }

    .featured-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

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

    .newsletter-title {
        font-size: 32px;
    }

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

    .newsletter-btn {
        justify-content: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .newsletter-title {
        font-size: 28px;
    }
}