#gallery-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    z-index: 1200;
    background: none;
}

#gallery-section.is-content-scroll {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: flex-start;
    padding-top: 0;
    pointer-events: auto;
}

#gallery-section.is-content-scroll.is-architecture-scroll {
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: clip;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#gallery-section.is-active {
    opacity: 1;
    display: flex;
    pointer-events: auto;
}

#gallery-section.is-content-scroll .fan-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
    z-index: 3200;
    isolation: isolate;
}

#gallery-section.has-fan-selection .fan-container {
    z-index: 4200;
    isolation: isolate;
    /* El contenedor en sí no debe interceptar eventos: el carrusel de proyectos
       queda parcialmente debajo de él por z-index. Con pointer-events:none en el
       contenedor, los .fan-card hijos (que tienen pointer-events:auto) siguen
       siendo interactivos, pero el área vacía del contenedor ya no bloquea
       el cursor sobre el carrusel. */
    pointer-events: none;
}

#card-status {
    position: absolute;
    left: 0;
    top: 0;
    transform: none;
    font-family: 'bianzhidai-Base', sans-serif;
    font-size: 4.4rem;
    font-style: italic;
    letter-spacing: 0.5px;
    color: #000000;
    text-shadow: none;
    text-align: center;
    opacity: 0;
    translate: 0 10px;
    transition: opacity 0.12s ease, translate 0.12s ease;
    z-index: 60;
    pointer-events: none;
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
}

#card-status.is-architecture.is-architecture-projects {
    overflow: visible;
}

#card-status.is-visible {
    opacity: 1;
    translate: 0 0;
}

#card-status.is-carousel {
    text-align: left;
}

#card-status.is-architecture {
    white-space: normal;
    pointer-events: auto;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(931px, calc(100vw - 3rem));
    z-index: 2600;
    overflow: visible;
}

#card-status.is-docencia {
    white-space: normal;
    pointer-events: auto;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 3rem));
    z-index: 2600;
    overflow: visible;
}

#gallery-section.has-fan-selection #card-status {
    z-index: 2400;
}

#gallery-section.is-content-scroll #card-status.is-architecture.is-architecture-projects {
    max-width: none;
    width: calc(100vw - 0.6rem);
    position: relative;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    margin-top: clamp(8px, 2vh, 18px);
    margin-bottom: 4rem;
    padding-bottom: clamp(180px, 24vh, 300px);
    z-index: 2400;
}

#gallery-section.is-content-scroll #card-status.is-docencia.is-architecture-projects {
    max-width: none;
    width: calc(100vw - 0.6rem);
    position: relative;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    margin-top: clamp(8px, 2vh, 18px);
    margin-bottom: 4rem;
    padding-bottom: clamp(180px, 24vh, 300px);
    z-index: 2400;
}

.architecture-status-home {
    position: relative;
}

.architecture-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.6vw, 16px);
}

.architecture-status-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    border-radius: 26px;
    padding: clamp(8px, 1.3vw, 12px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    overflow: visible;
}

.architecture-status-lead {
    margin: 2px 0 0;
    font-family: 'Space Mono', monospace;
    font-size: clamp(11px, 1.1vw, 14px);
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.88);
    text-transform: lowercase;
}

.architecture-status-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.architecture-subview {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
    border-radius: 26px;
    padding: clamp(12px, 2vw, 18px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
}

.architecture-projects-timeline {
    --arch-side-control-offset: clamp(112px, 10vw, 168px);
    --arch-year-cards-offset: clamp(168px, 15vw, 248px);
    --arch-viewport-edge-gutter: 11px;
    /* Una sola medida gobierna el ancho visual de la columna derecha. Así las
       cuatro cartas de fecha nunca pueden ocupar más que las tres miniaturas. */
    --arch-project-side-column-width: clamp(70px, 10vw, 158.333333px);
    --arch-project-thumbnails-rail-width: clamp(84px, 12vw, 190px);
    --arch-filter-panel-width: calc(clamp(112px, 12vw, 174px) + 21px);
    --arch-inicio-button-width: 92px;
    --arch-inicio-calendar-gap: 12px;
    --arch-inicio-button-top: 22px;
    --arch-card-status-viewport-top: 4vh;
    --arch-side-rails-viewport-top: clamp(108px, 16vh, 170px);
    --arch-search-control-height: 40px;
    --arch-filter-search-top: calc(var(--arch-side-rails-viewport-top) - var(--arch-card-status-viewport-top) - var(--arch-search-control-height));
    --arch-filter-list-top: calc(var(--arch-filter-search-top) + var(--arch-search-control-height));
    --arch-carousel-viewport-y-offset: 4vh;
    /* The carousel needs more headroom than the side rails: its caption must finish
       before the closed fan begins at the bottom of the viewport. */
    --arch-carousel-content-y-offset: 9vh;
    --arch-carousel-width: min(931px, calc(100vw - 3rem));
    --arch-carousel-half-width: min(465.5px, calc(50vw - 1.5rem));
    --arch-carousel-arrow-spread: calc(var(--arch-carousel-half-width) + clamp(14px, 2vw, 28px));
    --arch-wide-arrow-prev-offset: clamp(0px, calc((100vw - 1280px) * 0.125), 90px);
    --arch-wide-arrow-next-offset: clamp(0px, calc((100vw - 1280px) * 0.288), 190px);
    --arch-carousel-arrow-y: 55%;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.6vh, 20px);
    align-items: stretch;
    padding-top: clamp(90px, 14vh, 170px);
}

.architecture-projects-timeline--docencia {
    /* Docencia uses a 980px carousel. Match the side controls to that same
       containing width so its filter keeps the exact gutter of its siblings. */
    --arch-carousel-width: min(980px, calc(100vw - 3rem));
    --arch-carousel-half-width: min(490px, calc(50vw - 1.5rem));
    padding-top: clamp(24px, 4vh, 52px);
}

/* Los controles laterales se trasladan al body durante la vista de proyectos.
   Repetimos aquí las variables para conservar la regla tras ese traslado. */
.architecture-projects-years,
.arch-project-thumbnails {
    --arch-project-side-column-width: clamp(70px, 10vw, 158.333333px);
    --arch-project-thumbnails-rail-width: clamp(84px, 12vw, 190px);
}

.architecture-projects-timeline:not(.architecture-projects-timeline--docencia) {
    min-height: 100vh;
    padding-top: 0;
}

.architecture-projects-timeline--docencia .architecture-projects-years {
    display: none;
}

.arch-search-label {
    position: fixed;
    top: var(--arch-filter-search-top);
    left: calc(var(--arch-viewport-edge-gutter) - (50vw - var(--arch-carousel-half-width)));
    z-index: 200;
    display: block;
    width: clamp(90px, 10vw, 160px);
}

.arch-search-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 105, 180, 0.75);
    color: #ff69b4;
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.9rem, 1.2vw, 1.15rem);
    font-weight: 700;
    padding: 7px 28px 7px 4px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    letter-spacing: 0.09em;
    transition: border-color 0.2s;
    display: block;
}

.arch-search-clear {
    position: absolute;
    top: 50%;
    right: 0;
    width: 24px;
    height: 28px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: rgba(255, 105, 180, 0.62);
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: color 0.15s, opacity 0.15s;
}

.arch-search-clear[hidden] {
    display: none;
}

.arch-search-label.has-value .arch-search-clear {
    opacity: 1;
    pointer-events: auto;
}

.arch-search-clear:hover,
.arch-search-clear:focus-visible {
    color: #ff69b4;
    outline: none;
}

.arch-search-input::placeholder {
    color: rgba(255, 105, 180, 0.35);
}

.arch-search-input:focus {
    border-bottom-color: rgba(255, 105, 180, 1);
}

.arch-search-input::-webkit-search-cancel-button {
    display: none;
}

.arch-year-filter {
    position: fixed;
    top: var(--arch-filter-list-top);
    bottom: calc(var(--arch-viewport-edge-gutter) + var(--arch-carousel-viewport-y-offset));
    left: calc(var(--arch-viewport-edge-gutter) - (50vw - var(--arch-carousel-half-width)));
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: none;
    box-sizing: border-box;
    padding: 0 6px 4px 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-padding-block-end: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 105, 180, 0.72) transparent;
}

/*
 * Las dos columnas laterales viven en el viewport, no en el lienzo escalado del
 * carrusel. Así todas las secciones comparten el mismo techo y el mismo margen
 * inferior aunque su escena use una escala o una altura lógica distinta.
 */
body > .arch-search-label.is-viewport-rail {
    --arch-viewport-edge-gutter: 11px;
    --arch-side-rails-viewport-top: clamp(108px, 16vh, 170px);
    --arch-search-control-height: 40px;
    --arch-filter-panel-width: calc(clamp(112px, 12vw, 174px) + 21px);
    top: calc(var(--arch-side-rails-viewport-top) - var(--arch-search-control-height));
    left: var(--arch-viewport-edge-gutter);
    width: var(--arch-filter-panel-width);
}

body > .arch-year-filter.is-viewport-rail {
    --arch-viewport-edge-gutter: 11px;
    --arch-side-rails-viewport-top: clamp(108px, 16vh, 170px);
    --arch-filter-panel-width: calc(clamp(112px, 12vw, 174px) + 21px);
    top: var(--arch-side-rails-viewport-top);
    bottom: var(--arch-viewport-edge-gutter);
    left: var(--arch-viewport-edge-gutter);
    width: var(--arch-filter-panel-width);
    height: auto;
    max-height: none;
}

.arch-year-filter::-webkit-scrollbar {
    width: 4px;
}

.arch-year-filter::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(255, 105, 180, 0.72);
}

