/* =========================
   PREMIUM ARTICLE EXPERIENCE
   Página individual de noticia: editorial, SEO-friendly, monetizable y mobile-first
========================= */

.article-page {
    padding: 34px 0 56px;
}

.article-shell {
    max-width: 1180px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.breadcrumb a {
    color: var(--brand);
}

.breadcrumb span {
    color: #b7aa98;
}

.premium-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.premium-article-card {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.article-hero {
    padding: clamp(20px, 4vw, 36px) clamp(20px, 4vw, 36px) 20px;
    background: #ffffff;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.article-title {
    max-width: 980px;
    margin: 0;
    color: var(--brand);
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.article-summary {
    max-width: 68ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.article-hero-image {
    margin: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--brand-soft);
}

.article-hero-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    object-fit: cover;
}

.article-hero-image figcaption {
    padding: 10px clamp(20px, 4vw, 46px);
    color: var(--muted);
    background: rgba(251, 248, 242, .94);
    font-size: 12px;
    font-weight: 800;
}

.article-hero-placeholder {
    min-height: 320px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(23, 50, 77, .96), rgba(184, 135, 70, .82));
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 850;
    letter-spacing: -.03em;
}

.premium-article-content {
    padding: clamp(28px, 5vw, 52px) clamp(24px, 5vw, 56px);
}

.premium-article-content p {
    max-width: 68ch;
    margin: 0 auto 22px;
    color: #344054;
    font-family: inherit;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.8;
}

.premium-article-content p:first-child::first-letter {
    float: left;
    margin: 8px 10px 0 0;
    color: var(--brand);
    font-size: 4.2em;
    line-height: .78;
    font-weight: 800;
}

.article-inline-ad {
    max-width: 760px;
    margin: 34px auto;
}

.article-source-box {
    max-width: 760px;
    margin: 36px auto 0;
    padding: 22px;
    border: 1px solid rgba(230, 222, 210, .96);
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(23, 50, 77, .08), transparent 16rem),
        var(--paper-soft);
}

