/* =====================================================
   DETALLE DE HITO — Layout editorial tipo blog
   ===================================================== */

:root {
    --hito-primary: var(--primary-blue, #0b2545);
    --hito-gold: var(--accent-gold, #aa7c33);
    --hito-serif: var(--font-serif, 'Marcellus', serif);
    --hito-sans: var(--font-sans, 'Montserrat', sans-serif);
}

.hito-detail-page {
    background-color: var(--white, #ffffff);
}

/* ---------- LAYOUT (artículo + barra lateral) ---------- */
.hito-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 64px 28px 90px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: start;
}

/* ---------- ARTÍCULO ---------- */
.hito-article {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

/* Dentro del layout con barra lateral, las imágenes se contienen en la columna */
.hito-layout .hito-cover,
.hito-layout .hito-block-imagen.is-wide,
.hito-layout .hito-block-imagen.is-full,
.hito-layout .hito-block-galeria,
.hito-layout .hito-block-galeria.is-carrusel,
.hito-layout .hito-block-linea-tiempo.is-horizontal {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
}

.hito-layout .hito-block-galeria.is-carrusel {
    overflow: hidden;
}

.hito-layout .hito-block-imagen.is-full img {
    border-radius: 14px;
}

/* ---------- BARRA LATERAL DE RECOMENDACIONES ---------- */
.hito-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reco-group {
    background: var(--bg-light, #f5f5f3);
    border: 1px solid rgba(11, 37, 69, 0.07);
    border-radius: 14px;
    padding: 20px;
}

.reco-title {
    font-family: var(--hito-serif);
    font-size: 19px;
    font-weight: 400;
    color: var(--hito-primary);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    position: relative;
}

.reco-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 2px;
    background-color: var(--hito-gold);
}

.reco-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reco-card {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(11, 37, 69, 0.06);
    border-radius: 10px;
    padding: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reco-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11, 37, 69, 0.1);
    border-color: rgba(170, 124, 51, 0.4);
}

.reco-thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reco-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reco-thumb-fallback {
    color: #b9bcc2;
    font-size: 20px;
}

.reco-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.reco-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--hito-gold);
}

