/* ================================================
   COTAPAREDES — Homepage Slider Fullscreen
   Replica el diseño original: una obra a la vez,
   flechas laterales, título centrado abajo + CTA
   ================================================ */

body.home {
    overflow-x: hidden;
}

/* ============ SLIDER CONTAINER ============ */
.home-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

/* ============ SLIDES ============ */
.home-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 0;
}

.home-slider__slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Imagen fullscreen */
.home-slider__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay degradado (superior e inferior para legibilidad de textos) */
.home-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.05) 18%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.05) 80%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

/* ============ CONTENIDO (título + CTA) ============ */
.home-slider__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: clamp(50px, 8vh, 90px);
    text-align: center;
}

.home-slider__title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: #fff;
    margin: 0 0 16px;
}

.home-slider__cta {
    display: inline-block;
    padding: 3px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.3px;
    text-transform: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 9999px;
}

.home-slider__cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ============ FLECHAS DE NAVEGACIÓN ============ */
.home-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.home-slider__arrow--prev {
    left: clamp(16px, 3vw, 32px);
}

.home-slider__arrow--next {
    right: clamp(16px, 3vw, 32px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .home-slider__arrow {
        width: 36px;
        height: 36px;
    }

    .home-slider__arrow svg {
        width: 16px;
        height: 16px;
    }
}
