/* ============================================================
   SECTIONS — estilos específicos de cada bloque del portfolio
   ============================================================ */

/* ============================================================
   HERO — neo-folklore (la portada)
   ============================================================ */
.hero-cover.neo-folklore {
    background: var(--cream);
    color: var(--noir);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
}

/* Composición central: halo girando + estatua */
.sacred-center {
    position: relative;
    z-index: 4;
    width: 45vh;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sacred-halo {
    position: absolute;
    width: 65vh;
    height: 65vh;
    animation: rotate-halo 20s linear infinite;
    z-index: 10;
    mix-blend-mode: difference;
    pointer-events: none;
}

.halo-text-path { width: 100%; height: 100%; overflow: visible; }

.halo-text-path text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: bold;
}

.sacred-statue {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.1);
    z-index: 2;
    opacity: 0;
    transform: scale(0.9);
    animation: sacred-rise 1.5s ease forwards;
    animation-delay: 0.5s;
    transition: filter 0.5s ease;
}

/* Al pasar por encima recuperamos el color */
.hero-cover:hover .sacred-statue { filter: grayscale(0%) contrast(1.2); }

/* Cabecera y pie tipo magazine */
.meta-header {
    position: absolute;
    top: 3rem;
    left: 0;
    width: calc(100% - 4rem);
    margin: 0 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    z-index: 10;
    border-bottom: 2px solid var(--noir);
    padding-bottom: 2rem;
    opacity: 0;
    animation: fade-in 1s ease forwards;
    animation-delay: 1.5s;
}

.meta-separator { color: var(--intense-red); }

.meta-footer {
    position: absolute;
    bottom: 3rem;
    width: calc(100% - 4rem);
    display: flex;
    justify-content: space-between;
    z-index: 10;
    border-top: 2px solid var(--noir);
    padding-top: 1rem;
    padding-right: var(--marquee-width);
    opacity: 0;
    animation: fade-in 1s ease forwards;
    animation-delay: 1.6s;
}

.footer-col h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--noir);
}

.footer-col p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--noir);
}

.footer-col.right { text-align: right; }

/* Indicadores de scroll */
.folklore-scroll {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--noir);
    animation: fade-in 1s ease forwards;
    animation-delay: 2.5s;
    opacity: 0;
}

.folklore-scroll-mobile {
    display: none;
    position: absolute;
    bottom: 7.5rem;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    opacity: 0;
    animation: fade-in 1s ease forwards;
    animation-delay: 2.5s;
    z-index: 20;
}

.folklore-scroll-mobile .scroll-arrow {
    width: 14px;
    height: 14px;
    border-right: 1.5px solid var(--noir);
    border-bottom: 1.5px solid var(--noir);
    transform: rotate(45deg);
    animation: bounce-arrow 1.4s ease infinite;
}

.folklore-scroll-mobile .scroll-arrow:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.6;
}

/* ============================================================
   MANIFIESTO
   ============================================================ */
