/* Casa de la Makana · Sala digital Memoria */

/* === Primitivos === */
.memory-page {
    --mem-black-950: #050403;
    --mem-black-900: #0b0907;
    --mem-brown-850: #15100c;
    --mem-brown-700: #3a2b20;
    --mem-copper-400: #b9916b;
    --mem-paper-100: #f2eadc;
    --mem-paper-300: #d6c6ae;
    --mem-paper-500: #a89882;
    --mem-white-05: rgba(255, 255, 255, 0.05);
    --mem-white-10: rgba(255, 255, 255, 0.1);
    --mem-white-18: rgba(255, 255, 255, 0.18);
    --mem-copper-09: rgba(185, 145, 107, 0.09);
    --mem-copper-16: rgba(185, 145, 107, 0.16);
    --mem-paper-08: rgba(214, 198, 174, 0.08);
    --mem-black-40: rgba(0, 0, 0, 0.4);
    --mem-black-78: rgba(0, 0, 0, 0.78);
    --mem-space-1: 0.25rem;
    --mem-space-2: 0.5rem;
    --mem-space-3: 0.75rem;
    --mem-space-4: 1rem;
    --mem-space-6: 1.5rem;
    --mem-space-8: 2rem;
    --mem-space-12: 3rem;
    --mem-space-16: 4rem;
    --mem-space-24: 6rem;
    --mem-space-32: 8rem;
    --mem-radius-sm: 0.35rem;
    --mem-radius-pill: 999px;
    --mem-duration-fast: 180ms;
    --mem-duration-normal: 320ms;
    --mem-duration-slow: 850ms;

    /* === Semánticos === */
    --memory-bg: var(--mem-black-950);
    --memory-surface: var(--mem-black-900);
    --memory-surface-warm: var(--mem-brown-850);
    --memory-text: var(--mem-paper-100);
    --memory-text-muted: var(--mem-paper-500);
    --memory-accent: var(--mem-copper-400);
    --memory-line: var(--mem-white-10);
    --memory-focus: var(--mem-paper-300);
    --memory-light-primary: var(--mem-copper-16);
    --memory-light-secondary: var(--mem-copper-09);
    --memory-light-neutral: var(--mem-paper-08);
    --memory-section-space: clamp(4rem, 8vw, 8rem);
    --memory-shell-width: 1380px;

    /* === Componentes === */
    --memory-card-bg: var(--memory-surface);
    --memory-card-border: var(--memory-line);
    --memory-filter-bg: transparent;
    --memory-filter-bg-active: var(--memory-text);
    --memory-filter-text-active: var(--memory-bg);
    --memory-page-atmosphere:
        radial-gradient(ellipse 42vw 50rem at -10% 12%, var(--memory-light-primary), transparent 68%),
        radial-gradient(ellipse 38vw 46rem at 110% 51%, var(--memory-light-neutral), transparent 69%),
        radial-gradient(ellipse 40vw 48rem at -8% 84%, var(--memory-light-secondary), transparent 68%);

    background-color: var(--memory-bg);
    background-image: var(--memory-page-atmosphere);
    background-repeat: no-repeat;
    color: var(--memory-text);
}

.memory-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1500;
    pointer-events: none;
    opacity: 0.055;
    background-image:
        repeating-radial-gradient(circle at 20% 30%, transparent 0 1px, var(--memory-text) 1px 2px),
        repeating-radial-gradient(circle at 80% 70%, transparent 0 2px, var(--memory-text) 2px 3px);
    background-size: 9px 11px, 13px 15px;
    mix-blend-mode: soft-light;
}

.memory-page main {
    overflow: clip;
}

.memory-shell {
    width: min(calc(100% - clamp(2rem, 7vw, 8rem)), var(--memory-shell-width));
    margin-inline: auto;
}

.memory-skip-link {
    position: fixed;
    top: var(--mem-space-4);
    left: var(--mem-space-4);
    z-index: 2200;
    padding: var(--mem-space-3) var(--mem-space-4);
    background: var(--memory-text);
    color: var(--memory-bg);
    transform: translateY(-180%);
    transition: transform var(--mem-duration-fast) ease-out;
}

