.cp-content-shell {
    width: min(1240px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.cp-content-layout-section {
    padding-top: 38px;
    padding-bottom: 24px;
}

.cp-content-layout {
    display: grid;
    gap: 28px;
    align-items: start;
}

.cp-content-layout--page {
    grid-template-columns: minmax(0, 1fr);
}

.cp-content-layout--page-has-sidebar {
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 360px);
}

.cp-content-layout--page-no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.cp-content-layout--post {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}

.cp-content-card {
    background: #fff;
    overflow: visible;
}

.cp-content-card__body {
    padding: 22px 24px;
}

.cp-entry > *:first-child {
    margin-top: 0;
}

.cp-entry > *:last-child {
    margin-bottom: 0;
}

.cp-entry a {
    text-decoration: underline;
}

/* INICIO: Breadcrumbs */
.cp-breadcrumbs {
    padding: 18px 24px 0;
}

.cp-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.cp-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000000;
    font-weight: 600;
}

.cp-breadcrumbs__item:not(:last-child)::after {
    content: "»";
    color: #000000;
    font-weight: 600;
}

.cp-breadcrumbs__item a {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
}

.cp-breadcrumbs__item a:hover,
.cp-breadcrumbs__item a:focus-visible {
    color: #0071ba;
    text-decoration: none;
}

.cp-breadcrumbs__item:last-child span {
    color: #0071ba;
    font-weight: 600;
}

/* FIN: Breadcrumbs */


/* INICIO: Did you know */
.cp-entry .cp-did-you-know {
    float: right;
    width: min(100%, 320px);
    margin: 8px 0 24px 28px;
    padding: 12px;
    border: 1px solid;
    border-radius: 5px;
    box-sizing: border-box;
    font-style: italic;
}

.cp-entry .cp-did-you-know--left {
    float: left;
    margin: 8px 28px 24px -40px;
}

.cp-entry .cp-did-you-know--right {
    float: right;
    margin: 8px -40px 24px 28px;
}

.cp-entry .cp-did-you-know > *:first-child {
    margin-top: 0;
}

.cp-entry .cp-did-you-know > *:last-child {
    margin-bottom: 0;
}

.cp-entry .cp-did-you-know__title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
}

.cp-entry .cp-did-you-know p:not(.cp-did-you-know__title) {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
}

/* Azul */
.cp-entry .cp-did-you-know--blue {
    border-color: #005c8e;
    background: #e1f0f6;
}

.cp-entry .cp-did-you-know--blue .cp-did-you-know__title,
.cp-entry .cp-did-you-know--blue p:not(.cp-did-you-know__title) {
    color: #005c8e;
}

/* Verde */
.cp-entry .cp-did-you-know--green {
    border-color: #375900;
    background: #eaeee5;
}

.cp-entry .cp-did-you-know--green .cp-did-you-know__title,
.cp-entry .cp-did-you-know--green p:not(.cp-did-you-know__title) {
    color: #375900;
}

/* Rojo */
.cp-entry .cp-did-you-know--red {
    border-color: #990000;
    background: #fbe6e6;
}

.cp-entry .cp-did-you-know--red .cp-did-you-know__title,
.cp-entry .cp-did-you-know--red p:not(.cp-did-you-know__title) {
    color: #990000;
}

/* Naranja */
.cp-entry .cp-did-you-know--orange {
    border-color: #dc9200;
    background: #fef4e5;
}

.cp-entry .cp-did-you-know--orange .cp-did-you-know__title,
.cp-entry .cp-did-you-know--orange p:not(.cp-did-you-know__title) {
    color: #dc9200;
}

/* Limpia el float cuando luego viene otro bloque importante */
.cp-entry .cp-did-you-know + .wp-block-group,
.cp-entry .cp-did-you-know + .wp-block-columns,
.cp-entry .cp-did-you-know + .wp-block-image,
.cp-entry .cp-did-you-know + .wp-block-cover {
    clear: both;
}

@media (max-width: 1300px) {
    .cp-entry .cp-did-you-know--right {
        margin: 8px 0 24px 28px;
    }

    .cp-entry .cp-did-you-know--left {
        margin: 8px 28px 24px 0;
    }
}

