/* ================================
   SINGLE MAESTRO · HI-FI
   ================================ */

.hi-bio-hero {
    background: var(--hi-ink);
    color: var(--hi-paper);
}
.hi-bio-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    padding: 6rem 4% 3rem;
    max-width: 100%;
    margin: 0 auto;
}
.hi-bio-hero-photo img {
    width: 100%;
    max-width: 480px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(44,33,24,0.35);
    aspect-ratio: 3/4;
    object-fit: cover;
}
.hi-bio-hero-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 2rem;
}
.hi-play-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--hi-accent);
    color: var(--hi-paper);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-family: var(--hi-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}
.hi-play-pill:hover { background: #7A2015; }
.hi-play-icon { font-size: 0.85rem; }
.hi-date-tag {
    font-family: var(--hi-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(248,244,239,0.3);
    border-radius: 999px;
    color: rgba(248,244,239,0.7);
}

/* EDITORIAL BADGE · sello de curaduría */
/* P1-A3: texto --hi-ink sobre oro (≈6.6:1, pasa AA); antes --hi-bg sobre oro (≈2.17:1). */
.maestros-editorial-badge {
    display: inline-block;
    padding: 0.4em 0.9em;
    background: var(--hi-gold);
    color: var(--hi-ink);
    border-radius: 6px;
    font-family: var(--hi-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 1.25rem;
    box-shadow: 0 2px 8px rgba(212,160,23,0.3);
}

/* AUTOBIOGRAPHY BADGE · sello de autoría propia */
.maestros-autobiografia-badge {
    display: inline-block;
    padding: 0.4em 0.9em;
    background: var(--hi-gold);
    color: var(--hi-ink);
    border-radius: 6px;
    font-family: var(--hi-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 1.25rem;
    box-shadow: 0 2px 8px rgba(212,160,23,0.3);
}

@media (max-width: 600px) {
    .maestros-editorial-badge {
        display: inline-block;
        max-width: 100%;
    }
}

.hi-bio-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
    margin: 0 auto;
    border-top: 1px solid rgba(248,244,239,0.15);
}
.hi-bio-meta-item {
    padding: 1.25rem 2rem;
    border-right: 1px solid rgba(248,244,239,0.1);
}
.hi-bio-meta-item:last-child { border-right: none; }
.hi-bio-meta-label {
    font-family: var(--hi-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hi-gold);
    margin-bottom: 0.25rem;
}
.hi-bio-meta-value {
    font-family: var(--hi-serif);
    font-size: 1.1rem;
    font-weight: 600;
}

/* BIO SECTION */
.hi-bio-section { padding: 3.5rem 0; }
.hi-bio-narrow { max-width: 900px; }
.hi-bio-body {
    font-family: var(--hi-sans);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--hi-ink-soft);
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(44,33,24,0.06);
}
.hi-bio-body p { margin-bottom: 1.25rem; }
.hi-bio-body .hi-dropcap::first-letter {
    float: left;
    font-family: var(--hi-serif);
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.15rem;
    color: var(--hi-accent);
    font-weight: 600;
}
.hi-pullquote {
    font-family: var(--hi-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--hi-ink);
    border-left: 3px solid var(--hi-accent);
    padding-left: 1.5rem;
    margin: 3rem 0;
    line-height: 1.4;
}

/* TIMELINE */
.hi-timeline-section { padding: 3rem 0 5rem; }
.hi-deco-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.hi-deco-line { flex: 1; height: 1px; background: var(--hi-rule); }
.hi-deco-orn { color: var(--hi-accent); font-size: 1.2rem; }

/* =============================== */
/* Timeline grid                   */
/* =============================== */

.hi-timeline-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

/* =============================== */
/* Timeline — contenedor de items  */
/* =============================== */

.hi-timeline {
    position: relative;
}

/* Línea vertical continua */
.hi-timeline::before {
    content: '';
    position: absolute;
    left: calc(60px + 0.5rem);  /* borde derecho de la columna año + medio gap */
    top: 0;
    bottom: 0.5rem;
    width: 2px;
    background: var(--hi-rule);
    border-radius: 2px;
}

/* =============================== */
/* Timeline item                   */
/* =============================== */

.hi-timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: none;
    position: relative;
}

/* Punto (dot) en cada hito, sobre la línea */
.hi-timeline-item::before {
    content: '';
    position: absolute;
    left: calc(60px + 0.5rem - 5px);  /* centrado sobre la línea vertical */
    top: 1.05rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hi-accent);
    z-index: 1;
    box-shadow: 0 0 0 3px var(--hi-paper);
}

/* =============================== */
/* Timeline year                   */
/* =============================== */

.hi-timeline-year {
    font-family: var(--hi-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hi-accent);
    padding-top: 2px;  /* alinear visualmente con el dot */
}

/* =============================== */
/* Timeline event                  */
/* =============================== */

.hi-timeline-event {
    font-family: var(--hi-sans);
    font-size: 0.95rem;
    color: var(--hi-ink-soft);
    line-height: 1.5;
}

/* =============================== */
/* Frase destacada centrada        */
/* =============================== */

.hi-pullquote--centered {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    font-size: 2rem;
    line-height: 1.6;
    color: var(--hi-ink-soft);
    font-style: italic;
    border: none;
    padding: 0;
}

.hi-pullquote--centered p {
    margin: 0 0 0.5rem 0;
}