.memory-skip-link:focus {
    transform: translateY(0);
}

.memory-page .burger-menu {
    border: 0;
    color: inherit;
    font: inherit;
}

.memory-page .zootipo-signature {
    position: fixed;
    top: 1.15rem;
    left: 1.15rem;
    z-index: 1002;
    width: 52px;
    height: 52px;
    pointer-events: none;
    opacity: 0.9;
}

.memory-page .zootipo-signature__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.memory-page .nav-container {
    padding-left: clamp(4rem, 5.5vw, 5.25rem);
}

.memory-kicker {
    color: var(--memory-accent);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    line-height: 1.4;
    text-transform: uppercase;
}

.memory-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity var(--mem-duration-slow) cubic-bezier(0.16, 1, 0.3, 1),
        transform var(--mem-duration-slow) cubic-bezier(0.16, 1, 0.3, 1);
}

.memory-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Portada */
.memory-hero {
    position: relative;
    min-height: min(76svh, 760px);
    display: grid;
    align-items: center;
    padding: clamp(7.5rem, 11vh, 9rem) 0 clamp(3.5rem, 6vh, 5rem);
    isolation: isolate;
}

.memory-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    z-index: -1;
    background: linear-gradient(180deg, transparent, var(--memory-bg));
}

.memory-hero__halo {
    position: absolute;
    width: min(65vw, 950px);
    aspect-ratio: 1;
    right: -20%;
    top: -35%;
    z-index: -2;
    border-radius: 50%;
    opacity: 0.26;
    filter: blur(80px);
    background: radial-gradient(circle, var(--mem-brown-700), transparent 67%);
}

.memory-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
    gap: clamp(3rem, 8vw, 10rem);
    align-items: center;
}

.memory-hero__copy {
    position: relative;
    z-index: 2;
}

.memory-hero__title {
    max-width: 8.7ch;
    margin: var(--mem-space-4) 0 var(--mem-space-6);
    font-family: var(--font-display);
    font-size: clamp(3rem, 6.9vw, 7.6rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.83;
    text-wrap: balance;
}

.memory-hero__title span {
    display: block;
    margin-top: 0.2em;
    color: var(--memory-text-muted);
    font-family: var(--font-primary);
    font-size: 0.32em;
    font-weight: 300;
    letter-spacing: 0.015em;
    line-height: 1.12;
}

.memory-hero__lead {
    max-width: 37ch;
    color: var(--mem-paper-300);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.65;
}

.memory-hero__link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: var(--mem-space-4);
    margin-top: var(--mem-space-8);
    padding-bottom: var(--mem-space-2);
    border-bottom: 1px solid var(--memory-line);
    color: var(--memory-text);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.memory-hero__link svg {
    transition: transform var(--mem-duration-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.memory-hero__link:hover svg,
.memory-hero__link:focus-visible svg {
    transform: translateY(4px);
}

.memory-hero__link:focus-visible,
.memory-epilogue a:focus-visible {
    outline: 2px solid var(--memory-focus);
    outline-offset: 5px;
}

.memory-hero__art {
    position: relative;
    margin: 0;
}

.memory-hero__art::before {
    content: '';
    position: absolute;
    inset: 10% -7% -9% 12%;
    z-index: -1;
    border: 1px solid var(--memory-line);
    background: var(--memory-surface-warm);
}

.memory-hero__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.3;
    background: var(--memory-surface-warm);
    box-shadow: 0 34px 90px var(--mem-black-78);
}

.memory-hero__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 60%, var(--mem-black-40)),
        linear-gradient(90deg, var(--mem-black-40), transparent 28%);
    pointer-events: none;
}

.memory-hero__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.12) contrast(1.07);
    transform: scale(1.015);
}