.article-source-box span {
    display: block;
    margin-bottom: 4px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.article-source-box strong {
    display: block;
    color: var(--brand);
    font-size: 18px;
    letter-spacing: -.02em;
}

.premium-article-sidebar {
    display: grid;
    gap: 18px;
}

.share-card {
    padding: 18px;
    border: 1px solid rgba(230, 222, 210, .92);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 34px rgba(24, 33, 47, .06);
}

.share-card .mini-label {
    padding: 6px 10px;
    font-size: 10px;
}

.share-card h2 {
    margin: 12px 0 14px;
    color: var(--brand);
    font-family: inherit;
    font-size: 23px;
    line-height: 1;
    letter-spacing: -.045em;
}

.share-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.share-actions a {
    width: 46px;
    height: 46px;
    min-height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(230, 222, 210, .95);
    border-radius: 50%;
    background: rgba(251, 248, 242, .82);
    color: transparent;
    font-size: 0;
    font-weight: 950;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.share-actions a::before {
    width: 20px;
    height: 20px;
    display: block;
    color: var(--brand);
    font-size: 19px;
    line-height: 1;
    text-align: center;
}

.share-actions a[href*="whatsapp"]::before {
    content: "";
    border-radius: 50%;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16.01 3.2A12.73 12.73 0 0 0 5.08 22.5L3.6 28.8l6.45-1.44A12.72 12.72 0 1 0 16.01 3.2Zm0 2.35a10.37 10.37 0 0 1 8.77 15.9 10.34 10.34 0 0 1-13.9 3.66l-.43-.25-3.86.86.88-3.74-.28-.45A10.37 10.37 0 0 1 16.01 5.55Zm-4.1 5.1c-.25 0-.66.1-1 .47-.34.37-1.32 1.29-1.32 3.14 0 1.85 1.35 3.64 1.54 3.9.19.24 2.6 4.15 6.44 5.65 3.2 1.26 3.84 1.01 4.54.94.7-.06 2.25-.92 2.57-1.8.32-.9.32-1.66.23-1.82-.1-.16-.35-.25-.73-.44-.38-.19-2.25-1.11-2.6-1.24-.35-.13-.6-.19-.86.19-.25.38-.98 1.24-1.2 1.5-.22.25-.44.28-.82.09-.38-.19-1.6-.59-3.04-1.88-1.13-1-1.89-2.24-2.11-2.62-.22-.38-.02-.58.17-.77.17-.17.38-.44.57-.66.2-.22.25-.38.38-.63.13-.25.06-.47-.03-.66-.1-.19-.86-2.07-1.18-2.84-.31-.74-.63-.64-.86-.65h-.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16.01 3.2A12.73 12.73 0 0 0 5.08 22.5L3.6 28.8l6.45-1.44A12.72 12.72 0 1 0 16.01 3.2Zm0 2.35a10.37 10.37 0 0 1 8.77 15.9 10.34 10.34 0 0 1-13.9 3.66l-.43-.25-3.86.86.88-3.74-.28-.45A10.37 10.37 0 0 1 16.01 5.55Zm-4.1 5.1c-.25 0-.66.1-1 .47-.34.37-1.32 1.29-1.32 3.14 0 1.85 1.35 3.64 1.54 3.9.19.24 2.6 4.15 6.44 5.65 3.2 1.26 3.84 1.01 4.54.94.7-.06 2.25-.92 2.57-1.8.32-.9.32-1.66.23-1.82-.1-.16-.35-.25-.73-.44-.38-.19-2.25-1.11-2.6-1.24-.35-.13-.6-.19-.86.19-.25.38-.98 1.24-1.2 1.5-.22.25-.44.28-.82.09-.38-.19-1.6-.59-3.04-1.88-1.13-1-1.89-2.24-2.11-2.62-.22-.38-.02-.58.17-.77.17-.17.38-.44.57-.66.2-.22.25-.38.38-.63.13-.25.06-.47-.03-.66-.1-.19-.86-2.07-1.18-2.84-.31-.74-.63-.64-.86-.65h-.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.share-actions a[href*="facebook"]::before {
    content: "f";
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 900;
}

.share-actions a[href*="twitter"]::before {
    content: "𝕏";
    font-size: 17px;
    font-weight: 900;
}

.share-actions a::after {
    content: none;
}

.share-actions a:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: rgba(23, 50, 77, .18);
    box-shadow: 0 12px 26px rgba(24, 33, 47, .08);
}

.share-actions a:focus-visible {
    outline: 3px solid rgba(184, 135, 70, .35);
    outline-offset: 3px;
}

.premium-article-sidebar .ad-slot {
    min-height: 320px;
}

.related-news {
    margin-top: 34px;
}

.section-title.compact {
    margin-bottom: 16px;
}

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

.related-card {
    min-height: 170px;
    padding: 20px;
    border: 1px solid rgba(230, 222, 210, .96);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 34px rgba(24, 33, 47, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 52px rgba(24, 33, 47, .11);
}

.related-card span {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--gold);
    background: #fff6e8;
    border: 1px solid #efd9b9;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.related-card strong {
    color: var(--brand);
    font-size: 18px;
    line-height: 1.18;
    letter-spacing: -.03em;
}

@media (min-width: 981px) {
    .premium-article-sidebar {
        position: sticky;
        top: 104px;
    }
}

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

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

    .premium-article-sidebar .ad-slot {
        min-height: 180px;
    }
}

@media (max-width: 720px) {
    .article-page {
        padding: 18px 0 34px;
    }

    .breadcrumb {
        margin-bottom: 12px;
        gap: 6px;
        font-size: 12px;
        line-height: 1.35;
    }

    .premium-article-layout {
        gap: 16px;
    }

    .premium-article-card {
        border-radius: 8px;
        box-shadow: 0 16px 44px rgba(24, 33, 47, .08);
    }

    .article-hero {
        padding: 24px 20px 18px;
    }

    .article-meta {
        margin-bottom: 13px;
        gap: 7px;
    }

    .article-title {
        font-size: clamp(34px, 11vw, 48px);
        line-height: 1;
        letter-spacing: -.06em;
    }

    .article-summary {
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.58;
    }

    .article-hero-image img {
        max-height: none;
        height: 230px;
    }

    .article-hero-image figcaption {
        padding: 9px 18px;
        font-size: 11px;
    }

    .article-hero-placeholder {
        min-height: 210px;
        font-size: 30px;
    }

    .premium-article-content {
        padding: 24px 20px 26px;
    }

    .premium-article-content p {
        margin-bottom: 18px;
        font-size: 18px;
        line-height: 1.74;
    }

    .premium-article-content p:first-child::first-letter {
        margin: 7px 9px 0 0;
        font-size: 3.6em;
    }

    .article-inline-ad {
        margin: 26px auto;
    }

    .article-source-box {
        margin-top: 26px;
        padding: 18px;
        grid-template-columns: 1fr;
        border-radius: 8px;
    }

    .article-source-box .btn {
        width: 100%;
    }

    .premium-article-sidebar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .share-card {
        padding: 16px;
        border-radius: 8px;
        box-shadow: 0 10px 28px rgba(24, 33, 47, .055);
    }

    .share-card h2 {
        margin: 10px 0 12px;
        font-size: 22px;
    }

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

    .share-actions a {
        width: 48px;
        height: 48px;
        min-height: 48px;
        border-radius: 50%;
    }

    .premium-article-sidebar .ad-slot {
        min-height: 130px;
    }

    .related-news {
        margin-top: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .related-card {
        min-height: 132px;
        padding: 18px;
        border-radius: 8px;
    }

    .related-card strong {
        margin-top: 18px;
        font-size: 17px;
    }
}

@media (max-width: 420px) {
    .article-title {
        font-size: clamp(32px, 11.5vw, 42px);
    }

    .article-hero-image img {
        height: 206px;
    }

    .premium-article-content p {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .share-actions a,
    .related-card {
        transition: none !important;
    }
}
