/* ===================== Blog Index - Estilos exclusivos ===================== */

/* ---------- HERO DEL BLOG ---------- */
.blog-hero {
    background: linear-gradient(135deg, #16233F 0%, #1A2D4A 50%, #1F3360 100%);
    padding: 4rem 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-hero__eyebrow {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.blog-hero h1 {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1.2rem;
}

.blog-hero h1 .highlight {
    color: #FFD700;
    position: relative;
}

.blog-hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FFD700;
    border-radius: 2px;
}

.blog-hero__lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 540px;
}

.blog-hero__stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.blog-hero__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ---------- SECCIÓN HEADER ---------- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 2rem;
    color: #16233F;
    margin: 0 0 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #4A5568;
}

/* ---------- ARTÍCULOS DESTACADOS ---------- */
.featured-articles {
    padding: 4rem 1.5rem;
    background: #F7FAFC;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.featured-card__image {
    position: relative;
    overflow: hidden;
}

.featured-card__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.featured-card:hover .featured-card__image img {
    transform: scale(1.03);
}

.featured-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #FFD700;
    color: #16233F;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.featured-card__content {
    padding: 1.5rem;
}

/* ---------- TAGS DE CATEGORÍA ---------- */
.card-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    background: #EDF2F7;
    color: #4A5568;
}

.featured-card--main .featured-card__content h3 {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.featured-card--main .featured-card__content h3 a,
.featured-card--secondary .featured-card__content h3 a {
    color: #16233F;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-card--main .featured-card__content h3 a:hover,
.featured-card--secondary .featured-card__content h3 a:hover {
    color: #1F3360;
}

.featured-card__content p {
    color: #4A5568;
    line-height: 1.7;
    margin: 0.5rem 0 1rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.read-more {
    color: #16233F;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.read-more:hover {
    color: #FFD700;
}

/* ---------- TODOS LOS ARTÍCULOS ---------- */
.all-articles {
    padding: 4rem 1.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.article-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-card__content {
    padding: 1.5rem;
}

.article-card__content h3 {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.article-card__content h3 a {
    color: #16233F;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card__content h3 a:hover {
    color: #1F3360;
}

.article-card__content p {
    color: #4A5568;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ---------- CATEGORÍAS ---------- */
.blog-categories {
    padding: 4rem 1.5rem;
    background: #F7FAFC;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-family: 'Zilla Slab', Georgia, serif;
    color: #16233F;
    margin: 0 0 0.5rem;
}

.category-card p {
    color: #4A5568;
    font-size: 0.95rem;
    margin: 0 0 0.8rem;
}

.category-count {
    display: inline-block;
    background: #EDF2F7;
    color: #4A5568;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---------- NEWSLETTER / CTA ---------- */
.blog-newsletter {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #16233F 0%, #1F3360 100%);
}

.newsletter-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: 'Zilla Slab', Georgia, serif;
    color: white;
    font-size: 1.8rem;
    margin: 0 0 1rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.newsletter-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: #FFD700;
    color: #16233F;
}

.btn--primary:hover {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn--ghost {
    border: 2px solid white;
    color: white;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn--large {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

/* ---------- COMPARTIR ---------- */
.share-section {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-top: 1px solid #E2E8F0;
}

.share-section p {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.twitter {
    background: #000000;
    color: white;
}

.share-btn.linkedin {
    background: #0A66C2;
    color: white;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {

    .blog-hero__inner,
    .featured-grid,
    .newsletter-box {
        grid-template-columns: 1fr;
    }

    .blog-hero__image {
        order: -1;
    }

    .blog-hero {
        padding: 2rem 1rem;
    }

    .blog-hero h1 {
        font-size: 1.6rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-hero__stats {
        gap: 1rem;
    }

    .newsletter-cta {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .card-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
}


/* ===================== CALC PROMO BAR ===================== */
.calc-promo-bar {
    background: linear-gradient(90deg, #FFD700 0%, #FFC107 100%);
    padding: 1rem 1.5rem;
    animation: promoGlow 2s infinite;
}

@keyframes promoGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

.calc-promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.calc-promo-icon {
    font-size: 2rem;
}

.calc-promo-content p {
    margin: 0;
    color: #16233F;
    font-size: 1.05rem;
}

.calc-promo-content .btn {
    background: #16233F;
    color: #FFD700;
    white-space: nowrap;
}

.calc-promo-content .btn:hover {
    background: #0F1A30;
    transform: scale(1.05);
}

/* ===================== SHARE REWARD ===================== */
.share-reward {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #0F1A30 0%, #16233F 50%, #1A2D4A 100%);
    position: relative;
    overflow: hidden;
}

.share-reward::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.reward-box {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.reward-content {
    text-align: center;
}

.reward-badge {
    display: inline-block;
    background: linear-gradient(90deg, #FFD700, #FFC107);
    color: #16233F;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.reward-content h2 {
    font-family: 'Zilla Slab', Georgia, serif;
    color: white;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0 0 1rem;
}

.reward-content h2 .text-gradient {
    background: linear-gradient(90deg, #FFD700 0%, #FFC107 50%, #FFE44D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reward-content>p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 2rem;
}

.reward-steps {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.reward-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-weight: 500;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #FFD700;
    color: #16233F;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
}

.share-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-btn--whatsapp {
    background: #25D366;
    color: white;
}

.share-btn--facebook {
    background: #1877F2;
    color: white;
}

.share-btn--twitter {
    background: #000000;
    color: white;
}

.share-btn--linkedin {
    background: #0A66C2;
    color: white;
}

.reward-footer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.reward-footer strong {
    color: #FFD700;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .calc-promo-content {
        flex-direction: column;
        gap: 0.8rem;
    }

    .reward-steps {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .share-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .share-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}