.reco-name {
    font-family: var(--hito-serif);
    font-size: 15px;
    line-height: 1.3;
    color: var(--hito-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- CABECERA DEL ARTÍCULO (sobre fondo claro) ---------- */
.hito-article-header {
    margin-bottom: 40px;
}

.hito-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #777;
    margin-bottom: 24px;
}

.hito-breadcrumb a {
    color: var(--hito-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hito-breadcrumb a:hover {
    color: var(--hito-gold);
}

.hito-breadcrumb .is-current {
    color: #777;
}

.hito-detail-type {
    display: inline-flex;
    align-items: center;
    background-color: var(--hito-gold);
    color: var(--white, #fff);
    font-family: var(--hito-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hito-article-header h1 {
    font-family: var(--hito-serif);
    font-size: 42px;
    line-height: 1.15;
    font-weight: 400;
    color: var(--hito-primary);
    margin: 0 0 22px 0;
}

.hito-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.hito-detail-meta i {
    color: var(--hito-gold);
    margin-right: 7px;
}

.hito-detail-date,
.hito-detail-tag,
.hito-detail-author {
    display: inline-flex;
    align-items: center;
}

.hito-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hito-detail-tags .hito-detail-tag {
    background-color: rgba(170, 124, 51, 0.1);
    color: var(--hito-gold);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 12px;
    border-radius: 50px;
}

a.hito-detail-tag.tag-filter-link {
    border: 1px solid transparent;
    border-radius: 999px;
}

a.hito-detail-tag.tag-filter-link:hover {
    border-color: rgba(170, 124, 51, 0.45);
}

.hito-cover {
    margin: 0 0 40px 0;
    width: min(1040px, 92vw);
    margin-left: 50%;
    transform: translateX(-50%);
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 16px;
    background-color: #eef1f4;
    box-shadow: 0 18px 44px rgba(11, 37, 69, 0.16);
}

.hito-cover img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain; /* imagen completa dentro del marco 3:2 */
    border-radius: 0;
    display: block;
}

.hito-article-lead {
    font-family: var(--hito-serif);
    font-size: 22px;
    line-height: 1.6;
    color: var(--hito-primary);
    margin: 0 0 40px 0;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(11, 37, 69, 0.1);
}

/* ---------- PROSE (tipografía del cuerpo) ---------- */
.prose {
    color: #3b3b3b;
    font-size: 17px;
    line-height: 1.85;
}

.prose > * + * {
    margin-top: 26px;
}

.prose p {
    margin: 0 0 26px 0;
}

.prose h2 {
    font-family: var(--hito-serif);
    font-size: 30px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--hito-primary);
    margin: 46px 0 18px 0;
}

.prose h3 {
    font-family: var(--hito-serif);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 400;
    color: var(--hito-primary);
    margin: 38px 0 16px 0;
}

.prose h2::after,
.prose h3::after {
    content: '';
    display: block;
    width: 90px;
    height: 2px;
    background-color: var(--hito-gold);
    margin-top: 14px;
}

.prose a {
    color: var(--hito-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose ul,
.prose ol {
    margin: 0 0 26px 0;
    padding-left: 26px;
}

.prose li {
    margin-bottom: 10px;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 34px auto;
}

.prose figure {
    margin: 40px 0;
}

.prose figcaption {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

.prose blockquote {
    margin: 0 0 26px 0;
    padding-left: 24px;
    border-left: 3px solid var(--hito-gold);
    font-family: var(--hito-serif);
    font-size: 21px;
    line-height: 1.6;
    color: var(--hito-primary);
}

/* ---------- BLOQUE: PÁRRAFO ---------- */
.hito-block-parrafo {
    /* hereda estilos .prose */
}

/* ---------- BLOQUE: ENCABEZADO ---------- */
.hito-block-encabezado {
    /* h2/h3 heredan de .prose */
}

/* ---------- BLOQUE: IMAGEN ---------- */
.hito-block-imagen {
    margin: 44px 0;
}

.hito-block-imagen figure {
    margin: 0;
}

.hito-block-imagen img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 0;
    box-shadow: 0 14px 38px rgba(11, 37, 69, 0.12);
}

.hito-block-imagen figcaption {
    font-family: var(--hito-sans);
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    text-align: center;
    margin-top: 14px;
    font-style: italic;
    max-width: 42em;
    margin-left: auto;
    margin-right: auto;
}

/* Tamaños de imagen — rompen el ancho del artículo */
.hito-block-imagen.is-wide {
    width: min(1040px, 92vw);
    margin-left: 50%;
    transform: translateX(-50%);
}

.hito-block-imagen.is-full {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.hito-block-imagen.is-full img {
    border-radius: 0;
}

/* ---------- BLOQUE: GALERÍA ---------- */
.hito-block-galeria {
    margin: 48px 0;
    width: min(1040px, 92vw);
    margin-left: 50%;
    transform: translateX(-50%);
}

.hito-gallery-grid {
    display: grid;
    gap: 14px;
}

.hito-gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.hito-gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hito-gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.hito-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    background-color: #e8e8e8;
}

.hito-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.hito-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    transition: transform 0.6s ease;
}

.hito-gallery-item:hover img {
    transform: scale(1.06);
}

.hito-gallery-caption {
    text-align: center;
    font-size: 13px;
    color: #777;
    font-style: italic;
    margin-top: 14px;
}

/* Galería en modo carrusel (estilo aliados) */
.hito-block-galeria.is-carrusel {
    width: min(1040px, 92vw);
    margin-left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    isolation: isolate;
}

.hito-gallery-carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    padding: 6px 0;
}

.hito-gallery-carousel::before,
.hito-gallery-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 72px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hito-gallery-carousel::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.hito-gallery-carousel::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.hito-gallery-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: max-content;
    animation: hitoGalleryScroll 32s linear infinite;
}

.hito-gallery-carousel:hover .hito-gallery-track {
    animation-play-state: paused;
}

.hito-gallery-slide {
    width: min(280px, 70vw);
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
    margin: 0;
}

@keyframes hitoGalleryScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 8px));
    }
}

