/* Fondo de portada y contraste del contenido. */
.homehero {
    background: radial-gradient(ellipse at 82% 18%, #15243a 0%, transparent 66%), #0b101b;
}

.homehero .homegrid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(24px, 4vw, 56px);
}

.homehero-copy {
    min-width: 0;
    container-type: inline-size;
}

.homehero .homehero-title {
    font-size: clamp(1.65rem, 10.3cqi, 3.7rem);
    font-weight: 900;
    line-height: 1.04;
    font-style: italic;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.homehero-title span,
.homehero-title em {
    display: block;
}

.homehero .homehero-title em {
    color: #f12f48;
    font-style: inherit;
}

.lens-gallery.homevisual {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
    aspect-ratio: 589 / 570;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.lens-gallery__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: saturate(0.48) brightness(0.80) contrast(0.94);
    /* Difuminar los bordes del marco sobre el fondo. */
    -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, #000c 74%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, #000 58%, #000c 74%, transparent 100%);
}

/* Mantener la apertura circular alineada con el marco original. */
.lens-gallery__aperture {
    position: absolute;
    z-index: 1;
    left: 49.1%;
    top: 50.7%;
    width: 70.4%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    background: #080e19;
}

.lens-gallery__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.lens-gallery__photo.is-entering {
    animation: gallery-enter 450ms ease-out;
}

@keyframes gallery-enter {
    from { opacity: 0.65; }
    to { opacity: 1; }
}

/* Control accesible sin ocupar espacio sobre la fotografía. */
.lens-gallery__toggle {
    position: absolute;
    z-index: 2;
    right: 8%;
    bottom: 6%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: #080e19cc;
    border: 1px solid #ffffff35;
    border-radius: 50%;
    cursor: pointer;
}

.lens-gallery__toggle[hidden] {
    display: none;
}

.lens-gallery__toggle:hover {
    background: #080e19;
    border-color: #ffffff70;
}

.lens-gallery__toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.lens-gallery__toggle svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.lens-gallery__toggle .icon-play,
.lens-gallery__toggle[data-paused="true"] .icon-pause {
    display: none;
}

.lens-gallery__toggle[data-paused="true"] .icon-play {
    display: block;
}

@media (max-width: 760px) {
    .homehero .homegrid {
        grid-template-columns: minmax(0, 1fr);
    }

    .lens-gallery.homevisual {
        max-width: 460px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lens-gallery__photo.is-entering { animation: none; }
}