.arch-year-btn {
    background: transparent;
    border: none;
    border-left: 2px solid rgba(255, 105, 180, 0.25);
    color: rgba(255, 105, 180, 0.4);
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.65rem, 0.85vw, 0.8rem);
    font-weight: 700;
    padding: 2px 7px;
    text-align: left;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
    gap: 0.45em;
}

.arch-year-btn:hover,
.arch-year-btn.is-active {
    color: #ff69b4;
    border-left-color: rgba(255, 105, 180, 0.85);
}

.arch-year-btn-count {
    color: rgba(255, 105, 180, 0.36);
    font-size: 0.9em;
    letter-spacing: 0.02em;
}

.arch-year-btn:hover .arch-year-btn-count,
.arch-year-btn.is-active .arch-year-btn-count {
    color: rgba(255, 105, 180, 0.72);
}

.arch-year-btn.is-empty .arch-year-btn-count {
    color: rgba(255, 105, 180, 0.22);
}

.arch-category-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0 0;
    padding: 7px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 105, 180, 0.22);
    color: rgba(255, 105, 180, 0.46);
    font-family: 'Space Mono', monospace;
}

.arch-search-clear .ph {
    font-size: 15px;
    line-height: 1;
}

.arch-type-filter {
    margin-top: 10px;
}

