/* =====================================================
   HOME HERO / SLIDER
===================================================== */

.home .featured-image,
.home .post-image,
.home .page-header-image,
.home .inside-article > .featured-image,
.home .inside-article > .post-image {
    display: none !important;
}

.home #page,
.home .site-content,
.home .content-area,
.home .site-main,
.home .inside-article,
.home .entry-content,
.home .inem-home {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding-top: 0;
}

.home #page {
    padding-inline: 0;
}

.inem-home-slider {
    position: relative;
    width: 100vw;
    max-width: none;
    margin: -108px 0 0 calc(50% - 50vw);
    padding-top: 108px;
    overflow: hidden;
    background: #F9FAFC;
    isolation: isolate;
}

.inem-home-slider__track {
    position: relative;
    width: 100%;
    aspect-ratio: 1280 / 640;
    min-height: 520px;
    max-height: 780px;
    background: #F9FAFC;
}

.inem-home-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .65s ease, visibility .65s ease;
}

.inem-home-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.inem-home-slide__image {
    display: block;
    width: 100%;
    height: 100%;
}

/* Piezas gráficas con texto integrado: nunca se recortan. */
.inem-home-slide--graphic .inem-home-slide__image {
    object-fit: contain;
    object-position: center;
    background: #F9FAFC;
}

/* Slides fotográficos con contenido: llenan todo el hero. */
.inem-home-slide--with-copy .inem-home-slide__image {
    object-fit: cover;
    object-position: center;
}

.inem-home-slide__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .44) 100%);
}

.inem-home-slide__content-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(72px, 10vw, 140px) 24px 92px;
    text-align: center;
}

.inem-home-slide__content {
    width: min(860px, 100%);
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .34);
}

.inem-home-slide__content h1 {
    margin: 0 0 18px;
    color: inherit;
    font-size: clamp(2.2rem, 5vw, 4.9rem);
    line-height: 1.02;
    font-weight: 900;
}

.inem-home-slide__content p {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.55;
}

.inem-home-slide__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 26px;
    border-radius: 999px;
    background: var(--inem-white, #fff);
    color: var(--inem-green-dark, #07502f);
    text-decoration: none;
    text-shadow: none;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    transition: transform .2s ease, background-color .2s ease;
}

.inem-home-slide__button:hover,
.inem-home-slide__button:focus-visible {
    transform: translateY(-2px);
    background: var(--inem-yellow, #f3c623);
    color: var(--inem-green-dark, #07502f);
}

.inem-home-slider__arrow {
    position: absolute;
    z-index: 5;
    top: calc(50% + 54px);
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    background: rgba(5, 52, 31, .62);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
    transition: background-color .2s ease, transform .2s ease;
}

.inem-home-slider__arrow span {
    display: block;
    margin-top: -4px;
    font-size: 2.5rem;
    line-height: 1;
}

.inem-home-slider__arrow:hover,
.inem-home-slider__arrow:focus-visible {
    background: rgba(5, 80, 46, .94);
}

.inem-home-slider__arrow--prev { left: 22px; }
.inem-home-slider__arrow--next { right: 22px; }

.inem-home-slider__dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .28);
    backdrop-filter: blur(4px);
}

.inem-home-slider__dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    min-height: 11px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.inem-home-slider__dot.is-active {
    background: #fff;
}

.inem-home-slider--fallback .inem-home-slide {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-height: 0;
    aspect-ratio: 1280 / 640;
}

@media (max-width: 900px) {
    .inem-home-slider {
        margin-top: -78px;
        padding-top: 78px;
    }

    .inem-home-slider__track {
        aspect-ratio: 1280 / 720;
        min-height: 430px;
        max-height: none;
    }

    .inem-home-slider__arrow {
        top: calc(50% + 39px);
        width: 42px;
        height: 42px;
    }

    .inem-home-slider__arrow--prev { left: 12px; }
    .inem-home-slider__arrow--next { right: 12px; }

    .inem-home-slide__content-wrap {
        padding: 78px 54px 78px;
    }
}

@media (max-width: 600px) {
    .inem-home-slider__track {
        aspect-ratio: auto;
        min-height: 360px;
    }

    .inem-home-slide--graphic .inem-home-slide__image {
        object-fit: contain;
    }

    .inem-home-slide__content-wrap {
        padding: 68px 48px 68px;
    }

    .inem-home-slide__content h1 {
        font-size: clamp(1.9rem, 9vw, 3rem);
    }

    .inem-home-slider__arrow {
        width: 38px;
        height: 38px;
    }

    .inem-home-slider__arrow span {
        font-size: 2rem;
    }

    .inem-home-slider__dots {
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inem-home-slide,
    .inem-home-slide__button,
    .inem-home-slider__arrow {
        transition: none;
    }
}
