.single-post {
    --wompea-post-navy: #002f4f;
    --wompea-post-blue: #278ca4;
    --wompea-post-coral: #ff3f5c;
    --wompea-post-orange: #ff6848;
    --wompea-post-ink: #294a61;
    --wompea-post-muted: #657d8e;
    --wompea-post-line: #dfe9ee;
    --wompea-post-surface: #f4f8fa;
    background: var(--wompea-post-surface);
}

.wompea-single,
.wompea-single * {
    box-sizing: border-box;
}

.wompea-single {
    width: 100%;
    background:
        radial-gradient(circle at 14% 3%, rgba(255, 63, 92, .06), transparent 22%),
        linear-gradient(180deg, #ffffff 0, var(--wompea-post-surface) 640px);
    color: var(--wompea-post-ink);
}

.wompea-post-hero.e-con,
.wompea-post-layout.e-con,
.wompea-post-after.e-con {
    width: min(1120px, calc(100% - 40px));
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.wompea-post-hero.e-con {
    padding-top: clamp(48px, 7vw, 82px);
    padding-bottom: 38px;
}

.wompea-post-title .elementor-heading-title,
.wompea-post-title h1 {
    max-width: 980px;
    margin: 0 auto;
    color: var(--wompea-post-navy);
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.045em;
    text-align: center;
    text-wrap: balance;
}

.wompea-post-excerpt {
    max-width: 820px;
    margin: 18px auto 0;
    color: var(--wompea-post-muted);
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.6;
    text-align: center;
}

.wompea-post-excerpt p {
    margin: 0;
}

.wompea-post-meta {
    display: flex;
    margin: 22px auto 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--wompea-post-muted);
    font-size: 12px;
    font-weight: 600;
}

.wompea-post-meta > span {
    position: relative;
}

.wompea-post-meta > span:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #a8bbc6;
    content: "";
    transform: translateY(-50%);
}

.wompea-post-meta a {
    color: var(--wompea-post-navy);
    font-weight: 800;
    text-decoration: none;
}

.wompea-post-meta__category {
    padding: 7px 11px;
    border-radius: 999px;
    background: #ffe9ed;
    color: var(--wompea-post-coral) !important;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wompea-post-featured {
    width: min(100%, 900px);
    margin: 8px auto 0;
}

.wompea-post-featured .elementor-widget-container {
    padding: 10px;
    border: 1px dashed rgba(255, 63, 92, .34);
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 20px 48px rgba(0, 47, 79, .12);
}

.wompea-post-featured img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 19px;
}

.wompea-post-layout.e-con {
    display: grid;
    padding-top: 24px;
    padding-bottom: 70px;
    grid-template-columns: minmax(0, 790px) minmax(240px, 280px);
    gap: 42px;
    align-items: start;
}

.wompea-post-main.e-con {
    min-width: 0;
    padding: clamp(28px, 4.5vw, 56px);
    border: 1px solid var(--wompea-post-line);
    border-radius: 25px;
    background: #ffffff;
    box-shadow: 0 15px 42px rgba(0, 47, 79, .065);
}

.wompea-post-sidebar.e-con {
    min-width: 0;
}

.wompea-post-toc {
    overflow: hidden;
    border: 1px solid var(--wompea-post-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 34px rgba(0, 47, 79, .07);
}

.wompea-post-toc .elementor-toc__header {
    padding: 18px 18px 15px;
    border-bottom: 1px solid var(--wompea-post-line);
    background: #f8fbfc;
}

.wompea-post-toc .elementor-toc__header-title {
    color: var(--wompea-post-navy);
    font-size: 15px;
    font-weight: 800;
}

.wompea-post-toc .elementor-toc__body {
    max-height: min(620px, calc(100vh - 190px));
    padding: 14px 13px 18px;
    overflow-y: auto;
    scrollbar-color: #c9d9e1 transparent;
    scrollbar-width: thin;
}

.wompea-post-toc .elementor-toc__body::-webkit-scrollbar {
    width: 6px;
}

.wompea-post-toc .elementor-toc__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c9d9e1;
}

.wompea-post-toc .elementor-toc__list-item {
    margin-bottom: 3px;
}