.arch-category-filter legend {
    padding: 0 0 4px;
    color: rgba(255, 105, 180, 0.52);
    font-size: clamp(0.65rem, 0.85vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.arch-category-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content 12px;
    align-items: start;
    column-gap: 0.45em;
    width: clamp(112px, 12vw, 174px);
    max-width: clamp(112px, 12vw, 174px);
    color: rgba(255, 105, 180, 0.42);
    font-size: clamp(0.65rem, 0.85vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25;
    cursor: pointer;
    transition: color 0.15s;
}

.arch-category-option input {
    grid-column: 3;
    grid-row: 1;
    width: 11px;
    height: 11px;
    margin: 2px 0 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 105, 180, 0.64);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.arch-category-option span {
    grid-row: 1;
    min-width: 0;
    justify-self: start;
    text-align: left;
}

.arch-category-option-text {
    grid-column: 1;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.arch-category-option-count {
    grid-column: 2;
    justify-self: start;
    white-space: nowrap;
    color: rgba(255, 105, 180, 0.36);
    font-size: 0.9em;
    letter-spacing: 0.02em;
}

.arch-category-option:hover,
.arch-category-option:has(input:checked) {
    color: #ff69b4;
}

.arch-category-option:hover .arch-category-option-count,
.arch-category-option:has(input:checked) .arch-category-option-count {
    color: rgba(255, 105, 180, 0.72);
}

.arch-category-option.is-empty .arch-category-option-count {
    color: rgba(255, 105, 180, 0.22);
}

.arch-category-option:hover input,
.arch-category-option input:focus-visible {
    border-color: #ff69b4;
    box-shadow: 0 0 0 1px rgba(255, 105, 180, 0.28);
    outline: none;
}

.arch-category-option input:checked {
    border-color: #ff69b4;
    box-shadow: none;
    background:
        linear-gradient(45deg, transparent 42%, #ff69b4 43%, #ff69b4 57%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, #ff69b4 43%, #ff69b4 57%, transparent 58%);
}

.arch-taxonomy-filter {
    display: flex;
    flex-direction: column;
    width: clamp(112px, 12vw, 174px);
    margin-top: 9px;
    border-top: 1px solid rgba(255, 105, 180, 0.22);
    font-family: 'Space Mono', monospace;
}

.arch-taxonomy-section {
    border-bottom: 1px solid rgba(255, 105, 180, 0.18);
}

.arch-taxonomy-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14px;
    align-items: center;
    gap: 5px;
    padding: 7px 0;
    color: rgba(255, 105, 180, 0.52);
    font-size: clamp(0.58rem, 0.73vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    list-style: none;
    transition: color 0.15s ease;
}

.arch-taxonomy-summary::-webkit-details-marker {
    display: none;
}

.arch-taxonomy-summary:hover,
.arch-taxonomy-summary:focus-visible,
.arch-taxonomy-section[open] > .arch-taxonomy-summary {
    color: #ff69b4;
    outline: none;
}

.arch-taxonomy-summary .ph {
    justify-self: end;
    font-size: 12px;
    transition: transform 0.18s ease;
}

.arch-taxonomy-section[open] > .arch-taxonomy-summary .ph {
    transform: rotate(180deg);
}

.arch-taxonomy-body {
    padding: 2px 0 12px;
}

.arch-taxonomy-body::-webkit-scrollbar {
    width: 4px;
}

.arch-taxonomy-body::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(255, 105, 180, 0.72);
}

.arch-taxonomy-group + .arch-taxonomy-group {
    margin-top: 9px;
}

.arch-taxonomy-group h4 {
    margin: 0 0 4px;
    color: rgba(255, 105, 180, 0.48);
    font-size: clamp(0.54rem, 0.66vw, 0.66rem);
    font-weight: 700;
    line-height: 1.25;
}

.arch-taxonomy-option {
    width: 100%;
    max-width: 100%;
    font-size: clamp(0.54rem, 0.68vw, 0.68rem);
}


/* Jerarquía visual del filtro: contraste estable sobre fondos rosa/blanco. */
.arch-search-label {
    box-sizing: border-box;
    width: var(--arch-filter-panel-width);
    height: var(--arch-search-control-height);
    padding: 4px 7px 0;
    border: 0;
    border-radius: 14px 14px 0 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.arch-search-input {
    border-bottom-color: rgba(211, 43, 142, 0.72);
    color: #8c245f;
    font-weight: 700;
}

.arch-search-input::placeholder {
    color: rgba(140, 36, 95, 0.58);
}

.arch-year-filter {
    width: var(--arch-filter-panel-width);
    /* La barra izquierda toca el contenido: no reservamos una segunda franja
       vacia entre el pulgar y el panel. */
    padding: 9px 2px 4px 0;
    border: 0;
    border-radius: 0 0 14px 14px;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    /* 30 % menos opaca que la barra anterior (0,82 × 0,70). */
    scrollbar-color: rgba(211, 43, 142, 0.574) transparent;
}

.arch-year-filter::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 92, 173, 0.7), rgba(189, 71, 220, 0.7));
}

.arch-year-btn {
    width: 100%;
    box-sizing: border-box;
    border-left-color: rgba(173, 51, 132, 0.3);
    border-radius: 0 7px 7px 0;
    color: rgba(106, 40, 91, 0.7);
    font-weight: 700;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.arch-year-btn:hover {
    color: #aa176d;
    border-left-color: #ef4aa2;
    background: rgba(255, 255, 255, 0.72);
    transform: translateX(2px);
}

.arch-year-btn.is-active {
    color: #fff;
    border-left-color: #9c2fc2;
    background: linear-gradient(90deg, #f4479d, #b83fd2);
    box-shadow: 0 4px 11px rgba(184, 63, 210, 0.2);
}

.arch-year-btn.is-active .arch-year-btn-count {
    color: rgba(255, 255, 255, 0.82);
}

.arch-category-filter {
    border-top-color: rgba(153, 51, 130, 0.24);
}

.arch-category-filter legend {
    color: #962568;
    font-weight: 700;
}

.arch-category-option {
    box-sizing: border-box;
    padding: 2px 4px;
    border-radius: 6px;
    color: rgba(91, 39, 84, 0.7);
    font-weight: 700;
    transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.arch-category-option:hover {
    color: #a91570;
    background: rgba(255, 255, 255, 0.76);
    transform: translateX(2px);
}

.arch-category-option:has(input:checked) {
    color: #fff;
    background: linear-gradient(90deg, #f4479d, #b83fd2);
    box-shadow: 0 3px 9px rgba(184, 63, 210, 0.17);
}

.arch-category-option:hover .arch-category-option-count {
    color: rgba(169, 21, 112, 0.72);
}

.arch-category-option:has(input:checked) .arch-category-option-count {
    color: rgba(255, 255, 255, 0.78);
}

.arch-category-option input {
    border-color: rgba(145, 38, 111, 0.62);
    border-radius: 2px;
}

.arch-category-option:has(input:checked) input {
    border-color: rgba(255, 255, 255, 0.92);
    background:
        linear-gradient(45deg, transparent 42%, #fff 43%, #fff 57%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, #fff 43%, #fff 57%, transparent 58%);
}

.arch-taxonomy-filter {
    gap: 0;
    width: auto;
    margin: 9px -2px 0 -9px;
    border-top-color: rgba(153, 51, 130, 0.24);
}

.arch-taxonomy-section {
    --taxonomy-accent: #d72d8f;
    --taxonomy-accent-2: #f55da9;
    --taxonomy-soft: rgba(215, 45, 143, 0.11);
    border: 0;
    border-bottom: 1px solid rgba(215, 45, 143, 0.16);
    border-radius: 0;
    overflow: hidden;
}

.arch-taxonomy-section:nth-child(2) {
    --taxonomy-accent: #8346cf;
    --taxonomy-accent-2: #b85ee4;
    --taxonomy-soft: rgba(131, 70, 207, 0.11);
    border-color: rgba(131, 70, 207, 0.13);
}

.arch-taxonomy-section:nth-child(3) {
    --taxonomy-accent: #087f91;
    --taxonomy-accent-2: #29b0b5;
    --taxonomy-soft: rgba(8, 127, 145, 0.1);
    border-color: rgba(8, 127, 145, 0.14);
}

.arch-taxonomy-summary {
    grid-template-columns: minmax(0, 1fr) 18px;
    box-sizing: border-box;
    width: 100%;
    padding: 7px 8px;
    color: var(--taxonomy-accent);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.34);
}

.arch-taxonomy-summary:hover,
.arch-taxonomy-summary:focus-visible {
    color: var(--taxonomy-accent);
    background: rgba(255, 255, 255, 0.82);
}

.arch-taxonomy-section[open] > .arch-taxonomy-summary {
    color: #fff;
    background: linear-gradient(90deg, var(--taxonomy-accent), var(--taxonomy-accent-2));
}

.arch-taxonomy-body {
    padding: 7px 8px 12px;
    background: var(--taxonomy-soft);
}

/* El contenido llega hasta la barra vertical sin crear una segunda columna
   vacia. El propio scrollbar sigue separado y plenamente utilizable. */
.arch-taxonomy-body .arch-category-option,
.arch-filter-section > .arch-category-filter .arch-category-option {
    width: 100%;
    max-width: none;
    padding-right: 8px;
}

.arch-taxonomy-group h4 {
    color: var(--taxonomy-accent);
    font-weight: 700;
}

.arch-taxonomy-option:hover {
    color: var(--taxonomy-accent);
}

.arch-taxonomy-option:has(input:checked) {
    color: #fff;
    background: linear-gradient(90deg, var(--taxonomy-accent), var(--taxonomy-accent-2));
    box-shadow: 0 3px 9px color-mix(in srgb, var(--taxonomy-accent) 24%, transparent);
}

.arch-taxonomy-option:hover .arch-category-option-count {
    color: color-mix(in srgb, var(--taxonomy-accent) 72%, transparent);
}

.arch-taxonomy-option:has(input:checked) .arch-category-option-count {
    color: rgba(255, 255, 255, 0.78);
}

.arch-taxonomy-option:hover input,
.arch-taxonomy-option input:focus-visible {
    border-color: var(--taxonomy-accent);
}

.arch-taxonomy-option:has(input:checked) input {
    border-color: rgba(255, 255, 255, 0.92);
}

/* El filtro completo comparte una única familia autohospedada. Los iconos
   Phosphor conservan su propia fuente para que no cambie su dibujo. */
.arch-search-input,
.arch-search-clear,
.arch-year-filter,
.arch-year-filter button,
.arch-year-filter label,
.arch-year-filter legend,
.arch-year-filter summary,
.arch-year-filter h4 {
    font-family: 'Manrope', Arial, sans-serif;
}

.arch-search-input,
.arch-year-filter {
    font-synthesis: none;
}

/* Acordeón jerárquico: el buscador permanece disponible y el resto del filtro
   comienza plegado para no ocupar la pantalla hasta que haga falta. */
body > .arch-year-filter.is-viewport-rail.is-collapsed {
    bottom: auto;
    height: auto;
    padding-bottom: 0;
    overflow: hidden;
}

body > .arch-year-filter.is-viewport-rail {
    /* El acordeon se mueve al body y deja de heredar las variables del carrusel.
       Usa la misma referencia explicita que la columna de miniaturas para que
       el boton visible (padding superior 9px) coincida con la primera miniatura
       (padding superior 4px), incluso cuando la interfaz se escala. */
    top: calc(clamp(108px, 16vh, 170px) - var(--arch-search-control-height, 40px) - 5px);
    /* La columna visible empieza exactamente en el mismo gutter de 11 px que
       dejan las miniaturas al lado derecho. El scrollbar ocupa una ranura propia
       inmediatamente a su izquierda, dentro del margen, sin mover el panel. */
    --arch-filter-scrollbar-slot: 4px;
    --arch-filter-panel-width: calc(clamp(112px, 12vw, 174px) + 21px);
    left: calc(var(--arch-viewport-edge-gutter, 11px) - var(--arch-filter-scrollbar-slot));
    width: calc(var(--arch-filter-panel-width) + var(--arch-filter-scrollbar-slot));
    scrollbar-gutter: auto;
    direction: rtl;
    scale: none;
    overflow: hidden;
    padding: 9px 0 4px;
}

body > .arch-year-filter.is-viewport-rail > * {
    direction: ltr;
    scale: none;
    min-width: 0;
    width: var(--arch-filter-panel-width);
    max-width: var(--arch-filter-panel-width);
    margin-left: auto;
    margin-right: 0;
}

body > .arch-year-filter.is-viewport-rail.is-collapsed {
    overflow: hidden;
}

body > .arch-year-filter.is-viewport-rail.is-expanded {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Todos los niveles internos usan el ancho real del panel. No hay bloques de
   174 px dentro de un contenedor artificialmente 21 px mayor. */
body > .arch-year-filter.is-viewport-rail .arch-filter-section,
body > .arch-year-filter.is-viewport-rail .arch-category-filter,
body > .arch-year-filter.is-viewport-rail .arch-taxonomy-filter,
body > .arch-year-filter.is-viewport-rail .arch-taxonomy-section,
body > .arch-year-filter.is-viewport-rail .arch-taxonomy-body,
body > .arch-year-filter.is-viewport-rail .arch-taxonomy-group,
body > .arch-year-filter.is-viewport-rail .arch-taxonomy-group-body {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

body > .arch-year-filter.is-viewport-rail .arch-taxonomy-filter {
    margin: 3px 0 0;
}

.arch-filter-main-toggle,
.arch-filter-section-summary,
.arch-taxonomy-group-summary {
    width: 100%;
    box-sizing: border-box;
    color: #962568;
    font-weight: 700;
    letter-spacing: 0.055em;
    list-style: none;
    cursor: pointer;
}

.arch-filter-main-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 6px 8px;
    border: 0;
    border-bottom: 1px solid rgba(153, 51, 130, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    text-align: left;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.arch-filter-main-toggle:hover,
.arch-filter-main-toggle:focus-visible,
.arch-filter-main-toggle[aria-expanded="true"] {
    color: #fff;
    outline: none;
    background: linear-gradient(90deg, #f4479d, #b83fd2);
    box-shadow: 0 4px 11px rgba(184, 63, 210, 0.2);
}

.arch-filter-main-toggle .ph,
.arch-filter-section-summary .ph,
.arch-taxonomy-summary .ph,
.arch-taxonomy-group-summary .ph {
    display: grid;
    width: 14px;
    height: 14px;
    place-items: center;
    justify-self: end;
    margin-right: 0;
    font-size: 12px;
    line-height: 1;
    overflow: visible;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.arch-filter-main-toggle[aria-expanded="true"] .ph,
.arch-filter-section[open] > .arch-filter-section-summary .ph,
.arch-taxonomy-group[open] > .arch-taxonomy-group-summary .ph {
    transform: rotate(180deg);
}

.arch-filter-main-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 6px;
    transform-origin: top center;
    animation: arch-filter-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.arch-filter-main-content > .arch-search-label.is-filter-embedded {
    position: relative;
    inset: auto;
    z-index: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: var(--arch-search-control-height);
    padding: 2px 0 0;
    border-radius: 0;
}

.arch-filter-main-content[hidden] {
    display: none !important;
}

.arch-filter-section {
    border-top: 1px solid rgba(153, 51, 130, 0.2);
}

.arch-filter-section-summary,
.arch-taxonomy-group-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 5px;
    padding: 7px 8px;
    font-size: clamp(0.62rem, 0.8vw, 0.78rem);
    line-height: 1.2;
    transition: color 0.16s ease, background 0.16s ease;
}

.arch-filter-section-summary::-webkit-details-marker,
.arch-taxonomy-group-summary::-webkit-details-marker {
    display: none;
}

.arch-filter-section-summary:hover,
.arch-filter-section-summary:focus-visible,
.arch-filter-section[open] > .arch-filter-section-summary {
    color: #b32379;
    outline: none;
    background: rgba(255, 255, 255, 0.48);
}

.arch-filter-section > .arch-category-filter {
    margin: 0;
    padding: 5px 8px 9px;
    border: 0;
    transform-origin: top center;
    animation: arch-filter-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.arch-filter-main-content > .arch-taxonomy-filter {
    margin-top: 3px;
}

.arch-taxonomy-group {
    border-bottom: 1px solid color-mix(in srgb, var(--taxonomy-accent) 15%, transparent);
}

.arch-taxonomy-group + .arch-taxonomy-group {
    margin-top: 2px;
}

.arch-taxonomy-group-summary {
    padding-inline: 8px;
    color: var(--taxonomy-accent);
    font-size: clamp(0.54rem, 0.68vw, 0.68rem);
}

.arch-taxonomy-group-summary:hover,
.arch-taxonomy-group-summary:focus-visible,
.arch-taxonomy-group[open] > .arch-taxonomy-group-summary {
    color: var(--taxonomy-accent);
    outline: none;
    background: rgba(255, 255, 255, 0.54);
}

.arch-taxonomy-group-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 0 7px;
    transform-origin: top center;
    animation: arch-filter-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.arch-taxonomy-section[open] > .arch-taxonomy-body {
    transform-origin: top center;
    animation: arch-filter-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Jerarquia tipografica compacta del filtro: titulos y subtitulos a 12 px;
   opciones, contadores y contenido auxiliar a 10 px. */
.arch-search-input,
.arch-filter-main-toggle,
.arch-filter-section-summary,
.arch-category-filter legend,
.arch-taxonomy-summary,
.arch-taxonomy-group-summary,
.arch-taxonomy-group h4 {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.25;
    font-synthesis: none;
}

.arch-year-btn,
.arch-category-option,
.arch-taxonomy-option {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 10px;
    line-height: 1.25;
    font-synthesis: none;
}

.arch-year-btn-count,
.arch-category-option-count {
    font-size: 10px;
    line-height: inherit;
}

@keyframes arch-filter-reveal {
    from {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
        transform: translateY(-8px) scaleY(0.92);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateY(0) scaleY(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .arch-filter-main-content,
    .arch-filter-section > .arch-category-filter,
    .arch-taxonomy-section[open] > .arch-taxonomy-body,
    .arch-taxonomy-group-body {
        animation: none;
    }
}


.arch-carousel-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    /* Los controles deben permanecer por encima de las cinco tarjetas, incluidas
       las vistas grises de los extremos. En el primer proyecto la tarjeta antigua
       de la izquierda podía cubrir por completo el botón de retroceso. */
    z-index: 5200;
    display: grid !important;
    place-items: center;
    width: clamp(42px, 3.8vw, 52px);
    height: clamp(42px, 3.8vw, 52px);
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.78) 0 10%, rgba(255, 255, 255, 0.22) 34%, transparent 58%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 217, 240, 0.12));
    box-shadow:
        0 9px 24px rgba(137, 62, 117, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 -9px 18px rgba(255, 89, 184, 0.05);
    -webkit-backdrop-filter: blur(16px) saturate(175%);
    backdrop-filter: blur(16px) saturate(175%);
    cursor: pointer;
    outline: none;
    user-select: none;
    color: #ff69b4;
    line-height: 1;
    transition: opacity 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, scale 0.18s ease;
    opacity: 0.94;
    visibility: visible !important;
    pointer-events: auto;
}

.arch-carousel-arrow::before {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), transparent 48%);
    pointer-events: none;
}

.architecture-projects-timeline:not(.architecture-projects-timeline--docencia) .arch-carousel-arrow {
    top: calc(var(--arch-carousel-arrow-y) - var(--arch-carousel-content-y-offset));
    transform: translate(-50%, -50%);
}

.arch-carousel-arrow:hover {
    opacity: 1;
    scale: 1.06;
    border-color: rgba(255, 105, 180, 0.56);
    box-shadow:
        0 11px 28px rgba(189, 65, 151, 0.18),
        0 0 0 3px rgba(255, 255, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -10px 22px rgba(255, 89, 184, 0.09);
}

.arch-carousel-arrow:focus-visible {
    opacity: 1;
    border-color: rgba(255, 105, 180, 0.82);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.18), 0 10px 28px rgba(189, 65, 151, 0.16);
}

.arch-carousel-arrow--prev {
    left: clamp(6px, 1.2vw, 18px);
}

.arch-carousel-arrow--next {
    right: clamp(6px, 1.2vw, 18px);
}

.architecture-projects-timeline:not(.architecture-projects-timeline--docencia) .arch-carousel-arrow--prev {
    left: var(--arch-carousel-prev-limit, calc(50% - var(--arch-carousel-arrow-spread) - var(--arch-wide-arrow-prev-offset)));
    right: auto;
}

.architecture-projects-timeline:not(.architecture-projects-timeline--docencia) .arch-carousel-arrow--next {
    left: var(--arch-carousel-next-limit, calc(50% + var(--arch-carousel-arrow-spread) - clamp(78px, 7vw, 104px) + var(--arch-wide-arrow-next-offset)));
    right: auto;
}

.architecture-projects-timeline--docencia .arch-carousel-arrow--next {
    right: clamp(56px, 7vw, 92px);
}

.arch-carousel-arrow .ph {
    position: relative;
    z-index: 1;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    display: block;
    font-weight: 600;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

.architecture-projects-years {
    position: fixed;
    top: var(--arch-inicio-button-top, 22px);
    right: calc(var(--arch-viewport-edge-gutter, 11px) + 4px);
    z-index: 200;
    box-sizing: border-box;
    width: var(--arch-project-side-column-width, clamp(70px, 10vw, 158.333333px));
}

.architecture-year-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: clamp(4px, 0.45vw, 7px);
    width: 100%;
}

/* Each slot holds one digit card and flips 360° on change */
.architecture-year-digit-slot {
    display: grid;
    place-items: center;
    min-width: 0;
    width: 100%;
}

@keyframes yearDigitFlip {
    0%   { transform: rotateY(0deg);   }
    100% { transform: rotateY(360deg); }
}

.architecture-year-digit-slot.year-digit-flip {
    animation: yearDigitFlip 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.architecture-year-digit-card {
    width: 100%;
    aspect-ratio: 29 / 40;
    border-radius: 6px;
    display: grid;
    align-items: center;
    justify-items: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.architecture-year-digit-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.architecture-projects-timeline.is-year-switching .architecture-year-digit-slot {
    opacity: 0.6;
}

.arch-project-thumbnails {
    position: fixed;
    top: calc(clamp(108px, 16vh, 170px) - var(--arch-search-control-height, 40px));
    right: var(--arch-viewport-edge-gutter, 11px);
    bottom: var(--arch-viewport-edge-gutter, 11px);
    z-index: 220;
    width: var(--arch-project-thumbnails-rail-width, clamp(84px, 12vw, 190px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 105, 180, 0.72) transparent;
    padding: 4px;
    pointer-events: auto;
    touch-action: pan-y;
}

.arch-project-thumbnails::-webkit-scrollbar {
    width: 5px;
}

.arch-project-thumbnails::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.arch-project-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.arch-project-thumbnails::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 105, 180, 0.72);
}

.arch-project-thumbnails.is-empty {
    display: none;
}

.arch-project-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: clamp(4px, 0.55vw, 9px);
    /* Comparte exactamente el ancho de columna con las cartas de fecha. El
       rail conserva espacio adicional para que el scrollbar no la comprima. */
    width: var(--arch-project-side-column-width, clamp(70px, 10vw, 158.333333px));
    margin-left: auto;
}

.arch-project-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: clamp(6px, 0.7vw, 11px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 9px rgba(54, 22, 77, 0.16);
    cursor: pointer;
    opacity: 0.68;
    transition: opacity 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.arch-project-thumbnail:hover,
.arch-project-thumbnail:focus-visible {
    opacity: 1;
    transform: scale(1.05);
    border-color: #ff69b4;
    outline: none;
}

.arch-project-thumbnail.is-active {
    opacity: 1;
    border-color: #ff2fbb;
    box-shadow: 0 0 0 2px rgba(255, 47, 187, 0.45), 0 3px 12px rgba(54, 22, 77, 0.22);
}

.arch-project-thumbnail.is-filtered-out {
    opacity: 0.42;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.arch-project-thumbnail.is-filtered-out:hover,
.arch-project-thumbnail.is-filtered-out:focus-visible {
    opacity: 0.58;
    transform: none;
    border-color: rgba(255, 255, 255, 0.82);
}

.arch-project-thumbnail.is-filtered-out img {
    filter: grayscale(1) contrast(0.82);
}

.arch-project-thumbnail-lock {
    position: absolute;
    inset: 50% auto auto 50%;
    display: none;
    place-items: center;
    width: clamp(18px, 1.55vw, 25px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 50%;
    color: #fff;
    background: rgba(35, 31, 40, 0.7);
    box-shadow: 0 2px 8px rgba(26, 19, 34, 0.24);
    font-size: clamp(10px, 0.85vw, 14px);
    pointer-events: none;
}

.arch-project-thumbnail.is-filtered-out .arch-project-thumbnail-lock {
    display: grid;
}

.arch-project-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arch-filter-reset-prompt[hidden] {
    display: none;
}

.arch-filter-reset-prompt {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(30, 22, 35, 0.2);
    backdrop-filter: blur(5px);
}

.arch-filter-reset-dialog {
    position: relative;
    width: min(390px, calc(100vw - 40px));
    padding: 28px 26px 22px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 24px;
    color: #4f4058;
    text-align: center;
    background: rgba(252, 248, 253, 0.94);
    box-shadow: 0 18px 50px rgba(45, 30, 55, 0.24);
}

.arch-filter-reset-dialog p {
    margin: 7px 0;
    font-size: 13px;
    line-height: 1.45;
}

.arch-filter-reset-dialog #arch-filter-reset-title {
    margin-top: 10px;
    font-weight: 700;
}

.arch-filter-reset-icon {
    color: #ff2fbb;
    font-size: 28px;
}

.arch-filter-reset-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #5c4a63;
    background: transparent;
    cursor: pointer;
}

.arch-filter-reset-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.arch-filter-reset-actions button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(137, 111, 151, 0.25);
    border-radius: 999px;
    color: #4f4058;
    background: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.arch-filter-reset-actions button.is-primary {
    border-color: rgba(255, 47, 187, 0.42);
    color: #fff;
    background: linear-gradient(135deg, #f754c7, #9c75e8);
}

.architecture-projects-feed {
    display: block;
    overflow: visible;
}

.architecture-projects-timeline:not(.architecture-projects-timeline--docencia) .architecture-projects-feed {
    position: fixed;
    inset: calc(-1 * var(--arch-carousel-content-y-offset)) 0 var(--arch-carousel-content-y-offset) 0;
    z-index: 120;
    pointer-events: none;
}

.architecture-projects-year-group {
    display: none;
    gap: clamp(8px, 1.2vw, 14px);
    animation: archYearFadeIn 0.28s ease;
    overflow: visible;
}

.architecture-projects-year-group.is-active {
    display: grid;
    overflow: visible;
}

.architecture-projects-year-title {
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.72);
}

.architecture-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    overflow: visible;
}

.architecture-project-item {
    display: flex;
    flex-direction: column;
    grid-column: span 2;
    justify-self: center;
    text-decoration: none;
    opacity: 0;
    transform: translate3d(0, 18px, -80px) rotateY(0deg) rotateZ(0deg) scale(0.94);
    transition: opacity 0.18s ease, transform 0.18s ease;
    transform-origin: center center;
    will-change: transform, opacity;
}

@keyframes archYearFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes archProjectWheelIn {
    from {
        opacity: 0;
        transform:
            translate3d(calc(var(--wheel-offset, 0) * -68px), 28px, -300px)
            rotateY(calc(var(--wheel-offset, 0) * -24deg))
            rotateZ(calc(var(--wheel-offset, 0) * -9deg))
            scale(0.78);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotateY(0deg) rotateZ(0deg) scale(1);
    }
}

.architecture-project-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0deg) rotateZ(0deg) scale(1);
    animation: archProjectWheelIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.architecture-project-item.is-row-hidden {
    display: none;
}

/* === Horizontal carousel track para los proyectos === */
.architecture-projects-wheel-track {
    position: relative;
    width: 100%;
    height: clamp(396px, 65vh, 774px);
    perspective: 1500px;
    perspective-origin: 50% 50%;
    overflow: visible;
    padding-bottom: 5rem;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    /* pointer-events: none en el track garantiza a nivel CSS que los items laterales
       nunca interceptan clicks, independientemente del contexto 3D con perspective. */
    pointer-events: none;
}

.architecture-projects-timeline:not(.architecture-projects-timeline--docencia) .architecture-projects-wheel-track {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--arch-carousel-width);
    height: 100vh;
    padding-bottom: 0;
    transform: translate(-50%, -50%);
    mask-image: none;
    -webkit-mask-image: none;
}

.architecture-projects-timeline .architecture-projects-wheel-track {
    mask-image: none;
    -webkit-mask-image: none;
}

.architecture-projects-wheel-track .architecture-project-item {
    --arch-project-wheel-transition-duration: 1.28s;
    --arch-filter-card-motion-duration: 1.55s;
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(98vw, 755px);
    max-width: min(98vw, 755px);
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: unset;
    justify-self: unset;
    text-decoration: none;
    cursor: inherit;
    transform-origin: center center;
    transform: translate(-50%, -50%) translateZ(0) rotateY(0deg) scale(0.9);
    opacity: 0;
    transition:
        transform var(--arch-project-wheel-transition-duration) cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity var(--arch-project-wheel-transition-duration) ease,
        filter var(--arch-project-wheel-transition-duration) ease;
    will-change: transform, opacity;
}

.architecture-projects-timeline.is-thumbnail-train-running .architecture-projects-wheel-track .architecture-project-item {
    --arch-project-wheel-transition-duration: 0.5s;
}

/* Una selección lejana desde las miniaturas saca las cinco cartas por abajo y
   hace entrar la nueva selección desde arriba. Durante el intercambio no deben
   competir las transiciones normales de la rueda con la animación compuesta. */
.architecture-projects-timeline.is-thumbnail-shuffle-running .architecture-projects-wheel-track,
.architecture-projects-timeline.is-thumbnail-shuffle-running .arch-project-thumbnails-grid {
    pointer-events: none;
}

.architecture-projects-timeline.is-thumbnail-shuffle-swapping .architecture-projects-wheel-track .architecture-project-item {
    transition: none !important;
}

/* Entre la salida y la entrada no se muestra la composición de destino todavía:
   sus cinco animaciones se preparan arriba y solo entonces se revela la rueda. */
.architecture-projects-timeline.is-thumbnail-vertical-swap-running.is-thumbnail-shuffle-swapping .architecture-projects-wheel-track .architecture-project-item {
    visibility: hidden !important;
}

/* El intercambio vertical mueve los elementos reales. Se anula solamente la
   animación genérica de aparición para que nunca sustituya su transform 3D;
   el radio y el orden de capas permanecen en los propios elementos. */
.architecture-projects-timeline.is-thumbnail-vertical-swap-running .architecture-projects-wheel-track .architecture-project-item.is-visible {
    animation: none !important;
}

/* Las copias temporales viven sobre el carrusel mientras cambia la selección
   real por debajo. Así cada lámina mantiene su imagen hasta salir del viewport
   y las nuevas pueden entrar sin destellos ni apariciones bruscas. */
.arch-thumbnail-shuffle-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
}

.arch-thumbnail-shuffle-card {
    --arch-thumbnail-card-radius: 40px;
    position: fixed;
    overflow: hidden;
    border-radius: var(--arch-thumbnail-card-radius);
    clip-path: inset(0 round var(--arch-thumbnail-card-radius));
    -webkit-clip-path: inset(0 round var(--arch-thumbnail-card-radius));
    -webkit-mask-image: linear-gradient(#fff, #fff);
    mask-image: linear-gradient(#fff, #fff);
    isolation: isolate;
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: left, top, width, height, transform, opacity;
    box-shadow: 0 18px 42px rgba(54, 21, 55, 0.2);
}

.arch-thumbnail-shuffle-card > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--arch-thumbnail-card-radius);
    clip-path: inset(0 round var(--arch-thumbnail-card-radius));
    -webkit-clip-path: inset(0 round var(--arch-thumbnail-card-radius));
    pointer-events: none;
}

.architecture-projects-timeline.is-thumbnail-shuffle-overlay-running .architecture-projects-wheel-track .architecture-project-item {
    visibility: hidden;
}

/* Filter choreography: discarded cards float upwards first; cards newly admitted
   by the filter then walk slowly from the lower sides into their five slots. */
.architecture-projects-wheel-track .architecture-project-item.is-filter-exiting {
    --arch-project-wheel-transition-duration: var(--arch-filter-card-motion-duration);
    transition-delay: 0s;
}

.architecture-projects-wheel-track .architecture-project-item.is-filter-entering {
    --arch-project-wheel-transition-duration: var(--arch-filter-card-motion-duration);
    transition-delay: 0.32s;
}

/* Al retirar filtros pueden volver muchas tarjetas simultáneamente. Su entrada
   necesita más recorrido visual que un cambio de filtro ordinario. */
.architecture-projects-wheel-track.is-filter-relaxing .architecture-project-item.is-filter-entering {
    --arch-project-wheel-transition-duration: 2.25s;
    transition-delay: 0.38s;
}

@media (prefers-reduced-motion: reduce) {
    .architecture-projects-wheel-track .architecture-project-item.is-filter-exiting,
    .architecture-projects-wheel-track .architecture-project-item.is-filter-entering {
        --arch-project-wheel-transition-duration: 0.01s;
        transition-delay: 0s;
    }
}

@media (min-width: 901px) {
    .architecture-projects-wheel-track .architecture-project-item {
        width: clamp(350px, 22.4vw, 426px);
        max-width: none;
    }
}

/* Solo el item central recibe clicks — el JS también pone pointer-events via inline style,
   esta regla CSS es la garantía definitiva independiente del contexto 3D/perspective. */
.architecture-projects-wheel-track .architecture-project-item.is-center {
    pointer-events: auto;
    cursor: inherit;
}

.architecture-project-img-wrap {
    --arch-project-card-radius: clamp(34px, 3.2vw, 50px);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: clamp(377px, 65vh, 824px);
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--arch-project-card-radius);
    clip-path: inset(0 round var(--arch-project-card-radius));
    -webkit-mask-image: linear-gradient(#fff, #fff);
    mask-image: linear-gradient(#fff, #fff);
    isolation: isolate;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.architecture-project-item.is-carousel-ghost .architecture-project-img-wrap {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.architecture-project-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    /* The element box now follows the visible artwork instead of the transparent
       shared frame, so every real image edge receives the same iPhone-like curve. */
    border-radius: var(--arch-project-card-radius);
    clip-path: inset(0 round var(--arch-project-card-radius));
    backface-visibility: hidden;
}

.architecture-project-item:not(.is-center) .architecture-project-caption {
    opacity: 0;
    pointer-events: none;
}

.architecture-projects-timeline[data-carousel-color-key="taller"] {
    --architecture-project-caption-color: var(--ira-carousel-caption-taller, #ffffff);
}

.architecture-projects-timeline[data-carousel-color-key="arquitectura"] {
    --architecture-project-caption-color: var(--ira-carousel-caption-arquitectura, #ffffff);
}

.architecture-projects-timeline[data-carousel-color-key="docencia"] {
    --architecture-project-caption-color: var(--ira-carousel-caption-docencia, #000000);
}

.architecture-projects-timeline[data-carousel-color-key="docenciaUniversitaria"] {
    --architecture-project-caption-color: var(--ira-carousel-caption-docenciaUniversitaria, #000000);
}

.architecture-project-caption {
    margin-top: 6px;
    margin-bottom: 1.8rem;
    transform: translateY(calc(-1 * var(--arch-project-caption-lift, 0px)));
    transition: opacity 0.48s ease, transform 0.48s ease;
    font-family: 'Ibarra Real Nova', 'Ibarra', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-synthesis: none;
    font-size: clamp(1.1rem, 1.5vw, 1.8rem);
    line-height: 1.2;
    color: var(--architecture-project-caption-color, rgba(255, 255, 255, 0.9));
    text-transform: lowercase;
}

.architecture-projects-timeline--docencia .architecture-project-caption {
    margin-top: 12px;
    margin-bottom: 0.4rem;
    font-family: 'Ibarra Real Nova', 'Ibarra', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-synthesis: none;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.1;
    color: var(--architecture-project-caption-color, #000000);
    text-align: center;
}

.architecture-projects-timeline--docencia .architecture-project-item img {
    max-height: clamp(320px, 58vh, 720px);
}

.architecture-subview-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.architecture-subview-topbar h3 {
    margin: 0;
    font-family: 'bianzhidai-Base', sans-serif;
    font-style: italic;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #ff00de;
    text-transform: lowercase;
}

.architecture-back-button {
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 999px;
    padding: 6px 11px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: lowercase;
    cursor: pointer;
}

.architecture-subview-copy {
    margin: 8px 0 10px;
    font-family: 'Space Mono', monospace;
    font-size: clamp(11px, 1.1vw, 14px);
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.88);
    text-transform: lowercase;
}

.architecture-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.2vw, 14px);
    margin-top: 8px;
}

.architecture-media-grid--idi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.architecture-media-grid--idi .architecture-media-item {
    position: relative;
    padding-top: 4.5rem;
    padding-bottom: 1.5rem;
}

.architecture-media-grid--docencia {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.architecture-media-grid--docencia .architecture-media-item {
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.architecture-media-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    font: inherit;
    color: inherit;
    padding: 0;
    text-align: left;
}

.architecture-media-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.architecture-media-caption {
    display: block;
    padding: 8px 10px;
    font-family: 'Space Mono', monospace;
    font-size: clamp(10px, 0.95vw, 12px);
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    text-transform: lowercase;
}

.architecture-media-caption--docencia {
    padding: 12px 0 4px;
    font-family: 'Typefesse', sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: center;
    color: #000000;
    text-shadow: none;
    background: none;
}

.architecture-media-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.architecture-status-links a {
    font-family: 'Space Mono', monospace;
    font-size: clamp(11px, 1vw, 13px);
    line-height: 1;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.architecture-status-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
}

.architecture-status-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 22px 34px rgba(0, 0, 0, 0.35);
}

.architecture-status-image-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    min-height: clamp(132px, 20vw, 220px);
    display: grid;
    place-items: center;
}

.architecture-status-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.architecture-status-title {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: 'bianzhidai-Base', sans-serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.3vw, 2rem);
    color: #ff00de;
    text-shadow: 0 0 12px rgba(255, 0, 222, 0.4);
    text-transform: lowercase;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 900px) {
    #card-status.is-architecture {
        top: 10vh;
    }

    .architecture-status-grid {
        grid-template-columns: 1fr;
    }

    #gallery-section.is-content-scroll #card-status.is-architecture.is-architecture-projects {
        width: calc(100vw - 0.5rem);
        margin-top: clamp(10px, 2vh, 20px);
    }

    .architecture-projects-timeline {
        --arch-side-control-offset: clamp(12px, 3vw, 24px);
        --arch-year-cards-offset: clamp(12px, 3vw, 24px);
        --arch-carousel-viewport-y-offset: 10vh;
        --arch-carousel-content-y-offset: 10vh;
        --arch-carousel-width: calc(100vw - 3rem);
        --arch-carousel-half-width: calc(50vw - 1.5rem);
        --arch-carousel-arrow-spread: calc(var(--arch-carousel-half-width) + clamp(8px, 3vw, 18px));
        --arch-carousel-arrow-y: 55%;
    }

    .architecture-projects-years {
        position: fixed;
        top: clamp(12px, 2vh, 22px);
    }

    .arch-search-label,
    .arch-year-filter {
        left: calc(-1 * var(--arch-side-control-offset));
    }

    .architecture-year-cards {
        /* already flex row, nothing to override */
    }

    .architecture-media-grid,
    .architecture-media-grid--idi,
    .architecture-media-grid--docencia {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .architecture-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .architecture-media-grid,
    .architecture-media-grid--idi,
    .architecture-media-grid--docencia {
        grid-template-columns: 1fr;
    }

    .architecture-projects-grid {
        grid-template-columns: 1fr;
    }
}

body.is-shop-open {
    overflow: hidden;
    padding-right: var(--ira-scrollbar-compensation, 0px);
}

body.is-shop-open #webgl-canvas,
body.is-shop-open .grain-overlay {
    display: none !important;
}

.shop-embed-shell {
    --ira-shop-corner: clamp(28px, 3.2vw, 44px);
    --ira-shop-corner-soft: calc(var(--ira-shop-corner) - 6px);
    --ira-shop-corner-xs: calc(var(--ira-shop-corner) - 16px);
    position: relative;
    width: min(1200px, calc(100% - 12vw));
    margin: 10vh auto 6vh;
    min-height: 72vh;
    z-index: 30;
    display: none;
    flex-direction: column;
    border-radius: var(--ira-shop-corner);
    clip-path: inset(0 round var(--ira-shop-corner));
    border: 1px solid rgba(255,255,255,0.34);
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.22) 0%,
        rgba(255,255,255,0.06) 48%,
        rgba(255,255,255,0.18) 100%
    );
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
    box-shadow:
        0 26px 56px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.44),
        inset 0 -1px 0 rgba(255,255,255,0.10);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    overflow: hidden;
}

.shop-embed-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.20) 0%,
        rgba(255,255,255,0.04) 34%,
        rgba(255,255,255,0.00) 100%
    );
    z-index: 1;
}

