/* =========================================================
   BLOG E INFÓRMATE - PIXAWEB
   ========================================================= */

:root {
    --blog-navy: #07092f;
    --blog-dark: #0a0d32;
    --blog-text: #171a35;
    --blog-muted: #68718d;
    --blog-line: #e7eaff;
    --blog-soft: #f5f7ff;
    --blog-blue: #176cff;
    --blog-purple: #7d28ff;
    --blog-pink: #ee16b8;
    --blog-gradient: linear-gradient(
        135deg,
        var(--blog-blue),
        var(--blog-purple),
        var(--blog-pink)
    );
}

/* =========================================================
   PORTADA INFÓRMATE
   ========================================================= */

.blog-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 12%, rgba(125, 40, 255, .16), transparent 28%),
        radial-gradient(circle at 12% 80%, rgba(23, 108, 255, .12), transparent 28%),
        linear-gradient(180deg, #f6f8ff, #ffffff);
}

.blog-hero .container {
    max-width: 980px;
}

.blog-list-section {
    padding-top: 72px;
    padding-bottom: 90px;
}

.blog-section-heading {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 42px;
    align-items: end;
    margin-bottom: 34px;
}

.blog-section-heading h2 {
    margin-top: 14px;
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.blog-section-heading > p {
    max-width: 690px;
    color: var(--blog-muted);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.blog-card {
    min-width: 0;
}

.blog-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    background: #ffffff;
    border: 1px solid var(--blog-line);
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(9, 16, 70, .09);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.blog-card-link:hover {
    transform: translateY(-7px);
    border-color: rgba(23, 108, 255, .28);
    box-shadow: 0 26px 70px rgba(9, 16, 70, .16);
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2ff;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

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

.blog-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--blog-gradient);
    font-size: 1.4rem;
    font-weight: 900;
}

.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px;
}

.blog-card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: var(--blog-muted);
    font-size: .75rem;
    font-weight: 800;
}

.blog-card-meta span {
    padding: 6px 9px;
    color: #1756df;
    background: rgba(23, 108, 255, .09);
    border-radius: 999px;
}

.blog-card-content h2 {
    margin: 0 0 11px;
    font-size: 1.35rem;
    line-height: 1.14;
    letter-spacing: -.025em;
}

.blog-card-content p {
    margin: 0 0 18px;
    color: var(--blog-muted);
    line-height: 1.65;
}

.blog-card-content strong {
    margin-top: auto;
    color: #1756df;
}

.blog-empty {
    padding: 25px;
    color: var(--blog-muted);
    text-align: center;
    border: 1px dashed var(--blog-line);
    border-radius: 18px;
}

/* =========================================================
   ARTÍCULO INDIVIDUAL
   ========================================================= */

.article-page {
    background:
        radial-gradient(circle at 90% 7%, rgba(125, 40, 255, .075), transparent 20%),
        linear-gradient(180deg, #f8f9ff 0, #ffffff 360px);
}

.article-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 82px;
}

.article-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 980px;
    text-align: center;
}

.article-hero-decoration {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(8px);
}

.article-hero-decoration-one {
    top: -140px;
    right: -100px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(125, 40, 255, .12);
    box-shadow:
        0 0 0 50px rgba(125, 40, 255, .025),
        0 0 0 100px rgba(23, 108, 255, .018);
}

.article-hero-decoration-two {
    bottom: -230px;
    left: -170px;
    width: 430px;
    height: 430px;
    background: radial-gradient(circle, rgba(23, 108, 255, .11), transparent 68%);
}

.article-back-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 25px;
    color: #3159cb;
    font-size: .86rem;
    font-weight: 850;
    text-decoration: none;
}

.article-back-link:hover {
    color: var(--blog-purple);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--blog-muted);
    font-size: .82rem;
    font-weight: 750;
}

.article-category {
    display: inline-flex;
    padding: 8px 13px;
    color: #ffffff;
    background: var(--blog-gradient);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(125, 40, 255, .18);
}

.article-meta-divider {
    width: 4px;
    height: 4px;
    background: #b5bdd2;
    border-radius: 50%;
}

