/* ── Variables ──────────────────────────────────────────── */
:root {
    --color-white: #FFFFFF;
    --color-text: #1D1D1D;
    --color-main-blue: #3238C4;
    --color-grey-01: #FAFAFA;
    --color-grey-02: #F5F5F5;
    --color-grey-03: #EEEEEE;
    --color-grey-04: #E4E4E4;
    --color-muted: #888888;
    --color-subtle: #aaaaaa;
    --color-border: #dedbd4;
    --color-surface: #eceae4;
    --font-serif: 'Space Grotesk', sans-serif, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1600px;
    --pad-h: 60px;
    --pad-element: 3rem;
    --pad-top-hero: 118px;

    --gap-category: 3rem;
}

/* Typo */
html:root {
    --font-serif: "Space Grotesk", sans-serif;
    --font-sans: "Helvetica Neue", sans-serif;

    --font-size-medium: 1.188rem;
    /* 19px */
    --font-size-small: 1rem;
    /* 16px */
    --font-size-extra-small: 0.75rem;
    /* 12px */
    --font-size-form-tag: 0.625rem;
    /* 10px */
    --font-size-h1: 2.813rem;
    /* 45px */
    --font-size-h2: 2.375rem;
    /* 38px */
    --font-size-h3: 2.063rem;
    /* 33px */
    --font-size-h4: 1.688rem;
    /* 27px */
    --font-size-h5: 1.5rem;
    /* 24px */
    --font-size-h6: 1.313rem;

    --line-height-medium: 1.688rem;
    /* 27px */
    --line-height-small: 1.25rem;
    /* 20px */
    --line-height-extra-small: 0.75rem;
    /* 12px */
    --line-height-form-tag: 0.75rem;
    /* 12px */
    --line-height-h1: 2.813rem;
    /* 45px */
    --line-height-h2: 2.625rem;
    /* 42px */
    --line-height-h3: 2.25rem;
    /* 36px */
    --line-height-h4: 2rem;
    /* 32px */
    --line-height-h5: 2rem;
    /* 32px */
    --line-height-h6: 1.5rem;
    /* 24px */

    --font-weight-400: 400;
    --font-weight-500: 500;
    --font-weight-700: 700;

    --margin-h1: 20px 0px;
}

/* HTML */
html:root {
	-webkit-tap-highlight-color: transparent;
 
    
    aside {
        width: 100%;
        margin-inline-start: unset;
        border: unset;
    }

    section {
        margin: auto !important;
    }
    
    a, a:where(:not(.wp-element-button)) {
        text-decoration: none;
    }
    a:hover, a:where(:not(.wp-element-button)):hover {
        text-decoration: none;
    }
}

/* Image */
html:root {
    --min-height-image: 495px;
}


/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 920px) {
    html:root {
        --pad-h: 20px;
        --pad-element: 2rem;
        --pad-top-hero: 25px;
        --gap-category: 1.5rem;

        --margin-h1: 10px 0px;

        --font-size-medium: 1rem;
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.5rem;
        --font-size-h4: 1.688rem;

        --line-height-medium: 1.688rem;
        --line-height-h1: 2.25rem;
        --line-height-h2: 2rem;
        --line-height-h3: 1.813rem;
        --line-height-h4: 1.688rem;

        --min-height-image: 349px;
    }
}

/* ============================================================
   Magazine Style
   Base: .single-entry (for single post) + .index-arc (for index/archive)
   ============================================================ */

/* ── Base ───────────────────────────────────────────────── */
.single-entry,
.index-arc {
    background: var(--color-grey-03);
    color: var(--color-text);
    font-family: var(--font-serif);
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    font-weight: var(--font-weight-400);
    min-height: 100vh;
    padding-top: var(--pad-top-hero);
}

/* ── Pre-header: category ─────────────────────── */
.entry-pre-header,
.arc-category {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2.5rem;
    padding-bottom: 0;
}

.entry-category-label,
.arc-category-label {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-700);
    line-height: var(--line-height-small);
    text-transform: uppercase;
    color: var(--color-main-blue);
    border-bottom: 1px solid var(--color-main-blue);
    padding-bottom: 2px;
}

/* ============================================================
   SINGLE POST — Magazine Style
   Fuentes: Space Grotesk (serif titles) + Inter (body)
   Prefijo: .entry y .post
   ============================================================ */