.shop-embed-shell,
.shop-embed-shell * {
    border-radius: inherit;
}

#gallery-section.is-shop-open .shop-embed-shell,
.shop-embed-shell.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

#gallery-section.is-shop-open {
    position: fixed;
    inset: 0;
    height: 100vh;
    overflow: hidden;
    align-items: stretch;
}

#gallery-section.is-shop-open .shop-embed-shell {
    margin: 2.5vh auto;
    width: 95vw;
    min-height: 0;
    height: 95vh;
    --ira-shop-corner: clamp(30px, 3.6vw, 48px);
}

.shop-embed-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
}

.shop-embed-title {
    margin: 0;
    font-family: 'bianzhidai-Base', sans-serif;
    font-style: italic;
    color: #ff00de;
    font-size: clamp(20px, 2.2vw, 32px);
    line-height: 1;
}

.shop-embed-close {
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
}

.shop-embed-frame-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: calc(var(--ira-shop-corner) - 2px);
    clip-path: inset(0 round calc(var(--ira-shop-corner) - 2px));
    overflow: hidden;
    z-index: 2;
    background: linear-gradient(
        160deg,
        rgba(255,255,255,0.18) 0%,
        rgba(255,255,255,0.06) 52%,
        rgba(255,255,255,0.14) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -1px 0 rgba(255,255,255,0.12);
}