.manifesto {
    background: var(--cream);
    color: var(--noir);
    padding: 8rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.manifesto-visual {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manifesto-visual.has-tape::after {
    top: 10%;
    left: 25%;
    width: 50%;
    transform: rotate(5deg);
}

.manifesto-visual.has-tape { display: flex; }

.manifesto-img {
    max-width: 80%;
    max-height: 80%;
    mix-blend-mode: multiply;
    transform: rotate(5deg);
    transition: all 1s ease;
}

.manifesto-content { position: relative; z-index: 10; }

.manifesto-header {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 2rem;
    padding-top: 2.5rem;
}

.manifesto-header em { color: var(--intense-red); font-style: italic; }

.manifesto-body {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
}

.manifesto-body p { margin-bottom: 1.5rem; }

.manifesto-tagline {
    font-family: var(--font-mono);
    color: var(--intense-red);
}

/* ============================================================
   FASHION — banner intermedio
   ============================================================ */
.fashion {
    background: var(--noir);
    height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fashion-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: sepia(0.5) hue-rotate(-50deg);
}

/* ============================================================
   EDITORIAL CHAOS — los spreads de revista
   ============================================================ */
.editorial-chaos {
    position: relative;
    background: var(--cream);
    overflow: hidden;
}

/* Cabecera "TECH STACK" gigante */
.chaos-header {
    min-height: 60vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.mega-title {
    font-family: var(--font-display);
    font-size: 25vw;
    line-height: 0.8;
    color: var(--noir);
    margin: 0;
}

.mega-title.outline {
    color: transparent;
    -webkit-text-stroke: 3px var(--intense-red);
}

/* Stickers flotantes de la cabecera */
.sticker-donatella { top: 10%; right: 15%; }
.sticker-vivienne  { bottom: 20%; left: 5%; }
.sticker-expert    { top: 5%;  left: 20%; transform: rotate(12deg); }
.sticker-since     { bottom: 10%; right: 10%; transform: rotate(-8deg); }

/* Spread genérico: contenedor con imágenes y texto absoluto */
.spread {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 4rem;
}

.spread-img {
    position: absolute;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
    box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.3);
    width: 100%;
}

.spread:hover .spread-img { filter: grayscale(0%); }

.spread-img.main-img       { z-index: 2; }
.spread-img.secondary-img  { opacity: 0.8; }

/* Bloque de texto sobre imagen */
.spread-text-block {
    position: absolute;
    z-index: 10;
    background: var(--cream);
    padding: 2rem;
    /* Borde fino para despegar la tarjeta del fondo crema */
    border: 1px solid rgba(13, 13, 13, 0.05);
    box-shadow: 10px 10px 0 var(--noir);
}

/* Títulos enormes de los spreads */
.wild-title {
    font-family: var(--font-display);
    font-size: 10rem;
    line-height: 0.8;
    color: var(--noir);
    margin-bottom: 1.5rem;
}

.wild-title--md { font-size: 4rem; }

.wild-desc {
    font-family: var(--font-body);
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--noir);
}

.article-body {
    font-family: var(--font-body);
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--noir);
    margin-bottom: 1rem;
    columns: 2;
    column-gap: 2rem;
    text-align: justify;
}

.article-body .lead {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* ----- Spread 1: Python + MongoDB -----
   Dos filas con simetría invertida para romper la composición:
     Fila 1 — Python: imagen izquierda, texto derecha.
     Fila 2 — MongoDB: texto izquierda, imagen derecha. */
.python-spread {
    background: var(--cream);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 4rem 3rem;
    align-items: center;
    min-height: auto;
    padding: 6rem 4rem;
}

.python-img-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    transform: rotate(-2deg);
}

.python-text {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    width: 100%;
    background: var(--cream);
    padding: 2rem;
    box-shadow: 10px 10px 0 var(--noir);
}

.mongo-text {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    width: 100%;
    background: var(--cream);
    padding: 2rem;
    box-shadow: 10px 10px 0 var(--noir);
}

.mongo-img-wrap {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    transform: rotate(2deg);
    z-index: 5;
}

/* En el spread con grid las imágenes ya no son absolute */
.python-spread .spread-img {
    position: relative;
    width: 100%;
    height: auto;
}

/* ----- Spread 2: SQL split (negro + verde ácido) ----- */
.split-scheme-section {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    /* Truco para extender el ancho hasta debajo del marquee lateral */
    width: calc(100% + var(--marquee-width));
    margin-right: calc(-1 * var(--marquee-width));
    padding-right: 0;
}

.split-left {
    width: 50%;
    background: var(--noir);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 5% 0 10%;
    position: relative;
    z-index: 2;
}

.giant-sql {
    font-family: var(--font-display);
    font-size: 25vw;
    color: var(--cream);
    line-height: 0.8;
    margin-left: -0.5rem;
    /* Espacio fijo para que las letras (especialmente la Q con descender)
       no se solapen con el párrafo de marketing que viene debajo. */
    margin-bottom: 3rem;
    letter-spacing: 0.12em;
}

.sql-marketing-text {
    color: var(--dim-gray);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 0 2rem 4rem;
    padding-left: 1rem;
    border-left: 2px solid var(--acid-green);
}

.sql-marketing-text strong { color: var(--cream); }