.memory-hero__art figcaption {
    display: flex;
    justify-content: space-between;
    gap: var(--mem-space-4);
    padding-top: var(--mem-space-4);
    color: var(--memory-text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.memory-hero__index {
    position: absolute;
    right: clamp(1rem, 3vw, 3rem);
    bottom: var(--mem-space-6);
    color: var(--memory-text-muted);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
}

/* Texto curatorial */
.memory-prologue {
    padding: clamp(2.75rem, 5vw, 4.75rem) 0;
    background:
        linear-gradient(104deg, var(--memory-light-secondary), transparent 18%),
        linear-gradient(256deg, var(--memory-light-secondary), transparent 18%),
        radial-gradient(ellipse 48% 135% at -7% 48%, var(--memory-light-primary), transparent 67%),
        radial-gradient(ellipse 48% 135% at 107% 52%, var(--memory-light-primary), transparent 67%),
        linear-gradient(115deg, var(--mem-white-05), transparent 33%),
        var(--memory-bg);
}

.memory-prologue__grid {
    display: grid;
    grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
    gap: clamp(2.25rem, 6vw, 7rem);
    align-items: start;
}

.memory-prologue__heading {
    position: sticky;
    top: 9rem;
}

.memory-prologue__heading h2,
.memory-archive__header h2 {
    margin-top: var(--mem-space-6);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 1;
}

.memory-prologue__heading h2 {
    font-size: clamp(2rem, 3.35vw, 3.75rem);
}

.memory-prologue__copy {
    max-width: 850px;
}

.memory-prologue__opening {
    color: var(--memory-text);
    font-family: var(--font-display);
    font-size: clamp(1.22rem, 1.8vw, 1.7rem);
    line-height: 1.42;
}

.memory-prologue__quote {
    max-width: 64ch;
    margin: var(--mem-space-6) 0 0;
    padding-left: var(--mem-space-4);
    border-left: 1px solid var(--memory-accent);
}

.memory-prologue__quote p {
    color: var(--mem-paper-300);
    font-family: var(--font-display);
    font-size: clamp(0.98rem, 1.35vw, 1.22rem);
    font-weight: 400;
    line-height: 1.55;
}

/* Franja de archivo en movimiento */
.memory-filmstrip {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-block: var(--mem-space-4);
    border-block: 1px solid var(--memory-line);
    background: var(--memory-surface);
    contain: layout paint;
    touch-action: pan-y;
}

.memory-filmstrip::before,
.memory-filmstrip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(2rem, 8vw, 8rem);
    pointer-events: none;
}

.memory-filmstrip::before {
    left: 0;
    background: linear-gradient(90deg, var(--memory-bg), transparent);
}

.memory-filmstrip::after {
    right: 0;
    background: linear-gradient(270deg, var(--memory-bg), transparent);
}

.memory-filmstrip__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: memory-filmstrip-scroll 54s linear infinite;
    pointer-events: none;
}

.memory-filmstrip__set {
    display: flex;
    flex: 0 0 auto;
    gap: var(--mem-space-4);
    padding-right: var(--mem-space-4);
}

.memory-filmstrip figure {
    position: relative;
    width: clamp(230px, 27vw, 410px);
    height: clamp(160px, 18vw, 250px);
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--memory-surface-warm);
}

.memory-filmstrip figure:nth-child(3n + 2),
.memory-filmstrip figure:nth-child(3n + 5) {
    width: clamp(150px, 18vw, 270px);
}

.memory-filmstrip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) sepia(0.12) contrast(1.06);
}

