:root {
    --navy: #07285F;
    --navy-2: #081B49;
    --text: #EAF0FF;
    --muted: #C7D4FF;
    --accent: #F4B400;
    --accent-2: #4163C3;
    --radius: 20px;
    --maxw: 1100px;
}

.events-framed {
    background: linear-gradient(180deg, var(--navy), var(--navy-2));
    color: var(--text);
    padding: 0;
}

.carousel {
    position: relative;
    isolation: isolate
}

.carousel__viewport {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100vw;
    height: clamp(420px, 68vh, 760px);
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    display: grid;
    place-items: center
}

.slide__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(.6) saturate(115%);
    transform: scale(1.08);
}

.slide__inner {
    position: relative;
    z-index: 1;
    width: min(92vw, var(--maxw));
    display: grid;
    gap: 14px;
    grid-template-rows: 1fr auto;
    padding-inline: 16px;
}

/* Marco más delicado */
.poster {
    margin: 0;
    height: clamp(280px, 52vh, 560px);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(10, 15, 40, .35);
    display: grid;
    place-items: center;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.poster img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Caption más limpio */
.caption {
    margin: 0 auto;
    padding: 10px 14px;
    background: rgba(8, 27, 73, .55);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    backdrop-filter: blur(4px) saturate(130%);
    width: max-content;
    max-width: min(92vw, var(--maxw));
}

.caption h3 {
    margin: 0 0 4px;
    font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem);
    font-weight: 900
}

.caption p {
    margin: 0;
    font-size: .98rem;
    color: var(--muted)
}

.caption a {
    color: var(--text);
    text-decoration: none
}

.caption a:hover {
    text-decoration: underline
}

/* Flechas: más sutiles (vidrio) */
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    z-index: 2;
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(6px) saturate(140%);
    transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .2s;
    opacity: .9;
}

.carousel__btn:hover {
    transform: translateY(-50%) scale(1.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .1))
}

.carousel__btn:active {
    transform: translateY(-50%) scale(.98)
}

.carousel__btn svg {
    width: 22px;
    height: 22px
}

.carousel__btn.prev {
    left: 14px
}

.carousel__btn.next {
    right: 14px
}

/* Dots más finos (el activo se alarga) */
.carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    gap: 8px;
    justify-content: center;
    z-index: 2;
}

.carousel__dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, .35);
    transition: width .2s ease, background .2s ease;
}

.carousel__dots button[aria-current="true"] {
    width: 28px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .carousel__viewport {
        scroll-behavior: auto
    }
}