.article-hero h1 {
    max-width: 940px;
    margin: 0 auto;
    color: var(--blog-dark);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: .98;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.article-lead {
    max-width: 760px;
    margin: 24px auto 0;
    color: var(--blog-muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.72;
    text-wrap: balance;
}

.article-cover-wrap {
    position: relative;
    z-index: 4;
    max-width: 1180px;
    margin-top: -18px;
}

.article-cover {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--blog-line);
    border-radius: 32px;
    box-shadow: 0 28px 90px rgba(13, 22, 82, .16);
}

.article-cover::after {
    content: "";
    position: absolute;
    inset: 14px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
}

.article-cover img {
    width: 100%;
    height: auto;
    max-height: 620px;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #0a0b39;
    border-radius: 22px;
}

.article-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 46px;
    align-items: start;
    max-width: 1120px;
    padding-top: 62px;
    padding-bottom: 90px;
}

.article-content-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--blog-line);
    border-radius: 30px;
    box-shadow: 0 18px 55px rgba(13, 22, 82, .075);
}

.article-content {
    padding: 42px 46px 28px;
    color: #38405d;
    font-size: 1.03rem;
    line-height: 1.86;
}

.article-content > :first-child {
    margin-top: 0;
    font-size: 1.08rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    position: relative;
    color: var(--blog-text);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.article-content h2 {
    margin: 46px 0 18px;
    padding: 18px 20px 18px 74px;
    background:
        linear-gradient(90deg, rgba(23, 108, 255, .07), rgba(125, 40, 255, .035));
    border: 1px solid rgba(23, 108, 255, .1);
    border-radius: 18px;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.article-content h2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    width: 38px;
    height: 38px;
    background:
        linear-gradient(135deg, rgba(23, 108, 255, .14), rgba(125, 40, 255, .16));
    border: 1px solid rgba(23, 108, 255, .15);
    border-radius: 12px;
    transform: translateY(-50%);
}

.article-content h2::after {
    content: "✦";
    position: absolute;
    top: 50%;
    left: 31px;
    color: var(--blog-purple);
    font-size: .95rem;
    transform: translateY(-50%);
}

.article-content h3 {
    margin: 32px 0 14px;
    font-size: 1.35rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
    margin: 0 0 21px;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 9px;
}

.article-content strong {
    color: #171a35;
}

.article-content a {
    color: #1756df;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content blockquote {
    padding: 22px 24px;
    color: #252a4a;
    background:
        linear-gradient(135deg, rgba(23, 108, 255, .06), rgba(238, 22, 184, .06));
    border-left: 4px solid var(--blog-purple);
    border-radius: 0 16px 16px 0;
}

.article-content hr {
    height: 1px;
    margin: 38px 0;
    background: var(--blog-line);
    border: 0;
}

.article-share {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 25px 32px;
    background: #f7f9ff;
    border-top: 1px solid var(--blog-line);
}

.article-share span {
    display: block;
    margin-bottom: 4px;
    color: var(--blog-muted);
    font-size: .8rem;
}

.article-share strong {
    color: var(--blog-text);
}

.article-share-actions {
    display: flex;
    gap: 10px;
}

.article-share-actions a,
.article-share-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    color: #244fc1;
    background: #ffffff;
    border: 1px solid #dce3f8;
    border-radius: 12px;
    font: inherit;
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.article-share-actions a:hover,
.article-share-actions button:hover {
    color: #ffffff;
    background: var(--blog-gradient);
    border-color: transparent;
}

.article-sidebar {
    position: sticky;
    top: 118px;
    display: grid;
    gap: 18px;
}

.article-cta-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 95% 4%, rgba(238, 22, 184, .46), transparent 30%),
        radial-gradient(circle at 8% 96%, rgba(23, 108, 255, .38), transparent 32%),
        #080a39;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    box-shadow: 0 24px 65px rgba(8, 10, 57, .26);
}

.article-cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
    background-size: 34px 34px;
}

.article-cta-card > * {
    position: relative;
    z-index: 2;
}

