/* Contenedor principal del carrusel
   - width: 100% para ocupar todo el ancho disponible
   - height: altura fija de 400px
   - margin: 0 para eliminar espacios laterales
*/
.services-carousel {
    position: relative;
    width: 100vw;
    height: 500px;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    box-sizing: border-box;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .services-carousel {
        height: 450px;
    }
    
    .text-overlay {
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        padding: 2rem 1.5rem;
        background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 100%);
    }

    .text-overlay h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .text-overlay p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .services-carousel {
        height: 400px;
    }
    
    .text-overlay {
        padding: 1.5rem 1rem;
    }
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.text-overlay {
    position: absolute;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    color: white;
    bottom: 10%;
    left: 10%;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    border-left: 4px solid #007bff;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.text-overlay h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.text-overlay p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 90%;
}

.text-overlay .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.text-overlay .btn:hover {
    background-color: #0056b3;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.indicator:hover {
    opacity: 1;
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    opacity: 1;
    transform: scale(1.2);
}

/* Asegurarse de que las secciones dentro del carrusel mantengan su estilo */
.carousel-item .section {
    margin: 0;
    width: 100%;
}