/* ── Shared container ───────────────────────────────────── */
.entry-pre-header,
.entry-title-wrapper,
.entry-author-bar,
.entry-share-bar,
.entry-banner-wrapper,
.post-hero,
.post-body-wrapper,
.arc-filter,
.arc-post-list {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pad-h);
    padding-right: var(--pad-h);
}



/* ── Title ─────────────────────────────────────────────── */
.entry-title-wrapper {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    padding-bottom: 1rem;
    justify-self: center;
    text-align: center;
}

.title-h1 {
    font-family: var(--font-serif);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-500);
    line-height: var(--line-height-h1);
    color: var(--color-text);
    margin: var(--margin-h1);
}

/* ── Author bar ─────────────────────────────────────────── */
.entry-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}

.entry-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.entry-author-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.entry-author-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.entry-author-name {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text);
    line-height: 1.4;
}

.entry-author-role {
    font-size: 0.625rem;
    font-weight: 400;
    color: var(--color-main-blue);
    line-height: 1.4;
}

.entry-date-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.entry-published {
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    line-height: 1.6;
}

.entry-reading-time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text);
    line-height: 1.6;
}

.entry-reading-time::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--color-text);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Hero image ─────────────────────────────────────────── */
.post-hero {
    margin: 1.5rem 0 3rem;
    padding-bottom: 0;
    justify-self: anchor-center;
}

.post-hero img {
    display: block;
    width: 100%;
    min-height: var(--min-height-image);
    object-fit: cover;
    aspect-ratio: 16/1;

}

/* ── Two-column body ──────────────────────────────────── */
.post-body-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: auto;
    gap: 0 3rem;
    align-items: start;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

/* ── Left sidebar ───────────────────────────────────────── */
.entry-sidebar-left {
    position: sticky;
    top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-label {
    display: block;
    font-size: var(--font-size-extra-small);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-main-blue);
}

/* ── Share bar ─────────────────────────────────────────── */
.entry-share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1rem;
    margin-bottom: 0;
}

/* Share icons */
.entry-share-icons {
    display: flex;
    flex-direction: row;
    gap: 0.55rem;
}

.entry-share-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.entry-share-icons a:hover {
    color: var(--color-main-blue);
}

.entry-share-icons svg {
    width: 2cap;
    height: 20px;
    fill: currentColor;
    display: block;
}

/* Index tags */
.entry-tags-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.entry-tags-list li a {
    font-size: 0.585rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.15s ease;
    line-height: 1.4;
}

.entry-tags-list li a:hover {
    color: var(--color-text);
}

/* ── Main article content ───────────────────────────────── */
.post-content,
.sidebar-right {
    font-family: var(--font-sans);
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    color: var(--color-text);
    min-width: 0;
    background: var(--color-grey-02);
    box-shadow: -10px -10px 35px 0px rgb(13 39 80 / 2%), 10px 10px 35px 0px rgb(13 39 80 / 19%);
    padding: var(--pad-element);
    /* prevent grid blowout */
}

.post-content h2 {
    font-family: var(--font-serif);
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    font-weight: 500;
    color: var(--color-text);
    margin: 2.5rem 0 0.9rem;

}

.post-content h3 {
    font-family: var(--font-serif);
    font-size: var(--font-size-h4);
    line-height: var(--line-height-h4);
    font-weight: 500;
    color: var(--color-text);
    margin: 2rem 0 0.75rem;
}

.post-content h4 {
    font-size: var(--font-size-h5);
    line-height: var(--line-height-h5);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 1.75rem 0 0.6rem;
}

.post-content p {
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    font-weight: var(--font-weight-400);
}

.post-content ul {
    display: flex;
    flex-direction: column;
    padding-inline-start: var(--font-size-medium);
    row-gap: 0.5em;
}

.post-content ul li {
    padding-inline-start: var(--font-size-medium);
}

.post-content ul li::marker {
    color: var(--color-text);
}

/* Blockquote */
.post-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem 1.25rem 2rem;
    border-left: 5px solid var(--color-main-blue);
    background: var(--color-grey-03);
    font-style: italic;
    color: var(--color-text);
}

.post-content blockquote p {
    margin-bottom: 0.5rem;
}

.post-content blockquote cite,
.post-content blockquote footer {
    display: block;
    font-style: normal;
    font-size: 0.575rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-subtle);
    margin-top: 0.75rem;
}

/* Images inside content */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.75rem 0;
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figure img {
    margin: 0;
}

