.editorial-html-cover {
    --cover-bg-1: #09111f;
    --cover-bg-2: #13294b;
    --cover-bg-3: #1f6f5f;
    --cover-texture-opacity: 0.1;
    --cover-glow-opacity: 0.16;
    --cover-overlay-angle: 140deg;
    --cover-signature-line: rgba(255, 255, 255, 0.16);
    --cover-signature-glow: rgba(255, 255, 255, 0.12);
    --cover-accent-x: 74%;
    --cover-accent-y: 22%;
    --cover-text: #f8fafc;
    --cover-muted: rgba(226, 232, 240, 0.88);
    --cover-pill-bg: rgba(255, 255, 255, 0.12);
    --cover-pill-border: rgba(255, 255, 255, 0.16);
    --cover-border: rgba(255, 255, 255, 0.12);
    --cover-shadow: 0 30px 80px rgba(3, 7, 18, 0.28);
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: 340px;
    padding: clamp(1.35rem, 2vw, 2rem);
    border-radius: 24px;
    overflow: hidden;
    color: var(--cover-text);
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.22), transparent 30%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.18), transparent 32%),
        linear-gradient(135deg, var(--cover-bg-1) 0%, var(--cover-bg-2) 56%, var(--cover-bg-3) 100%);
    border: 1px solid var(--cover-border);
    box-shadow: var(--cover-shadow);
    isolation: isolate;
}

.editorial-html-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(var(--cover-overlay-angle), rgba(255, 255, 255, 0.04), transparent 38%),
        repeating-linear-gradient(
            125deg,
            rgba(255, 255, 255, calc(var(--cover-texture-opacity) * 0.16)) 0,
            rgba(255, 255, 255, calc(var(--cover-texture-opacity) * 0.16)) 1px,
            transparent 1px,
            transparent 14px
        ),
        linear-gradient(0deg, rgba(3, 7, 18, 0.06), rgba(3, 7, 18, 0.18));
    pointer-events: none;
    z-index: 0;
}

.editorial-html-cover::after {
    content: "";
    position: absolute;
    top: -18%;
    right: -6%;
    width: 32%;
    min-width: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, var(--cover-glow-opacity)) 0%, transparent 70%);
    filter: blur(4px);
    pointer-events: none;
    z-index: 0;
}

.editorial-html-cover__inner::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: 0;
    width: clamp(3.5rem, 8vw, 6.5rem);
    height: 1px;
    background: linear-gradient(90deg, var(--cover-signature-line), transparent 78%);
    box-shadow: 0 0 18px var(--cover-signature-glow);
    opacity: 0.8;
    pointer-events: none;
}

.editorial-html-cover__inner::after {
    content: "";
    position: absolute;
    top: var(--cover-accent-y);
    right: calc(100% - var(--cover-accent-x));
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.14) 46%, transparent 72%);
    box-shadow: 0 0 24px var(--cover-signature-glow);
    opacity: 0.68;
    pointer-events: none;
}

.editorial-html-cover__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 62rem;
    padding-top: 1.25rem;
}

.editorial-html-cover__category {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.05rem;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: var(--cover-pill-bg);
    border: 1px solid var(--cover-pill-border);
    color: #eef2ff;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    opacity: 0.92;
}

.editorial-html-cover__title {
    margin: 0;
    max-width: 17ch;
    font-size: clamp(2.05rem, 4.9vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: -0.036em;
    font-weight: 800;
    text-wrap: balance;
    text-shadow: 0 14px 36px rgba(3, 7, 18, 0.18);
}

.editorial-html-cover__excerpt {
    margin: 1.08rem 0 0;
    max-width: 54ch;
    color: var(--cover-muted);
    font-size: clamp(0.98rem, 1.62vw, 1.12rem);
    line-height: 1.6;
    text-wrap: pretty;
}

.editorial-html-cover__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
}