.shop-embed-frame-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 0%, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0) 38%);
    z-index: 2;
}
.shop-embed-status {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    letter-spacing: 0.01em;
    text-align: center;
    pointer-events: none;
    z-index: 1;
    border-radius: calc(var(--ira-shop-corner) - 2px);
}

.shop-embed-status.is-error {
    color: rgba(255, 120, 120, 0.95);
}

.shop-embed-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    border-radius: inherit;
    position: relative;
    z-index: 1;
}

.shop-embed-shell.shop-closed-shell {
    width: min(740px, calc(100vw - 32px));
    min-height: 0;
    height: auto;
    margin: auto;
    border: 0;
    border-radius: 0;
    clip-path: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.shop-embed-shell.shop-closed-shell::before {
    display: none;
}

.shop-embed-shell.shop-closed-shell,
.shop-embed-shell.shop-closed-shell * {
    border-radius: 0;
}

#gallery-section.is-shop-open .shop-embed-shell.shop-closed-shell {
    width: min(740px, calc(100vw - 32px));
    height: auto;
    min-height: 0;
    margin: auto;
    align-self: center;
}

.shop-closed-wrap {
    display: grid;
    place-items: center;
    width: 100%;
    background: transparent;
    box-shadow: none;
    clip-path: none;
    overflow: visible;
}

