/* ============================================================
   COMPONENTE - BLOG
   Mobile-First
   ============================================================ */

/* ============================================================
   BLOG HERO SECTION - Featured Article
   ============================================================ */
.blog-hero {
    padding: 2rem 0 2.5rem;
    background: transparent;
}

.blog-hero__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blog-hero__label {
    font-family: var(--font-family-primary);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: #06C8FF;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.blog-hero__title {
    font-family: var(--font-family-primary);
    font-size: 2rem;
    font-weight: var(--font-weight-extrabold);
    color: #0F172A;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.blog-hero__description {
    font-family: var(--font-family-primary);
    font-size: 0.95rem;
    font-weight: var(--font-weight-regular);
    color: #64748B;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.blog-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.blog-hero__btn {
    text-align: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 2rem;
}

.blog-hero__btn--outline {
    background: transparent;
    color: #532776;
    border: 2px solid #532776;
}

.blog-hero__btn--outline:hover {
    background: #532776;
    color: #FFFFFF;
}

.blog-hero__image {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
}

.blog-hero__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ============================================================
   BLOG POSTS SECTION
   ============================================================ */
.blog-posts {
    padding: 2.5rem 0 3rem;
    background: transparent;
}

.blog-posts__container {
    /* Hereda estilos del .container */
}

.blog-posts__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.blog-posts__title {
    font-family: var(--font-family-primary);
    font-size: 1.75rem;
    font-weight: var(--font-weight-extrabold);
    color: #0F172A;
    margin: 0;
    line-height: 1.2;
}

.blog-posts__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-family-primary);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: #532776;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-posts__view-all:hover {
    color: #06C8FF;
}

.blog-posts__arrow {
    width: 18px;
    height: 18px;
}

.blog-posts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ============================================================
   BLOG LOAD MORE BUTTON
   ============================================================ */
.blog-posts__load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    text-align: center;
}

.blog-posts__load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-family-primary);
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    color: #532776;
    background: transparent;
    border: 2px solid #532776;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-posts__load-more-btn:hover {
    background: #532776;
    color: #FFFFFF;
}

.blog-posts__load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.blog-posts__load-more-btn .btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.blog-posts__load-more-btn .btn-loading .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.blog-posts__count {
    font-family: var(--font-family-primary);
    font-size: 0.875rem;
    font-weight: var(--font-weight-regular);
    color: #64748B;
    margin: 0;
}

/* ============================================================
   BLOG CARD
   ============================================================ */
.blog-card {
    background: #FFFFFF;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.blog-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #E2E8F0;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}

.blog-card__content {
    padding: 1.5rem;
}

.blog-card__title {
    font-family: var(--font-family-primary);
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: #0F172A;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.blog-card__excerpt {
    font-family: var(--font-family-primary);
    font-size: 0.875rem;
    font-weight: var(--font-weight-regular);
    color: #64748B;
    margin: 0 0 1.25rem;
    line-height: 1.6;
}

.blog-card__link {
    font-family: var(--font-family-primary);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: #532776;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__link:hover {
    color: #06C8FF;
}

/* ============================================================
   MÓVIL PEQUEÑO (hasta 480px)
   ============================================================ */
@media (max-width: 480px) {
    .blog-hero {
        padding: 1.5rem 0 2rem;
    }

    .blog-hero__container {
        padding: 0 1rem;
    }

    .blog-hero__image {
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }

    .blog-posts {
        padding: 2rem 0 2.5rem;
    }

    .blog-posts__container {
        padding: 0 1rem;
    }

    .blog-posts__grid {
        gap: 1rem;
    }

    .blog-card {
        margin: 0;
    }

    .blog-card__image {
        height: 180px;
    }

    .blog-card__content {
        padding: 1rem;
    }
}

/* ============================================================
   MÓVIL (481px - 767px)
   ============================================================ */
@media (min-width: 481px) and (max-width: 767px) {
    .blog-hero__container {
        padding: 0 1.25rem;
    }

    .blog-posts__container {
        padding: 0 1.25rem;
    }
}

/* ============================================================
   TABLET (768px+)
   ============================================================ */
@media (min-width: 768px) {
    .blog-hero {
        padding: 3rem 0 3rem;
    }

    .blog-hero__container {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .blog-hero__content {
        flex: 1;
    }

    .blog-hero__label {
        font-size: 0.95rem;
    }

    .blog-hero__title {
        font-size: 2.25rem;
    }

    .blog-hero__description {
        font-size: 1rem;
    }

    .blog-hero__actions {
        flex-direction: row;
        width: auto;
    }

    .blog-hero__btn {
        padding: 0.875rem 1.75rem;
    }

    .blog-hero__image {
        flex: 1;
        max-width: 50%;
    }

    .blog-hero__img {
        height: 280px;
    }

    .blog-posts {
        padding: 3rem 0 4rem;
    }

    .blog-posts__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

    .blog-posts__title {
        font-size: 2rem;
    }

    .blog-posts__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .blog-card__image {
        height: 200px;
    }

    .blog-card__content {
        padding: 1.5rem;
    }

    .blog-card__title {
        font-size: 1.15rem;
    }

    .blog-card__excerpt {
        font-size: 0.9rem;
    }
}

/* ============================================================
   DESKTOP (1025px+)
   ============================================================ */
@media (min-width: 1025px) {
    .blog-hero {
        padding: 4rem 0 4rem;
    }

    .blog-hero__container {
        gap: 4rem;
    }

    .blog-hero__label {
        font-size: 1rem;
    }

    .blog-hero__title {
        font-size: 2.75rem;
    }

    .blog-hero__description {
        font-size: 1.05rem;
        max-width: 500px;
    }

    .blog-hero__btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    .blog-hero__image {
        max-width: 45%;
    }

    .blog-hero__img {
        height: 350px;
        border-radius: 1rem;
    }

    .blog-posts {
        padding: 4rem 0 5rem;
    }

    .blog-posts__header {
        margin-bottom: 2.5rem;
    }

    .blog-posts__title {
        font-size: 2.25rem;
    }

    .blog-posts__view-all {
        font-size: 0.95rem;
    }

    .blog-posts__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .blog-card__image {
        height: 220px;
    }

    .blog-card__content {
        padding: 1.75rem;
    }

    .blog-card__title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .blog-card__excerpt {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .blog-card__link {
        font-size: 0.9rem;
    }

    .blog-card__title {
        font-size: 1.35rem;
    }

    .blog-card__excerpt {
        font-size: 0.95rem;
    }

    .blog-card__link {
        font-size: 0.95rem;
    }
}