@media (max-width: 820px) {
    .hito-gallery-track {
        gap: 12px;
        animation-duration: 26s;
    }

    .hito-gallery-carousel::before,
    .hito-gallery-carousel::after {
        width: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hito-gallery-track {
        animation: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
    }

    .hito-gallery-slide {
        scroll-snap-align: start;
    }

    .hito-gallery-carousel::before,
    .hito-gallery-carousel::after {
        display: none;
    }
}

/* ---------- BLOQUE: CITA ---------- */
.hito-block-cita {
    margin: 48px 0;
    padding: 34px 38px;
    background-color: var(--bg-light, #f5f5f3);
    border-left: 4px solid var(--hito-gold);
    border-radius: 0 14px 14px 0;
}

.hito-block-cita blockquote {
    margin: 0;
    padding: 0;
    border: none;
    font-family: var(--hito-serif);
    font-size: 23px;
    line-height: 1.55;
    color: var(--hito-primary);
}

.hito-block-cita cite {
    display: block;
    margin-top: 18px;
    font-family: var(--hito-sans);
    font-size: 13px;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--hito-gold);
}

.hito-block-cita cite::before {
    content: '— ';
}

/* ---------- BLOQUE: CTA ---------- */
.hito-block-cta {
    margin: 48px 0;
    text-align: center;
}

.hito-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 15px 28px;
    border-radius: 50px;
    font-family: var(--hito-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.hito-cta-btn.is-primary {
    background-color: var(--hito-primary);
    color: #fff;
}

.hito-cta-btn.is-primary:hover {
    background-color: var(--hito-gold);
    transform: translateY(-3px);
}

.hito-cta-btn.is-secondary {
    background-color: transparent;
    color: var(--hito-primary);
    border: 2px solid var(--hito-primary);
}

.hito-cta-btn.is-secondary:hover {
    background-color: var(--hito-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ---------- BLOQUE: LISTA ---------- */
.hito-block-lista {
    margin: 32px 0;
}

.hito-list-header {
    margin: 0 0 18px;
}

.hito-list-title {
    margin: 0 0 8px;
    font-family: var(--hito-serif);
    font-size: 24px;
    line-height: 1.25;
    color: var(--hito-primary);
}

.hito-list-intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #4b5563;
}

.hito-block-list {
    margin: 0;
    color: var(--hito-primary);
}

.hito-list-simple {
    padding-left: 1.35em;
}

.hito-list-simple li {
    margin: 0 0 0.55em;
    line-height: 1.65;
}

.hito-list-simple li:last-child {
    margin-bottom: 0;
}

.hito-list-rich {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 14px;
}

.hito-list-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
}

.hito-list-marker {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(170, 124, 51, 0.12);
    color: var(--hito-gold);
    font-size: 15px;
    flex-shrink: 0;
}

.hito-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hito-gold);
}

.hito-list-step {
    font-family: var(--hito-serif);
    font-size: 18px;
    line-height: 1;
    color: var(--hito-primary);
}

.hito-list-body {
    min-width: 0;
    padding-top: 2px;
}

.hito-list-item-title {
    margin: 0 0 4px;
    font-family: var(--hito-serif);
    font-size: 18px;
    line-height: 1.3;
    color: var(--hito-primary);
    font-weight: 400;
}

.hito-list-simple .hito-list-item-title {
    font-family: var(--hito-sans);
    font-size: inherit;
    font-weight: 700;
}

.hito-list-item-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.hito-list-item-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--hito-primary);
    text-decoration: none;
    font-family: var(--hito-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.hito-list-item-link.is-inline {
    margin-top: 0;
    margin-left: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
}

.hito-list-item-link:hover {
    color: var(--hito-gold);
}

/* Checklist */
.hito-block-lista.is-check .hito-list-marker {
    background: rgba(170, 124, 51, 0.14);
    color: var(--hito-gold);
}

/* Pasos */
.hito-block-lista.is-pasos .hito-list-marker {
    background: var(--hito-primary);
    color: #fff;
}

.hito-block-lista.is-pasos .hito-list-step {
    color: #fff;
}

.hito-block-lista.is-pasos .hito-list-rich {
    gap: 18px;
}

/* Cards */
.hito-block-lista.is-cards .hito-list-item {
    background: #fff;
    border: 1px solid rgba(11, 37, 69, 0.1);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(11, 37, 69, 0.05);
}

/* Dos columnas */
.hito-block-lista.is-dos_columnas .hito-list-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.hito-block-lista.is-dos_columnas .hito-list-item {
    background: rgba(11, 37, 69, 0.03);
    border-radius: 12px;
    padding: 14px;
}

@media (max-width: 700px) {
    .hito-block-lista.is-dos_columnas .hito-list-rich {
        grid-template-columns: 1fr;
    }

    .hito-list-title {
        font-size: 21px;
    }
}

/* ---------- BLOQUES EMBED (YouTube / Mapa) ---------- */
.hito-block-youtube,
.hito-block-mapa,
.hito-block-x-post {
    margin: 40px 0;
}

.hito-block-embed-title {
    margin: 0 0 12px;
    font-family: var(--hito-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--hito-primary);
}

.hito-block-embed {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(11, 37, 69, 0.06);
    box-shadow: 0 14px 38px rgba(11, 37, 69, 0.1);
}

.hito-block-embed-16x9 {
    aspect-ratio: 16 / 9;
}

.hito-block-embed-mapa {
    aspect-ratio: 4 / 3;
    min-height: 280px;
}

.hito-block-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hito-block-embed-fallback {
    margin: 10px 0 0;
    font-size: 13px;
}

.hito-block-embed-fallback a {
    color: var(--hito-gold);
}

.hito-block-x-post .twitter-tweet {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ---------- BLOQUE: CARDS ---------- */
.hito-block-cards {
    margin: 44px 0;
}

.hito-block-cards-grid {
    display: grid;
    gap: 20px;
}

.hito-block-cards-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hito-block-cards-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hito-block-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(11, 37, 69, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(11, 37, 69, 0.06);
}

.hito-block-card-media {
    display: block;
    background: rgba(11, 37, 69, 0.05);
}

.hito-block-card-media img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.hito-block-card-body {
    padding: 18px 18px 20px;
    display: grid;
    gap: 8px;
}

.hito-block-card-title {
    margin: 0;
    font-family: var(--hito-serif);
    font-size: 20px;
    line-height: 1.3;
    color: var(--hito-primary);
}

.hito-block-card-title a {
    color: inherit;
    text-decoration: none;
}

.hito-block-card-title a:hover {
    color: var(--hito-gold);
}

.hito-block-card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #4b5563;
}

/* ---------- BLOQUE: TABLA ---------- */
.hito-block-tabla {
    margin: 40px 0;
}

.hito-block-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(11, 37, 69, 0.12);
}

