:root {

    --carbon: #0c0c0c;
    --deep: #141414;

    --surface: rgba(255,255,255,.055);

    --glass-border: rgba(255,255,255,.11);
    --glass-hi: rgba(255,255,255,.18);

    --ivory: #e8e4dc;
    --ivory-60: rgba(232,228,220,.60);
    --ivory-30: rgba(232,228,220,.30);

    --gold: #c9a96e;
    --gold-dim: rgba(201,169,110,.35);

    --serif: "Cormorant Garamond", serif;
    --sans: "Inter", sans-serif;

}

* {

    box-sizing: border-box;

    margin: 0;
    padding: 0;

}

html,
body {

    width: 100%;
    height: 100%;

}

@font-face {

    font-family: Kalvani;

    /* "resource" en minúscula, igual que la carpeta: en un
       hosting Linux las mayúsculas importan. */
    src: url("./resource/fonts/Kalvani.ttf");

}

body {

    background:

        radial-gradient(
            circle at 50% 35%,
            rgba(255,255,255,.035),
            transparent 45%
        ),

        var(--carbon);

    color: var(--ivory);

    font-family: var(--sans);

    overflow: hidden;

    -webkit-font-smoothing: antialiased;

}

button {

    font: inherit;

}

.book-stage {
  position: relative;
  width: min(1180px, 86vw);
  height: clamp(500px, 96vh, 760px);
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  perspective: 2200px;
}

.page {

    position: absolute;

    inset: 0;

    transform-origin: left center;

    overflow: visible;

    visibility: visible;

    opacity: 1;

    pointer-events: none;

}

.page-front {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border-radius: 18px;

    transform: translateZ(0);

}

.page-inner {

    position: relative;

    width: 100%;
    height: 100%;

    padding: 42px;

    border-radius: 18px;

    border: 1px solid rgba(255,255,255,.16);

    background:

        radial-gradient(
            120% 60% at 50% -10%,
            rgba(255,255,255,.22),
            transparent 62%
        ),

        radial-gradient(
            90% 55% at 50% 112%,
            rgba(0,0,0,.30),
            transparent 60%
        ),

        linear-gradient(
            180deg,
            rgba(255,255,255,.07),
            rgba(255,255,255,.02) 45%,
            rgba(255,255,255,.05) 100%
        ),

        rgba(20,20,20,.90);

    box-shadow:

        0 35px 90px rgba(0,0,0,.42),

        inset 0 1px 0 rgba(255,255,255,.24),

        inset 0 -1px 0 rgba(0,0,0,.35),

        inset 0 0 34px rgba(255,255,255,.035);

    overflow: visible;

}

.page-inner::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    border-radius: 18px;

    background:

        radial-gradient(
            70% 42% at 32% 2%,
            rgba(255,255,255,.34),
            transparent 68%
        ),

        radial-gradient(
            55% 35% at 78% 0%,
            rgba(255,255,255,.16),
            transparent 65%
        ),

        linear-gradient(
            125deg,
            rgba(255,255,255,.05) 0%,
            rgba(255,255,255,0) 30%,
            rgba(255,255,255,0) 70%,
            rgba(255,255,255,.06) 100%
        );

    pointer-events: none;

}

.cover {

    padding: 0;

    overflow: hidden;

}

.cover-image {

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            90deg,
            rgba(12,12,12,.86),
            rgba(12,12,12,.42),
            rgba(12,12,12,.18)
        ),

        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&q=85");

    background-size: cover;

    background-position: center;

    border-radius: 18px;

}

.cover-content {

    position: absolute;

    inset: 0;

    padding: clamp(32px, 5vw, 70px);

    display: flex;

    flex-direction: column;

    gap: clamp(18px, 3vw, 32px);

}

.cover-kicker {

    display: flex;

    flex-direction: column;

    gap: 6px;

    letter-spacing: .28em;

    text-transform: uppercase;

    color: var(--gold);

}

.cover-kicker-title {

    font-size: clamp(14px, 1.7vw, 18px);

}

.cover-kicker-year {

    font-size: clamp(12px, 1.3vw, 14px);

    letter-spacing: .22em;

    color: var(--ivory-60);

}

.cover-title {

    max-width: 700px;

}

