.spotlight {
    position: relative;
    width: 100vw;
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.spotlight-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1rem solid var(--base-500);
    border-radius: 3rem;
    z-index: 2;
}

.spotlight-outline::after {
    content: "";
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    border: 1rem solid var(--base-500);
    z-index: 1;
}

.spotlight-inner {
    position: relative;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    overflow: hidden;
    border-radius: 2rem;
    background-color: var(--base-450);
}

.spotlight-intro-text-wrapper {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
}

.spotlight-intro-text {
    flex: 1;
    position: relative;
    will-change: transform;
    color: var(--base-300);
}

.spotlight-intro-text p {
    font-size: 2.5rem;
}

.spotlight-intro-text:nth-child(1) {
    display: flex;
    justify-content: flex-end;
}

.spotlight-bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: scale(0);
    will-change: transform;
    border-radius: 2rem;
    opacity: 0.65;
}

.spotlight-bg-img img {
    transform: scale(1.5);
    will-change: transform;
}

.spotlight-titles-container {
    position: absolute;
    top: 0;
    left: 15vw;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(50svh 0px,
            0px 50%,
            50svh 100%,
            100% calc(100% + 100svh),
            100% -100svh);
    --before-opacity: 0;
    --after-opacity: 0;
}

.spotlight-titles-container::before,
.spotlight-titles-container::after {
    content: "";
    position: absolute;
    width: 100svh;
    height: 2px;
    background: var(--base-100);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.spotlight-titles-container::before {
    top: 0;
    left: 0;
    transform: rotate(-45deg) translate(-7rem);
    opacity: var(--before-opacity);
}

.spotlight-titles-container::after {
    bottom: 0;
    left: 0;
    transform: rotate(45deg) translate(-7rem);
    opacity: var(--after-opacity);
}

.spotlight-titles {
    position: relative;
    left: 15%;
    width: 75%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    transform: translateY(100%);
    z-index: 2;
}

.spotlight-titles h1 {
    color: var(--base-100);
    opacity: 0.35;
    transition: opacity 0.4s ease, text-shadow 0.4s ease, color 0.4s ease;
    font-size: 4rem;
    font-weight: 500;
    line-height: 1;
}

.spotlight-titles h1.active {
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
}

.spotlight-images {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    min-width: 300px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.spotlight-img {
    position: absolute;
    width: 200px;
    height: 150px;
    will-change: transform;
    border-radius: 1rem;
    overflow: hidden;
}

.spotlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-header {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--base-100);
    transition: opacity 0.3s ease;
    z-index: 2;
    opacity: 0;
}

.spotlight-header p {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
    color: var(--base-100);
}

@media (max-width: 1000px) {
    /* --- MOBILE TAP MODE --- */

    /* Hide floating arc images on mobile */
    .spotlight-images {
        display: none;
    }

    /* Show bg image at full opacity in mobile, overlay handles the darkening */
    .spotlight-bg-img {
        opacity: 1;
    }

    /* --- Tap hint bar: bottom of section --- */
    .spotlight-tap-hint {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: rgba(255, 255, 255, 0.75);
        z-index: 5;
        pointer-events: none;
        white-space: nowrap;
    }

    .spotlight-tap-hint span {
        font-family: 'Instrument Sans', sans-serif;
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-weight: 500;
    }

    .spotlight-tap-hint svg {
        animation: tap-bounce 1.1s ease-in-out infinite;
        flex-shrink: 0;
    }

    @keyframes tap-bounce {

        0%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-5px);
        }

        60% {
            transform: translateY(-2px);
        }
    }

    /* Dark overlay on top of bg image, below text — like Zona Empresarial */
    .spotlight-inner::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(14, 13, 13, 0.60);
        z-index: 2;
        border-radius: 2rem;
        pointer-events: none;
    }

    /* Titles container: full screen, left-aligned, above overlay */
    .spotlight-titles-container {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        clip-path: none;
        background: transparent;
        z-index: 3;
        pointer-events: auto;
    }

    .spotlight-titles-container::before,
    .spotlight-titles-container::after {
        display: none;
    }

    /* Static layout: flex column distributing items across the full height */
    .spotlight-titles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 0;
        padding: 5rem 2rem 3rem 2rem;
        transform: none !important;
        /* override JS-driven translateY */
        box-sizing: border-box;
    }

    .spotlight-titles h1 {
        font-size: 2.2rem;
        cursor: pointer;
        padding: 0.3rem 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        /* Stronger text shadow so items are readable on any bg */
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8), 0 2px 16px rgba(0, 0, 0, 0.6);
    }

    .spotlight-titles h1.active {
        opacity: 1;
        color: #ffffff;
        text-shadow:
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 40px rgba(255, 255, 255, 0.25),
            0 2px 10px rgba(0, 0, 0, 0.8);
    }

    /* Header label: top right, above overlay */
    .spotlight-header {
        top: 1.5rem;
        right: 5vw;
        left: auto;
        transform: none;
        text-align: right;
        z-index: 4;
    }

    .spotlight-header p {
        font-family: 'Instrument Sans', sans-serif;
        font-size: 0.85rem;
        letter-spacing: 0.15em;
        color: #ffffff;
        text-transform: uppercase;
        font-weight: 700;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
    }

    .spotlight-intro-text p {
        font-size: 1.5rem;
    }
}