.memory-filmstrip figcaption {
    position: absolute;
    right: var(--mem-space-3);
    bottom: var(--mem-space-3);
    padding: 0.35rem 0.55rem;
    background: var(--mem-black-78);
    color: var(--mem-paper-300);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@keyframes memory-filmstrip-scroll {
    to { transform: translate3d(-50%, 0, 0); }
}

.memory-prologue__quote cite {
    display: block;
    margin-top: var(--mem-space-3);
    color: var(--memory-text-muted);
    font-size: 0.65rem;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Archivo */
.memory-archive {
    padding: clamp(2.5rem, 5vw, 4rem) 0 var(--memory-section-space);
    background:
        linear-gradient(104deg, var(--memory-light-secondary), transparent 16%),
        linear-gradient(256deg, var(--memory-light-secondary), transparent 16%),
        radial-gradient(ellipse 46% 32% at -8% 20%, var(--memory-light-primary), transparent 68%),
        radial-gradient(ellipse 46% 32% at 108% 66%, var(--memory-light-primary), transparent 68%);
}

.memory-archive__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    gap: clamp(2rem, 8vw, 9rem);
    align-items: end;
}

.memory-archive__header > p {
    max-width: 50ch;
    color: var(--memory-text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.memory-filters {
    display: flex;
    gap: var(--mem-space-2);
    margin: clamp(2rem, 4vw, 3.5rem) 0 var(--mem-space-4);
    padding-bottom: var(--mem-space-2);
    overflow-x: auto;
    scrollbar-width: none;
}

.memory-filters::-webkit-scrollbar {
    display: none;
}

.memory-filter {
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0 var(--mem-space-6);
    border: 1px solid var(--memory-line);
    border-radius: var(--mem-radius-pill);
    background: var(--memory-filter-bg);
    color: var(--memory-text-muted);
    cursor: pointer;
    font: 400 0.68rem/1 var(--font-primary);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition:
        color var(--mem-duration-fast) ease,
        background-color var(--mem-duration-fast) ease,
        border-color var(--mem-duration-fast) ease;
}

.memory-filter:hover {
    border-color: var(--mem-white-18);
    color: var(--memory-text);
}

.memory-filter.is-active {
    border-color: var(--memory-text);
    background: var(--memory-filter-bg-active);
    color: var(--memory-filter-text-active);
}

.memory-filter:focus-visible,
.memory-more:focus-visible,
.memory-card:focus-visible,
.memory-lightbox button:focus-visible {
    outline: 2px solid var(--memory-focus);
    outline-offset: 3px;
}

.memory-archive__status {
    margin-bottom: var(--mem-space-6);
    color: var(--memory-text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.memory-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: clamp(190px, 17vw, 290px);
    gap: clamp(0.65rem, 1.2vw, 1.15rem);
}

.memory-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--memory-card-border);
    border-radius: var(--mem-radius-sm);
    background: var(--memory-card-bg);
    color: var(--memory-text);
    cursor: zoom-in;
    text-align: left;
    isolation: isolate;
}

.memory-card[hidden] {
    display: none !important;
}

.memory-card--wide {
    grid-column: span 2;
}

.memory-card--tall {
    grid-row: span 2;
}

.memory-card--feature {
    grid-column: span 2;
    grid-row: span 2;
}

.memory-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.84));
    pointer-events: none;
}

.memory-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.1) sepia(0.08) contrast(1.05);
    transition:
        transform var(--mem-duration-slow) cubic-bezier(0.16, 1, 0.3, 1),
        filter var(--mem-duration-normal) ease;
}

.memory-card:hover img,
.memory-card:focus-visible img {
    filter: grayscale(0) sepia(0.04) contrast(1.06);
    transform: scale(1.035);
}

.memory-card__label {
    position: absolute;
    inset: auto var(--mem-space-4) var(--mem-space-4);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: var(--mem-space-4);
    align-items: end;
    color: var(--memory-text);
    pointer-events: none;
}

.memory-card__label b {
    color: var(--memory-accent);
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.16em;
}

.memory-card__label span {
    max-width: 18ch;
    font-size: 0.63rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-align: right;
    text-transform: uppercase;
}

.memory-archive__more {
    display: grid;
    place-items: center;
    margin-top: clamp(3rem, 7vw, 6rem);
}

.memory-more {
    min-width: min(100%, 320px);
    min-height: 64px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--mem-space-8);
    padding: 0 var(--mem-space-6);
    border: 1px solid var(--memory-line);
    border-radius: var(--mem-radius-pill);
    background: transparent;
    color: var(--memory-text);
    cursor: pointer;
    font: 400 0.72rem/1 var(--font-primary);
    letter-spacing: 0.08em;
    transition:
        background-color var(--mem-duration-fast) ease,
        color var(--mem-duration-fast) ease;
}