.cover-title h1 {

    font-family: var(--serif);

    font-size: clamp(48px, 6vw, 86px);

    line-height: .9;

    font-weight: 500;

    letter-spacing: -.025em;

}

.cover-title h1 em {

    color: var(--gold);

    font-style: normal;

}

.cover-subtitle {

    margin-top: 24px;

    font-family: 'Roboto', sans-serif;

    font-size: 15px;

    font-weight: 600;

    letter-spacing: .20em;

    text-transform: uppercase;

    color: var(--ivory);

}

.cover-meta {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    max-width: 600px;

}

.cover-meta-item {

    display: flex;

    flex-direction: column;

    gap: 5px;

    letter-spacing: 2px;

}

.cover-meta-label {

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .30em;

    text-transform: uppercase;

    color: var(--ivory);

}

.cover-meta-value {

    font-size: 13px;

    color: var(--ivory-60);

}

.content-page {

    display: flex;

    gap: 46px;

}

.page-image {

    flex: 0 0 43%;

    min-width: 0;

    border-radius: 13px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.08);

    background: #0a0a0a;

}

.page-image img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

}

.page-content {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    min-height: 0;

}

.page-header {

    margin-bottom: 24px;

}

.page-number {

    display: block;

    margin-bottom: 7px;

    font-size: 9px;

    letter-spacing: .22em;

    text-transform: uppercase;

    color: var(--gold);

}

.page-header h2 {

    font-family: var(--serif);

    font-size: clamp(38px, 4vw, 58px);

    line-height: .9;

    font-weight: 500;

    letter-spacing: -.02em;

}

.page-header h2 em {

    color: var(--gold);

    font-style: normal;

}

.page-description {

    margin-top: 10px;

    max-width: 500px;

    color: var(--ivory-60);

    font-size: 11px;

    line-height: 1.7;

}

.page-body {

    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;

    pointer-events: auto;

    -webkit-overflow-scrolling: touch;

}

.page-body::-webkit-scrollbar {

    width: 2px;

}

.page-body::-webkit-scrollbar-track {

    background: transparent;

}

.page-body::-webkit-scrollbar-thumb {

    background: rgba(201,169,110,.45);

}

.text-block {

    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,.08);

}

.text-block:first-child {

    border-top: none;
    padding-top: 0;

}

.text-block h3,
.text-block-label {

    margin-bottom: 8px;
    font-family: var(--sans);
    font-size: clamp(0.82rem, .75vw, .90rem);
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);

}

.text-block p {

    color: rgba(255, 255, 255, 0.824);
    font-size: clamp(0.85rem, .75vw, .84rem);
    line-height: 1.50;
    font-weight: 100;

}

.intervention-group {

    margin-bottom: 13px;

}

.intervention-group:last-child {

    margin-bottom: 0;

}

.intervention-title {

    margin-bottom: 6px;
    font-size: clamp(0.8rem, .75vw, .70rem);
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);

}

.intervention-list {

    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;

}

.intervention-list li {

    position: relative;
    padding-left: 13px;
    color: rgba(255, 255, 255, 0.824);
    font-size: clamp(0.8rem, .75vw, .84rem);
    line-height: 1.2;

}

.intervention-list li::before {

    content: "";

    position: absolute;

    left: 0;

    top: .65em;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--gold);

    opacity: .7;

}

.render-page {

    padding: 14px;

    display: flex;

    flex-direction: column;

    gap: 10px;

    background:

        radial-gradient(
            120% 60% at 50% -10%,
            rgba(255,255,255,.16),
            transparent 62%
        ),

        radial-gradient(
            90% 55% at 50% 112%,
            rgba(0,0,0,.26),
            transparent 60%
        ),

        linear-gradient(
            180deg,
            rgba(255,255,255,.05),
            rgba(255,255,255,.015) 45%,
            rgba(255,255,255,.03) 100%
        ),

        rgba(20,20,20,.94);

}

.render-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 3px 8px;

}

.render-label {

    font-size: 8px;

    letter-spacing: .2em;

    text-transform: uppercase;

    color: var(--gold);

}

.render-title {

    font-family: var(--serif);

    font-size: 18px;

    color: var(--ivory-60);

}