/* Tabla de stats al estilo CLI */
.sql-stats { margin-top: 3rem; width: 100%; }

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #888;
}

.stat-row .label { letter-spacing: 0.1em; }
.stat-row .value { color: var(--cream); font-weight: 700; }
.stat-row .value.accent {
    color: var(--acid-green);
    text-shadow: 0 0 10px rgba(196, 255, 14, 0.3);
}

/* Lado derecho: verde ácido con corte diagonal */
.split-right {
    width: calc(50% + var(--marquee-width));
    background: var(--acid-green);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
    margin-left: -5%;
    padding-left: 5%;
    margin-right: calc(-1 * var(--marquee-width));
    z-index: 1;
    min-height: 100vh;
}

.split-vol {
    position: absolute;
    top: 25%;
    right: 50%;
    transform: translateX(50%) rotate(-5deg);
    /* Siempre por encima del polaroid, incluso en hover */
    z-index: 40;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.tower-graphic {
    width: 100%;
    display: block;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.6s ease;
}

.polaroid-frame:hover .tower-graphic {
    filter: grayscale(0%) contrast(1.1);
}

.local-texture {
    opacity: 0.15;
    mix-blend-mode: multiply;
    filter: contrast(1.2);
}

/* ----- Spread 3: AI / Machine Learning -----
   Grid 12 columnas para colocar título, imagen y cards sin solapes
   inesperados. El título queda centrado sobre la estatua y los cards
   reposan a los lados sin pisarse. */
.ai-spread {
    background: var(--intense-red);
    position: relative;
    overflow: hidden;
    padding: 5rem 4rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2rem;
    align-items: center;
}

/* Sticker VOL.04 arriba a la derecha */
.ai-vol {
    grid-column: 9 / 13;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    position: relative;
    top: 0;
    right: 0;
    transform: rotate(5deg);
    z-index: 20;
}

/* Imagen AI (columna central) */
.ai-statue-wrap {
    grid-column: 4 / 10;
    grid-row: 2;
    position: relative;
    width: 100%;
    transform: rotate(-1deg);
    justify-self: center;
    align-self: center;
}

.ai-statue-wrap .spread-img {
    position: relative;
    width: 100%;
    height: auto;
}

/* Título encima del centro, sin desbordar */
.ai-giant-title {
    grid-column: 1 / 13;
    grid-row: 2;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 10;
    text-align: center;
    white-space: normal;
    line-height: 0.85;
    font-size: clamp(4rem, 11vw, 13rem);
    pointer-events: none;
    align-self: center;
    text-shadow: 8px 8px 0 var(--noir);
}

/* Imagen big-data a la izquierda, debajo */
.ai-bigdata-wrap {
    grid-column: 1 / 5;
    grid-row: 3;
    position: relative;
    width: 100%;
    transform: rotate(-5deg);
    z-index: 1;
}

.ai-bigdata-wrap .spread-img {
    position: relative;
    width: 100%;
    height: auto;
}

.ai-bigdata-img {
    opacity: 0.85;
    mix-blend-mode: multiply;
}

/* Card BIG DATA */
.ai-spread .big-data-info {
    grid-column: 5 / 9;
    grid-row: 3;
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: rotate(-1deg);
}

/* Sidebar de certificaciones */
.ai-spread .ai-sidebar {
    grid-column: 9 / 13;
    grid-row: 3;
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
}

/* "A.I." gigante decorativo: vive en el fondo del spread */
.ai-spread .mega-overlay-text {
    z-index: 0;
}

.mega-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 40vw;
    color: rgba(0, 0, 0, 0.2);
    z-index: 1;
    display: flex;
    gap: 0;
    mix-blend-mode: multiply;
}

.mega-overlay-text span { animation: pulse 2s ease-in-out infinite; }
.mega-overlay-text span:nth-child(2) { animation-delay: 0.2s; }
.mega-overlay-text span:nth-child(3) { animation-delay: 0.4s; }
.mega-overlay-text span:nth-child(4) { animation-delay: 0.6s; }

.ai-giant-title {
    font-family: var(--font-display);
    font-size: 13rem;
    line-height: 0.8;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-shadow: 10px 10px 0 var(--noir);
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}

