body {
    font-family: 'Inter', sans-serif;
    color: #4A4A4A;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #4A4A4A;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 2.5rem;
}

p {
    line-height: 1.8;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
}

.hero-section {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.search-box {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: -40px;
    position: relative;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.solution-item {
    margin-top: 5rem;
    margin-bottom: 4rem;
}

.solution-item .col-md-6 {
    padding-left: 0;
    padding-right: 0;
}

.solution-item p {
    text-align: left;
}

.solution-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.solution-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.solution-card .row {
    display: flex;
    flex-wrap: wrap;
}

.solution-card .col-md-6 {
    display: flex;
}

.solution-content {
    padding: 4rem;
    flex: 1;
}

.solution-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.solution-content p {
    color: #6B7280;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: #CC0000;
    border-color: #CC0000;
    font-size: 16px;
    padding: 15px 50px;
    border-radius: 4px;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #990000;
    border-color: #990000;
}

.testimonial-card {
    background: white;
    border-radius: 32px;
    padding: 5rem 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 auto 2rem;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.testimonial-avatar::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(184, 175, 166, 0.3);
}

.carousel-inner {
    overflow: visible;
    padding: 3rem 0;
}

#testimonialsCarousel .carousel-item {
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

#testimonialsCarousel .carousel-item-next:not(.carousel-item-start),
#testimonialsCarousel .carousel-item.active.carousel-item-end {
    transform: translateX(100%);
    opacity: 0;
}

#testimonialsCarousel .carousel-item-prev:not(.carousel-item-end),
#testimonialsCarousel .carousel-item.active.carousel-item-start {
    transform: translateX(-100%);
    opacity: 0;
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 1;
}

#testimonialsCarousel .carousel-control-prev {
    left: -80px;
}

#testimonialsCarousel .carousel-control-next {
    right: -80px;
}

#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
    filter: invert(1) brightness(0.3);
}

.bg-dark-blue {
    background-color: #202040;
}

.bg-dark-blue p {
    font-size: 14px;
}

.bg-navy {
    background-color: #1A1A38;
}

.solution-image {
    background: #e0e0e0;
    width: 100%;
    height: 400px;
    border-radius: 0;
    position: relative;
}

@media (min-width: 768px) {
    .solution-card .col-md-6 {
        align-self: stretch;
    }
    .solution-image {
        height: 100%;
    }
}

.solution-image::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    pointer-events: none;
}

.solution-item:nth-child(odd) .solution-image::after {
    right: 0;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
}

.solution-item:nth-child(even) .solution-image::after {
    left: 0;
    background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,1));
}

.property-card {
    position: relative;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    display: block;
    text-decoration: none;
}

#portafolio h2 {
    margin-bottom: 3rem;
}

.property-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover img {
    transform: scale(1.1);
}

.property-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    pointer-events: none;
}

.property-overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card:hover .property-overlay-hover {
    opacity: 1;
}

.footer-cta {
    background: #f8f9fa;
    padding: 4rem 0;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.container {
    max-width: 1140px !important;
    padding-left: 15px;
    padding-right: 15px;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #CC0000;
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

#backToTop.show {
    opacity: 1;
    transform: translateY(0);
}

#backToTop:hover {
    background-color: #990000;
}

.navbar-brand img {
    border-radius: 4px;
}

.navbar-nav {
    gap: 25px;
}

.navbar .nav-link, .navbar .dropdown-toggle {
    font-family: 'Inter', sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#stickySearchBar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 20px;
    z-index: 998;
    transition: bottom 0.5s ease, opacity 0.5s ease;
    max-width: 900px;
    width: 90%;
    opacity: 0;
}

#stickySearchBar.show {
    bottom: 30px;
    opacity: 1;
}

#searchOverlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#searchOverlay.show {
    opacity: 1;
}

#stickySearchBar .btn {
    padding: 0.3rem 2rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Section */
.contact-section {
    display: flex;
    position: relative;
    padding: 2rem 0;
}

.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.contact-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    z-index: 2;
}

.contact-content {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .solution-image {
        display: none;
    }
    
    .solution-card .col-md-6 {
        width: 100%;
    }
    
    .contact-section {
        flex-direction: column;
        background-attachment: scroll !important;
    }
    
    .contact-left {
        width: 100%;
        padding: 2rem;
    }
    
    #stickySearchBar {
        display: none !important;
    }
    
    #searchOverlay {
        display: none !important;
    }
    
    #testimonialsCarousel .carousel-control-prev,
    #testimonialsCarousel .carousel-control-next {
        display: none;
    }
}

/* Select2 Custom Styles */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
    color: #495057;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 5px;
}

.select2-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #FFE6E6 !important;
    color: #CC0000 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f8f9fa;
}

.form-select-sm + .select2-container--default .select2-selection--single {
    height: 31px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.form-select-sm + .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 19px;
}

.form-select-sm + .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 29px;
}

/* Dropdown menu styles */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    background-color: #FFE6E6 !important;
    color: #CC0000 !important;
}
