/* =========================================================
   ARTÍCULO PREMIUM PIXAWEB
   Se carga después de styles.css y blog.css
   ========================================================= */

:root {
    --ap-dark: #080b33;
    --ap-text: #171a38;
    --ap-muted: #67708d;
    --ap-line: #e3e8fb;
    --ap-blue: #176cff;
    --ap-purple: #7d29ff;
    --ap-pink: #ef16ba;
    --ap-gradient: linear-gradient(135deg, #176cff, #7d29ff 54%, #ef16ba);
}

.premium-article-page {
    background:
        radial-gradient(circle at 87% 5%, rgba(125, 41, 255, .09), transparent 21%),
        linear-gradient(180deg, #f7f9ff 0, #fff 420px);
}

.premium-article-shell {
    width: min(1180px, calc(100% - 42px));
    margin-inline: auto;
}

.premium-article-hero {
    position: relative;
    padding: 72px 0 64px;
    overflow: hidden;
}

.premium-article-hero::after {
    content: "";
    position: absolute;
    top: -210px;
    right: -150px;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(125, 41, 255, .08);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(125, 41, 255, .018),
        0 0 0 140px rgba(23, 108, 255, .012);
}

.premium-article-hero .premium-article-shell {
    position: relative;
    z-index: 2;
    max-width: 1020px;
    text-align: center;
}

.premium-back-link {
    display: inline-flex;
    margin-bottom: 22px;
    color: #3356c6;
    font-size: .84rem;
    font-weight: 800;
}

.premium-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--ap-muted);
    font-size: .8rem;
    font-weight: 700;
}

.premium-category {
    padding: 8px 14px;
    color: #fff;
    background: var(--ap-gradient);
    border-radius: 999px;
    box-shadow: 0 9px 25px rgba(125, 41, 255, .19);
}

.premium-article-hero h1 {
    max-width: 980px;
    margin: 0 auto;
    color: var(--ap-dark);
    font-size: clamp(3rem, 5.4vw, 5.25rem);
    line-height: .98;
    letter-spacing: -.066em;
    text-wrap: balance;
}

.article-title-accent {
    color: transparent;
    background: var(--ap-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.premium-lead {
    max-width: 760px;
    margin: 24px auto 0;
    color: var(--ap-muted);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.68;
    text-wrap: balance;
}

.premium-cover-shell {
    position: relative;
    z-index: 3;

    /* La portada queda más contenida que el resto del artículo */
    width: min(980px, calc(100% - 42px));
}

.premium-cover {
    margin: 0;
    padding: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--ap-line);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(13, 22, 82, .14);
}

.premium-cover img {
    display: block;
    width: 100%;
    height: auto;

    /* Muestra la imagen completa, sin recortar sus costados */
    max-height: none;
    object-fit: contain;
    object-position: center;

    background: #090b3c;
    border-radius: 18px;
}

.premium-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
    padding-top: 54px;
    padding-bottom: 88px;
}

.premium-content-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 28px;
    box-shadow: 0 18px 55px rgba(13, 22, 82, .07);
}

.premium-content {
    padding: 38px 40px 28px;
    color: #3b425f;
    font-size: 1rem;
    line-height: 1.8;
}

.premium-content > p:first-child {
    margin-top: 0;
    padding: 0 0 28px;
    color: #424964;
    font-size: 1.06rem;
    border-bottom: 1px solid var(--ap-line);
}

.article-topic {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--ap-line);
}

.article-topic:last-child {
    border-bottom: 0;
}

.article-topic-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(23, 108, 255, .12);
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(23, 108, 255, .08);
}