.wompea-post-toc .elementor-toc__list-item-text {
    display: block;
    padding: 7px 9px;
    border-left: 3px solid transparent;
    border-radius: 7px;
    color: #587286;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.wompea-post-toc .elementor-toc__list-item-text:hover {
    background: #fff5f6;
    color: var(--wompea-post-coral);
}

.wompea-post-toc .elementor-item-active {
    border-left-color: var(--wompea-post-coral);
    background: #fff0f2;
    color: var(--wompea-post-coral);
    font-weight: 800;
}

.wompea-post-content {
    color: var(--wompea-post-ink);
    font-size: 18px;
    line-height: 1.82;
}

.wompea-post-content > :first-child,
.wompea-post-content .elementor-widget-container > :first-child {
    margin-top: 0;
}

.wompea-post-content p {
    margin: 0 0 1.45em;
}

.wompea-post-content h2,
.wompea-post-content h3,
.wompea-post-content h4 {
    color: var(--wompea-post-navy);
    font-weight: 800;
    letter-spacing: -.025em;
    text-wrap: balance;
    scroll-margin-top: 110px;
}

.wompea-post-content h2 {
    margin: 2em 0 .65em;
    padding-top: .2em;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.16;
}

.wompea-post-content h3 {
    margin: 1.65em 0 .6em;
    font-size: clamp(23px, 2.4vw, 28px);
    line-height: 1.22;
}

.wompea-post-content h4 {
    margin: 1.5em 0 .55em;
    font-size: 21px;
    line-height: 1.3;
}

.wompea-post-content strong {
    color: #173b55;
    font-weight: 800;
}

.wompea-post-content a {
    color: var(--wompea-post-coral);
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.wompea-post-content a:hover,
.wompea-post-content a:focus-visible {
    color: #d92745;
}

.wompea-post-content ul,
.wompea-post-content ol {
    margin: 0 0 1.6em;
    padding-left: 1.45em;
}

.wompea-post-content li {
    margin-bottom: .55em;
    padding-left: .2em;
}

.wompea-post-content li::marker {
    color: var(--wompea-post-coral);
    font-weight: 800;
}

.wompea-post-content blockquote {
    margin: 2em 0;
    padding: 23px 25px;
    border: 0;
    border-left: 5px solid var(--wompea-post-coral);
    border-radius: 0 16px 16px 0;
    background: #fff3f5;
    color: var(--wompea-post-navy);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.6;
}

.wompea-post-content blockquote p:last-child {
    margin-bottom: 0;
}

.wompea-post-content figure,
.wompea-post-content .wp-block-image {
    margin: 2.2em 0;
}

.wompea-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.wompea-post-content figcaption,
.wompea-post-content .wp-element-caption {
    margin-top: 9px;
    color: #718797;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.wompea-post-content table {
    width: 100%;
    margin: 2em 0;
    border: 1px solid var(--wompea-post-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
}

.wompea-post-content th,
.wompea-post-content td {
    padding: 13px 14px;
    border-right: 1px solid var(--wompea-post-line);
    border-bottom: 1px solid var(--wompea-post-line);
    text-align: left;
    vertical-align: top;
}

.wompea-post-content th {
    background: var(--wompea-post-navy);
    color: #ffffff;
    font-weight: 800;
}

.wompea-post-content tr:nth-child(even) td {
    background: #f7fafb;
}

.wompea-post-content tr:last-child td {
    border-bottom: 0;
}

.wompea-post-content th:last-child,
.wompea-post-content td:last-child {
    border-right: 0;
}

.wompea-post-content hr {
    margin: 2.5em 0;
    border: 0;
    border-top: 1px solid var(--wompea-post-line);
}

.wompea-post-content pre {
    max-width: 100%;
    margin: 2em 0;
    padding: 20px;
    overflow-x: auto;
    border-radius: 14px;
    background: #082f49;
    color: #eff9ff;
    font-size: 14px;
    line-height: 1.6;
}

.wompea-post-content :not(pre) > code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #edf3f6;
    color: var(--wompea-post-navy);
    font-size: .9em;
}

.wompea-post-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 2em 0;
    border: 0;
    border-radius: 16px;
}

