/* =====================================================
   DETALLE DE NOTICIA: DESCRIPCIÓN Y GALERÍA
===================================================== */

/* =====================================================
   LAYOUT DEL DETALLE DE NOTICIA
   El resumen corto se reserva para tarjetas/listados.
===================================================== */

.single-inem_noticia .inem-single-standard__header--news {
    padding-bottom: clamp(24px, 3vw, 40px);
}

.single-inem_noticia .inem-single-standard__body--news {
    padding-top: 0;
}

.single-inem_noticia .inem-single-standard__image {
    margin: 0 0 clamp(24px, 3.5vw, 36px);
}

.single-inem_noticia .inem-single-standard__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}


.inem-news-description {
    margin: 0 0 clamp(28px, 4vw, 48px);
    padding: clamp(22px, 3vw, 32px);
    border-left: 4px solid var(--inem-green);
    border-radius: 0 18px 18px 0;
    background: var(--inem-gray-50);
    color: var(--inem-gray-700);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}

.inem-news-description > :first-child {
    margin-top: 0;
}

.inem-news-description > :last-child {
    margin-bottom: 0;
}

.inem-news-gallery {
    margin-top: clamp(36px, 6vw, 64px);
}

.inem-news-gallery__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.inem-news-gallery__header h2 {
    margin: 0;
    color: var(--inem-blue);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.inem-news-gallery__counter {
    margin: 0;
    color: var(--inem-gray-600);
    font-weight: 700;
    white-space: nowrap;
}

.inem-news-gallery__viewport {
    position: relative;
}

.inem-news-gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 22px;
    background: var(--inem-gray-100);
}

.inem-news-gallery__track::-webkit-scrollbar {
    display: none;
}

.inem-news-gallery__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin: 0;
}

.inem-news-gallery__slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: var(--inem-gray-100);
}

.inem-news-gallery__caption {
    padding: 12px 16px;
    background: var(--inem-white);
    color: var(--inem-gray-600);
    font-size: .92rem;
}

.inem-news-gallery__button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--inem-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    cursor: pointer;
    transform: translateY(-50%);
}

.inem-news-gallery__button:hover:not(:disabled),
.inem-news-gallery__button:focus-visible:not(:disabled) {
    background: var(--inem-green);
    color: var(--inem-white);
}

.inem-news-gallery__button:disabled {
    opacity: .35;
    cursor: default;
}

.inem-news-gallery__button--prev {
    left: 16px;
}

.inem-news-gallery__button--next {
    right: 16px;
}

.inem-news-gallery__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.inem-news-gallery__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--inem-gray-300);
    cursor: pointer;
}

.inem-news-gallery__dot[aria-current="true"] {
    width: 26px;
    background: var(--inem-green);
}

@media (max-width: 680px) {
    .inem-news-gallery__header {
        align-items: start;
    }

    .inem-news-gallery__slide img {
        aspect-ratio: 4 / 3;
    }

    .inem-news-gallery__button {
        width: 40px;
        height: 40px;
    }

    .inem-news-gallery__button--prev {
        left: 8px;
    }

    .inem-news-gallery__button--next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inem-news-gallery__track {
        scroll-behavior: auto;
    }
}