.article-cta-kicker {
    display: block;
    margin-bottom: 12px;
    color: #8ed7ff;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.article-cta-card h2 {
    margin: 0 0 13px;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.article-cta-card p {
    margin-bottom: 20px;
    color: #d4daf5;
    line-height: 1.65;
}

.article-cta-card ul {
    display: grid;
    gap: 11px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.article-cta-card li {
    position: relative;
    padding-left: 27px;
    color: #edf1ff;
    font-size: .86rem;
    font-weight: 700;
}

.article-cta-card li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--blog-gradient);
    border-radius: 50%;
    font-size: .65rem;
}

.article-cta-button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--blog-gradient);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(238, 22, 184, .24);
    font-weight: 900;
    text-decoration: none;
}

.article-cta-card small {
    display: block;
    margin-top: 13px;
    color: #bfc8eb;
    text-align: center;
}

.article-sidebar-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--blog-line);
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(13, 22, 82, .07);
}

.article-sidebar-card > span {
    color: #2458d2;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.article-sidebar-card h3 {
    margin: 9px 0 15px;
    color: var(--blog-text);
    font-size: 1.15rem;
    line-height: 1.3;
}

.article-sidebar-card a {
    color: #2458d2;
    font-weight: 850;
    text-decoration: none;
}

/* =========================================================
   RELACIONADOS
   ========================================================= */

.related-articles-section {
    padding: 78px 0 92px;
    background:
        radial-gradient(circle at 90% 15%, rgba(238, 22, 184, .08), transparent 25%),
        #f7f9ff;
    border-top: 1px solid var(--blog-line);
}

.related-articles-heading {
    display: flex;
    gap: 22px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.related-articles-heading h2 {
    margin: 10px 0 0;
    color: var(--blog-text);
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.related-articles-heading > a {
    color: #2458d2;
    font-weight: 850;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.related-article-card {
    min-width: 0;
}

.related-article-card > a {
    height: 100%;
    display: grid;
    grid-template-columns: 128px 1fr;
    overflow: hidden;
    color: inherit;
    background: #ffffff;
    border: 1px solid var(--blog-line);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(13, 22, 82, .07);
    transition: transform .22s ease, box-shadow .22s ease;
}

.related-article-card > a:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(13, 22, 82, .12);
}

.related-article-image {
    min-height: 150px;
    overflow: hidden;
    background: #edf1ff;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.related-article-content {
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.related-article-content > span {
    color: #7d28ff;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.related-article-content h3 {
    margin: 8px 0 14px;
    color: var(--blog-text);
    font-size: .98rem;
    line-height: 1.25;
}

.related-article-content strong {
    margin-top: auto;
    color: #2458d2;
    font-size: .78rem;
}

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

@media (max-width: 980px) {
    .blog-section-heading,
    .article-main-grid {
        grid-template-columns: 1fr;
    }

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

    .article-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .article-hero {
        padding: 60px 0 52px;
    }

    .article-hero h1 {
        font-size: clamp(2.35rem, 10.5vw, 3.4rem);
    }

    .article-lead {
        font-size: .98rem;
    }

    .article-cover-wrap {
        margin-top: 0;
    }

    .article-cover {
        padding: 8px;
        border-radius: 22px;
    }

    .article-cover img {
        max-height: none;
        border-radius: 16px;
    }

    .article-main-grid {
        gap: 26px;
        padding-top: 34px;
        padding-bottom: 60px;
    }

    .article-content-card {
        border-radius: 22px;
    }

    .article-content {
        padding: 27px 22px 20px;
        font-size: .96rem;
    }

    .article-content h2 {
        margin-top: 34px;
        padding: 16px 16px 16px 58px;
        font-size: 1.4rem;
    }

    .article-content h2::before {
        left: 14px;
        width: 32px;
        height: 32px;
    }

    .article-content h2::after {
        left: 23px;
    }

    .article-share {
        display: grid;
        padding: 22px;
    }

    .article-share-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .article-cta-card {
        padding: 27px;
    }

    .related-articles-heading {
        align-items: start;
        flex-direction: column;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .related-article-card > a {
        grid-template-columns: 116px 1fr;
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-section-heading {
        gap: 18px;
    }
}