@media (max-width: 1024px) {
    .cp-entry .cp-did-you-know__title {
        font-size: 21px;
    }

    .cp-entry .cp-did-you-know p:not(.cp-did-you-know__title) {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .cp-entry .cp-did-you-know,
    .cp-entry .cp-did-you-know--left,
    .cp-entry .cp-did-you-know--right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 20px 0;
        padding: 12px;
    }

    .cp-entry .cp-did-you-know__title {
        font-size: 20px;
    }

    .cp-entry .cp-did-you-know p:not(.cp-did-you-know__title) {
        font-size: 16px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .cp-entry .cp-did-you-know,
    .cp-entry .cp-did-you-know--left,
    .cp-entry .cp-did-you-know--right {
        margin: 18px 0;
        padding: 12px;
        border-radius: 5px;
    }

    .cp-entry .cp-did-you-know__title {
        margin-bottom: 8px;
        font-size: 18px;
        line-height: 1.2;
    }

    .cp-entry .cp-did-you-know p:not(.cp-did-you-know__title) {
        font-size: 15px;
        line-height: 1.38;
    }
}
/* FIN: Did you know */


/* INICIO: Editorial media base */
.cp-entry .cp-editorial-media {
    position: relative;
    max-width: none;
}

.cp-entry .cp-editorial-media,
.cp-entry .cp-editorial-media > * {
    max-width: none;
}

.cp-entry .cp-editorial-media__image {
    margin: 0;
    width: 100%;
    max-width: none;
}

.cp-entry .cp-editorial-media__image img {
    display: block;
    width: 100%;
    min-width: 100%;
    height: auto;
}

.cp-entry .cp-editorial-media__image figcaption {
    display: none;
}

.cp-entry .cp-editorial-media__card {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 2;
    width: 100%;
    max-width: 190px;
    padding: 20px;
    background: #ffffff;
    border-radius: 0;
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.cp-entry .cp-editorial-media__lead {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.3;
    font-style: italic;
    font-weight: 500;
    color: #404040;
}

.cp-entry .cp-editorial-media__meta {
    margin: 0;
    font-family: "Lato", sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    color: #808080;
}

.cp-entry .cp-editorial-media__meta + .cp-editorial-media__meta {
    margin-top: 2px;
}
/* FIN: Editorial media base */


/* INICIO: Variante artículos */
.cp-entry .cp-editorial-media--post {
    width: calc(100% + 50%);
    margin: 50px 0 50px -42%;
    padding: 0 20px 0 0;
}

@media (max-width: 1350px) {
    .cp-entry .cp-editorial-media--post {
        width: calc(100% + 46%);
    }
}

@media (max-width: 1100px) {
    .cp-entry .cp-editorial-media--post {
        width: 100%;
        margin: 50px 0;
        padding: 0;
    }
}
/* FIN: Variante artículos */


/* INICIO: Variante páginas */
.cp-entry .cp-editorial-media--page {
    width: calc(100% + 10%);
    margin: 50px 0 50px -40px;
}

@media (max-width: 1300px) {
    .cp-entry .cp-editorial-media--page {
        padding: 0 0 0 10px;
    }
}

@media (max-width: 1100px) {
    .cp-entry .cp-editorial-media--page {
        width: 100%;
        margin: 50px 0;
        padding: 0;
    }
}
/* FIN: Variante páginas */


/* INICIO: Responsive común */
@media (max-width: 1024px) {
    .cp-entry .cp-editorial-media__card {
        top: 20px;
        left: 20px;
    }

    .cp-entry .cp-editorial-media__lead {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .cp-entry .cp-editorial-media--post,
    .cp-entry .cp-editorial-media--page {
        width: 100%;
        margin: 24px 0;
        padding: 0;
    }

    .cp-entry .cp-editorial-media__card {
        position: static;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 14px;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    }

    .cp-entry .cp-editorial-media__lead {
        margin-bottom: 8px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cp-entry .cp-editorial-media__card {
        padding: 12px;
    }

    .cp-entry .cp-editorial-media__lead {
        font-size: 15px;
    }

    .cp-entry .cp-editorial-media__meta {
        font-size: 11.5px;
    }
}
/* FIN: Responsive común */

.cp-author-sidebar, .cp-page-sidebar, .cp-content-layout__sidebar {
    height: 100%;
}

.cp-page-sidebar__sticky,
.cp-author-sidebar__sticky {
    position: sticky;
    top: 28px;
}

.cp-page-sidebar__card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    padding: 20px;
}

.cp-content-layout__sidebar--page {
    min-width: 0;
}


.cp-page-widget + .cp-page-widget {
    margin-top: 18px;
}

.cp-page-widget__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

/* INICIO: Author Sidebar */
.cp-author-sidebar__card {
    border: 1px solid #818181;
    border-radius: 16px;
    padding: 28px 0 0;
    text-align: center;
    color: #818181;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.cp-author-sidebar__avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 22px;
}

.cp-author-sidebar__avatar img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 999px;
}

.cp-author-sidebar__name {
    margin: 0 auto 12px;
    padding: 0 22px;
    font-size: 21px;
    line-height: 1.15;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    width: 200px;
    font-weight: 900;
    letter-spacing: 0.3em;
    font-family: 'Montserrat', sans-serif;
}

.cp-author-sidebar__bio {
    margin: 0 0 18px;
    padding: 0 22px;
    color: #818181;
    line-height: 1.7;
    text-align: center;
    font-style: italic;
}

.cp-author-sidebar__socials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    border-top: 1px solid #818181;
    border-bottom: 1px solid #818181;
}

.cp-author-sidebar__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 12px 8px;
    color: #818181;
    text-decoration: none !important;
    border-right: 1px solid #818181;
    transition: background-color .2s ease, opacity .2s ease;
}