.article-topic-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.article-topic-icon.icon-1 {
    color: #176cff;
    background: linear-gradient(135deg, #f0f7ff, #edf3ff);
}

.article-topic-icon.icon-2 {
    color: #7d29ff;
    background: linear-gradient(135deg, #f7f2ff, #f1edff);
}

.article-topic-icon.icon-3 {
    color: #ef16ba;
    background: linear-gradient(135deg, #fff0fb, #fff5fc);
}

.article-topic-body {
    min-width: 0;
}

.article-topic-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.article-topic-number {
    display: inline-flex;
    min-width: 33px;
    height: 27px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--ap-gradient);
    border-radius: 8px;
    font-size: .7rem;
    font-weight: 900;
}

.article-topic h2 {
    margin: 0;
    color: var(--ap-text);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.article-topic p {
    margin: 0 0 14px;
}

.article-topic p:last-child {
    margin-bottom: 0;
}

.article-topic ul,
.article-topic ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.premium-share {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 23px 30px;
    background: #f7f9ff;
    border-top: 1px solid var(--ap-line);
}

.premium-share small {
    display: block;
    margin-bottom: 3px;
    color: var(--ap-muted);
}

.premium-share strong {
    color: var(--ap-text);
}

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

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

.premium-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.premium-cta {
    position: relative;
    overflow: hidden;
    padding: 31px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 4%, rgba(239, 22, 186, .5), transparent 28%),
        radial-gradient(circle at 5% 95%, rgba(23, 108, 255, .4), transparent 33%),
        #090b3c;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 27px;
    box-shadow: 0 25px 66px rgba(8, 10, 57, .27);
}

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

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

.premium-cta-kicker {
    display: block;
    margin-bottom: 11px;
    color: #87d9ff;
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.premium-cta h2 {
    margin: 0 0 13px;
    font-size: 2rem;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.premium-cta > p {
    margin-bottom: 20px;
    color: #d6ddf7;
    line-height: 1.62;
}

.premium-benefits {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.premium-benefits > div {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 11px;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
}

.premium-benefits > div > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.09);
    border-radius: 10px;
    font-size: 1rem;
}

.premium-benefits p {
    margin: 0;
}

.premium-benefits strong,
.premium-benefits small {
    display: block;
}

.premium-benefits strong {
    color: #fff;
    font-size: .82rem;
}

.premium-benefits small {
    margin-top: 2px;
    color: #bbc5eb;
    font-size: .72rem;
}

.premium-cta-button {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--ap-gradient);
    border-radius: 13px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(239, 22, 186, .24);
}

.premium-response {
    display: block;
    margin-top: 12px;
    color: #bfc8eb;
    text-align: center;
}

.premium-mini-card {
    padding: 23px;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 21px;
    box-shadow: 0 15px 40px rgba(13, 22, 82, .07);
}

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

.premium-mini-card h3 {
    margin: 8px 0 13px;
    color: var(--ap-text);
    font-size: 1.1rem;
    line-height: 1.25;
}

.premium-mini-card a {
    color: #2458d2;
    font-weight: 850;
}

.premium-related {
    padding: 76px 0 90px;
    background:
        radial-gradient(circle at 90% 15%, rgba(239, 22, 186, .08), transparent 24%),
        #f6f8ff;
    border-top: 1px solid var(--ap-line);
}

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

.premium-related-heading > div > span {
    color: #2458d2;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.premium-related-heading h2 {
    margin: 9px 0 0;
    color: var(--ap-text);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

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

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

.premium-related-card > a {
    height: 100%;
    display: grid;
    grid-template-columns: 135px 1fr;
    overflow: hidden;
    color: inherit;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 19px;
    box-shadow: 0 14px 34px rgba(13, 22, 82, .07);
}

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

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

.premium-related-content {
    display: flex;
    flex-direction: column;
    padding: 17px;
}

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

.premium-related-content h3 {
    margin: 8px 0 13px;
    color: var(--ap-text);
    font-size: .96rem;
    line-height: 1.24;
}

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

@media (max-width: 980px) {
    .premium-content-layout {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 700px) {
    .premium-article-shell {
        width: min(100% - 24px, 1180px);
    }

    .premium-article-hero {
        padding: 56px 0 46px;
    }

    .premium-article-hero h1 {
        font-size: clamp(2.45rem, 11vw, 3.5rem);
    }

    .premium-cover-shell {
        width: min(100% - 24px, 980px);
    }

    .premium-cover {
        padding: 6px;
        border-radius: 19px;
    }

    .premium-cover img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        object-position: center;
        border-radius: 14px;
    }

    .premium-content-layout {
        gap: 25px;
        padding-top: 30px;
        padding-bottom: 58px;
    }

    .premium-content-card {
        border-radius: 21px;
    }

    .premium-content {
        padding: 25px 21px 20px;
        font-size: .95rem;
    }

    .article-topic {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 13px;
        padding: 23px 0;
    }

    .article-topic-icon {
        width: 43px;
        height: 43px;
        border-radius: 12px;
    }

    .article-topic-icon svg {
        width: 23px;
        height: 23px;
    }

    .article-topic-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .article-topic h2 {
        font-size: 1.35rem;
    }

    .premium-share {
        display: grid;
        padding: 21px;
    }

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

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

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

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

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