.memory-more small {
    color: var(--memory-text-muted);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.memory-more:hover {
    background: var(--memory-text);
    color: var(--memory-bg);
}

.memory-more:hover small {
    color: currentColor;
}

/* Cierre */
.memory-epilogue {
    padding: clamp(7rem, 14vw, 14rem) 0;
    border-top: 1px solid var(--memory-line);
    background:
        linear-gradient(76deg, var(--memory-light-secondary), transparent 17%),
        radial-gradient(ellipse 48% 100% at -7% 50%, var(--memory-light-primary), transparent 68%),
        radial-gradient(ellipse 42% 90% at 106% 35%, var(--memory-light-neutral), transparent 70%),
        radial-gradient(circle at 50% 120%, var(--mem-brown-700), transparent 45%),
        var(--memory-bg);
}

.memory-epilogue__content {
    max-width: 1100px;
    text-align: center;
}

.memory-epilogue h2 {
    margin: var(--mem-space-8) auto var(--mem-space-12);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.8vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1.25;
    text-wrap: balance;
}

.memory-epilogue a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: var(--mem-space-3);
    color: var(--mem-paper-300);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.memory-epilogue a span {
    transition: transform var(--mem-duration-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.memory-epilogue a:hover span {
    transform: translateX(5px);
}

/* Visor */
.memory-lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--memory-bg);
    color: var(--memory-text);
}

.memory-lightbox::backdrop {
    background: var(--mem-black-78);
    backdrop-filter: blur(10px);
}

.memory-lightbox[open] {
    animation: memory-dialog-in var(--mem-duration-normal) ease-out both;
}

.memory-lightbox__shell {
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.memory-lightbox__header,
.memory-lightbox__caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--mem-space-6);
}

.memory-lightbox__header p {
    color: var(--memory-text-muted);
    font-size: 0.66rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.memory-lightbox button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--memory-line);
    border-radius: 50%;
    background: var(--mem-black-40);
    color: var(--memory-text);
    cursor: pointer;
    transition:
        background-color var(--mem-duration-fast) ease,
        color var(--mem-duration-fast) ease,
        transform var(--mem-duration-fast) ease;
}

.memory-lightbox button:hover {
    background: var(--memory-text);
    color: var(--memory-bg);
}

.memory-lightbox button:active {
    transform: scale(0.96);
}

.memory-lightbox__stage {
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(0.75rem, 3vw, 3rem);
    align-items: center;
}

.memory-lightbox__stage figure {
    min-width: 0;
    height: 100%;
    display: grid;
    place-items: center;
    margin: 0;
    overflow: hidden;
}

.memory-lightbox__stage img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 13rem);
    object-fit: contain;
    filter: sepia(0.05) contrast(1.03);
    box-shadow: 0 28px 90px var(--mem-black-78);
}

.memory-lightbox__caption {
    align-items: end;
    padding-top: var(--mem-space-6);
}

.memory-lightbox__caption h2 {
    max-width: 58ch;
    color: var(--memory-text);
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.5;
}

.memory-lightbox__caption p {
    max-width: 46ch;
    color: var(--memory-text-muted);
    font-size: 0.7rem;
    line-height: 1.55;
    text-align: right;
}

body.memory-modal-open {
    overflow: hidden;
}

@keyframes memory-dialog-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tableta */
@media (max-width: 1050px) {
    .memory-hero__layout {
        grid-template-columns: minmax(0, 0.85fr) minmax(330px, 1.15fr);
        gap: clamp(2.5rem, 5vw, 4rem);
    }

    .memory-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: clamp(190px, 24vw, 280px);
    }

    .memory-card--feature {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .memory-hero {
        min-height: auto;
    }

    .memory-hero__layout,
    .memory-prologue__grid,
    .memory-archive__header {
        grid-template-columns: 1fr;
    }

    .memory-hero__layout {
        gap: var(--mem-space-12);
    }

    .memory-hero__title {
        max-width: 9.5ch;
        font-size: clamp(3rem, 13vw, 6rem);
    }

    .memory-hero__art {
        width: min(92%, 690px);
        margin-left: auto;
    }

    .memory-prologue__heading {
        position: static;
    }

    .memory-archive__header {
        gap: var(--mem-space-8);
    }

    .memory-archive__header > p {
        max-width: 62ch;
    }

    .memory-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(150px, 43vw, 260px);
    }

    .memory-card--wide,
    .memory-card--feature {
        grid-column: span 2;
    }
}