.render-image-wrap {

    flex: 1;

    min-height: 0;

    border-radius: 12px;

    overflow: hidden;

    border: 1px solid var(--glass-border);

    background: #080808;

    display: flex;

    align-items: center;

    justify-content: center;

    pointer-events: auto;

    cursor: zoom-in;

}

.render-image-wrap.is-zoomed {

    position: fixed;

    inset: 0;

    z-index: 500;

    display: block;

    width: 100vw;

    height: 100vh;
    height: 100dvh;

    margin: 0;

    border-radius: 0;

    border: none;

    background: rgba(8,8,8,.97);

    overflow: auto;

    -webkit-overflow-scrolling: touch;

    cursor: zoom-out;

}

.render-image-wrap.is-zoomed img {

    display: block;

    width: auto;

    height: auto;

    max-width: none;

    max-height: none;

    object-fit: unset;

}

.render-image-wrap img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

}

.render-footer {

    display: flex;

    justify-content: space-between;

    padding: 2px 8px 4px;

    font-size: 7px;

    letter-spacing: .15em;

    text-transform: uppercase;

    color: var(--ivory-30);

}

.section-tabs {

    position: absolute;

    top: 0;
    bottom: 0;

    right: -128px;

    transform: none;

    display: flex;
    flex-direction: column;

    width: 112px;

    gap: 10px;

    justify-content: flex-start;

    z-index: 50;
    pointer-events: auto;

}