.wompea-post-after.e-con {
    padding-bottom: 70px;
}

.wompea-author-card {
    display: grid;
    padding: 28px;
    grid-template-columns: 112px 1fr;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--wompea-post-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(0, 47, 79, .07);
}

.wompea-author-card__avatar img {
    display: block;
    width: 112px;
    height: 112px;
    border: 4px solid #fff0f2;
    border-radius: 50%;
    object-fit: cover;
}

.wompea-author-card__content > span {
    display: block;
    margin-bottom: 4px;
    color: var(--wompea-post-coral);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

.wompea-author-card h2 {
    margin: 0 0 7px;
    font-size: 24px;
    line-height: 1.2;
}

.wompea-author-card h2 a {
    color: var(--wompea-post-navy);
    text-decoration: none;
}

.wompea-author-card p {
    margin: 0;
    color: var(--wompea-post-muted);
    font-size: 14px;
    line-height: 1.55;
}

.wompea-author-card__links {
    display: flex;
    margin-top: 13px;
    flex-wrap: wrap;
    gap: 7px;
}

.wompea-author-card__links a {
    padding: 6px 9px;
    border: 1px solid var(--wompea-post-line);
    border-radius: 8px;
    color: var(--wompea-post-navy);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.wompea-author-card__links a:hover,
.wompea-author-card__links a:focus-visible {
    border-color: #ffc5ce;
    background: #fff3f5;
    color: var(--wompea-post-coral);
}

.wompea-related-posts {
    margin-top: 38px;
}

/* Llamado a la iniciativa después del autor. */
.wompea-post-initiative {
    position: relative;
    display: grid;
    width: 100%;
    margin-top: 28px;
    padding: clamp(30px, 4vw, 46px);
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 245px);
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
    border: 1px solid #ffd6dc;
    border-radius: 28px;
    background:
        radial-gradient(circle at 93% 15%, rgba(39, 140, 164, .14), transparent 26%),
        linear-gradient(120deg, #fff1f3 0%, #fff8f6 62%, #edf8fa 100%);
    box-shadow: 0 18px 48px rgba(0, 47, 79, .08);
    isolation: isolate;
}

.wompea-post-initiative::before {
    position: absolute;
    z-index: -1;
    right: -70px;
    bottom: -105px;
    width: 300px;
    height: 300px;
    border: 1px dashed rgba(255, 63, 92, .26);
    border-radius: 50%;
    content: "";
}

.wompea-post-initiative__content {
    min-width: 0;
}

.wompea-post-initiative__eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: var(--wompea-post-coral);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: 0 7px 22px rgba(0, 47, 79, .06);
}

.wompea-post-initiative h2 {
    max-width: 720px;
    margin: 0;
    color: var(--wompea-post-navy);
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.wompea-post-initiative__intro {
    max-width: 700px;
    margin: 13px 0 20px;
    color: #526f83;
    font-size: 15px;
    line-height: 1.6;
}

.wompea-post-initiative__plans {
    display: grid;
    max-width: 720px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.wompea-post-initiative__plan {
    position: relative;
    padding: 14px 15px;
    border: 1px solid rgba(39, 140, 164, .21);
    border-radius: 14px;
    background: rgba(255, 255, 255, .84);
}

.wompea-post-initiative__plan--featured {
    border-color: rgba(0, 47, 79, .25);
}

.wompea-post-initiative__plan--store {
    border-color: rgba(255, 63, 92, .45);
    background: rgba(255, 255, 255, .95);
    box-shadow: inset 0 3px 0 var(--wompea-post-coral);
}

.wompea-post-initiative__plan span,
.wompea-post-initiative__plan small {
    display: block;
}

.wompea-post-initiative__plan span {
    color: var(--wompea-post-navy);
    font-size: 12px;
    font-weight: 800;
}

.wompea-post-initiative__plan strong {
    display: block;
    margin: 4px 0 2px;
    color: var(--wompea-post-coral);
    font-size: clamp(20px, 2.1vw, 27px);
    line-height: 1.1;
}

.wompea-post-initiative__plan small {
    color: var(--wompea-post-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.wompea-post-initiative__actions {
    display: flex;
    margin-top: 19px;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.wompea-post-initiative__button {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 19px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--wompea-post-coral), var(--wompea-post-orange));
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 11px 25px rgba(255, 63, 92, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.wompea-post-initiative__button:hover,
.wompea-post-initiative__button:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 63, 92, .3);
}

.wompea-post-initiative__button span {
    font-size: 18px;
    line-height: 1;
}

.wompea-post-initiative__note {
    color: #678091;
    font-size: 11px;
    font-weight: 700;
}

.wompea-post-initiative__mascot {
    position: relative;
    width: 100%;
    max-width: 230px;
    margin: 0;
    justify-self: center;
    align-self: end;
}

.wompea-post-initiative__mascot img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 18px rgba(0, 47, 79, .16));
}

.wompea-post-initiative__halo {
    position: absolute;
    top: 16%;
    right: 3%;
    bottom: 5%;
    left: 3%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 0 0 14px rgba(255, 255, 255, .26);
}

.wompea-reading-progress {
    position: fixed;
    z-index: 9998;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: rgba(0, 47, 79, .08);
    pointer-events: none;
}

.wompea-reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--wompea-post-coral), var(--wompea-post-orange));
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

