/* =========================================================
   LICENCIA SOFTWARE - NEWS
   ======================================================= */

.lsgi-shell,
.lsgi-single-shell {
    width: min(1320px, calc(100% - 48px));
    margin-inline: auto;
}

.lsgi-hero {
    padding: 92px 0 58px;
    text-align: center;
}

.lsgi-hero .lsgi-shell {
    max-width: 920px;
}

.lsgi-kicker,
.lsgi-category,
.lsgi-small-label {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lsgi-kicker {
    margin-bottom: 16px;
    color: #64748b;
}

.lsgi-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.03;
    letter-spacing: -.045em;
    font-weight: 650;
}

.lsgi-hero p {
    max-width: 720px;
    margin: 22px auto 0;
    font-size: 18px;
    line-height: 1.7;
    color: #626262;
}

.lsgi-guides-section {
    padding: 28px 0 100px;
}

.lsgi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 24px;
}

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

.lsgi-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 2px;
    background: #f3f5f5;
}

.lsgi-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.lsgi-card:hover
.lsgi-card-media img {
    transform: scale(1.025);
}

.lsgi-placeholder {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 76% 22%,
            rgba(31, 148, 94, .24),
            transparent 34%
        ),
        radial-gradient(
            circle at 20% 90%,
            rgba(20, 46, 37, .16),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #eef6f2 0%,
            #f7f8f8 54%,
            #e9efed 100%
        );
}

.lsgi-placeholder::before,
.lsgi-placeholder::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .07);
}

.lsgi-placeholder::before {
    width: 190px;
    height: 190px;
    right: -55px;
    top: -45px;
}

.lsgi-placeholder::after {
    width: 110px;
    height: 110px;
    right: 40px;
    top: 44px;
}

.lsgi-placeholder span {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.lsgi-placeholder strong {
    max-width: 180px;
    font-size: 27px;
    line-height: 1;
    letter-spacing: -.04em;
}

.lsgi-card-content {
    padding-top: 20px;
}

.lsgi-card .lsgi-category {
    margin-bottom: 11px;
    color: #64748b;
}

.lsgi-card h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: -.025em;
    font-weight: 600;
}

.lsgi-card h2 a {
    color: inherit;
    text-decoration: none;
}

.lsgi-card h2 a:hover {
    opacity: .68;
}

.lsgi-excerpt {
    margin-top: 12px;
    color: #666;
    font-size: 15px;
    line-height: 1.65;
}

.lsgi-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 16px;
    font-size: 12px;
    color: #8a8a8a;
}

.lsgi-card-meta span + span::before {
    content: "·";
    margin-right: 14px;
}

.lsgi-pagination {
    margin-top: 72px;
}

.lsgi-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.lsgi-pagination a,
.lsgi-pagination span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #e3e3e3;
    color: #111;
    text-decoration: none;
}

.lsgi-pagination .current {
    color: #fff;
    background: #111;
    border-color: #111;
}


/* SINGLE */

.lsgi-single-header {
    padding: 88px 0 46px;
    text-align: center;
}

.lsgi-single-header
.lsgi-single-shell {
    max-width: 980px;
}

.lsgi-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 27px;
    font-size: 13px;
    color: #858585;
}

.lsgi-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.lsgi-single-header
.lsgi-category {
    margin-bottom: 16px;
    color: #4e715f;
}

.lsgi-single h1 {
    max-width: 1000px;
    margin: 0 auto;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 650;
}

.lsgi-lead {
    max-width: 820px;
    margin: 24px auto 0;
    color: #606060;
    font-size: 19px;
    line-height: 1.7;
}

.lsgi-single-meta {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 26px;
    font-size: 13px;
    color: #888;
}

.lsgi-single-meta span + span::before {
    content: "·";
    margin-right: 18px;
}

.lsgi-single
.lsgi-single-shell {
    max-width: 1040px;
}

