/* ==========================================================================
   ESTILOS LÍNEA DE TIEMPO ANIMADA (CON IMAGEN MÁS GRANDE)
   ========================================================================== */

.section-hito-timeline-compact {
    width: 100%;
    background: #ffffff;
    padding: 35px 20px 80px 20px;
    box-sizing: border-box;
}

#hito-timeline, #hito-timeline * { 
    box-sizing: border-box; 
}

#hito-timeline {
    --ht-bg: #ffffff;
    --ht-burgundy: #8C1527;
    --ht-text: #2C2825;
    --ht-text-dim: #555555;

    background: var(--ht-bg);
    color: var(--ht-text);
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Encabezado */
.ht-header { 
    margin-bottom: 25px; 
    text-align: center; 
    font-size: 2em;
    color: var(--ht-burgundy);
}

.ht-eyebrow {
    display: block;
    color: var(--ht-burgundy);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ht-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3vw, 30px);
    margin: 0;
    color: var(--ht-burgundy);
}

/* Escenario y Navegación */
.ht-stage {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    gap: 20px;
}

.ht-nav {
    background: #ffffff;
    border: 1px solid #d1d1d1;
    color: var(--ht-text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ht-nav:hover { 
    border-color: var(--ht-burgundy); 
    background: var(--ht-burgundy); 
    color: #ffffff;
}

.ht-nav:disabled { 
    opacity: 0.2; 
    cursor: default; 
    background: #ffffff; 
    color: var(--ht-text); 
    border-color: #d1d1d1; 
}

/* Distribución EXACTA 50/50 con mayor altura */
.ht-panel {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% Izquierda / 50% Derecha */
    gap: 40px;
    min-height: 380px; /* Ampliado para adaptarse a la imagen más grande */
    align-items: center;
    background: transparent;
    padding: 0;
}

/* Imagen y Badge (50% de la izquierda con mayor tamaño) */
.ht-image {
    position: relative;
    width: 100%;
    height: 380px; /* Aumentado de 250px a 380px */
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ht-image-inner {
    position: absolute;
    inset: 0;
    background-size: contain; /* Muestra el render/foto completo en gran formato */
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.35s ease, transform 0.45s ease;
}

.ht-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    background: var(--ht-burgundy);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Textos (50% de la derecha) */
.ht-copy { 
    padding-left: 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.ht-year {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 800;
    color: var(--ht-burgundy);
    line-height: 1;
    margin-bottom: 8px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.ht-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ht-text);
    line-height: 1.3;
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}

.ht-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ht-text-dim);
    margin: 0;
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

/* Transición Fade In */
.ht-fade-in .ht-year,
.ht-fade-in .ht-heading,
.ht-fade-in .ht-desc { 
    opacity: 0; 
    transform: translateY(6px); 
}

/* Track Inferior */
.ht-track { 
    margin-top: 35px; 
    padding: 0 10px; 
}

.ht-track-line {
    position: relative;
    height: 3px;
    background: #e2e2e2;
    border-radius: 2px;
}

.ht-track-fill {
    position: absolute;
    left: 0; 
    top: 0; 
    height: 100%;
    background: var(--ht-burgundy);
    transition: width 0.35s ease-out;
}

.ht-track-nodes {
    display: flex;
    justify-content: space-between;
    margin-top: -8px;
}

/* Grupos y Nodos */
.ht-node-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.ht-node-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ht-node {
    width: 16px; 
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #b2b2b2;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.ht-node--sub { 
    width: 11px; 
    height: 11px; 
}

.ht-node:hover { 
    transform: scale(1.2); 
}

.ht-node.is-active {
    background: var(--ht-burgundy);
    border-color: var(--ht-burgundy);
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(140, 21, 39, 0.4);
}

.ht-node.is-past { 
    border-color: var(--ht-burgundy); 
}

.ht-node-label {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11.5px;
    font-weight: 600;
    color: #666666;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.ht-node-group.is-active-group .ht-node-label { 
    color: var(--ht-burgundy); 
    font-weight: 800; 
}

/* Responsive */
@media (max-width: 820px) {
    .ht-panel { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        text-align: center; 
        min-height: auto;
    }
    .ht-copy { text-align: center; }
    .ht-image { height: 260px; } /* Ajustado a escala responsiva */
    .ht-stage { grid-template-columns: 1fr; }
    .ht-nav { display: none; }
}

@media (max-width: 600px) {
    .ht-node-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    #hito-timeline * { transition: none !important; }
}