.editorial-html-cover__meta {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.28rem 0.66rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(241, 245, 249, 0.82);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.editorial-html-cover__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.editorial-html-cover__branding {
    margin-top: 1.35rem;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.editorial-html-cover__visual-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 22.5rem;
}

.editorial-html-cover__visual-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.65rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(248, 250, 252, 0.82);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.editorial-html-cover__visual-summary {
    max-width: 19ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 750;
    text-wrap: balance;
    text-shadow: 0 18px 48px rgba(3, 7, 18, 0.28);
}

.editorial-html-cover__visual-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.editorial-html-cover__visual-point {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    background: rgba(7, 18, 32, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(241, 245, 249, 0.88);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.editorial-html-cover--article-hero {
    min-height: clamp(460px, 76vh, 1040px);
}

.editorial-html-cover--hero {
    min-height: clamp(320px, 42vw, 520px);
}

.editorial-html-cover--featured {
    min-height: 300px;
    border-radius: 20px;
}

.editorial-html-cover--featured-horizontal {
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: 100%;
    padding: clamp(1.35rem, 2.4vw, 2.2rem);
    border-radius: 0;
}

.editorial-html-cover--hero-visual {
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: 100%;
    padding: clamp(1.35rem, 2.6vw, 2.4rem);
    border-radius: 0;
    align-items: stretch;
}

.editorial-html-cover--hero-visual::before {
    background:
        linear-gradient(132deg, rgba(255, 255, 255, 0.08), transparent 34%),
        radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.08), transparent 28%),
        repeating-linear-gradient(
            132deg,
            rgba(255, 255, 255, 0.05) 0,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px,
            transparent 16px
        ),
        linear-gradient(0deg, rgba(3, 7, 18, 0.08), rgba(3, 7, 18, 0.18));
}

.editorial-html-cover--hero-visual::after {
    top: auto;
    bottom: -12%;
    right: -6%;
    width: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(148, 163, 184, 0.12) 34%, transparent 74%);
}

.editorial-html-cover--hero-visual .editorial-html-cover__inner {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    max-width: none;
    height: 100%;
    padding: 1.2rem 0 0.75rem;
}

.editorial-html-cover--card {
    min-height: 320px;
    height: 100%;
    border-radius: 18px;
    padding: 1.15rem 1.15rem 1.2rem;
}

.editorial-html-cover--category-card {
    min-height: 280px;
    height: 100%;
    border-radius: 20px;
}

.editorial-html-cover--thumb {
    min-height: 140px;
    height: 100%;
    border-radius: 14px;
    padding: 1rem;
}

.editorial-html-cover--admin-preview {
    min-height: 240px;
    border-radius: 12px;
    padding: 1.1rem;
}

.editorial-html-cover--og-image {
    min-height: 630px;
    aspect-ratio: 1200 / 630;
    padding: 2.8rem 3.2rem;
    border-radius: 0;
    box-shadow: none;
}

.editorial-html-cover--og-image .editorial-html-cover__inner {
    max-width: 860px;
    padding-top: 1.6rem;
}

.editorial-html-cover--og-image .editorial-html-cover__category {
    margin-bottom: 1.15rem;
    font-size: 0.9rem;
}

.editorial-html-cover--og-image .editorial-html-cover__title {
    max-width: 15.5ch;
    font-size: 4rem;
}

.editorial-html-cover--og-image .editorial-html-cover__excerpt {
    max-width: 42ch;
    font-size: 1.55rem;
    line-height: 1.45;
}

.editorial-html-cover--og-image .editorial-html-cover__branding {
    margin-top: 1.8rem;
    font-size: 0.9rem;
}

.editorial-html-cover--thumb .editorial-html-cover__title,
.editorial-html-cover--card .editorial-html-cover__title {
    max-width: 100%;
    font-size: clamp(1.12rem, 2.05vw, 1.48rem);
    line-height: 1.08;
}

.editorial-html-cover--thumb .editorial-html-cover__excerpt,
.editorial-html-cover--thumb .editorial-html-cover__branding {
    display: none;
}

.editorial-html-cover--category-card .editorial-html-cover__inner {
    max-width: none;
}

.editorial-html-cover--category-card .editorial-html-cover__title {
    max-width: 100%;
    font-size: clamp(1.28rem, 2.4vw, 1.85rem);
}

.editorial-html-cover--category-card .editorial-html-cover__excerpt {
    max-width: 40ch;
    font-size: 0.96rem;
    line-height: 1.55;
}

.editorial-html-cover--category-card .editorial-html-cover__branding {
    display: none;
}

.editorial-html-cover--featured-horizontal .editorial-html-cover__inner {
    max-width: min(70%, 36rem);
    padding-top: 1.1rem;
}

.editorial-html-cover--featured-horizontal .editorial-html-cover__title {
    max-width: 14ch;
    font-size: clamp(1.72rem, 3vw, 2.7rem);
    line-height: 0.98;
}

.editorial-html-cover--featured-horizontal .editorial-html-cover__excerpt {
    max-width: 42ch;
    font-size: clamp(0.94rem, 1.2vw, 1.04rem);
    line-height: 1.55;
}

