* { box-sizing: border-box; }
body{
    margin: 0;
    font-family: sans-serif;
    background-image: url("images/fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* --- encabezado --- */
.hero{
    padding: 3rem 1rem;
    text-align: center;
}
/* --- contenedor de la línea de tiempo --- */
.timeline{
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem; 
}
/* --- cada dibujo/entrada --- */
.entry{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid #ccc;
}
.entry .year-tag{
    font-weight: bold;
}
.art-slot{
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.art-slot img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.entry h3{
    margin: 0;
}
.entry p{
    margin: 0;
}

/* --- lightbox (para hacer zoom en las imágenes) --- */
.lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.open{ display: flex; }
.lightbox img{ max-width: 90vw; max-height: 90vh; }
.lightbox .close{
    position: absolute;
    top: 1rem;
    right: 1rem;
}