/* General Styles */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
    color: #333;
}

/* Navbar Styles */
.nav-superior {
    width: 100%;
}

.navbar {
    background-color: #f3f3f3;
}

.hide {
    display: none;
}
.navbar-nav .nav-link {
    font-size: 18px;
    color: #1A1A1D;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5em 0;
    position: relative;
    transition: color 0.5s ease, background-color 0.4s ease;
}

.navbar-nav .nav-link::before,
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: #cc0000;
    transition: width 0.5s ease, height 0.4s ease;
}

.navbar-nav .nav-link::before {
    height: 2px;
    width: 0;
}

.navbar-nav .nav-link:hover {
    color: #cc0000;
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

.navbar-nav .nav-link::after {
    z-index: -1;
    width: 100%;
    height: 0;
}

.navbar-nav .nav-link:hover::after {
    height: 100%;
}

/* Carousel Styles */
.carousel-inner {
    max-height: 1200px;
}

.carousel-item {
    min-height: 300px;
    background: center center / contain no-repeat;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-caption {
    margin-bottom: 250px;
    padding: 0 100px;
    text-align: left;
}

.carousel-caption h5 {
    font-size: 50px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.carousel-caption p {
    font-size: 18px;
    margin-top: 2rem;
}

.carousel-img {
    height: 600px;
    object-fit: cover;
    object-position: center;
}

/* Button Styles */
.slider-btn {
    background-color: #cc0000;
    color: white;
    border-radius: 0;
    padding: 1.5rem 3rem;
    font-size: 1rem;
    margin-right: 15px;
}

.slider-btn-2 {
    color: #1A1A1D;
    background-color: white;
}

.btn-rojo {
    background-color: #cc0000;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-rojo:hover {
    background-color: #b30000;
}

.btn-visita, .btn-planimetria {
    width: fit-content;
    height: 60px;
    font-size: 1.5em;
    cursor: pointer;
    background-color: #1A1A1D;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: all 0.4s;
    margin-bottom: 15px;
}

.btn-visita:focus, .btn-planimetria:focus {
    outline: none;
}

.btn-visita a, .btn-planimetria a {
    text-decoration: none;
    color: #333;
}

.btn-visita:hover, .btn-planimetria:hover {
    border-radius: 5px;
    transform: translateY(-10px);
    box-shadow: 0 7px 0 -2px #cc0000,
     0 15px 0 -4px #b30000,
     0 16px 10px -3px #1A1A1D;
}

.btn-visita:active, .btn-planimetria:active {
    transition: all 0.2s;
    transform: translateY(-5px);
    box-shadow: 0 7px 0 -2px #cc0000,
     0 15px 0 -4px #b30000,
     0 16px 10px -3px #1A1A1D;
}

/* Floating Icon */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-button i {
    font-size: 30px;
    color: #FFFFFF;
}

.whatsapp-button:hover {
    transform: scale(1.2);
}

/* Section Styles */
.nosotros, 
.comprar, 
.alquilar, 
.asesoramiento, 
.la-deseada {
    font-family: "Poppins", serif;
    font-weight: 400;
    font-style: normal;
    background-color: #1A1A1D;
    color: #f3f3f3;
    padding: 50px 0;
    text-align: center;
}

#nosotros, 
#comprar, 
#alquilar, 
#asesoramiento, 
#testimonios, 
#la-deseada {
    background-color: #f3f3f3;
    color: #1A1A1D;
    text-align: center;
}

/* Informative Text */
.texto-info, .texto-asesoramiento {
    padding: 0 20px;
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    text-align: justify;
    margin: 20px 0 30px;
    font-weight: 300;
}

/* Image Styles */
.imagen-nosotros, .imagen-asesoramiento, .imagen-alquiler, .imagen-comprar, .img-ladeseada {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.imagen-nosotros {
    width: 800px;
    height: 800px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.imagen-asesoramiento:hover, .imagen-alquiler:hover, .imagen-comprar:hover, .img-ladeseada:hover {
    transform: scale(1.05);
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container .row {
    margin-top: 30px;
}

.col-md-4 {
    padding: 15px;
}

.Inmobiliaria-icon {
    width: 200px;
}

/* Specific Section Styles */
.top-content, .bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.text-left, .text-right {
    width: 48%;
    font-size: 1rem;
    color: #333;
}

.text-left p, .text-right p {
    margin: 0;
}

.image-right, .image-left {
    width: 48%;
}

.image-right img, .image-left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
#footer {
    background-color: #1A1A1D;
    padding: 30px 0;
    color: #fff;
}

#footer .container {
    max-width: 1140px;
    margin: 0 auto;
}

#footer h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

#footer ul {
    list-style-type: none;
    padding: 0;
}

#footer ul li {
    margin-bottom: 10px;
}

#footer ul li i {
    margin-right: 10px;
}