.editorial-html-cover--featured-horizontal .editorial-html-cover__branding {
    margin-top: 1.1rem;
}

.editorial-html-cover--card .editorial-html-cover__excerpt {
    font-size: 0.92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 34ch;
}

.editorial-html-cover--card .editorial-html-cover__category {
    margin-bottom: 0.82rem;
}

.editorial-html-cover--card .editorial-html-cover__footer {
    margin-top: auto;
    padding-top: 1rem;
}

.editorial-html-cover--card .editorial-html-cover__cta {
    opacity: 0.82;
    transform: translateY(2px);
    transition: opacity 180ms ease, transform 180ms ease, gap 180ms ease;
}

.editorial-html-cover--card:hover .editorial-html-cover__cta,
.editorial-html-cover--card:focus-within .editorial-html-cover__cta {
    opacity: 1;
    transform: translateY(0);
    gap: 0.5rem;
}

.editorial-html-cover--admin-preview .editorial-html-cover__title {
    max-width: 100%;
    font-size: clamp(1.22rem, 2.15vw, 1.78rem);
}

.editorial-html-cover--theme-default,
.editorial-cover--default {
    --cover-bg-1: #09111f;
    --cover-bg-2: #13294b;
    --cover-bg-3: #1f6f5f;
    --cover-texture-opacity: 0.08;
    --cover-glow-opacity: 0.16;
    --cover-overlay-angle: 140deg;
    --cover-signature-line: rgba(191, 219, 254, 0.18);
    --cover-signature-glow: rgba(110, 231, 183, 0.14);
    --cover-accent-x: 73%;
    --cover-accent-y: 21%;
}

.editorial-html-cover--theme-tendencias,
.editorial-cover--tendencias {
    --cover-bg-1: #071826;
    --cover-bg-2: #123c67;
    --cover-bg-3: #1ba784;
    --cover-texture-opacity: 0.07;
    --cover-glow-opacity: 0.22;
    --cover-overlay-angle: 132deg;
    --cover-signature-line: rgba(125, 211, 252, 0.24);
    --cover-signature-glow: rgba(110, 231, 183, 0.18);
    --cover-accent-x: 76%;
    --cover-accent-y: 18%;
}

.editorial-html-cover--theme-tendencias::before,
.editorial-cover--tendencias::before {
    background:
        linear-gradient(132deg, rgba(125, 211, 252, 0.12), transparent 36%),
        repeating-linear-gradient(
            132deg,
            rgba(191, 219, 254, 0.05) 0,
            rgba(191, 219, 254, 0.05) 1px,
            transparent 1px,
            transparent 18px
        ),
        linear-gradient(0deg, rgba(3, 7, 18, 0.08), rgba(3, 7, 18, 0.2));
}

.editorial-html-cover--theme-tendencias::after,
.editorial-cover--tendencias::after {
    top: -12%;
    right: -4%;
    width: 36%;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.24) 0%, rgba(96, 165, 250, 0.12) 34%, transparent 72%);
}

.editorial-html-cover--theme-gestion,
.editorial-cover--gestion {
    --cover-bg-1: #0b1623;
    --cover-bg-2: #1a2433;
    --cover-bg-3: #49566a;
    --cover-texture-opacity: 0.14;
    --cover-glow-opacity: 0.08;
    --cover-overlay-angle: 152deg;
    --cover-pill-bg: rgba(255, 255, 255, 0.09);
    --cover-signature-line: rgba(203, 213, 225, 0.18);
    --cover-signature-glow: rgba(203, 213, 225, 0.08);
    --cover-accent-x: 68%;
    --cover-accent-y: 26%;
}

.editorial-html-cover--theme-gestion::before,
.editorial-cover--gestion::before {
    background:
        linear-gradient(152deg, rgba(226, 232, 240, 0.06), transparent 34%),
        repeating-linear-gradient(
            90deg,
            rgba(148, 163, 184, 0.06) 0,
            rgba(148, 163, 184, 0.06) 1px,
            transparent 1px,
            transparent 22px
        ),
        linear-gradient(0deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.2));
}

.editorial-html-cover--theme-gestion::after,
.editorial-cover--gestion::after {
    top: auto;
    bottom: -24%;
    right: -10%;
    width: 28%;
    background: radial-gradient(circle, rgba(203, 213, 225, 0.12) 0%, transparent 72%);
}

