/* Contenedor principal del slider */
.customslider-wrapper {
    max-width: 100%;
    width: 100%;
    height: 500px;
    margin: 30px auto 20px auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-top: 0;
}


/* Contenedor del carrusel */
.customslider-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide individual */
.customslider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
    pointer-events: none;
}

.customslider-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

/* Imagen del slide */
.customslider-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.customslider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: auto;
}

/* Contenedor del texto sobre la imagen */
.customslider-text {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
}

/* Título del slide */
.customslider-text h2 {
    font-size: 28px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    margin: 0 0 10px;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Enlace del título */
.customslider-text h2 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.customslider-text h2 a:hover {
    color: #c7ea46;
}

/* Extracto del slide */
.customslider-text p {
    font-size: 14px;
    line-height: 1.5;
}

/* Bullets de navegación */
.customslider-bullets {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.customslider-bullet {
    width: 12px;
    height: 12px;
    border: 2px solid #c7ea46;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.customslider-bullet.active,
.customslider-bullet:hover {
    background-color: #c7ea46;
}

/* Flechas de navegación */
.customslider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #fff;
    background-color: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.customslider-arrow:hover {
    background-color: rgba(0,0,0,0.8);
}

.customslider-arrow.prev {
    left: 15px;
}

.customslider-arrow.next {
    right: 15px;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .customslider-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        padding-top: 30px;
    }

    .customslider-slide {
        height: 100%;
    }

    .customslider-image,
    .customslider-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .customslider-text h2 {
        font-size: 20px;
    }

    .customslider-text p {
        font-size: 13px;
    }
}

/* Ajuste solo para dispositivos móviles */
@media (max-width: 768px) {
  .customslider-wrapper {
    margin-top: 110px; /* Asegura que no choque con el menú fijo */
  }
}
