/* ==================================================
   BLOG - EL RINCÓN DE SHIWA
================================================== */


/* ==================================================
   HERO
================================================== */

.blog-page {
    background: var(--purple-dark);
}

.blog-hero {
    position: relative;
    overflow: hidden;

    padding: 130px 0 110px;

    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(102, 54, 125, 0.25),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(212, 175, 55, 0.08),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            var(--purple-deep),
            var(--purple-dark)
        );
}

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

    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}


/* ==================================================
   DECORACIONES
================================================== */

.blog-hero-decoration {
    position: absolute;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 50%;

    pointer-events: none;
}

.blog-hero-decoration.decoration-left {
    left: -220px;
    bottom: -220px;
}

.blog-hero-decoration.decoration-right {
    right: -220px;
    top: -220px;
}


/* ==================================================
   TEXTO HERO
================================================== */

.blog-eyebrow {
    display: block;

    margin-bottom: 20px;

    color: var(--gold);

    font-family: "Cinzel", serif !important;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.blog-hero h1 {
    margin: 0;

    color: var(--gold-light) !important;

    font-family: "Great Vibes", cursive !important;

    font-size: clamp(65px, 8vw, 110px);
    font-weight: 400;

    line-height: 1.1;

    text-shadow:
        0 5px 30px rgba(0, 0, 0, 0.45);
}

.blog-hero p {
    max-width: 760px;

    margin: 30px auto 0;

    color: rgba(247, 243, 237, 0.92);

    font-family: "Cormorant Garamond", serif !important;

    font-size: clamp(21px, 2vw, 27px);

    line-height: 1.7;
}


/* ==================================================
   DIVISOR
================================================== */

.blog-divider {
    position: relative;

    width: 280px;
    height: 1px;

    margin: 30px auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            var(--gold-light),
            var(--gold),
            transparent
        );
}

.blog-divider span {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -52%);

    padding: 0 15px;

    color: var(--gold);

    background: var(--purple-deep);

    font-size: 22px;
}


/* ==================================================
   SECCIÓN ARTÍCULOS
================================================== */

.blog-posts-section {
    position: relative;

    padding: 120px 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(102, 54, 125, 0.20),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            var(--purple-dark),
            var(--purple-deep)
        );
}


/* ==================================================
   CABECERA ARTÍCULOS
================================================== */

.blog-section-heading {
    max-width: 800px;

    margin: 0 auto 70px;

    text-align: center;
}

.blog-section-heading h2 {
    margin: 0;

    color: var(--gold-light);

    font-family: "Great Vibes", cursive !important;

    font-size: clamp(55px, 6vw, 85px);
    font-weight: 400;

    line-height: 1.1;
}


/* ==================================================
   GRID DE ARTÍCULOS
================================================== */

.blog-posts-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px;
}


/* ==================================================
   TARJETA ARTÍCULO
================================================== */

.blog-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(73, 36, 89, 0.92),
            rgba(27, 10, 37, 0.98)
        );

    border: 1px solid rgba(212, 175, 55, 0.22);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.28);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-8px);

    border-color: rgba(212, 175, 55, 0.70);

    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.42),
        0 0 30px rgba(212, 175, 55, 0.08);
}


/* ==================================================
   IMAGEN
================================================== */

.blog-card-image {
    display: block;

    overflow: hidden;

    aspect-ratio: 16 / 10;
}

.blog-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.6s ease;
}

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


/* IMAGEN SI NO HAY FOTO */

.blog-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--gold);

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.10),
            transparent 60%
        ),
        var(--purple-main);

    font-size: 50px;
}


/* ==================================================
   CONTENIDO TARJETA
================================================== */

.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 28px;
}


/* FECHA */

.blog-card-meta {
    margin-bottom: 12px;

    color: var(--gold);

    font-family: "Cinzel", serif !important;

    font-size: 11px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* TÍTULO */

.blog-card h3 {
    margin: 0 0 18px;
}

.blog-card h3 a {
    color: var(--gold-light);

    font-family: "Great Vibes", cursive !important;

    font-size: 42px;
    font-weight: 400;

    line-height: 1.1;

    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--gold);
}


/* EXTRACTO */

.blog-card-excerpt {
    color: rgba(247, 243, 237, 0.82);

    font-family: "Cormorant Garamond", serif !important;

    font-size: 19px;

    line-height: 1.65;
}

.blog-card-excerpt p {
    margin: 0;
}


/* ==================================================
   LEER MÁS
================================================== */

.blog-read-more {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: auto;
    padding-top: 25px;

    color: var(--gold);

    font-family: "Cinzel", serif !important;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.blog-read-more span {
    font-size: 20px;

    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: var(--gold-light);

    gap: 16px;
}


/* ==================================================
   SIN ARTÍCULOS
================================================== */

.blog-no-posts {
    grid-column: 1 / -1;

    padding: 80px 30px;

    text-align: center;

    border: 1px solid rgba(212, 175, 55, 0.20);

    background: rgba(73, 36, 89, 0.25);
}

.blog-no-posts > span {
    display: block;

    margin-bottom: 20px;

    color: var(--gold);

    font-size: 35px;
}

.blog-no-posts h3 {
    margin: 0 0 15px;

    color: var(--gold-light);

    font-family: "Great Vibes", cursive !important;

    font-size: 55px;
    font-weight: 400;
}

.blog-no-posts p {
    margin: 0;

    color: rgba(247, 243, 237, 0.80);

    font-family: "Cormorant Garamond", serif !important;

    font-size: 21px;
}


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

@media (max-width: 1000px) {

    .blog-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .blog-hero {
        padding: 90px 0 80px;
    }

    .blog-eyebrow {
        font-size: 11px;

        letter-spacing: 1.5px;
    }

    .blog-posts-section {
        padding: 80px 0;
    }

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

    .blog-card h3 a {
        font-size: 38px;
    }

    .blog-card-content {
        padding: 24px;
    }

}