.lsgi-single-image,
.lsgi-single-cover {
    margin-bottom: 54px;
}

.lsgi-single-image img {
    display: block;
    width: 100%;
    height: auto;
}

.lsgi-single-cover {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 460px;
    padding: 54px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(39, 171, 108, .22),
            transparent 34%
        ),
        radial-gradient(
            circle at 18% 88%,
            rgba(7, 31, 22, .12),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #edf6f1,
            #f7f8f7 55%,
            #e7eeeb
        );
}

.lsgi-single-cover span {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lsgi-single-cover strong {
    max-width: 500px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: .98;
    letter-spacing: -.05em;
}

.lsgi-article-content {
    max-width: 780px;
    margin-inline: auto;
    color: #323232;
    font-size: 17px;
    line-height: 1.85;
}

.lsgi-article-content p {
    margin: 0 0 25px;
}

.lsgi-article-content h2 {
    margin: 54px 0 18px;
    font-size: 31px;
    line-height: 1.18;
    letter-spacing: -.03em;
}

.lsgi-article-content h3 {
    margin: 35px 0 14px;
    font-size: 23px;
    line-height: 1.25;
}

.lsgi-article-content ul,
.lsgi-article-content ol {
    margin: 0 0 28px;
    padding-left: 24px;
}

.lsgi-related-store,
.lsgi-sources {
    max-width: 780px;
    margin-inline: auto;
}

.lsgi-related-store {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 36px;
    padding: 38px;
    margin-top: 62px;
    border: 1px solid #e7e7e7;
    background: #fafafa;
}

.lsgi-related-store h2 {
    margin: 8px 0 0;
    font-size: 25px;
}

.lsgi-related-links {
    display: grid;
    gap: 8px;
}

.lsgi-related-links a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e2e2;
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

.lsgi-sources {
    padding-top: 42px;
    margin-top: 42px;
    border-top: 1px solid #e4e4e4;
}

.lsgi-sources ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.lsgi-sources a {
    color: #555;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lsgi-back {
    max-width: 780px;
    margin: 55px auto 90px;
}

.lsgi-back a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.lsgi-empty {
    padding: 90px 20px;
    text-align: center;
    background: #f7f7f7;
}


@media (max-width: 1024px) {

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

}


@media (max-width: 640px) {

    .lsgi-shell,
    .lsgi-single-shell {
        width: min(
            100% - 30px,
            1320px
        );
    }

    .lsgi-hero {
        padding: 58px 0 38px;
    }

    .lsgi-hero p {
        font-size: 16px;
    }

    .lsgi-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .lsgi-single-header {
        padding: 56px 0 36px;
    }

    .lsgi-single-meta {
        flex-wrap: wrap;
    }

    .lsgi-single-cover {
        min-height: 300px;
        padding: 28px;
        margin-bottom: 36px;
    }

    .lsgi-article-content {
        font-size: 16px;
    }

    .lsgi-related-store {
        grid-template-columns: 1fr;
        padding: 26px 22px;
    }

}


/* =========================================================
 * GUIAS - EXTENSIONES ESPECIFICAS
 * Mantiene el contrato visual de Noticias.
 * ======================================================= */

.lsgi-guide-tools {
    margin: 0 0 34px;
}

.lsgi-guide-search {
    display: flex;
    gap: 10px;
    max-width: 720px;
    margin: 28px 0 0;
}

.lsgi-guide-search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    outline: none;
}

.lsgi-guide-search input[type="search"]:focus {
    border-color: rgba(15, 23, 42, .42);
}

.lsgi-guide-search button {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.lsgi-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 34px;
}

.lsgi-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid rgba(15, 23, 42, .11);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease;
}