.shop-closed-title {
    margin: 0;
    padding: 0;
    color: #111111;
    font-family: 'bianzhidai-Base', sans-serif;
    font-size: clamp(36px, 8vw, 76px);
    font-style: italic;
    font-weight: normal;
    letter-spacing: 0;
    line-height: 1.05;
    text-align: center;
    text-shadow: none;
    text-transform: uppercase !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

#gallery-section.is-shop-open .team-bubbles,
#gallery-section.is-shop-open .studio-wrapper,
#gallery-section.is-shop-open #card-status {
    opacity: 0 !important;
    pointer-events: none !important;
}

body.is-shop-open .home-page-hub,
body.is-shop-open .home-page-hub-login-button,
body.is-shop-open .home-page-hub-commission-button,
body.is-shop-open .home-page-hub-logout-button,
body.is-shop-open .home-page-hub-user-topbar,
body.is-shop-open .home-unified-top-nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.status-carousel-track {
    display: inline-flex;
    white-space: nowrap;
    animation: status-carousel 18.48s linear infinite;
    will-change: transform;
    gap: 0;
}

.status-carousel-item {
    flex: 0 0 auto;
    padding-right: 0;
}

@keyframes status-carousel {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-16.6666667%, 0, 0); }
}
.arch-search-label.is-layout-hidden,
.arch-year-filter.is-layout-hidden,
.arch-project-thumbnails.is-layout-hidden {
    display: none !important;
}

/* ── Desplegable «plóter» del diseño de Patricio (filters-refined.css del clon, 23/10/2026), tal cual ── */
/* ══════════════════════════════════════════════════════════════
   Filtros «plóter de papel real»
   El cabezal imprime un ticket a velocidad constante. El papel no
   crece por el medio: para cambiar de vista se corta (tijeras),
   la hoja cae y se imprime una nueva. Listas largas → páginas.
   ══════════════════════════════════════════════════════════════ */

:root {
    --flt-ink: #97205f;
    --flt-ink-soft: rgba(151, 32, 95, 0.55);
    --flt-hot: #d6009f;
    --flt-electric: #ff00de;
    --flt-hairline: rgba(168, 19, 104, 0.22);
    --flt-glass-border: rgba(255, 255, 255, 0.75);
    --flt-glass-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.42), rgba(255, 217, 240, 0.16));
    --tkt-paper: #fffdf8;
    --tkt-ink: #b3106f;
    --plt-dark: #3a1730;
}

@keyframes tkt-print {
    from { opacity: 0; filter: contrast(0.15) brightness(1.5) blur(0.4px); }
    55%  { opacity: 1; filter: contrast(0.6) brightness(1.15); }
    to   { opacity: 1; filter: none; }
}

@keyframes tkt-cut {
    from { left: 0; }
    to   { left: calc(100% - 16px); }
}

@keyframes plt-roll-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

@keyframes plt-led {
    from { opacity: 1; }
    to   { opacity: 0.25; }
}

