/* ================================================================
   CINTILLO PERSONAL — Raúl Capote
   ----------------------------------------------------------------
   Navegación compartida por Actor, Dossier y superficies editoriales.
   Está presente desde el primer fotograma. En móvil se despliega como
   una franja continua: sin caja, radio ni borde alrededor del menú.
   ================================================================ */
.rc-cintillo {
    --rc-nav-bg: rgba(8, 5, 3, 0.82);
    --rc-nav-bg-solid: rgba(8, 5, 3, 0.985);
    --rc-nav-text: rgba(255, 255, 255, 0.9);
    --rc-nav-soft: rgba(255, 255, 255, 0.62);
    --rc-nav-accent: #f5d77a;
    --rc-nav-hairline: rgba(245, 215, 122, 0.16);
    --rc-nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --rc-nav-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --rc-nav-ui: 'Montserrat', 'Inter', system-ui, sans-serif;

    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10015;
    color: var(--rc-nav-text);
    background: var(--rc-nav-bg);
    border-bottom: 1px solid var(--rc-nav-hairline);
    -webkit-backdrop-filter: blur(12px) saturate(1.12);
    backdrop-filter: blur(12px) saturate(1.12);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .rc-cintillo {
        background: var(--rc-nav-bg-solid);
    }
}

.rc-cintillo-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 82rem;
    margin: 0 auto;
    padding: 0.72rem clamp(1.1rem, 5vw, 2.5rem);
}

.rc-brand {
    flex: none;
    color: var(--rc-nav-text);
    font-family: var(--rc-nav-display);
    font-size: 1.04rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.015em;
    text-decoration: none;
    transition: color 0.3s var(--rc-nav-ease);
}

.rc-brand:hover,
.rc-brand:focus-visible {
    color: var(--rc-nav-accent);
}

.rc-sections {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 2.1vw, 1.65rem);
    margin-left: auto;
}

.rc-sections a {
    position: relative;
    color: var(--rc-nav-soft);
    font-family: var(--rc-nav-ui);
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s var(--rc-nav-ease), opacity 0.3s var(--rc-nav-ease);
}

.rc-sections a:hover,
.rc-sections a:focus-visible,
.rc-sections a[aria-current="page"] {
    color: var(--rc-nav-accent);
}

.rc-sections a[aria-current="page"]::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -0.44rem;
    left: 0;
    height: 1px;
    background: var(--rc-nav-accent);
}

.rc-section-bridge {
    opacity: 0.72;
}

.rc-section-bridge:hover,
.rc-section-bridge:focus-visible {
    opacity: 1;
}

.rc-lang {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    margin-left: clamp(0.75rem, 2vw, 1.25rem);
    padding-left: clamp(0.75rem, 2vw, 1.25rem);
    border-left: 1px solid var(--rc-nav-hairline);
}

.rc-lang-btn {
    padding: 0.1rem 0.15rem;
    border: 0;
    color: var(--rc-nav-soft);
    background: none;
    font-family: var(--rc-nav-ui);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    opacity: 0.52;
    cursor: pointer;
    transition:
        color 0.3s var(--rc-nav-ease),
        opacity 0.3s var(--rc-nav-ease),
        text-decoration-color 0.3s var(--rc-nav-ease);
}

.rc-lang-btn:hover {
    opacity: 1;
    text-decoration-color: var(--rc-nav-hairline);
}

.rc-lang-btn.is-active {
    color: var(--rc-nav-text);
    text-decoration-color: var(--rc-nav-accent);
    opacity: 1;
    cursor: default;
}

.rc-lang-sep {
    color: var(--rc-nav-soft);
    font-size: 0.68rem;
    opacity: 0.35;
}

.rc-cintillo-toggle {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -0.45rem -0.65rem -0.45rem 0;
    padding: 0;
    border: 0;
    color: var(--rc-nav-text);
    background: none;
    cursor: pointer;
}

.rc-burger,
.rc-burger::before,
.rc-burger::after {
    content: '';
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s var(--rc-nav-ease), opacity 0.3s var(--rc-nav-ease);
}

.rc-burger {
    position: relative;
}

.rc-burger::before {
    position: absolute;
    top: -6px;
}

.rc-burger::after {
    position: absolute;
    top: 6px;
}

.rc-cintillo.is-open .rc-burger {
    background: transparent;
}

.rc-cintillo.is-open .rc-burger::before {
    top: 0;
    transform: rotate(45deg);
}

.rc-cintillo.is-open .rc-burger::after {
    top: 0;
    transform: rotate(-45deg);
}

.rc-cintillo :focus-visible {
    outline: 2px solid var(--rc-nav-accent);
    outline-offset: 3px;
}

.rc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html:not([lang="en"]) .rc-cintillo [data-lang="en"] {
    display: none !important;
}

html[lang="en"] .rc-cintillo [data-lang="es"] {
    display: none !important;
}

body.has-rc-cintillo #lang-toggle,
body.has-rc-cintillo .actor-header,
body.has-rc-cintillo .dossier-topbar {
    display: none !important;
}

body.video-modal-open > .rc-cintillo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Dentro de Trabajos seleccionados y de la Galería pertenece al diálogo y
   participa en su navegación por teclado: es el cintillo, y no un botón de
   cierre aislado, el que devuelve al punto anterior de Actor. */
#workPanel .rc-cintillo,
#galleryPanel .rc-cintillo {
    position: sticky;
    z-index: 20;
    flex: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

@media (max-width: 920px) {
    .rc-cintillo-inner {
        gap: 0.7rem;
    }

    .rc-sections {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.05rem;
        margin: 0;
        padding: 1.35rem clamp(1.1rem, 5vw, 2.5rem) 1.65rem;
        border-bottom: 1px solid var(--rc-nav-hairline);
        background: var(--rc-nav-bg-solid);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition:
            opacity 0.28s var(--rc-nav-ease),
            transform 0.35s var(--rc-nav-ease),
            visibility 0.28s;
    }

    .rc-sections a {
        font-size: 0.78rem;
        letter-spacing: 0.15em;
    }

    .rc-sections a[aria-current="page"]::after {
        right: auto;
        bottom: -0.34rem;
        width: 1.7rem;
    }

    .rc-cintillo.is-open .rc-sections {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .rc-lang {
        margin-left: auto;
    }

    .rc-cintillo-toggle {
        display: inline-flex;
    }
}

@media (max-width: 430px) {
    .rc-cintillo-inner {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .rc-brand {
        font-size: 0.98rem;
    }

    .rc-lang {
        margin-left: auto;
        padding-left: 0.75rem;
    }
}

/* Sin JS, los enlaces continúan disponibles en móvil. */
@media (max-width: 920px) {
    html:not(.rc-nav-js) .rc-sections {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    html:not(.rc-nav-js) .rc-cintillo-toggle {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rc-cintillo,
    .rc-cintillo *,
    .rc-cintillo *::before,
    .rc-cintillo *::after {
        transition-duration: 0.01ms !important;
    }
}