.lsgi-filter:hover,
.lsgi-filter.is-active {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.lsgi-card-meta {
    flex-wrap: wrap;
}

.lsgi-guide-result-info {
    margin: -16px 0 28px;
    color: #64748b;
    font-size: 13px;
}

.lsgi-guide-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.lsgi-guide-toc {
    position: sticky;
    top: 110px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 16px;
    background: #f8fafc;
}

.lsgi-guide-toc[hidden] {
    display: none !important;
}

.lsgi-guide-toc-title {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.lsgi-guide-toc-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lsgi-guide-toc-list li {
    margin: 0;
}

.lsgi-guide-toc-list li.is-h3 {
    padding-left: 12px;
}

.lsgi-guide-toc-list a {
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
}

.lsgi-guide-toc-list a:hover {
    color: #0f172a;
}

.lsgi-guide-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.lsgi-guide-fact {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.lsgi-related-guides {
    margin-top: 54px;
}

.lsgi-related-guides .lsgi-related-links {
    margin-top: 18px;
}

.lsgi-guide-support-note {
    margin: 34px 0 0;
    padding: 20px 22px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 15px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 900px) {

    .lsgi-guide-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .lsgi-guide-toc {
        position: static;
    }
}

@media (max-width: 767px) {

    .lsgi-guide-search {
        flex-direction: column;
    }

    .lsgi-guide-search button {
        width: 100%;
    }

    .lsgi-filter-row {
        gap: 7px;
    }

    .lsgi-filter {
        min-height: 35px;
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* LSGI_VISUAL_COVERS_V1
 * Portadas 16:9 exclusivas de Guías.
 * No afecta Noticias ni productos.
 */
.lsgi-single-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f5f5;
}

.lsgi-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 640px) {
    .lsgi-single-image {
        border-radius: 5px;
    }
}

/*
 * LSGI PURCHASE CTA V2
 *
 * Diseño claro, compacto y propio de Licencia Software.
 * No modifica Noticias, productos ni post_content.
 */

.lsgi-purchase-cta,
.lsgi-purchase-cta * {
    box-sizing: border-box;
}

.lsgi-purchase-cta {
    width: 100%;
    max-width: 1180px;
    margin: clamp(54px, 7vw, 82px) auto 68px;
}

.lsgi-purchase-list {
    display: grid;
    gap: 24px;
}

.lsgi-purchase-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, 34%) minmax(0, 1fr);
    min-height: 410px;
    overflow: hidden;
    border: 1px solid #e2e7e3;
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 20px 52px rgb(18 30 24 / 8%),
        0 3px 10px rgb(18 30 24 / 4%);
}

.lsgi-purchase-card::before {
    position: absolute;
    z-index: 2;
    top: 39px;
    left: 44px;
    width: 86px;
    height: 5px;
    border-radius: 999px;
    background: #12bd6b;
    content: "";
}

.lsgi-purchase-media {
    display: flex;
    min-width: 0;
    min-height: 410px;
    align-items: center;
    justify-content: center;
    padding: 72px 42px 42px;
    border-right: 1px solid #edf0ee;
    background:
        linear-gradient(
            145deg,
            #f8f9f8 0%,
            #f2f4f2 100%
        );
    text-decoration: none;
}

.lsgi-purchase-product-image {
    display: block;
    width: min(100%, 268px);
    height: auto;
    max-height: 268px;
    padding: 22px;
    border-radius: 21px;
    background: #ffffff;
    box-shadow:
        0 14px 34px rgb(22 32 27 / 8%),
        0 2px 8px rgb(22 32 27 / 5%);
    object-fit: contain;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.lsgi-purchase-media:hover
.lsgi-purchase-product-image {
    box-shadow:
        0 18px 42px rgb(22 32 27 / 12%),
        0 3px 10px rgb(22 32 27 / 6%);
    transform: translateY(-2px);
}

.lsgi-purchase-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 46px clamp(40px, 5vw, 64px);
}

.lsgi-purchase-eyebrow {
    display: block;
    margin: 0 0 14px;
    color: #0ea85e;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1.2;
    text-transform: uppercase;
}

.lsgi-purchase-product-title {
    max-width: 680px;
    margin: 0 0 16px;
    color: #171a18;
    font-size: clamp(30px, 3.15vw, 42px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.lsgi-purchase-product-title a {
    color: inherit;
    text-decoration: none;
}

.lsgi-purchase-product-title a:hover {
    color: #087c48;
}

.lsgi-purchase-description {
    display: -webkit-box;
    max-width: 680px;
    margin: 0 0 22px;
    overflow: hidden;
    color: #535a56;
    font-size: 18px;
    font-style: normal;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.lsgi-purchase-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 25px;
}

.lsgi-purchase-pill {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid #e4e9e6;
    border-radius: 999px;
    background: #f7f9f8;
    color: #3d4541;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

.lsgi-purchase-pill svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #12bd6b;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.lsgi-purchase-button {
    display: inline-flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 23px;
    padding: 10px 11px 10px 25px;
    border-radius: 17px;
    background: #171a18;
    box-shadow: 0 10px 24px rgb(18 25 21 / 13%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.lsgi-purchase-button-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #12bd6b;
    color: #ffffff;
}

.lsgi-purchase-button-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.lsgi-purchase-button:hover {
    background: #222724;
    box-shadow: 0 14px 30px rgb(18 25 21 / 18%);
    color: #ffffff;
    transform: translateY(-1px);
}

.lsgi-purchase-button:focus-visible {
    outline: 3px solid rgb(18 189 107 / 26%);
    outline-offset: 4px;
}

.lsgi-purchase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 17px;
    color: #8a918d;
    font-size: 14px;
    line-height: 1.4;
}

.lsgi-purchase-meta strong {
    color: #565d59;
    font-weight: 750;
}

.lsgi-purchase-meta-dot {
    color: #a3aaa6;
}

.lsgi-purchase-list-multiple
.lsgi-purchase-card {
    min-height: 390px;
}

@media (max-width: 900px) {

    .lsgi-purchase-card {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .lsgi-purchase-media {
        padding-right: 30px;
        padding-left: 30px;
    }

    .lsgi-purchase-content {
        padding-right: 34px;
        padding-left: 34px;
    }

}

@media (max-width: 700px) {

    .lsgi-purchase-cta {
        margin: 48px auto 54px;
    }

    .lsgi-purchase-card {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 21px;
    }

    .lsgi-purchase-card::before {
        top: 27px;
        left: 28px;
        width: 70px;
        height: 4px;
    }

    .lsgi-purchase-media {
        min-height: 260px;
        padding: 53px 28px 28px;
        border-right: 0;
        border-bottom: 1px solid #edf0ee;
    }

    .lsgi-purchase-product-image {
        width: min(100%, 210px);
        max-height: 210px;
        padding: 17px;
        border-radius: 18px;
    }

    .lsgi-purchase-content {
        padding: 29px 27px 31px;
    }

    .lsgi-purchase-eyebrow {
        margin-bottom: 11px;
        font-size: 12px;
    }

    .lsgi-purchase-product-title {
        margin-bottom: 14px;
        font-size: clamp(27px, 8vw, 34px);
    }

    .lsgi-purchase-description {
        margin-bottom: 19px;
        font-size: 16px;
        line-height: 1.5;
        -webkit-line-clamp: 4;
    }

    .lsgi-purchase-benefits {
        gap: 7px;
        margin-bottom: 22px;
    }

    .lsgi-purchase-pill {
        min-height: 36px;
        padding: 7px 11px;
        font-size: 13px;
    }

    .lsgi-purchase-pill svg {
        width: 18px;
        height: 18px;
    }

    .lsgi-purchase-button {
        width: 100%;
        min-height: 57px;
        padding-left: 21px;
    }

    .lsgi-purchase-button-icon {
        width: 37px;
        height: 37px;
    }

    .lsgi-purchase-meta {
        margin-top: 15px;
        font-size: 13px;
    }

}