#footer .social-icons a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

#footer .social-icons a:hover {
    color: #e60000;
}

#footer a {
    text-decoration: none;
}

.developed {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 20px;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, font-size 0.3s ease;
    font-weight: 500;
}

.developed:hover {
    color: #6ab04c;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Media Queries */
@media (max-width: 1079px) {
    .top-content, .bottom-content {
        flex-direction: column;
        align-items: center;
    }

    .text-left, .text-right, .image-left, .image-right {
        width: 100%;
        text-align: center;
    }

    .image-left img, .image-right img {
        max-width: 100%;
        margin-bottom: 15px;
    }

    #footer .row {
        text-align: center; 
    }

    #footer .social-icons a {
        font-size: 1.4rem;
    }

    #footer h5 {
        font-size: 1.2rem;
    }

    .carousel-caption h5 {
        font-size: 2rem !important;
        margin-bottom: 0.8rem;
    }

    .carousel-caption {
        bottom: 15%;
    }

    .imagen-nosotros {
        max-width: 85%;
    }

    .col-md-4 {
        width: 100%;
    }

    .Inmobiliaria-icon {
        width: 170px;
    }

    .navbar-nav .nav-link {
        font-size: 16px;
    }

    .navbar-nav .nav-link::before {
        height: 1px;
    }

    .Inmobiliaria-icon {
        width: 170px; 
    }

    .navbar-collapse {
        background-color: #f3f3f3;
    }

    .navbar-toggler {
        border: 2px solid #333;
        padding: 0.5rem;
        margin-right: 1rem;
        background-color: #fff;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 1.5em;
        height: 1.5em;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
        outline: none;
    }

    .carousel-item img {
        height: 650px;
        object-fit: cover;
    }

    .carousel-caption {
        bottom: 20%;
        padding: 1.5rem;
        background: rgba(0,0,0,0.5);
    }

    .carousel-caption h5 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }

    .carousel-caption p {
        font-size: 1.3rem;
    }

    .carousel-indicators {
        bottom: 5%;
    }

    .carousel-indicators button {
        width: 20px;
        height: 20px;
        border-radius: 50%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 50px;
        height: 50px;
        background-size: 100%;
    }
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 1.4rem !important;
        display: block; /* Ensure h5 is displayed on mobile */
    }

    .carousel-caption p {
        font-size: 0.925rem;
    }

    .carousel-item img {
        height: 550px;
    }

    .navbar-nav .nav-link {
        font-size: 18px;
    }

    .whatsapp-button {
        width: 60px;
        height: 60px;
    }

    .whatsapp-button i {
        font-size: 30px;
    }
}

@media (min-width: 768px) {
    .navbar-collapse {
        display: flex;
        justify-content: flex-end;
    }

    .carousel-inner {
        max-height: 500px;
    }

    .carousel-item {
        min-height: 350px;
        background-size: contain;
        background-position: center center;
    }

    .carousel-caption {
        display: none;
    }

    .whatsapp-button {
        width: 60px;
        height: 60px;
    }

    .whatsapp-button i {
        font-size: 30px;
    }
}

@media (max-width: 1081px) {
    #footer .container {
        padding: 0 15px;
    }

    #footer h5 {
        font-size: 1rem;
    }

    #footer ul li {
        margin-bottom: 8px;
    }

    #footer .social-icons a {
        font-size: 1.3rem;
    }
}

@media (max-width: 1081px) {
    #footer .container {
        padding: 0 10px;
    }

    #footer h5 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    #footer ul {
        text-align: center;
    }

    #footer ul li {
        margin-bottom: 12px;
    }

    #footer .social-icons {
        text-align: center;
    }

    #footer .social-icons a {
        font-size: 1.2rem;
    }
}

@media (max-width: 900px) {
    #footer .container {
        padding: 0 5px;
    }

    #footer h5 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    #footer ul li {
        margin-bottom: 10px;
    }

    #footer .social-icons a {
        font-size: 1rem;
    }

    #footer .social-icons {
        display: flex;
        justify-content: center;
        margin-top: 15px;
    }

    #footer .social-icons a {
        margin-right: 15px;
    }
}