.post-content figcaption {
    font-size: 0.675rem;
    color: var(--color-subtle);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.post-content bloquenote {
    border-left: 4px solid var(--color-main-blue);
    font-style: italic;
    margin: 1.5rem 0;
    background: var(--color-grey-04);
    padding: 1rem;
}

.post-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border: 1px solid var(--color-border);
    border-radius: var(--standard-border-radius);
    background-color: var(--color-white);
}

.post-content table th {
    color: var(--color-white);
    background: var(--color-main-blue);
    text-align: left;
    font-weight: var(--font-weight-600);
    padding: 10px;
}

.post-content table th:first-child {
    border-radius: var(--standard-border-radius) 0 0 0;
}

.post-content table th:last-child {
    border-radius: 0 var(--standard-border-radius) 0 0;
}



.post-content table tr:nth-child(even) {
    background: var(--color-grey-04);

}

.post-content table tr {
    transition: background 0.15s ease;
}


.post-content table td {
    padding: 12px 16px;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: var(--color-text);
    font-weight: var(--font-weight-400);
    vertical-align: middle;
    border: 1px solid var(--color-border);
}

.post-content table td:first-child {
    width: 70%;
}

.post-content table tr:last-child td:first-child {
    border-radius: 0 0 0 var(--standard-border-radius);
}

.post-content table tr:last-child td:last-child {
    border-radius: 0 0 var(--standard-border-radius) 0;
}

/* .post-content table td:last-child {
    text-align: center;
    font-weight: var(--font-weight-700);
    color: var(--color-main-blue);
    font-size: var(--font-size-extra-small);
    white-space: nowrap;
    min-width: 160px;
} */

/* WordPress gallery */
.post-content .wp-block-gallery,
.post-content .gallery {
    margin: 2rem 0;
}

/* Links */
.post-content a {
    color: var(--color-text);
    text-underline-offset: 3px;
}

.post-content a:hover {
    opacity: 0.7;
}

/* ── Right sidebar ──────────────────────────────────────── */
.sidebar-right {
    position: sticky;
    top: 120px;
}

.entry-related {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.related-card a>img,
.related-card>a img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--standard-border-radius);
    filter: grayscale(100%);
}

.related-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    text-decoration: none;
}

.related-title:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.related-read {
    display: block;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-subtle);
    line-height: 1.4;
    text-decoration: none;
}


/* ── Banner CTA ──────────────────────────────────────── */
.entry-banner-wrapper {
    display: grid;
    grid-template-rows: auto;
    gap: 0 3rem;
    align-items: center;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.entry-banner {
    text-align: center;
    padding: var(--pad-element);
    border-top: 1px solid var(--color-main-blue);
    background: #3238C41A;
    border-radius: var(--standard-border-radius);
}

.entry-banner h2 {
    color: var(--color-main-blue);
    margin-top: 2rem;
}

.entry-banner h2,
.entry-banner p {
    width: 80%;
    place-self: center;
}


.entry-banner button {
    background-color: var(--color-main-blue);
    font-weight: var(--font-weight-700);
    line-height: 1.7;
    text-transform: uppercase;
    padding: 0.513rem 1.2rem;
    border-radius: var(--standard-border-radius-button);
}

.entry-banner button:hover {
    filter: unset;
}

.entry-banner-cta a {
    color: var(--color-white);
    text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {

    .post-body-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "sidebar-right"
            "sidebar-left";
        gap: 2.5rem 0;
        margin-top: 0rem;
        margin-bottom: 0rem;
    }

    .entry-banner-wrapper {
        margin-top: 0rem;
    }

    .entry-sidebar-left {
        grid-area: sidebar-left;
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
        gap: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--color-border);
    }

    .sidebar-right {
        grid-area: sidebar-right;
        position: static;
    }

    .post-content {
        grid-area: content;
    }

    .sidebar-right .entry-next-series {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
    }


    .entry-next-series .next-series-card a>img,
    .entry-next-series .next-series-card>a img {
        height: 100px;
        width: 140px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .entry-related {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .related-card {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

    .related-title {
        padding-top: 1rem;
        font-size: var(--font-size-small);
        line-height: var(--line-height-small);
    }

    .related-card a>img,
    .related-card>a img {
        width: 150px;

    }

}

@media (max-width: 600px) {
    :root {
        --pad-h: 1.25rem;
    }

    .entry-author-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .entry-date-meta {
        text-align: left;
    }

    .entry-reading-time {
        justify-content: flex-start;
    }

    .entry-title {
        font-size: 2rem;
    }

    .related-content {
        margin-left: -16px;
    }

    .related-title {
        padding-top: 0rem;
    }

    .related-card a>img,
    .related-card>a img {
        display: none;

    }

    .entry-banner h2,
    .entry-banner p {
        width: 100%;
        place-self: center;
    }
}

/* ============================================================
   INDEX — Magazine Style
   Fuentes: Space Grotesk (serif titles) + Inter (body)
   ============================================================ */

.arc-hero {
    display: flex;
    align-items: center;
    padding: 118px 0 70px 0;
    text-align: center;
    min-height: 300px;
}

.background-image {
    background-image: linear-gradient(180deg, #ffffff, #ffffff1c), url(assets/img/principal-spring.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.inner-hero {
    max-width: 800px;
    margin: 0 auto;
}

.arc-hero h1 {
    color: var(--wp--preset--color--main-blue);
}

.arc-hero h2 {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
}

.arc-category {
    padding-bottom: 2.5rem;
    background: var(--color-main-blue);
    position: relative;
}

.arc-category-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-700);
    text-transform: uppercase;
}

.arc-category-text {
    display: block;
}

.arc-category-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    filter: brightness(10);
    cursor: pointer;
    padding-bottom: 3px;
}

.arc-category-toggle.open .arc-category-arrow {
    transform: rotate(180deg);
}

.arc-category-toggle .hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    display: block;
    transition: all 0.3s ease;
}