.hito-block-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--hito-sans);
    font-size: 14px;
    line-height: 1.5;
}

.hito-block-table th,
.hito-block-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(11, 37, 69, 0.1);
    vertical-align: top;
}

.hito-block-table thead th {
    background: rgba(11, 37, 69, 0.06);
    color: var(--hito-primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hito-block-table tbody tr:last-child td {
    border-bottom: none;
}

.hito-block-table tbody tr:nth-child(even) {
    background: rgba(11, 37, 69, 0.025);
}

/* ---------- BLOQUE: ACORDEÓN ---------- */
.hito-block-acordeon {
    margin: 40px 0;
}

.hito-acordeon-header {
    margin-bottom: 18px;
}

.hito-acordeon-title {
    margin: 0 0 8px;
    font-family: var(--hito-serif);
    font-size: 24px;
    line-height: 1.25;
    color: var(--hito-primary);
}

.hito-acordeon-intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #4b5563;
}

.hito-acordeon-list {
    display: grid;
    gap: 12px;
}

.hito-block-acordeon-item {
    border: 1px solid rgba(11, 37, 69, 0.12);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}

.hito-block-acordeon-item:hover {
    border-color: rgba(170, 124, 51, 0.35);
}

.hito-block-acordeon-item[open] {
    border-color: rgba(170, 124, 51, 0.45);
    background: linear-gradient(180deg, rgba(170, 124, 51, 0.04), #fff 42%);
    box-shadow: 0 10px 28px rgba(11, 37, 69, 0.06);
}

.hito-block-acordeon-summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    font-family: var(--hito-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hito-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.hito-block-acordeon-summary::-webkit-details-marker {
    display: none;
}

.hito-block-acordeon-item[open] .hito-block-acordeon-summary {
    color: var(--hito-primary);
}

.hito-block-acordeon-item[open] .hito-block-acordeon-summary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--hito-gold);
}

.hito-acordeon-summary-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hito-acordeon-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(170, 124, 51, 0.1);
    color: var(--hito-gold);
    font-size: 15px;
}

.hito-acordeon-summary-text {
    min-width: 0;
}

.hito-acordeon-chevron {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(11, 37, 69, 0.05);
    color: var(--hito-gold);
    font-size: 12px;
    transition: transform 0.28s ease, background-color 0.22s ease, color 0.22s ease;
}

.hito-block-acordeon-item[open] .hito-acordeon-chevron {
    transform: rotate(180deg);
    background: rgba(170, 124, 51, 0.14);
    color: var(--hito-primary);
}

.hito-block-acordeon-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
    border-top: 0 solid transparent;
}

.hito-block-acordeon-item[open] .hito-block-acordeon-body {
    grid-template-rows: 1fr;
    border-top: 1px solid rgba(11, 37, 69, 0.08);
}

.hito-acordeon-body-inner {
    overflow: hidden;
    min-height: 0;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.28s ease, transform 0.28s ease, padding 0.28s ease;
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
}

.hito-block-acordeon-item[open] .hito-acordeon-body-inner {
    padding: 16px 20px 20px;
    opacity: 1;
    transform: translateY(0);
}

.hito-acordeon-body-inner > *:first-child {
    margin-top: 0;
}

