/* Estilos Generales */
body, html {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 56px;
}

/* Header */
header {
    background-color: white;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(90%);
}

/* Carrousel */
.carousel {
    width: 100%;
    height: calc(50vw - 50px);
    overflow: hidden;
    position: relative;
    margin-top: 50px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 80%;
    max-width: 600px;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel .prev {
    left: 10px;
}

.carousel .next {
    right: 10px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    width: 100%;
}

.cta-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 56px;
    font-weight: normal; 
    margin: 20px 20px; 
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 2px;
}

.cta-buttons button {
    background-color: black;
    color: white;
    height: 140px;
    flex: 1;
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
}

.cta-buttons button:hover {
    background-color: #BC3E36;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: row;
        align-items: center;
    }
    .cta-buttons button {
        height: 80px;
        width: 100%;
        padding: 8px 0;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cta-section h2 {
        font-size: 32px;
        margin: 20px 20px; 
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-buttons button {
        height: 50px;
        width: 100%;
        padding: 8px 0;
        font-size: 16px;
    }
}

/* Modales */
/* Modales */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #888;
    width: 80%; /* Siempre 80% del ancho */
    max-width: 1200px; /* Límite máximo en pantallas grandes */
    height: auto;
    max-height: 80vh; /* No exceder el 80% del viewport */
    overflow-y: auto; /* Habilita scroll si es necesario */
    text-align: center;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Contenedor de imágenes */
.modal-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.modal-images img {
    width: 45%;
    height: auto;
    border-radius: 4px;
}

/* Botón de cerrar */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: black;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Mobile y Tablets */
@media (max-width: 1023px) {
    .modal-content {
        width: 80%; /* Mantiene el 80% del ancho */
        max-height: 80vh; /* No excede el 80% del viewport */
        padding: 15px;
    }

    .modal-images {
        flex-direction: column;
    }

    .modal-images img {
        width: 100%;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .modal-content {
        width: 80%;
        max-width: 1200px;
        height: auto;
        max-height: 80vh; /* Evita que se desborde */
    }
}


/* Sección Terrenos */
.terrenos {
    text-align: center;
    padding: 40px 20px;
}

.terrenos h1 {
    font-size: 56px;
    margin: 0;
}

.terrenos h2 {
    font-size: 32px;
    color: #BC3E36;
    margin: 10px 0;
}

.terrenos h4 {
    font-size: 24px;
    margin: 10px 0;
}

/* Sección Ubicación */
.ubicacion {
    display: flex;
    width: 100%;
    height: 650px;
    gap: 10px;
    padding: 0px;
    box-sizing: border-box;
}

.ubicacion .mapa {
    width: 50%;
    height: 100%;
}

.ubicacion .mapa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    margin-bottom: 50px;
}

.ubicacion .texto {
    width: 25%;
    height: 100%;
    background: url('img/ubicacion_bg.png') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.ubicacion .texto h3 {
    color: white;
    font-size: 24px;
    margin: 0 0 10px 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 30px;
}

.ubicacion .texto p {
    color: white;
    font-size: 16px;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 170%;
    text-align: justify;
}

.ubicacion .imagenes {
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ubicacion .imagenes img {
    width: 100%;
    height: calc(50% - 5px);
    object-fit: cover;
}

@media (max-width: 1024px) {
    .ubicacion {
        flex-direction: column;
        height: auto;
    }
    .ubicacion .mapa {
        width: 100%;
        height: auto;
    }
    .ubicacion .texto {
        width: 100%;
        height: 300px;
        padding: 40px;
    }
    .ubicacion .imagenes {
        flex-direction: row;
        width: 100%;
        height: 300px;
    }
    .ubicacion .imagenes img {
        width: 50%;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .ubicacion {
        flex-direction: column;
        height: auto;
    }
    .ubicacion .mapa {
        width: 100%;
        height: 350px;
    }
    .ubicacion .texto {
        width: 100%;
        height: 350px;
        padding: 20px;
    }
    .ubicacion .imagenes {
        flex-direction: column;
        width: 100%;
        height: auto;
    }
    .ubicacion .imagenes img {
        width: 100%;
        height: auto;
    }
}

/* Sección Contacto */
.contacto {
    display: flex;
    width: 100%;
    gap: 0px;
    padding: 0;
}

.contacto > div {
    width: 50%;
    padding: 0px;
    box-sizing: border-box;
}

.contacto-info h3,
.contacto-form h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.contacto-info video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.contacto-info ul {
    list-style: none;
    padding: 0;
}

.contacto-info ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin: 10px 0;
}

.contacto-info ul li img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(16%) sepia(96%) saturate(7470%) hue-rotate(357deg) brightness(97%) contrast(107%);
}

.contacto-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input_label {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input_label label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.input_label input,
.input_label textarea {
    width: 100%;
    padding: 0px;
    height: 50px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contacto-form textarea {
    height: 100px;
    resize: none;
}

.contacto-form .captcha {
    background: #f5f5f5;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #ccc;
}

.contacto-form button {
    background: #444;
    color: white;
    height: 50px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.contacto-form button:hover {
    background: red;
}

.contacto-form .telefono {
    margin-top: 20px;
    font-size: 18px;
}

@media (min-width: 1025px) {
    .contacto {
        display: flex;
        flex-direction: row; /* Asegura que se mantenga horizontal */
        justify-content: space-between;
        align-items: flex-start;
        padding: 0px; /* Revisa si necesitas ajustar */
    }

    .contacto > div {
        width: 50%; /* Mantén el 50% para cada parte */
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    .contacto {
        flex-direction: column;
        padding: 0 ;
    }
    .contacto > div {
        width: 100%;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contacto {
        padding: 0px;
    }
    .contacto > div {
        width: 100%;
        padding: 20px;
    }
    .input_label input,
    .input_label textarea {
        width: 100%;
        padding: 0px;
        height: 50px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
    }
}

/* Floating */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

.btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-green {
    background-color: green;
}

.btn-red {
    background-color: red;
}

.btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Footer */
.footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer .cta {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    text-decoration: underline;
}

/* Estilos para el modal */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    overflow: auto; 
}

/* Contenido del modal */
.modal-content {
    background-color: white;
    margin: 10% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-height: 80vh; 
    overflow-y: auto; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    border-radius: 10px; 
}

/* Botón de cerrar */
.close {
    color: black;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #BC3E36; /* Cambia el color al pasar el mouse */
}

/* Media Queries */
@media (max-width: 768px) {
    .carousel-text {
        width: 90%;
        font-size: 14px;
    }

    .cta-buttons button {
        width: 100%;
    }

    .ubicacion {
        flex-direction: column;
    }

    .contacto {
        flex-direction: column;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding: 40px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .floating-buttons {
        bottom: 40px;
        right: 40px;
    }

    .btn {
        width: 80px;
        height: 80px;
    }

    .btn img {
        width: 40px;
        height: 40px;
    }
}