.ai-vol {
    position: absolute;
    top: 15%;
    right: 5%;
    z-index: 20;
    transform: rotate(5deg);
}

.ai-sidebar {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 300px;
    text-align: left;
    color: var(--noir);
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    box-shadow: 10px 10px 0 var(--noir);
    border: 2px solid var(--noir);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.ai-sidebar:hover { transform: rotate(0deg) scale(1.02); }

.ai-sidebar-title {
    font-family: var(--font-mono);
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: var(--intense-red);
    border-bottom: 1px solid var(--noir);
    padding-bottom: 0.2rem;
}

.ai-cert { margin-bottom: 0.8rem; }

.ai-cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.ai-cert-name {
    font-family: var(--font-body);
    font-size: 1.3rem;
    line-height: 1.2;
}

.big-data-info {
    position: absolute;
    bottom: 22%;
    left: 8%;
    width: 320px;
    background: var(--cream);
    padding: 1.5rem;
    border: 2px solid var(--noir);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
    z-index: 25;
}

.big-data-title {
    font-family: var(--font-mono);
    font-weight: bold;
    border-bottom: 2px solid var(--noir);
    display: inline-block;
    color: var(--noir);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.big-data-desc {
    font-family: var(--font-body);
    line-height: 1.2;
    font-weight: 600;
    color: var(--noir);
    font-size: 1.3rem;
}

/* ----- Spread 4: API / TEST -----
   Grid 12 cols × 3 filas con fondo dividido en diagonal.
   La imagen Postman queda en el centro, los títulos API y TEST
   en esquinas opuestas, y las cajas (terminal y post-it) a los lados. */
.api-finale {
    background: linear-gradient(135deg, var(--noir) 50%, var(--acid-green) 50%);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2rem;
    padding: 5rem 4rem;
    align-items: center;
    min-height: auto;
}

.giant-split-title {
    font-family: var(--font-display);
    line-height: 0.8;
    position: relative;
    z-index: 5;
    font-size: clamp(5rem, 12vw, 14rem);
    margin: 0;
}

.giant-split-title.left {
    grid-column: 1 / 8;
    grid-row: 1;
    top: auto;
    right: auto;
    color: var(--cream);
    text-align: left;
    align-self: start;
}

.giant-split-title.right {
    grid-column: 6 / 13;
    grid-row: 3;
    left: auto;
    bottom: auto;
    color: var(--noir);
    text-align: right;
    align-self: end;
    justify-self: end;
}

/* Imagen Postman ocupa el centro */
.postman-img-wrap {
    grid-column: 4 / 10;
    grid-row: 2;
    position: relative;
    width: 100%;
    transform: rotate(-3deg);
    top: auto;
    left: auto;
    justify-self: center;
}

.postman-img-wrap .spread-img {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
}

.postman-img { filter: grayscale(1) contrast(1.2); }

/* Caja terminal a la izquierda del centro */
.api-finale .terminal-box {
    grid-column: 1 / 5;
    grid-row: 2;
    position: relative;
    top: auto;
    right: auto;
    max-width: 100%;
    align-self: center;
}

/* Post-it a la derecha del centro */
.api-finale .sticky-note-box {
    grid-column: 9 / 13;
    grid-row: 2;
    position: relative;
    top: auto;
    left: auto;
    max-width: 100%;
    align-self: center;
}

/* Sello esquina inferior izquierda en su sitio */
.api-finale .corner-stamp {
    grid-column: 1 / 4;
    grid-row: 3;
    position: relative;
    bottom: auto;
    right: auto;
    align-self: end;
    justify-self: start;
}

/* ============================================================
   EXPERIENCE — grid de cards
   ============================================================ */
.experience-chaos {
    background: var(--noir);
    min-height: 100vh;
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
}

.experience-chaos .folklore-texture {
    mix-blend-mode: overlay;
    opacity: 0.1;
}

.experience-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.experience-mega { color: var(--cream); }
.experience-mega.outline {
    color: transparent;
    -webkit-text-stroke: 3px var(--acid-green);
}

.exp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.exp-card {
    background: var(--cream);
    padding: 3rem;
    position: relative;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    box-shadow: 10px 10px 0 var(--acid-green);
}

.exp-card.dark {
    background: var(--charcoal);
    color: var(--cream);
    transform: rotate(1deg);
    box-shadow: 10px 10px 0 var(--intense-red);
}

.exp-card:hover {
    transform: scale(1.02) rotate(0deg);
    z-index: 20;
}

.exp-number {
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 0.8;
    color: var(--intense-red);
    position: absolute;
    top: -1rem;
    left: -1rem;
    opacity: 0.3;
}

.exp-card.dark .exp-number { color: var(--acid-green); }

.exp-content { position: relative; z-index: 5; }

.exp-content h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--noir);
}