.hito-acordeon-body-inner > *:last-child {
    margin-bottom: 0;
}

/* Pasos enlazados (estilo timeline) dentro del acordeón */
.hito-acordeon-pasos {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    position: relative;
}

.hito-acordeon-body-inner > .hito-acordeon-pasos:first-child {
    margin-top: 0;
}

.hito-acordeon-pasos::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: rgba(11, 37, 69, 0.12);
}

.hito-acordeon-paso {
    position: relative;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 14px;
    align-items: start;
    padding: 0 0 20px;
}

.hito-acordeon-paso:last-child {
    padding-bottom: 0;
}

.hito-acordeon-paso-marker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--hito-gold, #aa7c33);
    color: var(--hito-primary, #0b2545);
    font-family: var(--hito-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 4px #fff;
}

.hito-acordeon-paso-content {
    padding-top: 5px;
    min-width: 0;
}

.hito-acordeon-paso-link {
    color: var(--hito-primary, #0b2545);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.45;
    text-decoration: underline;
    text-decoration-color: rgba(170, 124, 51, 0.45);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hito-acordeon-paso-link:hover {
    color: var(--hito-gold, #aa7c33);
    text-decoration-color: var(--hito-gold, #aa7c33);
}

.hito-acordeon-paso-link.is-static {
    text-decoration: none;
    cursor: default;
}

.hito-block-acordeon.is-reduced-motion .hito-acordeon-chevron,
.hito-block-acordeon.is-reduced-motion .hito-block-acordeon-body,
.hito-block-acordeon.is-reduced-motion .hito-acordeon-body-inner {
    transition: none;
}

@media (max-width: 700px) {
    .hito-acordeon-title {
        font-size: 21px;
    }

    .hito-block-acordeon-summary {
        padding: 16px;
        font-size: 15px;
    }

    .hito-acordeon-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .hito-acordeon-pasos::before {
        left: 13px;
    }

    .hito-acordeon-paso {
        grid-template-columns: 28px 1fr;
        gap: 12px;
        padding-bottom: 16px;
    }

    .hito-acordeon-paso-marker {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* ---------- BLOQUE: LÍNEA DE TIEMPO ---------- */
.hito-block-linea-tiempo {
    margin: 48px 0;
    --timeline-progress: 0;
}

.hito-timeline-title {
    margin: 0 0 22px;
    font-family: var(--hito-serif);
    font-size: 26px;
    line-height: 1.25;
    color: var(--hito-primary);
}

.hito-timeline-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}

.hito-timeline-chip {
    appearance: none;
    border: 1px solid rgba(11, 37, 69, 0.14);
    background: #fff;
    color: var(--hito-primary);
    font-family: var(--hito-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hito-timeline-chip:hover,
.hito-timeline-chip.is-active {
    background: var(--hito-primary);
    border-color: var(--hito-primary);
    color: #fff;
}

/* Vertical + zigzag list */
.hito-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.hito-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(11, 37, 69, 0.12);
}

.hito-timeline::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    width: 2px;
    height: calc((100% - 16px) * var(--timeline-progress));
    background: linear-gradient(to bottom, var(--hito-gold), rgba(170, 124, 51, 0.35));
    transform-origin: top;
    pointer-events: none;
}

.hito-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 18px;
    padding: 0 0 34px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hito-timeline-item.is-visible,
.hito-block-linea-tiempo.is-reduced-motion .hito-timeline-item {
    opacity: 1;
    transform: none;
}

.hito-timeline-item:last-child {
    padding-bottom: 0;
}

.hito-timeline-marker {
    width: 14px;
    height: 14px;
    margin-top: 10px;
    margin-left: 5px;
    border-radius: 50%;
    background: var(--hito-gold);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(170, 124, 51, 0.55);
    z-index: 1;
}

.hito-timeline-card {
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(11, 37, 69, 0.1);
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 28px rgba(11, 37, 69, 0.05);
}

.hito-timeline-date {
    display: block;
    margin: 0 0 6px;
    font-family: var(--hito-serif);
    font-size: 28px;
    line-height: 1.1;
    color: var(--hito-primary);
}

.hito-timeline-label {
    display: inline-block;
    margin: 0 0 8px;
    font-family: var(--hito-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--hito-gold);
}

.hito-timeline-item-title {
    margin: 0 0 10px;
    font-family: var(--hito-serif);
    font-size: 20px;
    line-height: 1.3;
    color: var(--hito-primary);
}

.hito-timeline-summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--hito-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--hito-gold);
}

.hito-timeline-summary::-webkit-details-marker {
    display: none;
}

.hito-timeline-body {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.hito-timeline-media {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(11, 37, 69, 0.05);
}

.hito-timeline-media img {
    width: 100%;
    height: auto;
    display: block;
}

.hito-timeline-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #4b5563;
}

.hito-timeline-text > *:first-child {
    margin-top: 0;
}

.hito-timeline-text > *:last-child {
    margin-bottom: 0;
}

.hito-timeline-cta {
    margin: 0;
}

.hito-timeline-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hito-primary);
    text-decoration: none;
    font-family: var(--hito-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hito-timeline-cta a:hover {
    color: var(--hito-gold);
}

/* Zigzag desktop */
@media (min-width: 821px) {
    .hito-block-linea-tiempo.is-zigzag .hito-timeline {
        padding: 0;
    }

    .hito-block-linea-tiempo.is-zigzag .hito-timeline::before,
    .hito-block-linea-tiempo.is-zigzag .hito-timeline::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hito-block-linea-tiempo.is-zigzag .hito-timeline-item {
        grid-template-columns: 1fr 24px 1fr;
        gap: 22px;
        align-items: start;
    }

    .hito-block-linea-tiempo.is-zigzag .hito-timeline-marker {
        grid-column: 2;
        grid-row: 1;
        margin-left: 5px;
        justify-self: center;
    }

    .hito-block-linea-tiempo.is-zigzag .hito-timeline-item.is-left .hito-timeline-card {
        grid-column: 1;
        grid-row: 1;
        text-align: right;
    }

    .hito-block-linea-tiempo.is-zigzag .hito-timeline-item.is-right .hito-timeline-card {
        grid-column: 3;
        grid-row: 1;
        text-align: left;
    }

    .hito-block-linea-tiempo.is-zigzag .hito-timeline-item.is-left .hito-timeline-media,
    .hito-block-linea-tiempo.is-zigzag .hito-timeline-item.is-left .hito-timeline-cta {
        margin-left: auto;
    }

    .hito-block-linea-tiempo.is-zigzag .hito-timeline-item.is-left .hito-timeline-summary {
        text-align: right;
    }
}

/* Horizontal carousel */
.hito-timeline-horizontal-wrap {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
}

.hito-timeline-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 10px;
    scrollbar-width: thin;
}

.hito-timeline-slide {
    flex: 0 0 min(320px, 82vw);
    scroll-snap-align: start;
    display: block;
    opacity: 1;
    transform: none;
    padding: 0;
}

.hito-timeline-slide .hito-timeline-marker {
    display: none;
}

.hito-timeline-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(11, 37, 69, 0.14);
    background: #fff;
    color: var(--hito-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.hito-timeline-nav-btn:hover {
    border-color: var(--hito-gold);
    color: var(--hito-gold);
}

.hito-block-linea-tiempo.is-horizontal {
    width: min(1040px, 92vw);
    margin-left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 820px) {
    .hito-timeline-date {
        font-size: 24px;
    }

    .hito-timeline-horizontal-wrap {
        grid-template-columns: 1fr;
    }

    .hito-timeline-nav-btn {
        display: none;
    }
}

@media (max-width: 520px) {
    .hito-timeline-title {
        font-size: 22px;
    }

    .hito-timeline-item {
        gap: 12px;
        padding-bottom: 24px;
    }

    .hito-timeline-item-title {
        font-size: 18px;
    }

    .hito-timeline-date {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hito-timeline-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hito-timeline::after {
        height: calc(100% - 16px);
    }

    .hito-timeline-track {
        scroll-behavior: auto;
    }
}

/* ---------- BLOQUE: PDF (visor / flipbook) ---------- */
.hito-block-pdf {
    margin: 44px 0;
    --hito-pdf-height: 640px;
}

.hito-pdf-title {
    margin: 0 0 16px;
    font-family: var(--hito-serif);
    font-size: 24px;
    line-height: 1.25;
    color: var(--hito-primary);
}

.hito-pdf-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
}

.hito-pdf-tab {
    appearance: none;
    border: 1px solid rgba(11, 37, 69, 0.14);
    background: #fff;
    color: var(--hito-primary);
    font-family: var(--hito-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.hito-pdf-tab.is-active,
.hito-pdf-tab:hover {
    background: var(--hito-primary);
    border-color: var(--hito-primary);
    color: #fff;
}

.hito-pdf-status {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(11, 37, 69, 0.05);
    color: #4b5563;
    font-size: 14px;
}

.hito-pdf-status.is-error {
    background: rgba(179, 45, 46, 0.08);
    color: #8a1f20;
}

.hito-pdf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hito-pdf-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(11, 37, 69, 0.14);
    background: #fff;
    color: var(--hito-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hito-pdf-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.hito-pdf-btn:hover:not(:disabled) {
    border-color: var(--hito-gold);
    color: var(--hito-gold);
}

.hito-pdf-page-label {
    font-family: var(--hito-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--hito-primary);
    min-width: 90px;
}

.hito-pdf-download {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hito-gold);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.hito-pdf-viewer {
    width: 100%;
    max-height: var(--hito-pdf-height);
    overflow: auto;
    border: 1px solid rgba(11, 37, 69, 0.1);
    border-radius: 14px;
    background: #e8eaed;
    padding: 14px;
    scroll-behavior: smooth;
}

.hito-pdf-frame-wrap {
    width: 100%;
    height: var(--hito-pdf-height);
    border: 1px solid rgba(11, 37, 69, 0.1);
    border-radius: 14px;
    overflow: hidden;
    background: #e8eaed;
}

.hito-pdf-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.hito-pdf-viewer.is-scroll {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hito-pdf-page {
    margin: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(11, 37, 69, 0.12);
}

.hito-pdf-page canvas {
    display: block;
    width: 100%;
    height: auto;
}

.hito-pdf-page-cap {
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #6b7280;
    background: #f8fafc;
    border-top: 1px solid rgba(11, 37, 69, 0.06);
}

.hito-pdf-viewer canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 24px rgba(11, 37, 69, 0.12);
    background: #fff;
}

.hito-pdf-flip-shell {
    border: 1px solid rgba(11, 37, 69, 0.12);
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    overflow: hidden;
    min-height: var(--hito-pdf-height);
    height: var(--hito-pdf-height);
    display: flex;
    flex-direction: column;
}

.hito-pdf-flip-shell:fullscreen,
.hito-pdf-flip-shell:-webkit-full-screen {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
}

.hito-pdf-flip-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hito-pdf-tool {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hito-pdf-tool:hover,
.hito-pdf-tool.is-active {
    background: var(--hito-gold);
    color: #fff;
}

.hito-pdf-zoom-label {
    min-width: 48px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.85);
}

.hito-pdf-flip-toolbar .hito-pdf-page-label {
    margin-left: auto;
    color: rgba(248, 250, 252, 0.9);
}

.hito-pdf-flip-toolbar .hito-pdf-download {
    margin-left: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 10px;
    gap: 6px;
}

.hito-pdf-flip-toolbar .hito-pdf-download:hover {
    background: var(--hito-gold);
}

.hito-pdf-flip-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    min-width: 0;
    height: 100%;
}

.hito-block-pdf.is-thumbs-open .hito-pdf-flip-body {
    grid-template-columns: 148px minmax(0, 1fr);
}

.hito-pdf-thumbs {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: none;
    height: 100%;
    min-width: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.28);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.hito-pdf-thumbs[hidden] {
    display: none !important;
}

.hito-pdf-flip-shell:fullscreen .hito-pdf-thumbs,
.hito-pdf-flip-shell:-webkit-full-screen .hito-pdf-thumbs {
    max-height: calc(100vh - 56px);
}

.hito-pdf-thumb {
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    display: block;
    width: 100%;
    flex: 0 0 auto;
}

.hito-pdf-thumb img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: #fff;
    max-width: 100%;
}

.hito-pdf-thumb-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 0;
    background: rgba(0, 0, 0, 0.35);
}

.hito-pdf-thumb.is-active,
.hito-pdf-thumb:hover {
    border-color: var(--hito-gold);
}

.hito-pdf-flip-stage {
    position: relative;
    min-height: 0;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 10px 48px;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(170, 124, 51, 0.12), transparent 45%),
        rgba(15, 23, 42, 0.92);
}

.hito-block-pdf.is-spread .hito-pdf-flip-stage {
    padding-left: 44px;
    padding-right: 44px;
}

.hito-pdf-flip-shell:fullscreen .hito-pdf-flip-stage,
.hito-pdf-flip-shell:-webkit-full-screen .hito-pdf-flip-stage {
    min-height: 0;
    height: 100%;
}

.hito-pdf-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.hito-pdf-nav:hover {
    background: var(--hito-gold);
}

.hito-pdf-nav.is-prev {
    left: 8px;
}

.hito-pdf-nav.is-next {
    right: 8px;
}

.hito-pdf-flip-wrap {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    cursor: default;
}

.hito-pdf-flip-wrap.is-swipeable {
    cursor: grab;
}

.hito-pdf-flip-wrap.is-zoomed {
    cursor: grab;
}

.hito-pdf-flip-wrap.is-panning,
.hito-pdf-flip-wrap.is-swiping {
    cursor: grabbing;
}

.hito-pdf-flip-scale,
.hito-pdf-flip-layout,
.hito-pdf-flipbook,
.hito-pdf-flipbook * {
    pointer-events: none !important;
}

.hito-pdf-flip-scale {
    transform-origin: center center;
    transition: transform 0.18s ease;
    will-change: transform;
    max-width: 100%;
}

.hito-pdf-flip-wrap.is-panning .hito-pdf-flip-scale {
    transition: none;
}

.hito-pdf-flip-layout {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    max-width: 100%;
}

.hito-pdf-flipbook {
    margin: 0;
    min-height: 0;
    transform-origin: top left;
}

.hito-pdf-flipbook .stf__parent,
.hito-pdf-flipbook .stf__wrapper {
    margin: 0;
}

.hito-pdf-flipbook canvas {
    image-rendering: auto;
}

.hito-pdf-panel[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .hito-pdf-download {
        margin-left: 0;
        width: auto;
        justify-content: flex-start;
    }

    .hito-block-pdf.is-thumbs-open .hito-pdf-flip-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .hito-pdf-thumbs {
        max-height: 140px;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hito-pdf-thumb {
        flex: 0 0 88px;
        width: 88px;
    }

    .hito-pdf-flip-stage {
        padding: 16px 44px;
    }
}

/* ---------- COMPARTIR ---------- */
.hito-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 60px;
    padding-top: 34px;
    border-top: 1px solid rgba(11, 37, 69, 0.1);
}

.hito-share-title {
    font-family: var(--hito-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--hito-gold);
}

.hito-share-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hito-share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-light, #f5f5f3);
    border: 1px solid rgba(11, 37, 69, 0.1);
    color: #8a8f98;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hito-share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: transparent;
}

.hito-share-btn.is-facebook:hover {
    background-color: #1877f2;
}

.hito-share-btn.is-x:hover {
    background-color: #000;
}

.hito-share-btn.is-whatsapp:hover {
    background-color: #25d366;
}

/* ---------- PIE DEL ARTÍCULO ---------- */
.hito-article-footer {
    margin-top: 40px;
    padding-top: 34px;
    border-top: 1px solid rgba(11, 37, 69, 0.1);
}

.hito-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hito-primary);
    text-decoration: none;
    font-family: var(--hito-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.hito-back-link:hover {
    color: var(--hito-gold);
    gap: 14px;
}

/* ---------- Nube de etiquetas dentro del artículo ---------- */
.hito-article .articulos-tag-cloud-section {
    padding: 40px 0 8px;
    background: transparent;
    margin-top: 8px;
}

.hito-article .articulos-tag-cloud-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.hito-article .articulos-tag-cloud-header {
    text-align: left;
    margin-bottom: 18px;
}

.hito-article .articulos-tag-cloud-header p {
    margin: 0;
    max-width: none;
}

.hito-article .articulos-tag-cloud {
    justify-content: flex-start;
}

/* ---------- RESPONSIVE ---------- */

/* Barra lateral pasa debajo del contenido y se vuelve carrusel */
@media (max-width: 980px) {
    .hito-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 920px;
    }

    .hito-article {
        max-width: none;
        margin: 0 auto;
    }

    .hito-sidebar {
        position: static;
        top: auto;
        gap: 26px;
        border-top: 1px solid rgba(11, 37, 69, 0.1);
        padding-top: 36px;
    }

    .reco-group {
        background: transparent;
        border: none;
        padding: 0;
    }
}

@media (max-width: 820px) {
    .hito-article-header h1 {
        font-size: 32px;
    }

    .hito-layout {
        padding: 48px 20px 70px 20px;
    }

    .hito-article-lead {
        font-size: 19px;
    }

    .prose {
        font-size: 16px;
    }

    .prose h2 { font-size: 26px; }
    .prose h3 { font-size: 21px; }

    .hito-gallery-grid.cols-3,
    .hito-gallery-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hito-block-cards-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .hito-article-header h1 {
        font-size: 27px;
    }

    .hito-block-cita {
        padding: 26px 24px;
    }

    .hito-block-cita blockquote {
        font-size: 20px;
    }

    .hito-gallery-grid.cols-2,
    .hito-gallery-grid.cols-3,
    .hito-gallery-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .hito-block-cards-grid.cols-2,
    .hito-block-cards-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .hito-block-embed-mapa {
        min-height: 220px;
    }
}