.arc-category-toggle.open .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.arc-category-toggle.open .hamburger:nth-child(2) {
    opacity: 0;
}

.arc-category-toggle.open .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.arc-category-menu {
    display: flex;
    gap: var(--gap-category);
}

.arc-category-label {
    text-decoration: none;
    color: var(--color-white);
}

.arc-category-label:hover {
    color: var(--color-white);
    border-bottom: 1px solid var(--color-white);
}

.arc-category-label.is-active {
    color: var(--color-white);
    border-bottom: 1px solid var(--color-white);
}

section.arc-post-list {
    padding: var(--pad-h);
    /* display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--gap-category);
    row-gap: var(--gap-category); */
}

article.post-list {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0px 5px 10px 0px rgb(13 39 80 / 19%);
}
article.post-list:hover {
    background: var(--color-grey-04);
}
.post-list-inner{
    display: flex;
    gap: var(--gap-category);
}
article.post-list a img {
    max-width: unset;
    width: 150px;
    height: 150px;
    aspect-ratio: 1/1;
    border-radius: var(--standard-border-radius);
    filter: grayscale(100%);
}

.post-list-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    align-self: center;
}

.post-list-title-wrapper span {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-500);
    letter-spacing: var(--letter-spacing);
    text-transform: uppercase;
    color: var(--color-main-blue);
    line-height: var(--line-height-small);
}

.post-list-title-wrapper h3 {
    font-family: var(--font-serif);
    font-size: var(--font-size-h5);
    line-height: var(--line-height-h5);
    font-weight: var(--font-weight-500);
    margin-top: 0;
    margin-bottom: 0;
}

.post-list-title-wrapper h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.post-list-title-wrapper h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-list-title-wrapper span.read-more, .read-more {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-extra-small);
    font-weight: var(--font-weight-500);
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    opacity: 0.8;
}


@media (min-width: 1441px) {
    .arc-hero .inner-hero {
        max-width: 100%;
    }
}

@media (max-width: 920px) {
    .arc-hero {
        min-height: auto;
    }

    .arc-category {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        padding-top: 0;
        padding-bottom: 0;
    }

    .arc-category-toggle {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 1rem;
    }

    .arc-category-menu {
        width: 100%;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .arc-category.open .arc-category-menu {
        max-height: 500px;
    }

    .arc-category-label {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
    }

    .arc-category-label:hover {
        background-color: var(--color-white);
        color: var(--color-main-blue);
    }

    .arc-category-label.is-active {
        background-color: var(--color-white);
        color: var(--color-main-blue);
    }

  
    .post-list-title-wrapper {
        align-self: flex-start;
    }

     article.post-list{
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }
    article.post-list a img {
        display: none;
    }

    .post-list-title-wrapper h3 {
        font-size: var(--font-size-h6);
        line-height: var(--line-height-h6);
    }
}