.exp-content h3 .accent { color: var(--intense-red); }
.exp-card.dark .exp-content h3 { color: var(--cream); }
.exp-card.dark .exp-content h3 .accent { color: var(--acid-green); }

.exp-content p {
    font-family: var(--font-body);
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--noir);
}

.exp-card.dark .exp-content p { color: var(--cream); }

.exp-company {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--intense-red);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid currentColor;
    display: inline-block;
    padding-bottom: 0.2rem;
}

.exp-card.dark .exp-company { color: var(--acid-green); }

.exp-period {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.exp-tags span {
    background: var(--noir);
    color: var(--acid-green);
    padding: 0.3rem 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
}

.exp-card.dark .exp-tags span {
    background: var(--acid-green);
    color: var(--noir);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-section {
    background: var(--cream);
    padding: 6rem 4rem;
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-mega           { font-size: 15vw; }
.timeline-mega--noir.outline { -webkit-text-stroke-color: var(--noir); }

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 4rem;
}

/* Línea vertical de la timeline */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--intense-red);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

/* Diamante por cada hito */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -4rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--acid-green);
    border: 4px solid var(--noir);
    transform: rotate(45deg);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--intense-red);
    min-width: 120px;
    text-align: right;
}

.timeline-content {
    flex: 1;
    background: var(--noir);
    color: var(--cream);
    padding: 2rem;
    transform: rotate(-0.5deg);
    box-shadow: 8px 8px 0 var(--charcoal);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--acid-green);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.timeline-content strong { color: var(--intense-red); }

.timeline-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.timeline-tags span {
    background: var(--acid-green);
    color: var(--noir);
    padding: 0.2rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
}

/* ============================================================
   FINALE — cierre con foto, nombre gigante, links
   ============================================================ */
.grand-finale {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--noir);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem calc(var(--marquee-width) + 2rem) 8rem 2rem;
}

.finale-texture {
    mix-blend-mode: overlay;
    opacity: 0.1;
}

.finale-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: grayscale(100%);
    z-index: 0;
}

.finale-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.finale-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.finale-name {
    font-family: var(--font-display);
    font-size: 20vw;
    color: var(--acid-green);
    line-height: 0.9;
    margin: 0;
    text-shadow: 6px 6px 0 var(--intense-red);
}

.finale-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2rem;
    color: var(--cream);
    margin: 1rem 0 2rem;
    letter-spacing: 0.15em;
}

.finale-divider {
    width: 100px;
    height: 2px;
    background: var(--intense-red);
    margin: 0 auto 2rem;
}

.finale-quote {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--cream);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.finale-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.finale-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--acid-green);
    border: 1px solid var(--acid-green);
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
}

.finale-link:hover {
    background: var(--acid-green);
    color: var(--noir);
}

.finale-location {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 20;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--acid-green);
    border: 1px solid var(--acid-green);
    padding: 0.4rem 0.8rem;
}

.finale-year {
    position: absolute;
    top: 2rem;
    right: calc(var(--marquee-width) + 2rem);
    z-index: 20;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--intense-red);
}

/* Marquee del pie con tags rotando */
.finale-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--intense-red);
    padding: 0.5rem 0;
    z-index: 30;
    overflow: hidden;
    white-space: nowrap;
}

.finale-marquee .marquee-track {
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    white-space: nowrap;
    display: inline-block;
    animation: marquee 20s linear infinite;
}
