/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: "Montserrat", sans-serif;
    background-color: #e8efe8;

}


.carousel-image {
    transition: opacity 0.5s, filter 0.5s;
}

.carousel-image:hover {
    opacity: 1; /* Disminuir opacidad para oscurecer */
    filter: brightness(0.4); /* Alternativa: Usar filtro para ajustar brillo */
}


/* Estilos para el modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}













@mixin aspect-ratio($width, $height) {
  position: relative;
    
  &:before {
    display: block;
    content: "";
    width: 100%;
    padding-top: ($height / $width) * 100%;
  }
    
  > img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
  }
}

// Styling

section {
    background: #F4F4F4;
    padding: 50px 0;
}

.container {
    max-width: 1044px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel__slide img {
    width: 100%; /* Esto hará que las imágenes ocupen el ancho completo del contenedor */
    height: auto; /* Esto mantendrá la proporción de la imagen */
    max-width: 400px; /* Ancho máximo deseado para las imágenes */
    max-height: 250px; /* Altura máxima deseada para las imágenes */

}



.carousel {
    display: block;
    text-align: left;
    position: relative;
    margin-bottom: 22px;

    
    > input {
        clip: rect(1px, 1px, 1px, 1px);
        clip-path: inset(50%);
        height: 1px;
        width: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        

        &:nth-of-type(10):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -900%; }
        &:nth-of-type(9):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -800%; }
        &:nth-of-type(8):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -700%; }
        &:nth-of-type(7):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -600%; }
        &:nth-of-type(6):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -500%; }
        &:nth-of-type(5):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -400%; }
        &:nth-of-type(4):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -300%; }
        &:nth-of-type(3):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -200%; }
        &:nth-of-type(2):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -100%; }
        &:nth-of-type(1):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: 0%; }
        
        &:nth-of-type(1):checked ~ .carousel__thumbnails li:nth-of-type(1) { box-shadow: 0px 0px 0px 5px rgba(0,0,255,0.5); }
        &:nth-of-type(2):checked ~ .carousel__thumbnails li:nth-of-type(2) { box-shadow: 0px 0px 0px 5px rgba(0,0,255,0.5); }
        &:nth-of-type(3):checked ~ .carousel__thumbnails li:nth-of-type(3) { box-shadow: 0px 0px 0px 5px rgba(0,0,255,0.5); }
        &:nth-of-type(4):checked ~ .carousel__thumbnails li:nth-of-type(4) { box-shadow: 0px 0px 0px 5px rgba(0,0,255,0.5); }
        &:nth-of-type(5):checked ~ .carousel__thumbnails li:nth-of-type(5) { box-shadow: 0px 0px 0px 5px rgba(0,0,255,0.5); }
        &:nth-of-type(6):checked ~ .carousel__thumbnails li:nth-of-type(6) { box-shadow: 0px 0px 0px 5px rgba(0,0,255,0.5); }
        &:nth-of-type(7):checked ~ .carousel__thumbnails li:nth-of-type(7) { box-shadow: 0px 0px 0px 5px rgba(0,0,255,0.5); }
        &:nth-of-type(8):checked ~ .carousel__thumbnails li:nth-of-type(8) { box-shadow: 0px 0px 0px 5px rgba(0,0,255,0.5); }
        &:nth-of-type(9):checked ~ .carousel__thumbnails li:nth-of-type(9) { box-shadow: 0px 0px 0px 5px rgba(0,0,255,0.5); }
        &:nth-of-type(10):checked ~ .carousel__thumbnails li:nth-of-type(10) { box-shadow: 0px 0px 0px 5px rgba(0,0,255,0.5); }
       
    }
}

.carousel__slides {
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
}

.carousel__slide {
    position: relative;
    display: block;
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 300ms ease-out;
    vertical-align: top;
    box-sizing: border-box;
    white-space: normal;
    
    figure {
        display: flex;
        margin: 0;
    }
    
    div {
        @include aspect-ratio(3, 2);
        width: 100%;
    }
    
    img {
        display: block;
        flex: 1 1 auto;
        object-fit: cover;
    }
    
    figcaption {
        align-self: flex-end;
        padding: 20px 20px 0 20px;
        flex: 0 0 auto;
        width: 25%;
        min-width: 150px;
    }
    
    .credit {
        margin-top: 1rem;
        color: rgba(0, 0, 0, 0.5);
        display: block;        
    }
    
    &.scrollable {
        overflow-y: scroll;
    }
}

