.carousel {
    position: relative;
    width: 100%;
    height: 700px; 
    overflow: hidden;
    z-index: 1; 
}

.slide-radio {
    display: none;
}

.slides {
    display: flex;
    height: 100%;
    transition: margin-left 0.5s ease-in-out !important;
}

.slide {
    height: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65); 
    z-index: 1;
}

.slide-content.text-center {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.slide-subtitle {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 1px;
}

.slide-title {
    color: #ffffff;
    font-size: 3.8rem; 
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 35px;
}

.slide-btn {
    display: inline-block;
    background-color: var(--crema);
    color: var(--texto-oscuro);
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
    text-decoration: none;
    border-radius: 4px; 
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slide-btn:hover {
    background-color: var(--blanco);
    transform: translateY(-2px);
}

.arrow {
    display: none; 
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem; 
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: color 0.3s ease;
}

.arrow:hover { 
    color: #ffffff; 
}

.arrow-prev { left: 30px; }
.arrow-next { right: 30px; }

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .carousel { height: 550px; }
    .slide-title { font-size: 2.8rem; margin-bottom: 25px; }
    .slide-subtitle { font-size: 1.1rem; }
    .arrow-prev { left: 15px; }
    .arrow-next { right: 15px; }
    .arrow { font-size: 2rem; }
}

@media (max-width: 768px) {
    .carousel { height: 480px; }
    .slide-title { font-size: 2.2rem; margin-bottom: 20px; }
    .slide-subtitle { font-size: 1rem; margin-bottom: 10px; }
    .slide-btn { padding: 12px 28px; font-size: 0.95rem; }
    .slide-desc { font-size: 0.95rem !important; margin-bottom: 15px !important; }
    
    .arrow { font-size: 1.8rem; padding: 5px; }
    .arrow-prev { left: 10px; }
    .arrow-next { right: 10px; }
}

@media (max-width: 480px) {
    .carousel { height: 420px; }
    .slide-content.text-center { padding: 0 15px; }
    .slide-title { font-size: 1.8rem; }
    .slide-subtitle { font-size: 0.9rem; }
    .slide-btn { padding: 10px 24px; font-size: 0.9rem; }
    
    .arrow { font-size: 1.5rem; background: rgba(0,0,0,0.1); border-radius: 50%; }
    .arrow-prev { left: 5px; }
    .arrow-next { right: 5px; }
}