/* Móvil */
@media (max-width: 620px) {
    .memory-shell {
        width: min(calc(100% - 2rem), var(--memory-shell-width));
    }

    .memory-page .zootipo-signature {
        top: 1.35rem;
        left: 1.1rem;
        width: 46px;
        height: 46px;
    }

    .memory-page .nav-container {
        padding-left: 0;
    }

    .memory-page .burger-menu {
        margin-left: auto;
    }

    .memory-hero {
        padding: 6.75rem 0 3rem;
    }

    .memory-hero .memory-shell {
        width: min(calc(100% - 3rem), var(--memory-shell-width));
    }

    .memory-hero__layout {
        gap: 2.25rem;
    }

    .memory-hero__copy {
        display: grid;
        justify-items: center;
        text-align: center;
    }

    .memory-hero__copy .memory-kicker {
        max-width: 32ch;
    }

    .memory-hero__title {
        max-width: none;
        margin: var(--mem-space-4) auto var(--mem-space-6);
        font-size: clamp(2.85rem, 13vw, 4.1rem);
        line-height: 0.88;
    }

    .memory-hero__lead {
        max-width: 29ch;
        margin-inline: auto;
        font-size: 1rem;
        line-height: 1.6;
    }

    .memory-hero__link {
        margin-top: var(--mem-space-6);
    }

    .memory-hero__art {
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
    }

    .memory-hero__art::before {
        inset: 7% -3% -6% 3%;
    }

    .memory-hero__frame img {
        object-position: center center;
    }

    .memory-hero__art figcaption {
        padding-inline: var(--mem-space-1);
        font-size: 0.56rem;
    }

    .memory-prologue__opening {
        font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    }

    .memory-prologue__quote {
        padding-left: var(--mem-space-4);
    }

    .memory-filmstrip {
        padding-block: var(--mem-space-2);
    }

    .memory-filmstrip__track {
        animation-duration: 38s;
    }

    .memory-filmstrip__set {
        gap: var(--mem-space-2);
        padding-right: var(--mem-space-2);
    }

    .memory-filmstrip figure {
        width: clamp(190px, 62vw, 245px);
        height: clamp(132px, 41vw, 168px);
    }

    .memory-filmstrip figure:nth-child(3n + 2),
    .memory-filmstrip figure:nth-child(3n + 5) {
        width: clamp(125px, 42vw, 165px);
    }

    .memory-filters {
        width: calc(100% + 1rem);
        padding-right: var(--mem-space-4);
    }

    .memory-filter {
        padding-inline: var(--mem-space-4);
        font-size: 0.62rem;
    }

    .memory-gallery {
        gap: var(--mem-space-2);
        grid-auto-rows: clamp(145px, 46vw, 205px);
    }

    .memory-card__label {
        inset: auto var(--mem-space-3) var(--mem-space-3);
    }

    .memory-card__label span {
        max-width: 13ch;
        font-size: 0.54rem;
    }

    .memory-lightbox__shell {
        padding: var(--mem-space-3);
    }

    .memory-lightbox__stage {
        position: relative;
        grid-template-columns: 1fr;
        padding-bottom: 3.75rem;
    }

    .memory-lightbox__stage img {
        max-height: calc(100dvh - 15rem);
    }

    .memory-lightbox__nav {
        position: absolute;
        bottom: 0;
        z-index: 2;
    }

    .memory-lightbox__prev {
        left: calc(50% - 3.5rem);
    }

    .memory-lightbox__next {
        right: calc(50% - 3.5rem);
    }

    .memory-lightbox__caption {
        display: block;
        padding: var(--mem-space-3) var(--mem-space-1) 0;
    }

    .memory-lightbox__caption h2,
    .memory-lightbox__caption p {
        max-width: none;
    }

    .memory-lightbox__caption p {
        margin-top: var(--mem-space-2);
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .memory-page *,
    .memory-page *::before,
    .memory-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .memory-reveal {
        opacity: 1;
        transform: none;
    }

    .memory-hero__frame img {
        transform: none !important;
    }

    .memory-filmstrip__track {
        animation: none !important;
        transform: none !important;
    }

    .memory-filmstrip__set:last-child {
        display: none;
    }
}