@media (max-width: 900px) {
    .wompea-post-layout.e-con {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wompea-post-sidebar.e-con {
        grid-row: 1;
    }

    .wompea-post-main.e-con {
        grid-row: 2;
    }

    .wompea-post-toc .elementor-toc__body {
        max-height: 330px;
    }

    .wompea-post-initiative {
        grid-template-columns: minmax(0, 1fr) 170px;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .wompea-post-hero.e-con,
    .wompea-post-layout.e-con,
    .wompea-post-after.e-con {
        width: min(100% - 24px, 620px);
    }

    .wompea-post-hero.e-con {
        padding-top: 38px;
        padding-bottom: 24px;
    }

    .wompea-post-title .elementor-heading-title,
    .wompea-post-title h1 {
        font-size: 36px;
        line-height: 1.1;
    }

    .wompea-post-excerpt {
        font-size: 16px;
    }

    .wompea-post-meta {
        margin-bottom: 23px;
        gap: 8px 13px;
        font-size: 11px;
    }

    .wompea-post-meta > span:not(:last-child)::after {
        right: -8px;
    }

    .wompea-post-featured .elementor-widget-container {
        padding: 6px;
        border-radius: 20px;
        box-shadow: 0 14px 34px rgba(0, 47, 79, .11);
    }

    .wompea-post-featured img {
        border-radius: 14px;
    }

    .wompea-post-layout.e-con {
        padding-top: 12px;
        padding-bottom: 45px;
    }

    .wompea-post-main.e-con {
        padding: 25px 20px;
        border-radius: 19px;
    }

    .wompea-post-content {
        font-size: 17px;
        line-height: 1.76;
    }

    .wompea-post-content h2 {
        font-size: 28px;
    }

    .wompea-post-content h3 {
        font-size: 23px;
    }

    .wompea-post-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .wompea-author-card {
        padding: 23px 20px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wompea-author-card__avatar {
        justify-self: center;
    }

    .wompea-author-card__links {
        justify-content: center;
    }

    .wompea-post-initiative {
        padding: 27px 20px 0;
        grid-template-columns: 1fr;
        gap: 14px;
        border-radius: 22px;
    }

    .wompea-post-initiative h2 {
        font-size: 30px;
    }

    .wompea-post-initiative__intro {
        font-size: 14px;
    }

    .wompea-post-initiative__plans {
        gap: 6px;
    }

    .wompea-post-initiative__plan {
        padding: 11px 8px;
        text-align: center;
    }

    .wompea-post-initiative__plan span {
        min-height: 30px;
        font-size: 10px;
        line-height: 1.25;
    }

    .wompea-post-initiative__plan strong {
        font-size: 18px;
    }

    .wompea-post-initiative__plan small {
        font-size: 8px;
    }

    .wompea-post-initiative__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wompea-post-initiative__button {
        width: 100%;
    }

    .wompea-post-initiative__note {
        text-align: center;
    }

    .wompea-post-initiative__mascot {
        width: 130px;
        margin-top: -3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
