html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* WhatsApp */
#whatsapp-container {
    position: fixed;
    bottom: 5vh;
    right: 3vw;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#whatsapp-message {
    background: white;
    color: black;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    position: absolute;
    bottom: 60px;
    right: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#whatsapp-container:hover #whatsapp-message {
    opacity: 1;
    transform: scale(1);
}

#whatsapp-icon img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    #whatsapp-icon img {
        width: 50px;
        height: 50px;
    }
    #whatsapp-message {
        font-size: 12px;
        bottom: 50px;
        right: 5px;
    }
}

/* Navbar */
nav.custom-navbar {
    background-color: #57717D !important;
}
nav.custom-navbar .navbar-brand,
nav.custom-navbar .nav-link {
    color: #fff !important;
}
nav.custom-navbar .nav-link:hover {
    color: #ffcc80 !important;
}

.navbar-toggler {
    border: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Carrusel */
.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
}

/* Terrenos */
.contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.terreno {
    border: 1px solid #ccc;
    padding: 8px;
    margin: 8px;
    width: 250px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
.terreno img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .terreno {
        width: 100%;
    }
    .carousel-item img {
        max-height: 450px;
    }
}

/* Footer */
footer {
    background-color: #57717D;
    color: white;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
}
.footer-container {
    display: flex;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}
.footer-menu a:hover {
    color: #ffcc80;
}

/* Botones y formularios */
.btn-custom {
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}
.btn-custom:hover {
    background-color: #2c3e50;
    transform: scale(1.05);
}
.contact-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 8px;
}

/* Modal General */
#modal,
#modal-video {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

#modal .modal-content,
#modal-video .modal-content {
    background: white;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

#modal .btn-close,
#modal-video .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

#modal .btn-close:hover,
#modal-video .btn-close:hover {
    color: red;
}

#modal img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

#modal img:hover {
    transform: scale(1.05);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
}
.modal-navigation button {
    background-color: #3498db;
    color: white;
    font-size: 24px;
    padding: 15px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.modal-navigation button:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    appearance: none;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}


.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#vista-proyectos {
    flex-grow: 1;
    padding: 20px 20px 20px; 
    display: block; 
    text-align: center;
}