.editorial-html-cover--theme-liderazgo,
.editorial-cover--liderazgo {
    --cover-bg-1: #05070f;
    --cover-bg-2: #111827;
    --cover-bg-3: #273449;
    --cover-texture-opacity: 0.06;
    --cover-glow-opacity: 0.1;
    --cover-overlay-angle: 148deg;
    --cover-text: #ffffff;
    --cover-muted: rgba(226, 232, 240, 0.82);
    --cover-border: rgba(255, 255, 255, 0.16);
    --cover-signature-line: rgba(255, 255, 255, 0.22);
    --cover-signature-glow: rgba(255, 255, 255, 0.1);
    --cover-accent-x: 71%;
    --cover-accent-y: 19%;
}

.editorial-html-cover--theme-liderazgo .editorial-html-cover__title,
.editorial-cover--liderazgo .editorial-html-cover__title {
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 28px rgba(3, 7, 18, 0.34);
}

.editorial-html-cover--theme-liderazgo::before,
.editorial-cover--liderazgo::before {
    background:
        linear-gradient(148deg, rgba(255, 255, 255, 0.05), transparent 28%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.08));
}

.editorial-html-cover--theme-liderazgo::after,
.editorial-cover--liderazgo::after {
    top: -14%;
    right: -8%;
    width: 26%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 68%);
}

.editorial-html-cover--theme-innovacion,
.editorial-cover--innovacion {
    --cover-bg-1: #0a1020;
    --cover-bg-2: #312e81;
    --cover-bg-3: #0f766e;
    --cover-texture-opacity: 0.11;
    --cover-glow-opacity: 0.2;
    --cover-overlay-angle: 128deg;
    --cover-signature-line: rgba(196, 181, 253, 0.24);
    --cover-signature-glow: rgba(45, 212, 191, 0.18);
    --cover-accent-x: 78%;
    --cover-accent-y: 17%;
}

.editorial-html-cover--theme-innovacion::before,
.editorial-cover--innovacion::before {
    background:
        linear-gradient(128deg, rgba(192, 132, 252, 0.11), transparent 34%),
        radial-gradient(circle at 22% 18%, rgba(45, 212, 191, 0.1), transparent 22%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.05) 0,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px,
            transparent 12px
        ),
        linear-gradient(0deg, rgba(3, 7, 18, 0.08), rgba(3, 7, 18, 0.2));
}

.editorial-html-cover--theme-innovacion::after,
.editorial-cover--innovacion::after {
    top: -8%;
    right: -2%;
    width: 38%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.22) 0%, rgba(167, 139, 250, 0.15) 30%, transparent 72%);
}

@media (max-width: 900px) {
    .editorial-html-cover--article-hero {
        min-height: clamp(360px, 58vh, 760px);
    }
}

@media (max-width: 640px) {
    .editorial-html-cover {
        min-height: 260px;
        padding: 1rem;
        border-radius: 18px;
    }

    .editorial-html-cover__inner {
        padding-top: 1rem;
    }

    .editorial-html-cover__category {
        margin-bottom: 0.8rem;
        font-size: 0.62rem;
    }

    .editorial-html-cover__title {
        max-width: 100%;
        font-size: clamp(1.56rem, 7.2vw, 2.32rem);
    }

    .editorial-html-cover__excerpt {
        font-size: 0.9rem;
        line-height: 1.42;
    }

    .editorial-html-cover__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .editorial-html-cover--thumb,
    .editorial-html-cover--card,
    .editorial-html-cover--category-card {
        min-height: 160px;
    }

    .editorial-html-cover--featured-horizontal {
        aspect-ratio: auto;
        min-height: 280px;
        padding: 1.1rem;
    }

    .editorial-html-cover--hero-visual {
        aspect-ratio: auto;
        min-height: 280px;
        padding: 1.1rem;
    }

    .editorial-html-cover--featured-horizontal .editorial-html-cover__inner {
        max-width: 100%;
        padding-top: 1rem;
    }

    .editorial-html-cover--hero-visual .editorial-html-cover__inner {
        align-items: flex-end;
        justify-content: flex-start;
        padding: 1rem 0 0;
    }

    .editorial-html-cover__visual-summary {
        max-width: 100%;
        font-size: clamp(1.02rem, 4.8vw, 1.4rem);
    }

    .editorial-html-cover--featured-horizontal .editorial-html-cover__title {
        max-width: 100%;
        font-size: clamp(1.56rem, 6vw, 2.2rem);
    }

    .editorial-html-cover--featured-horizontal .editorial-html-cover__excerpt {
        max-width: 100%;
        font-size: 0.92rem;
    }
}
