/* =========================================================
   ORIGEN ACTORS — SOBRE NOSOTROS PÚBLICO
   Página independiente. No modifica estilos de otras páginas.
   ========================================================= */

html:has(body.pagina-sobre-nosotros) {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body.pagina-sobre-nosotros {
    background: var(--negro);
    transform: none;
    transition: opacity 300ms ease;
}

.pagina-sobre-nosotros.sobre-nosotros-lightbox-abierto {
    overflow: hidden;
    transform: none;
    transition: opacity 300ms ease;
}

.sobre-nosotros-publico {
    min-height: calc(100vh - 74px);
    padding-top: calc(var(--altura-cabecera) + 34px);
    padding-bottom: 64px;
}

.sobre-nosotros-publico__cabecera {
    margin-bottom: 28px;
}

.sobre-nosotros-publico__cabecera h1 {
    display: inline-flex;
    align-items: center;
    gap: 0.38em;
    font-family: var(--fuente-titulares);
    font-size: clamp(1.9rem, 3vw, 3rem);
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.sobre-nosotros-publico__cabecera h1::before {
    content: "✦";
    flex: 0 0 1em;
    width: 1em;
    display: inline-grid;
    place-items: center;
    color: var(--verde);
    font-size: 0.74em;
    line-height: 1;
}

.sobre-nosotros-publico__contenido[hidden],
.sobre-nosotros-publico__zona[hidden],
.sobre-nosotros-lightbox[hidden] {
    display: none !important;
}

.sobre-nosotros-publico__contenido {
    margin-inline: calc(44px + clamp(8px, 1vw, 16px));
}

.sobre-nosotros-publico__zona {
    --sobre-nosotros-gap: clamp(26px, 3.2vw, 44px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sobre-nosotros-gap);
}

.sobre-nosotros-publico__zona:not([hidden]) +
.sobre-nosotros-publico__zona:not([hidden]) {
    margin-top: clamp(34px, 5vw, 64px);
}

.sobre-nosotros-publico__bloque {
    width: 100%;
    min-width: 0;
    align-self: center;
}

/* =========================================================
   TEXTO — MISMO RENDERIZADO BASE QUE FICHA DE NOTICIA
   El bloque se centra, pero no se fuerza la alineación interna.
   ========================================================= */

.sobre-nosotros-publico__bloque--texto {
    margin-inline: auto;
}

.sobre-nosotros-texto {
    width: 100%;
    margin-inline: auto;
    color: #ffffff;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: normal;
}

.sobre-nosotros-texto > :first-child {
    margin-top: 0;
}

.sobre-nosotros-texto > :last-child {
    margin-bottom: 0;
}

.sobre-nosotros-texto div,
.sobre-nosotros-texto p {
    min-height: 1em;
}

.sobre-nosotros-texto a {
    overflow-wrap: anywhere;
}

/* =========================================================
   ENLACES
   ========================================================= */

.sobre-nosotros-enlaces {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sobre-nosotros-enlaces__item {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--verde);
    border: 1px solid var(--borde);
    background: rgba(255, 255, 255, 0.015);
    transition:
        color var(--transicion),
        border-color var(--transicion),
        transform var(--transicion),
        background var(--transicion);
}

.sobre-nosotros-enlaces__item:hover,
.sobre-nosotros-enlaces__item:focus-visible {
    color: var(--blanco);
    border-color: var(--verde);
    background: rgba(183, 255, 0, 0.06);
    transform: translateY(-3px);
}

.sobre-nosotros-enlaces__item svg {
    width: 34px;
    height: 34px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.sobre-nosotros-enlaces__item svg .relleno {
    fill: currentColor;
    stroke: none;
}

.sobre-nosotros-enlaces__item svg .recorte {
    fill: var(--negro);
    stroke: none;
}

.sobre-nosotros-enlaces__item svg text {
    fill: currentColor;
    stroke: none;
}

.sobre-nosotros-enlaces__item svg .wikipedia {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
}

.sobre-nosotros-enlaces__item svg .imdb {
    fill: var(--negro);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 900;
}

/* =========================================================
   FOTOGRAFÍAS
   Tres visibles en escritorio. Una visible en móvil.
   Flechas e indicadores solo si existen más fotos que huecos.
   ========================================================= */

.sobre-nosotros-fotos {
    --sobre-nosotros-fotos-gap: clamp(22px, 2.4vw, 40px);
    width: 100%;
}

.sobre-nosotros-fotos__estructura {
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: clamp(8px, 1vw, 16px);
}

.sobre-nosotros-fotos--sin-navegacion .sobre-nosotros-fotos__estructura {
    grid-template-columns: minmax(0, 1fr);
}

.sobre-nosotros-fotos__visor {
    min-width: 0;
    overflow: hidden;
}

.sobre-nosotros-fotos__fila {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sobre-nosotros-fotos-gap);
}

.sobre-nosotros-fotos__hueco {
    flex: 0 1 calc((100% - (2 * var(--sobre-nosotros-fotos-gap))) / 3);
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sobre-nosotros-fotos__marco {
    position: relative;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.sobre-nosotros-fotos__imagen {
    position: absolute;
    display: block;
    max-width: none;
    max-height: none;
    object-fit: fill;
    object-position: center;
    transform-origin: center center;
    user-select: none;
}

.sobre-nosotros-fotos__flecha,
.sobre-nosotros-lightbox__flecha {
    position: relative;
    width: 44px;
    height: 70px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--verde);
    cursor: pointer;
    transition:
        opacity var(--transicion),
        transform var(--transicion),
        color var(--transicion);
}

.sobre-nosotros-fotos__flecha::before,
.sobre-nosotros-lightbox__flecha::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.sobre-nosotros-fotos__flecha--izquierda::before,
.sobre-nosotros-lightbox__flecha--izquierda::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.sobre-nosotros-fotos__flecha--derecha::before,
.sobre-nosotros-lightbox__flecha--derecha::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.sobre-nosotros-fotos__flecha:hover:not(:disabled),
.sobre-nosotros-fotos__flecha:focus-visible:not(:disabled),
.sobre-nosotros-lightbox__flecha:hover:not(:disabled),
.sobre-nosotros-lightbox__flecha:focus-visible:not(:disabled) {
    color: var(--blanco);
    transform: scale(1.1);
}

.sobre-nosotros-fotos__flecha:disabled,
.sobre-nosotros-lightbox__flecha:disabled {
    opacity: 0.2;
    cursor: default;
}

.sobre-nosotros-fotos__flecha[hidden],
.sobre-nosotros-lightbox__flecha[hidden] {
    display: none !important;
}

.sobre-nosotros-fotos__indicadores {
    min-height: 3px;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.sobre-nosotros-fotos__indicadores:empty,
.sobre-nosotros-fotos__indicadores[hidden] {
    display: none !important;
}

.sobre-nosotros-fotos__indicador {
    width: 28px;
    height: 3px;
    padding: 0;
    border: 0;
    background: #343434;
    cursor: pointer;
    transition:
        width var(--transicion),
        background var(--transicion);
}

.sobre-nosotros-fotos__indicador--activo {
    width: 46px;
    background: var(--verde);
}

/* =========================================================
   LIGHTBOX — MISMA MECÁNICA VISUAL QUE FICHA DE NOTICIA
   ========================================================= */

.sobre-nosotros-lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.sobre-nosotros-lightbox__fondo {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(6px);
}

.sobre-nosotros-lightbox__ventana {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: calc(100vw - 32px);
    height: auto;
    max-height: calc(100vh - 32px);
    display: grid;
    grid-template-columns: 54px auto 54px;
    align-items: center;
    gap: 12px;
}

.sobre-nosotros-lightbox__imagen-wrap {
    min-width: 0;
    height: auto;
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 10px;
    position: relative;
}

.sobre-nosotros-lightbox__marco {
    position: relative;
    overflow: hidden;
    background: #050505;
    box-shadow: 0 0 42px rgba(0, 0, 0, 0.65);
}

.sobre-nosotros-lightbox__imagen {
    position: absolute;
    display: block;
    max-width: none;
    max-height: none;
    object-fit: fill;
    object-position: center;
    transform-origin: center center;
    user-select: none;
}

.sobre-nosotros-lightbox__cerrar {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--borde);
    background: rgba(0, 0, 0, 0.62);
    color: var(--blanco);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition:
        color var(--transicion),
        border-color var(--transicion),
        background var(--transicion);
}

.sobre-nosotros-lightbox__cerrar:hover,
.sobre-nosotros-lightbox__cerrar:focus-visible {
    color: var(--verde);
    border-color: var(--verde);
    background: var(--negro);
}

.sobre-nosotros-lightbox__contador {
    position: static;
    justify-self: center;
    padding: 4px 7px;
    background: rgba(0, 0, 0, 0.62);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--fuente-titulares);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.sobre-nosotros-lightbox__contador[hidden] {
    display: none !important;
}

@media (min-width: 761px) {
    .sobre-nosotros-lightbox__ventana:has(.sobre-nosotros-lightbox__flecha[hidden]) {
        grid-template-columns: auto;
        justify-items: center;
        gap: 0;
    }

    .sobre-nosotros-lightbox__ventana:has(.sobre-nosotros-lightbox__flecha[hidden])
    .sobre-nosotros-lightbox__cerrar {
        position: fixed;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 760px) {
    .sobre-nosotros-publico {
        padding-top: calc(var(--altura-cabecera) + 24px);
        padding-bottom: 48px;
    }

    .sobre-nosotros-publico__cabecera {
        margin-bottom: 28px;
    }

    .sobre-nosotros-publico__contenido {
        margin-inline: 41px;
    }

    .sobre-nosotros-publico__zona {
        --sobre-nosotros-gap: 20px;
    }

    .sobre-nosotros-publico__zona:not([hidden]) +
    .sobre-nosotros-publico__zona:not([hidden]) {
        margin-top: 28px;
    }

    .sobre-nosotros-fotos {
        --sobre-nosotros-fotos-gap: 0px;
    }

    .sobre-nosotros-fotos__estructura {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 4px;
    }

    .sobre-nosotros-fotos--sin-navegacion .sobre-nosotros-fotos__estructura {
        grid-template-columns: minmax(0, 1fr);
    }

    .sobre-nosotros-fotos__hueco {
        flex-basis: 100%;
    }

    .sobre-nosotros-fotos__flecha {
        width: 34px;
        height: 58px;
    }

    .sobre-nosotros-fotos__flecha::before {
        width: 13px;
        height: 13px;
        border-width: 2px 2px 0 0;
    }

    .sobre-nosotros-lightbox {
        padding: 12px;
    }

    .sobre-nosotros-lightbox__ventana {
        width: 100%;
        height: 94vh;
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 4px;
    }

    .sobre-nosotros-lightbox__flecha {
        width: 34px;
        height: 58px;
    }

    .sobre-nosotros-lightbox__cerrar {
        width: 40px;
        height: 40px;
        font-size: 1.7rem;
    }
}

@media (max-width: 560px) {
    .sobre-nosotros-enlaces__item {
        width: 44px;
        height: 44px;
    }

    .sobre-nosotros-enlaces__item svg {
        width: 31px;
        height: 31px;
    }

    .sobre-nosotros-lightbox__cerrar {
        top: 4px;
        right: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sobre-nosotros-enlaces__item,
    .sobre-nosotros-fotos__flecha,
    .sobre-nosotros-fotos__indicador,
    .sobre-nosotros-lightbox__flecha {
        transition-duration: 0.01ms !important;
    }
}