.hi-pullquote-cite {
    display: block;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--hi-ink-muted);
    letter-spacing: 0.02em;
    text-align: right;
}

/* =============================== */
/* Bio + Timeline grid (70/30)     */
/* =============================== */

.hi-bio-timeline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

@media (min-width: 769px) {
    .hi-bio-timeline-grid {
        grid-template-columns: 7fr 3fr;
        gap: 4rem;
        height: 90vh;
        max-height: 900px;
        min-height: 500px;
    }
}

/* =============================== */
/* Columnas — flex column          */
/* =============================== */

.hi-bio-timeline-bio,
.hi-bio-timeline-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

/* =============================== */
/* Header fijo de cada columna     */
/* =============================== */

.hi-bio-timeline-header {
    flex-shrink: 0;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--hi-rule);
}

/* =============================== */
/* Cuerpo scrolleable — bio        */
/* =============================== */

.hi-bio-body-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* =============================== */
/* Cuerpo scrolleable — timeline   */
/* =============================== */

.hi-timeline-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* =============================== */
/* Timeline items en sidebar       */
/* =============================== */

.hi-bio-timeline-side .hi-timeline {
    position: relative;
}

/* Línea vertical en sidebar */
.hi-bio-timeline-side .hi-timeline::before {
    left: calc(50px + 0.375rem);
    top: 0.25rem;
    bottom: 0.25rem;
}

.hi-bio-timeline-side .hi-timeline-item {
    grid-template-columns: 50px 1fr;
    gap: 0.75rem;
    padding: 0.55rem 0;
}

.hi-bio-timeline-side .hi-timeline-item::before {
    left: calc(50px + 0.375rem - 5px);
    top: 0.8rem;
}

.hi-bio-timeline-side .hi-timeline-year {
    font-size: 0.75rem;
    padding-top: 1px;
}

.hi-bio-timeline-side .hi-timeline-event {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* =============================== */
/* Mobile — quitar altura fija     */
/* =============================== */

@media (max-width: 768px) {
    .hi-bio-timeline-grid {
        height: auto;
        max-height: none;
        min-height: 0;
    }
    .hi-bio-timeline-side .hi-timeline-item {
        grid-template-columns: 60px 1fr;
        gap: 0.75rem;
    }
    .hi-bio-timeline-side .hi-timeline::before {
        left: calc(60px + 0.375rem);
    }
    .hi-bio-timeline-side .hi-timeline-item::before {
        left: calc(60px + 0.375rem - 5px);
    }
}

/* =============================== */
/* Scroll hint — sticky indicator  */
/* =============================== */

.hi-scroll-hint {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    height: 3.5rem;
    margin: 0;
    background: linear-gradient(to top, var(--hi-paper) 35%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Sidebar — mismo concepto, altura reducida */
.hi-scroll-hint--side {
    height: 3rem;
    background: linear-gradient(to top, var(--hi-paper) 40%, transparent 100%);
}

/* =============================== */
/* Bio body scroll — contenedor    */
/* =============================== */

/* Asegurar que el contenedor de scroll de la bio acepte sticky children */
.hi-bio-body-scroll {
    position: relative;
}

/* Cada chevron individual — absolutamente posicionado dentro del hint,
   centrado por el flex container padre. */
.hi-chevron {
    position: absolute;
    top: 0.65rem;
    right: 0.5rem;
    width: 1.1rem;
    height: 0.3rem;
    opacity: 0;
    transform: scale(0.3);
    animation: hi-chevron-move 3s ease-out infinite;
}

/* Stagger: cascade de 3 chevrones con 1s de delay cada uno */
.hi-chevron:nth-child(1) {
    animation-delay: 0s;
}
.hi-chevron:nth-child(2) {
    animation-delay: 1s;
}
.hi-chevron:nth-child(3) {
    animation-delay: 2s;
}

/* Chevron shape: dos mitades con skew opuesto forman una V */
.hi-chevron::before,
.hi-chevron::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background: var(--hi-accent);
}

.hi-chevron::before {
    left: 0;
    transform: skewY(30deg);
}

.hi-chevron::after {
    right: 0;
    transform: skewY(-30deg);
}

/* Keyframes: fade in → bajar → fade out + shrink */
@keyframes hi-chevron-move {
    25% {
        opacity: 1;
    }
    33.3% {
        opacity: 1;
        transform: translateY(0.45rem) scale(1);
    }
    66.6% {
        opacity: 1;
        transform: translateY(0.85rem) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(1.4rem) scale(0.4);
    }
}

/* Sidebar: chevrones más chicos */
.hi-scroll-hint--side .hi-chevron {
    top: 0.4rem;
    right: 0.35rem;
    width: 0.85rem;
    height: 0.25rem;
}

@keyframes hi-chevron-move-side {
    25% {
        opacity: 1;
    }
    33.3% {
        opacity: 1;
        transform: translateY(0.35rem) scale(1);
    }
    66.6% {
        opacity: 1;
        transform: translateY(0.65rem) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(1.1rem) scale(0.4);
    }
}

.hi-scroll-hint--side .hi-chevron {
    animation-name: hi-chevron-move-side;
}

/* En mobile, ocultar — los chevrones restan espacio valioso */
@media (max-width: 768px) {
    .hi-scroll-hint {
        display: none;
    }
}