/* ── El rail se vuelve invisible: el plóter flota solo ── */
.arch-year-filter.is-archive,
body > .arch-year-filter.is-archive.is-viewport-rail {
    top: calc(var(--arch-side-rails-viewport-top, clamp(108px, 16vh, 170px)) - var(--arch-search-control-height, 40px));
    padding: 4px 4px 6px;
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    gap: 0;
    bottom: auto;
    height: auto;
    max-height: none;
    overflow: visible;
}

.arch-year-filter.is-archive .arch-taxonomy-filter { display: none; }
.arch-plotter-tray[hidden] { display: none; }

/* ══ CABEZAL ══ */
.arch-plotter { position: relative; }

.arch-plotter-head {
    position: relative;
    z-index: 2;
    display: block;
    cursor: pointer;
    outline: none;
    -webkit-user-select: none;
    user-select: none;
}

.arch-plotter-head:focus-visible .arch-plotter-housing { box-shadow: 0 0 0 2px rgba(255, 0, 222, 0.45), 0 10px 26px rgba(137, 62, 117, 0.14); }

/* rollo de papel */
.arch-plotter-roll {
    position: relative;
    z-index: 1;
    display: block;
    height: 26px;
    margin: 8px 24px 0 8px;
    border-radius: 13px;
    background: linear-gradient(180deg, #fffefb 0%, #fff7fc 40%, #f3d9ea 100%);
    box-shadow: inset 0 -4px 6px rgba(137, 62, 117, 0.14), inset 0 1px 0 rgba(255, 255, 255, 1), 0 2px 6px rgba(137, 62, 117, 0.14);
}

.arch-plotter-roll-cap {
    position: absolute;
    right: -19px;
    top: 50%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 44% 42%, #8c6a80 0 12%, var(--plt-dark) 13% 30%, #fffdf8 31% 34%, transparent 35%),
        repeating-radial-gradient(circle at 50% 50%, rgba(151, 32, 95, 0.07) 0 1px, transparent 1px 3px),
        radial-gradient(circle at 40% 35%, #fffefb, #f6e0ee 70%, #efcfe3);
    box-shadow: 0 4px 10px rgba(137, 62, 117, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.arch-plotter-roll-cap::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 3px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    transform: rotate(45deg);
    background: var(--flt-electric);
    box-shadow: 0 0 5px rgba(255, 0, 222, 0.6);
}

.arch-plotter.is-feeding .arch-plotter-roll-cap { animation: plt-roll-spin var(--feed-ms, 900ms) linear 1; }

/* carcasa de cristal */
.arch-plotter-housing {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    margin-top: -9px;
    padding: 0 12px;
    border: 1px solid var(--flt-glass-border);
    border-radius: 12px;
    background:
        radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.6) 0 12%, transparent 60%),
        var(--flt-glass-bg);
    box-shadow: 0 10px 26px rgba(137, 62, 117, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px) saturate(175%);
    backdrop-filter: blur(16px) saturate(175%);
    transition: box-shadow 0.2s ease;
}

.arch-plotter-head:hover .arch-plotter-housing { box-shadow: 0 12px 30px rgba(214, 0, 159, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95); }

.arch-plotter-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 3px 10px;
    border-radius: 5px;
    background: linear-gradient(180deg, #4a2040, var(--plt-dark));
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.6);
}

.arch-year-btn.arch-plotter-count,
.arch-year-btn.arch-plotter-count.is-active {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    color: #ff9fe3;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: clamp(0.58rem, 0.72vw, 0.72rem);
    text-shadow: 0 0 6px rgba(255, 0, 222, 0.55);
    transform: none;
}

.arch-year-btn.arch-plotter-count .arch-year-btn-count { color: rgba(255, 159, 227, 0.7); font-weight: 400; }

.arch-plotter-led {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 0, 222, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.arch-plotter.is-open .arch-plotter-led { background: rgba(255, 0, 222, 0.7); }

.arch-plotter.is-feeding .arch-plotter-led {
    background: var(--flt-electric);
    box-shadow: 0 0 8px var(--flt-electric);
    animation: plt-led 0.22s steps(2) infinite alternate;
}

.arch-plotter-slot {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 3px;
    border-radius: 2px;
    background: var(--plt-dark);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: box-shadow 0.25s ease;
}

.arch-plotter.is-feeding .arch-plotter-slot { box-shadow: 0 0 10px 2px rgba(255, 0, 222, 0.55), 0 1px 0 rgba(255, 255, 255, 0.55); }

/* ══ PAPEL ══ */
.arch-paper-wrap {
    position: relative;
    z-index: 1;
    margin: -4px 12px 0;
    filter: drop-shadow(0 8px 16px rgba(137, 62, 117, 0.24));
}

.arch-paper {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        repeating-linear-gradient(0deg, rgba(151, 32, 95, 0.03) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, rgba(255, 233, 247, 0.9), transparent 34px),
        var(--tkt-paper);
    color: var(--tkt-ink);
    font-family: 'Space Mono', monospace;
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 8px), 95.83% 100%, 91.67% calc(100% - 8px), 87.5% 100%, 83.33% calc(100% - 8px), 79.17% 100%, 75% calc(100% - 8px), 70.83% 100%, 66.67% calc(100% - 8px), 62.5% 100%, 58.33% calc(100% - 8px), 54.17% 100%, 50% calc(100% - 8px), 45.83% 100%, 41.67% calc(100% - 8px), 37.5% 100%, 33.33% calc(100% - 8px), 29.17% 100%, 25% calc(100% - 8px), 20.83% 100%, 16.67% calc(100% - 8px), 12.5% 100%, 8.33% calc(100% - 8px), 4.17% 100%, 0% calc(100% - 8px));
}

/* la hoja cortada: cae por delante mientras se imprime la nueva */
.arch-paper.is-ghost {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
    transform-origin: 30% 0;
    transition: transform 0.72s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.5s ease-in 0.2s;
}

.arch-paper.is-ghost.is-fallen {
    transform: translateY(90px) rotate(3.5deg);
    opacity: 0;
}

/* línea de corte bajo la ranura */
.arch-paper-cutline {
    position: relative;
    height: 14px;
    margin: 0 8px;
}

.arch-paper-cutline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px dashed rgba(179, 16, 111, 0.45);
}

.arch-paper-cutline i {
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -7px;
    padding: 0 2px;
    background: var(--tkt-paper);
    color: rgba(179, 16, 111, 0.7);
    font-size: 12px;
    line-height: 14px;
}

.arch-paper.is-cutting .arch-paper-cutline i { animation: tkt-cut 0.38s linear both; }

/* cabecera impresa */
.arch-paper-head {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px 12px;
    color: var(--flt-electric);
    font-family: 'bianzhidai-Base', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-shadow: 0 0 9px rgba(255, 0, 222, 0.3);
    -webkit-user-select: none;
    user-select: none;
}

.arch-paper-head::before,
.arch-paper-head::after {
    content: '';
    align-self: center;
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    transform: rotate(45deg);
    border: 1px solid rgba(179, 16, 111, 0.55);
}

.arch-paper-head.has-crumb .arch-paper-head-title { color: var(--flt-ink); text-shadow: none; }
.arch-paper-head-sep { color: rgba(151, 32, 95, 0.4); text-shadow: none; }
.arch-paper-head-crumb,
.arch-paper-head-title,
.arch-paper .arch-category-option-text {
    min-width: 0;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* pestañita cerrada: solo cabecera, clicable */
.arch-paper-stub {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-align: inherit;
}

.arch-paper.is-stub { transition: transform 0.25s ease; }
.arch-paper.is-stub:hover { transform: translateY(2px); }

/* buscar: se escribe sobre el papel */
.arch-paper-search {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 10px;
    padding: 4px 0 10px;
    border-top: 1px dashed rgba(179, 16, 111, 0.28);
}

.arch-paper-search-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px 0;
    color: var(--flt-ink);
    font-family: 'bianzhidai-Base', sans-serif;
    font-style: italic;
    font-size: clamp(0.78rem, 0.95vw, 0.95rem);
    letter-spacing: 0.05em;
}

.arch-paper-search.has-active .arch-paper-search-label::after {
    content: '';
    width: 5px;
    height: 5px;
    transform: rotate(45deg);
    background: var(--flt-electric);
    box-shadow: 0 0 6px rgba(255, 0, 222, 0.6);
}

.arch-paper-search .arch-search-label,
body > .arch-paper-search .arch-search-label {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    margin: 0;
    padding: 2px 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.arch-paper-search .arch-search-input {
    width: 100%;
    padding: 5px 24px 5px 2px;
    border-bottom: 1px dashed rgba(179, 16, 111, 0.5);
    background: transparent;
    color: var(--tkt-ink);
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.72rem, 0.88vw, 0.9rem);
    letter-spacing: 0.08em;
}

.arch-paper-search .arch-search-input::placeholder { color: rgba(151, 32, 95, 0.42); font-style: italic; }
.arch-paper-search .arch-search-input:focus { border-bottom-color: var(--flt-electric); }
.arch-paper-search .arch-search-clear { color: rgba(151, 32, 95, 0.5); }
.arch-paper-search .arch-search-clear:hover { color: var(--flt-hot); }

/* índice: una línea impresa por filtro */
.arch-paper-line {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 8px 2px;
    border: 0;
    border-top: 1px dashed rgba(179, 16, 111, 0.28);
    background: transparent;
    cursor: pointer;
    color: var(--flt-ink);
    text-align: left;
    -webkit-user-select: none;
    user-select: none;
    transition: color 0.16s ease;
}

.arch-paper-line[hidden] { display: none; }
.arch-paper-line:hover { color: var(--flt-electric); }

.arch-paper-line-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: manual !important;
    font-family: 'bianzhidai-Base', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.7rem, 0.85vw, 0.9rem);
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.arch-paper-line-meta:empty { display: none; }

/* texto largo en una columna estrecha: se reduce antes de romperse */
@media (max-width: 1280px) {
    .arch-paper-line-title { font-size: 0.66rem; letter-spacing: 0.02em; }
}

