/* Global Fixes */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Billboard Redesign */
.banner-two {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 80vh; /* Minimum height based on viewport */
}

/* Info Carousel Height */
#infoCarousel {
    min-height: 60vh;
}

#infoCarousel .carousel-inner {
    min-height: 60vh;
}

#infoCarousel .carousel-item {
    min-height: 60vh;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

#infoCarousel .carousel-item.active,
#infoCarousel .carousel-item-next,
#infoCarousel .carousel-item-prev {
    display: flex;
}



.banner-two::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.banner-two .container {
    position: relative;
    z-index: 2;
}

.banner-two-txt span {
    font-size: 18px;
    font-weight: 600;
    color: #ffc107; /* Gold/Yellow accent */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.banner-two-txt h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-two-txt .btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Updated "Más info" button color */
.banner-two-txt .btn-info {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    backdrop-filter: blur(5px);
}

.banner-two-txt .btn-info:hover {
    background-color: #fff;
    border-color: #fff;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Carousel Controls */
.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10; /* Ensure controls are clickable */
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Services Button Centering & Styling */
.banner-two .row .col-lg-12.text-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.banner-two .btn-primary {
    background: linear-gradient(45deg, #ab2328, #d93036);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(171, 35, 40, 0.4);
    transition: all 0.3s ease;
    margin: 0 auto; /* Ensure centering */
    display: inline-block;
}

.banner-two .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(171, 35, 40, 0.6);
}

/* Modal Redesign & Z-Index Fix */
.modal-backdrop {
    z-index: 10000000 !important; /* Higher than header's 999999 */
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal {
    z-index: 10000001 !important; /* Higher than backdrop */
}

.modal-dialog {
    max-width: 650px;
    margin: 2rem auto;
}

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #1a1a1a; /* Dark charcoal */
    border-bottom: 1px solid #333;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
}

.modal-body {
    padding: 40px 30px;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    background-color: #fcfcfc;
}

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.8;
    padding: 10px;
    margin: 0;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    box-sizing: content-box;
}

.btn-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
        max-width: 95%;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    /* Carousel responsive on mobile */
    .banner-two {
        min-height: 60vh;
    }
    
    #infoCarousel,
    #infoCarousel .carousel-inner,
    #infoCarousel .carousel-item {
        min-height: 45vh;
    }
    
    .banner-two-txt h1 {
        font-size: 2rem;
    }
    
    .banner-two-txt span {
        font-size: 14px;
    }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 991px) {
    .banner-two {
        min-height: 70vh;
    }
    
    #infoCarousel,
    #infoCarousel .carousel-inner,
    #infoCarousel .carousel-item {
        min-height: 50vh;
    }
    
    .banner-two-txt h1 {
        font-size: 3rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .banner-two {
        min-height: 85vh;
    }
    
    #infoCarousel,
    #infoCarousel .carousel-inner,
    #infoCarousel .carousel-item {
        min-height: 65vh;
    }
}