.carousel__thumbnails {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    
    margin: 0 -10px;
    
    .carousel__slides + & {
        margin-top: 20px;
    }
    
    li {        
        flex: 1 1 auto;
        max-width: calc((100% / 6) - 20px);  
        margin: 0 10px;
        transition: all 300ms ease-in-out;
    }
    
    label {
        display: block;
        @include aspect-ratio(1,1);
        
                  
        &:hover,
        &:focus {
            cursor: pointer;
            
            img {
                box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.25);
                transition: all 300ms ease-in-out;
            }
        }
    }
    
    img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.menu-toggle {
    display: none; 
    font-size: 24px;
    cursor: pointer;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; 
    }

    .links {
        display: none; 
        flex-direction: column; 
    }

    .links.active {
        display: flex; 
    }
}

nav {
    background-color: #E0E0E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; 
}


.logo img {
    height: 90px; 
}

.links {
    margin-right: 5%; 
}

.links a {
    font-family: "Montserrat", sans-serif;
     margin-left: 20px;  
    text-decoration: none; 
    color: #000000;

}

.links a:hover {
    text-decoration: underline; 
}


/* Estilos de la cuadrícula de contenido */
.esqueleto {
    background-color: #e8efe8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto; /* Cambiamos esto a 'auto' */
    grid-gap: 30px;
    padding: 20px;
}

.caja {
    background-color:  #e8efe8;
    padding: 20px;
  /*  border: 1px solid black;*/
}

.caja1 {
	background-color: #e8efe8;	
    grid-column: 1 / 3; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: flex-start; 
}

.caja2 {
	background-color: #e8efe8;	
    grid-column: 1; 
    grid-row-start: span 2;
    overflow: hidden;
}

.caja3 {
    background-color: #e8efe8;
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}



/* Estilo para el elemento "Detalles de la Propiedad" */
.elemento.detalle {
    grid-column: 1 / span 2; 
    text-align: center; 
    background-color: #6b8e23;
    color:white;
    font-size: 4vh;
    font-weight: 400;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

p .semi{
  font-weight: 500;
}

h4{
    color:#2d2c2c;
}

/* Estilo para los otros elementos */
.elemento {
    padding: 5px;
    text-align: center; 
}


.caja4 {
    grid-column: 1 / 3; 
    grid-row-start: span 3;
}

.mi-grilla {
  background-color: #e8efe8;	
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  grid-gap: 3vh;

}

.dato {
  background-color:  #e8efe8;
  text-align: left; 
}



.caja5 {
    grid-column: 1 / 3; 
    grid-row-start: span 2;
}




/* Media query para pantallas más pequeñas */
@media (max-width: 768px) {
    .esqueleto {
        grid-template-columns: 1fr; 
    }

    .caja2 {
        grid-column: 1 / 3;
        height: 400px;
    }

    .caja3 {
        grid-column: 1; 
        grid-row-start: 4; 
        grid-column: 1 / 3;
    }   
}

h1 {
color: #2d2c2c;
font-weight: 500;
}

.highlight {
    color: #6b8e23; 
}

.subtitle {
    display: inline-block; 
    background-color: #6b8e23;
    padding: 8px;
    border-radius: 1.5vh; 
}

.subtitle p {
color: white;
font-size: 3vh;
font-weight: 500;
}





.caja.caja2 {
  position: relative; 
}




.indicator {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px; 
  border-radius: 50%;
  background-color: #bbb; 
  transition: background-color 0.3s ease; 
}

.dot.active {
  background-color: #6b8e23; 
}

/* Estilos para el footer */
/* Estilos para el footer */
.footer {
    background-color: #2d2c2c; 
    padding: 10px; 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    color: #e8efe8; 
    flex-wrap: wrap; 
}

.footer h3 {
    color: #6b8e23; 
    font-size: 4vh
}

.footer-right h3{
   padding-bottom: 5px;
   font-size: 4vh;
}


.footer-left,
.footer-center,
.footer-right {
    flex-basis: calc(33.33% - 20px); 
    padding: 0 10px; 
}

.footer-left {
    text-align: left; 
    line-height: 1.5;
}

.footer-center {
    text-align: center; 
}

.footer-right {
    text-align: right; 
    line-height: 1.5;
}

.social-icons img {
    width: 30px; 
    margin: 0 5px;

}


/* Estilos para hacer responsive el logo */
.footer-center img {
    max-width: 40%; 
    height: auto; 
}


.footer a {
  color: white;
}

.elemento p {
    margin: 5px 0; /* Ajusta el margen entre los párrafos si es necesario */
    text-align: center; /* Ajusta la alineación del texto */
}