.section-tab {

    position: relative;
    width: 100%;

    flex: 0 0 auto;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    border: 1px solid rgba(255,255,255,.09);

    border-radius: 8px;

    background: rgba(20,20,20,.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: rgba(255, 255, 255, 0.796);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .10em;
    text-transform: uppercase;
    cursor: pointer;
    transition:

        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;

}

.section-tab span {

    display: block;
    writing-mode: horizontal-tb;
    transform: none;
    white-space: normal;
    width: 100%;
    max-width: none;

    text-align: left;

    padding-left: 4px;

}

.section-tab:hover {

    color: var(--ivory);

    background: rgba(201,169,110,.13);

    border-color: rgba(201,169,110,.35);

    box-shadow:

        0 0 14px rgba(201,169,110,.10),
        inset 0 0 10px rgba(201,169,110,.04);

}

.section-tab.active {

    color: var(--gold);

    background: rgba(201,169,110,.08);

    border-color: rgba(201,169,110,.28);

}

.section-tab.active::before {

    content: "";

    position: absolute;

    left: 0;

    top: 50%;

    transform: translateY(-50%);

    width: 2px;

    height: 22px;

    background: var(--gold);

    border-radius: 2px;

}

.specs-row {
  display: flex;

  flex-wrap: wrap;

  gap: 0.6rem;
}

.spec-chip {
  background: var(--gold-dim);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 100px;
  padding: 0.2rem 0.75rem;
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  transform: translateY(12px)
}

.navigation {

    position: fixed;

    left: 50%;

    bottom: 26px;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 7px 10px;

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 999px;

    background: rgba(20,20,20,.70);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    box-shadow:

        0 10px 30px rgba(0,0,0,.30);

    z-index: 100;

}

.nav-button {

    display: none;

    width: 34px;

    height: 34px;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 50%;

    background: rgba(255,255,255,.035);

    color: var(--ivory-60);

    cursor: pointer;

    transition: .25s ease;

}

.nav-button:hover {

    color: var(--gold);

    border-color: var(--gold-dim);

    background: rgba(201,169,110,.08);

}

.nav-button:disabled {

    opacity: .25;

    cursor: default;

}

.page-counter {

    min-width: 58px;

    text-align: center;

    font-size: 9px;

    letter-spacing: .15em;

    color: var(--ivory-60);

}

.page.flip-out {

    animation:

        flipOut 2s cubic-bezier(.77,0,.18,1)
        forwards;

    pointer-events: none;

}

.page.flip-in {

    animation:

        flipIn 2s cubic-bezier(.77,0,.18,1)
        forwards;

    pointer-events: none;

}

@keyframes flipOut {

    0% {

        transform: rotateY(0deg);

        opacity: 1;

    }

    65% {

        transform: rotateY(-120deg);

        opacity: 1;

    }

    72% {

        transform: rotateY(-130deg);

        opacity: .75;

    }

    80% {

        transform: rotateY(-140deg);

        opacity: .35;

    }

    88% {

        transform: rotateY(-155deg);

        opacity: 0;

    }

    100% {

        transform: rotateY(-180deg);

        opacity: 0;

    }

}

@keyframes flipIn {

    0% {

        transform: rotateY(-180deg);

        opacity: 0;

    }

    12% {

        transform: rotateY(-155deg);

        opacity: 0;

    }

    20% {

        transform: rotateY(-145deg);

        opacity: .35;

    }

    28% {

        transform: rotateY(-130deg);

        opacity: .75;

    }

    35% {

        transform: rotateY(-120deg);

        opacity: 1;

    }

    100% {

        transform: rotateY(0deg);

        opacity: 1;

    }

}

.page.active {

    transform: rotateY(0deg);

    opacity: 1;

    z-index: 1;

}

.page.behind {

    transform: rotateY(0deg);

    opacity: 0;

    z-index: 0;

}

.page.flipped {

    transform: rotateY(-180deg);

    opacity: 0;

    z-index: 0;

}

.page.on-top {

    z-index: 10;

}

.cover-footer {

    margin-top: auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 16px;

}

.cover-divider {

    width: 64px;

    height: 1px;

    background: rgba(201,169,110,.35);

}

.cover-signature {

    text-align: center;

    pointer-events: none;

}

.cover-signature-label {

    display: block;

    margin-bottom: 5px;

    font-size: clamp(5px, 1.3vw, 10px);

    font-weight: 500;

    letter-spacing: .24em;

    text-transform: uppercase;

    color: var(--gold);

    opacity: .75;

}

.cover-signature-name {

    position: relative;

    display: inline-block;

    white-space: nowrap;

    overflow: visible;

}

.signature-back {

    position: absolute;

    top: 0;
    left: 0;
    width: 300px;

    white-space: nowrap;

    line-height: 90px;

    font-size: clamp(15px, 1.6vw, 28px);

    font-family: 'Kalvani', sans-serif;

    color: var(--ivory);

    opacity: .3;

    letter-spacing: 8px;

    transform: translate(-30px, -20px);

    font-weight: 500;

}

.signature-front {

    position: relative;

    display: block;

    color: var(--ivory);

    opacity: .9;

    font-family: 'Roboto', sans-serif;

    font-size: clamp(15px, 1.6vw, 18px);

    font-weight: 500;

    letter-spacing: 4px;

    transform: translate(15px, 5px);

}

@media (max-width: 1000px) {

    html, body {

        height: 100vh;

        height: 100dvh;

        overflow-x: hidden;

    }

}

@media (hover: none) and (pointer: coarse) and (min-width: 701px) {

    .book-stage {

        position: fixed;

        top: 5px;
        left: 5px;
        bottom: 5px;
        right: 110px;

        margin: 0;

        transform: none;

        width: auto;
        height: auto;

    }

    .page-inner {

        padding: 30px;

    }

    .content-page {

        gap: 28px;

    }

    .page-image {

        flex-basis: 40%;

    }

    .section-tabs {

        top: 0;
        bottom: 0;

        right: -96px;

        transform: none;

        width: 84px;

        gap: 8px;

        justify-content: flex-start;

    }

    .section-tab {

        width: 100%;

        flex: 0 0 auto;

        height: 56px;

        font-size: 9px;

        border-radius: 8px;

        border-left: 1px solid rgba(255,255,255,.09);

    }

    .section-tab span {

        max-width: 74px;

        width: 100%;

        text-align: left;

        padding-left: 4px;

    }

    .navigation {

        display: none;

    }

}

@media (max-width: 700px) {

    .book-stage {

        width: calc(100vw - 24px);

        height: calc(100vh - 88px);
        height: calc(100dvh - 88px);

        margin: 0 auto;

        top: 12px;

        transform: none;

        perspective: 1800px;

    }

    .cover-meta {

        display: grid;

        grid-template-columns: repeat(4, 1fr);

        gap: 20px;

        max-width: none;

        margin-top: 22px;

    }

    .cover-meta-item {

        min-width: 0;

        overflow-wrap: anywhere;

    }

    .cover-meta-label {

        font-size: 9px;

        letter-spacing: .12em;

    }

    .cover-signature-label {

        font-size: 11px;

    }

    .page-inner {

        padding: 22px;

    }

    .content-page {

        flex-direction: column;

        gap: 18px;

    }

    .page-image {

        flex: 0 0 34%;

        min-height: 190px;

    }

    .render-page {

        justify-content: center;

    }

    .render-image-wrap {

        flex: 0 0 auto;

        width: 100%;

        height: auto;

    }

    .render-image-wrap img {

        width: 100%;

        height: auto;

    }

    .page-header {

        margin-bottom: 12px;

    }

    .page-header h2 {

        font-size: 38px;

    }

    .text-block {

        padding: 11px 0;

    }

    .section-tabs {

        position: absolute;

        left: 12px;
        right: 12px;

        bottom: calc(env(safe-area-inset-bottom, 0px) - 64px);
        top: auto;

        transform: none;

        width: auto;

        display: flex;

        flex-direction: row;

        align-items: stretch;

        justify-content: flex-start;

        gap: 6px;

        z-index: 100;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;

    }

    .section-tabs::-webkit-scrollbar {

        display: none;

    }

    .section-tab {

        flex: 0 0 auto;

        width: auto;

        height: 50px;

        padding: 0 18px;

        border: 1px solid rgba(255,255,255,.09);

        border-radius: 999px;

        font-size: 12px;

        line-height: 1.2;

        letter-spacing: .04em;

        white-space: nowrap;

    }

    .section-tab span {

        max-width: none;
        white-space: nowrap;

    }

    .section-tab.active::before {

        left: 50%;

        top: auto;
        bottom: 0;

        transform: translateX(-50%);

        width: 22px;
        height: 2px;

    }

    .navigation {

        display: none;

    }

}

@media (max-width: 480px) {

    .book-stage {

        height: calc(100vh - 78px);
        height: calc(100dvh - 78px);

        top: 10px;

    }

    .cover-title h1 {

        font-size: 42px;

    }

    .cover-subtitle {

        font-size: 9px;

    }

    .cover-meta {

        gap: 16px;

    }

    .cover-meta-value {

        font-size: 9px;

    }

    .page-image {

        min-height: 160px;

    }

    .page-header h2 {

        font-size: 32px;

    }

    .page-description,
    .text-block p {

        font-size: 13.5px;

    }

    .intervention-list li {

        font-size: 13px;

    }

    .section-tabs {

        bottom: calc(env(safe-area-inset-bottom, 0px) - 58px);

        gap: 6px;

    }

    .section-tab {

        height: 46px;

        padding: 0 15px;

        font-size: 11px;

    }

}

@media (hover: hover) and (pointer: fine) {

    .page-front {

        overflow: hidden;

    }

    .page-curl-zone {

        position: absolute;

        top: 0;
        bottom: 0;
        right: 0;

        width: 30px;

        z-index: 20;

        cursor: pointer;

        pointer-events: auto;

    }

    .page-curl {

        --curl-size: 78px;

        position: absolute;

        right: 0;
        bottom: 0;

        width: var(--curl-size);
        height: var(--curl-size);

        transform-origin: bottom right;

        transform: scale(0);

        transition:
            transform .45s cubic-bezier(.22, .61, .36, 1);

        z-index: 20;

        pointer-events: none;

    }

    .page-curl-under {

        position: absolute;

        inset: 0;

        clip-path:
            path(
                'M 14,0 L 78,0 L 0,78 L 0,14 A 14,14 0 0 1 14,0 Z'
            );

        background:

            linear-gradient(
                135deg,
                #6b1a26 0%,
                #6b1a26 15%,
                #9e2c3a 35%,
                #9e2c3a 50%,
                #3d0a10 65%,
                #1a0509 100%
            );

    }

    .page-curl-face {

        position: absolute;

        inset: 0;

        clip-path:
            path(
                'M 78,0 L 78,60 A 18,18 0 0 1 60,78 L 0,78 Z'
            );

        background: var(--deep);

        border-top: 1px solid rgba(255, 255, 255, 0.35);

        box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08);

    }

    .page-curl-zone:hover ~ .page-curl {

        transform: scale(1);

    }

    .page-curl.curl-force-hidden {

        transition: none !important;

        transform: scale(0) !important;

    }

    .page-close-zone {

        position: absolute;

        top: 0;
        bottom: 0;
        left: 0;

        width: 30px;

        z-index: 20;

        cursor: pointer;

        pointer-events: auto;

    }

}