.arch-paper-line-meta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--flt-hot);
    font-size: clamp(0.52rem, 0.62vw, 0.62rem);
    letter-spacing: 0.14em;
}

.arch-paper-line.has-active .arch-paper-line-meta::after {
    content: '';
    width: 5px;
    height: 5px;
    transform: rotate(45deg);
    background: var(--flt-electric);
    box-shadow: 0 0 6px rgba(255, 0, 222, 0.6);
}

.arch-paper-line > i {
    flex: 0 0 auto;
    font-size: 12px;
    opacity: 0.55;
}

/* lista de opciones de una sección */
.arch-paper-list {
    margin: 0 10px;
    padding: 4px 0 8px;
    border-top: 1px dashed rgba(179, 16, 111, 0.28);
}

/* navegación al pie de una sección */
.arch-paper-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 10px;
    padding: 4px 0;
    border-top: 1px dashed rgba(179, 16, 111, 0.28);
}

.arch-paper-navbtn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 2px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--flt-ink);
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.55rem, 0.66vw, 0.66rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    -webkit-user-select: none;
    user-select: none;
    transition: color 0.16s ease;
}

.arch-paper-navbtn[hidden] { display: none; }
.arch-paper-navbtn:hover { color: var(--flt-electric); }
.arch-paper-navbtn i { font-size: 11px; opacity: 0.7; }

/* pie */
.arch-paper-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 0 10px;
    padding: 9px 0 18px;
    border-top: 1px dashed rgba(179, 16, 111, 0.4);
}

.arch-paper.is-index .arch-paper-foot { border-top-color: rgba(179, 16, 111, 0.28); }

.arch-ticket-barcode {
    width: 68%;
    height: 22px;
    background: repeating-linear-gradient(90deg,
        var(--tkt-ink) 0 2px, transparent 2px 4px,
        var(--tkt-ink) 4px 7px, transparent 7px 9px,
        var(--tkt-ink) 9px 10px, transparent 10px 14px,
        var(--tkt-ink) 14px 18px, transparent 18px 20px,
        var(--tkt-ink) 20px 21px, transparent 21px 25px);
    opacity: 0.85;
}

.arch-ticket-brand {
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    font-size: clamp(0.46rem, 0.55vw, 0.56rem);
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    text-transform: uppercase;
    line-height: 1.5;
    opacity: 0.6;
}

/* impresión térmica línea a línea */
.tkt-line.is-printing {
    animation: tkt-print 0.26s ease both;
    animation-delay: var(--d, 0ms);
}

/* ── Contenido de sección sobre el papel ── */
.arch-paper .arch-category-filter,
.arch-paper .arch-category-filter.arch-type-filter {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.arch-paper .arch-category-filter legend { display: none; }
.arch-paper .arch-taxonomy-summary { display: none; }

.arch-paper .arch-taxonomy-section,
.arch-paper .arch-taxonomy-section:nth-child(2),
.arch-paper .arch-taxonomy-section:nth-child(3) {
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
}

.arch-paper .arch-taxonomy-body {
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.arch-paper .arch-taxonomy-group { width: auto; min-width: 0; max-width: 100%; }

.arch-paper .arch-taxonomy-group h4 {
    margin: 7px 0 2px;
    padding-bottom: 2px;
    border-bottom: 1px dashed rgba(179, 16, 111, 0.25);
    color: rgba(151, 32, 95, 0.65);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: clamp(0.5rem, 0.58vw, 0.58rem);
}

.arch-paper .arch-category-option {
    display: flex;
    align-items: baseline;
    gap: 6px;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 2px 8px 2px 4px;
    border-radius: 2px;
    color: rgba(151, 32, 95, 0.72);
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.62rem, 0.75vw, 0.76rem);
    letter-spacing: 0.04em;
    transition: color 0.14s ease, background 0.14s ease;
}

/* filas fuera de la página impresa */
.arch-paper .arch-category-option.is-off-page,
.arch-paper .arch-taxonomy-group h4.is-off-page { display: none; }

.arch-paper .arch-category-option:hover {
    color: var(--flt-hot);
    background: rgba(214, 0, 159, 0.07);
    transform: none;
    box-shadow: none;
}

/* marcado = impresión inversa, como sello térmico */
.arch-paper .arch-category-option:has(input:checked) {
    color: var(--tkt-paper);
    background: var(--flt-hot);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(214, 0, 159, 0.35);
}

.arch-paper .arch-category-option .arch-category-option-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.arch-paper .arch-category-option .arch-category-option-count { margin-left: auto; color: rgba(151, 32, 95, 0.45); font-weight: 400; }
.arch-paper .arch-category-option:has(input:checked) .arch-category-option-count { color: rgba(255, 253, 248, 0.75); }

.arch-paper .arch-category-option input {
    width: 8px;
    height: 8px;
    margin: 4px 2px 0 0;
    transform: rotate(45deg);
    border: 1px solid rgba(168, 19, 104, 0.5);
    border-radius: 1px;
    background: transparent;
    transition: background 0.14s ease, border-color 0.14s ease;
}

.arch-paper .arch-category-option:hover input { border-color: var(--flt-hot); box-shadow: none; }

.arch-paper .arch-category-option input:checked {
    border-color: var(--tkt-paper);
    background: var(--tkt-paper);
    box-shadow: none;
}

/* ── Escena: miniaturas, huecos y arrastre ── */
.arch-project-thumbnails { width: clamp(74px, 10.5vw, 167px); }

.arch-project-thumbnail.is-filtered-out {
    visibility: hidden;
    pointer-events: none;
}

.architecture-year-digit-card img,
.architecture-project-item img,
.arch-project-thumbnail img {
    -webkit-user-drag: none;
    user-select: none;
}


/* ══ Intro 3D: explosión del estadio ligada al scroll ══ */
body.arch-intro-active .architecture-projects-timeline,
body.arch-intro-active .arch-year-filter,
body.arch-intro-active .arch-search-label,
body.arch-intro-active .arch-project-thumbnails,
body.arch-intro-active .architecture-projects-years,
body.arch-intro-active .arch-carousel-arrow {
    opacity: var(--intro-reveal, 0);
    pointer-events: none;
    transition: none;
}

body.arch-intro-active .architecture-projects-timeline {
    transform: translateY(calc((1 - var(--intro-reveal, 0)) * 24px));
}

.arch-intro {
    position: fixed;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background: #000;
}

/* detrás del carrusel una vez terminada la intro */
.arch-intro.is-bg { z-index: 0; }

.arch-intro-seq,
.arch-intro-live {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.arch-intro-seq {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.arch-intro.is-ready .arch-intro-seq { opacity: var(--seq-dim, 1); transition: none; }
.arch-intro.is-live .arch-intro-seq { opacity: 0; transition: opacity 0.9s ease; }

.arch-intro-live {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.arch-intro.is-live .arch-intro-live { opacity: var(--bg-opacity, 0.6); }

.arch-intro-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #97205f;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: opacity 0.4s ease;
}

.arch-intro-loading.is-hidden { opacity: 0; }

.arch-intro-hint {
    position: absolute;
    left: 50%;
    bottom: 5vh;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #ff00de;
    font-family: 'bianzhidai-Base', sans-serif;
    font-style: italic;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-shadow: 0 0 9px rgba(255, 0, 222, 0.35);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.arch-intro.is-ready .arch-intro-hint { opacity: 1; }
.arch-intro .arch-intro-hint.is-hidden { opacity: 0; }
.arch-intro-hint i { font-size: 14px; animation: intro-hint-bob 1.4s ease-in-out infinite; }

@keyframes intro-hint-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Compatibilidad con la web publicada: el clon ya no tenía la segunda regla del carril antiguo (ancho + ranura,
   dirección rtl e hijos de ancho fijo). Con el plóter (.is-archive) se dejan sus medidas: las del diseño. */
body > .arch-year-filter.is-archive.is-viewport-rail {
    width: var(--arch-filter-panel-width);
    direction: ltr;
}
body > .arch-year-filter.is-archive.is-viewport-rail > * {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Ajustes de Patricio (23/10/2026): «reduce un poco los textos» y que «fundamentales» quepa en una línea.
   Textos del papel un 15 % más pequeños; los títulos del índice, sin espaciado y proporcionales al panel
   (fundamentales ≈ 11,7 em; hueco = panel − 71 px), con algo menos de separación hasta la flecha. */
.arch-paper-head { font-size: clamp(0.77rem, 0.94vw, 0.94rem); }
.arch-paper-search-label { font-size: clamp(0.66rem, 0.81vw, 0.81rem); }
.arch-paper-search .arch-search-input { font-size: clamp(0.62rem, 0.75vw, 0.77rem); }
.arch-paper-line { gap: 5px; padding: 8px 1px; }
.arch-paper-line-title { font-size: calc(var(--arch-filter-panel-width, 195px) * 0.052); letter-spacing: 0; }
.arch-paper .arch-category-option { font-size: clamp(0.55rem, 0.66vw, 0.66rem); }
/* cabecera de una sección («filtros / tipo»): sin partir palabras por dentro; si no cabe, baja la palabra entera */
.arch-paper-head.has-crumb { font-size: calc(var(--arch-filter-panel-width, 195px) * 0.05); gap: 5px; row-gap: 2px; letter-spacing: 0.02em; flex-wrap: wrap; }
.arch-paper-head.has-crumb > span { min-width: auto; overflow-wrap: normal !important; word-break: normal !important; white-space: nowrap; }

/* Capa animada de una tarjeta en el centro de la ruleta (D · Ježeva kućica): mismo encaje que la imagen fija */
.architecture-project-img-wrap > .arch-card-animation {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    clip-path: none;
    pointer-events: none;
}