.cp-author-sidebar__social-link:last-child {
    border-right: 0;
}

.cp-author-sidebar__social-link:hover,
.cp-author-sidebar__social-link:focus-visible {
    background-color: rgba(129, 129, 129, 0.06);
    opacity: 1;
    color: #818181;
    transform: none;
}

.cp-author-sidebar__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cp-author-sidebar__social-icon i {
    display: block;
    font-size: 20px;
    line-height: 1;
}

/* Facebook: fondo gris, letra blanca */
.cp-author-sidebar__social-link--facebook .cp-author-sidebar__social-icon i {
    color: #818181;
}

/* LinkedIn: fondo gris, letra blanca */
.cp-author-sidebar__social-link--linkedin .cp-author-sidebar__social-icon i {
    color: #818181;
}

/* Instagram: solo líneas/logo en gris */
.cp-author-sidebar__social-link--instagram .cp-author-sidebar__social-icon i {
    color: #818181;
}

.cp-author-sidebar__link {
    display: block;
    padding: 18px 22px;
    color: #818181;
    text-decoration: none;
    text-align: center;
    border-bottom: 0;
    transition: background-color .2s ease, opacity .2s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cp-author-sidebar__link:hover,
.cp-author-sidebar__link:focus-visible {
    color: #818181;
    background-color: rgba(129, 129, 129, 0.06);
    border-bottom-color: transparent;
    opacity: 1;
}
/* FIN: Author Sidebar */


/* INICIO: Carousel de Posts Relacionados */

.cp-related-posts {
    --cp-rp-gap: 22px;
    --cp-rp-arrow-space: 64px;
    --cp-rp-page-gutter: 32px;

    padding-top: 8px;
    padding-bottom: 26px;
    overflow-x: clip;
}

/* Hace que título, viewport y primer card usen el mismo ancho visual que el carrusel de tours */
.cp-related-posts > .cp-content-shell {
    width: min(1240px, calc(100% - (var(--cp-rp-arrow-space) * 2) - var(--cp-rp-page-gutter)));
    margin-right: auto;
    margin-left: auto;
}

.cp-related-posts__head {
    margin-bottom: 18px;
}

.cp-related-posts__subtitle {
    max-width: 720px;
    margin: 0 0 8px;
    color: #646970;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cp-related-posts__head h2 {
    margin: 0;
}

.cp-related-posts__carousel {
    position: relative;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.cp-related-posts.is-related-static .cp-related-posts__carousel,
.cp-related-posts--static .cp-related-posts__carousel {
    width: 100%;
}

.cp-related-posts__viewport {
    overflow: hidden;
}

.cp-related-posts__track {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: var(--cp-rp-gap);
    transition: transform 0.45s ease;
    will-change: transform;
}

.cp-related-posts__track > .cp-post-card,
.cp-related-posts__track > .cp-post-card--grid {
    flex: 0 0 calc(
        (100% - (var(--cp-rp-gap) * (var(--cp-rp-current-visible, var(--cp-rp-visible)) - 1))) /
        var(--cp-rp-current-visible, var(--cp-rp-visible))
    );
    width: auto;
    max-width: none;
    margin: 0;
}

.cp-related-posts__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: transparent !important;
    border: none;
    border-radius: 0;
    color: transparent;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cp-related-posts__arrow--prev {
    left: calc(var(--cp-rp-arrow-space) * -1);
}

.cp-related-posts__arrow--next {
    right: calc(var(--cp-rp-arrow-space) * -1);
}

.cp-related-posts__arrow span {
    display: none;
}

/* Flechas con la misma lógica visual del carrusel de tours */
.cp-related-posts__arrow::before {
    content: "";
    display: block;
    background: rgba(0, 0, 0, 0.75);
    transform-origin: center;
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.cp-related-posts__arrow--prev::before {
    width: 12px;
    height: 60px;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    -webkit-clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.cp-related-posts__arrow--next::before {
    width: 12px;
    height: 60px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.cp-related-posts__arrow:hover::before {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.06);
}

.cp-related-posts__arrow.is-disabled {
    opacity: 1;
    cursor: not-allowed;
}

.cp-related-posts__arrow.is-disabled::before {
    background: rgba(0, 0, 0, 0.35);
}

.cp-related-posts__arrow.is-disabled:hover::before {
    background: rgba(0, 0, 0, 0.35);
    transform: none;
}

.cp-related-posts__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.cp-related-posts__dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
}

.cp-related-posts__dot.is-active {
    background: #111827;
}

.cp-related-posts.is-related-static .cp-related-posts__arrow,
.cp-related-posts.is-related-static .cp-related-posts__dots,
.cp-related-posts--static .cp-related-posts__arrow,
.cp-related-posts--static .cp-related-posts__dots {
    display: none;
}

.cp-related-posts.is-related-static .cp-related-posts__track,
.cp-related-posts--static .cp-related-posts__track {
    flex-wrap: wrap;
    transform: translateX(0) !important;
}

.cp-related-posts.is-related-static .cp-related-posts__track > .cp-post-card,
.cp-related-posts.is-related-static .cp-related-posts__track > .cp-post-card--grid,
.cp-related-posts--static .cp-related-posts__track > .cp-post-card,
.cp-related-posts--static .cp-related-posts__track > .cp-post-card--grid {
    flex: 0 0 min(250px, 100%);
    max-width: min(250px, 100%);
}

@media (max-width: 768px) {
    .cp-related-posts {
        --cp-rp-arrow-space: 45px;
        --cp-rp-page-gutter: 20px;
    }

    .cp-related-posts > .cp-content-shell {
        width: calc(100% - (var(--cp-rp-arrow-space) * 2));
    }

    .cp-related-posts__head h2 {
        font-size: 26px;
    }

    .cp-related-posts__arrow {
        display: flex;
    }

    .cp-related-posts__arrow--prev::before,
    .cp-related-posts__arrow--next::before {
        width: 12px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .cp-related-posts {
        --cp-rp-arrow-space: 40px;
        --cp-rp-page-gutter: 16px;
    }

    .cp-related-posts__arrow--prev::before,
    .cp-related-posts__arrow--next::before {
        width: 10px;
        height: 50px;
    }
}

.cp-post-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.cp-post-card__link {
    display: block;
    color: inherit;
    text-decoration: none !important;
    height: 100%;
}

.cp-post-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e5e7eb;
}

.cp-post-card__media img,
.cp-post-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.cp-post-card__media img {
    object-fit: cover;
}

.cp-post-card__placeholder {
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
}

.cp-post-card__body {
    padding: 18px;
}

.cp-post-card__meta {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cp-post-card__title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.18;
    color: #111827;
}

.cp-post-card__excerpt {
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.65;
    font-size: 14px;
}

.cp-post-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .cp-content-layout--page,
    .cp-content-layout--page-has-sidebar,
    .cp-content-layout--page-no-sidebar,
    .cp-content-layout--post {
        grid-template-columns: 1fr;
    }

    .cp-page-sidebar__sticky,
    .cp-author-sidebar__sticky {
        position: static;
    }
}