/* =========================================================================================
   SELECTOR DE IDIOMA EN / ES
   Va el primero dentro de las solapas (.section-tabs):
   - Ordenador / tablet: arriba de la columna de solapas
   - Móvil: primer elemento de la barra inferior
========================================================================================= */

.dossier-lang {

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    height: 40px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;

    background: rgba(20,20,20,.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

}

.dossier-lang-btn {

    position: relative;

    padding: 4px 2px 6px;

    border: 0;
    background: none;

    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;

    color: rgba(255,255,255,.45);

    cursor: pointer;

    transition: color .25s ease;

}

.dossier-lang-btn:hover {

    color: var(--ivory);

}

.dossier-lang-btn.active {

    color: var(--gold);

}

/* línea dorada bajo el idioma activo */
.dossier-lang-btn::after {

    content: "";

    position: absolute;

    left: 2px;
    right: calc(2px + .18em);   /* compensa el letter-spacing */
    bottom: 0;

    height: 1px;

    background: var(--gold);

    transform: scaleX(0);

    transition: transform .3s cubic-bezier(.22,1,.36,1);

}

.dossier-lang-btn.active::after {

    transform: scaleX(1);

}

.dossier-lang-btn:focus:not(:focus-visible) {

    outline: none;

}

.dossier-lang-sep {

    width: 1px;
    height: 12px;

    background: rgba(255,255,255,.18);

}

/* Móvil: misma altura y forma que las pastillas de la barra */
@media (max-width: 700px) {

    .dossier-lang {

        height: 50px;

        padding: 0 18px;

        border-radius: 999px;

    }

}

@media (max-width: 480px) {

    .dossier-lang {

        height: 46px;

        padding: 0 15px;

    }

}

/* =========================================================================================
   GALERÍA DE RENDERS (cocina)
   Imagen principal + flechas ‹ › + pie de foto + miniaturas.
   El zoom a pantalla completa sigue siendo el de .render-image-wrap.
========================================================================================= */

.render-gallery {

    flex: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;
    gap: 8px;

}

.gallery-stage {

    position: relative;

    flex: 1;
    min-height: 0;

    display: flex;

}

.gallery-stage .render-image-wrap {

    width: 100%;

}

.gallery-arrow {

    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 5;

    width: 38px;
    height: 38px;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);

    background: rgba(20,20,20,.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: var(--ivory-60);
    font-size: 20px;
    line-height: 1;

    cursor: pointer;
    pointer-events: auto;

    transition:
        color .25s ease,
        border-color .25s ease,
        background .25s ease;

}

.gallery-arrow:hover {

    color: var(--gold);
    border-color: var(--gold-dim);
    background: rgba(201,169,110,.10);

}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-bar {

    display: flex;
    justify-content: space-between;
    align-items: baseline;

    padding: 0 8px;

}

.gallery-caption {

    font-family: var(--serif);
    font-size: 15px;
    color: var(--ivory);

}

.gallery-count {

    font-size: 9px;
    letter-spacing: .15em;
    color: var(--gold);

}

.gallery-thumbs {

    flex: 0 0 auto;

    display: flex;
    gap: 8px;

    padding: 0 8px 2px;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    pointer-events: auto;

    scrollbar-width: none;

}

.gallery-thumbs::-webkit-scrollbar {

    display: none;

}

.gallery-thumb {

    flex: 0 0 auto;

    width: 72px;
    height: 46px;

    padding: 0;

    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.10);

    background: #080808;

    overflow: hidden;

    opacity: .45;

    cursor: pointer;

    transition:
        opacity .25s ease,
        border-color .25s ease;

}

.gallery-thumb img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

}

.gallery-thumb:hover {

    opacity: .8;

}

.gallery-thumb.active {

    opacity: 1;
    border-color: var(--gold);

}

@media (max-width: 700px) {

    .gallery-stage {

        flex: 0 0 auto;

    }

    .gallery-arrow {

        width: 32px;
        height: 32px;
        font-size: 17px;

    }

    .gallery-thumb {

        width: 60px;
        height: 40px;

    }

}
