

/* EFECTO DE ENTRADA */
body {
    opacity: 0;
    animation: fadeInBody 1s ease-in forwards;
}

@keyframes fadeInBody {
    to {
        opacity: 1;
    }
}

/* LOGO */
h1.m-0.display-4.text-uppercase.text-white {
    font-family: "Zilla Slab", serif;
    font-weight: 300;
    font-style: normal;
    margin-left: 5%;
    font-size: 34px;
}

/*titulo en medio de imagen principal */
/* Estilo base para pantallas grandes */
h1.display-1.text-white.m-0 {
    font-family: "Zilla Slab", serif;
    font-weight: 300;         /* Usamos 300 porque '10px' no es válido para font-weight */
    font-style: normal;
    margin-left: 5%;
    font-size: 84px;
}

/* Pantallas medianas (tabletas: <= 991px) */
@media (max-width: 991px) {
    h1.display-1.text-white.m-0 {
        font-size: 60px;
        margin-left: 4%;
    }
}

/* Pantallas pequeñas (teléfonos: <= 767px) */
@media (max-width: 767px) {
    h1.display-1.text-white.m-0 {
        font-size: 40px;
        margin-left: 3%;
        text-align: center;
    }
}

/* Teléfonos muy pequeños (<= 480px) */
@media (max-width: 480px) {
    h1.display-1.text-white.m-0 {
        font-size: 28px;
        margin-left: 0;
        text-align: center;
    }
}


/* HOUSE 1 */


.grid-realestate1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: center;
}

.title-before,
.title-after {
    grid-column: span 2;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 10px;

    font-family: "Zilla Slab";
    font-weight: normal; /* O usa 400 si la fuente lo admite */
}


.grid-before1 img,
.grid-before3 img,
.grid-after4 img {
    width: 100%;
    height: auto;
}

.title-after {
    margin-top: 20px;
}

.grid-after4 {
    grid-column: span 2;
    text-align: center;
}

@media (max-width: 768px) {
    .title-before,
    .title-after {
        grid-column: span 2;
        font-size: 24px;
        padding-top: -50%;
        margin-bottom: -50%;
        text-transform: uppercase;
        font-family: "Zilla Slab";
        font-weight: normal; /* O usa 400 si la fuente lo admite */
    }
}



/* SEGUNDO GRID */

.grid-realestate2 {
    display: grid;
    gap: 10px;
    text-align: center;
    padding: 20px;
}

/* Títulos */
.title-before, .title-after {

    text-transform: uppercase;
    margin-bottom: 40px;
    margin-top: 40px;
}

/* Contenedor de imágenes Before */
.grid-before {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 10px;
    justify-content: center;
}

/* Imágenes de Before */
.grid-before img {
    width: 100%;
    height: auto;
   
}

/* Contenedor de imagen After */
.grid-after {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Imagen After */
.grid-after img {
    width: 60%; /* Más grande */
    height: auto;
  
}

/* RESPONSIVE DESIGN */

/* Pantallas medianas: mantiene 2 columnas */
@media (max-width: 768px) {
    .grid-before {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        margin-bottom: -10px;
        margin-top: -10px;
        padding-top: -40%;
    }


    .grid-before img {
        width: 100%;
       
        align-items: center;
        margin-left: 5%;
    }

    .grid-after img {
        width: 70%;
        margin-bottom: -10px;
        margin-top: -10px;
        align-items: center;
        margin-left: 15%;
    }
}

/* Pantallas pequeñas: 1 imagen por fila */
@media (max-width: 600px) {
    .grid-before {
        grid-template-columns: repeat(1, 1fr);
    }

    .grid-after img {
        width: 90%;
    }
}





/*-----------------------------------------PARRAFO-------------------- */
.text-container {
    width: 60%; /* Ajusta el ancho del texto */
    margin: 50px auto; /* Centrar horizontalmente */
    text-align: justify; /* Justificar texto */
    font-size: 20px;
    line-height: 1.6;
    font-family: "Zilla Slab", serif;
    font-weight: 300;
    font-style: normal;



}

.text-container h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
    font-family: "Zilla Slab", serif;
    font-weight: 300;
    font-style: normal;

}



/*----------------------------------------ULTIMO GRID-------------------- */


.grid-realestate3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 15px; /* Espaciado entre las imágenes */
    justify-content: center;
    align-items: center;
    padding: 20px; /* Espaciado para que no toque los bordes de la página */
    max-width: 90%; /* Para que no ocupe todo el ancho */
    margin: auto; /* Centrar el grid */
}

.grid-realestate3 img {
    width: 100%; /* Ajusta el ancho de las imágenes al contenedor */
    height: auto; /* Mantiene la proporción */
    display: block;
   
}


/* Responsive para tablets */
@media (max-width: 1024px) {
    .grid-realestate3 {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas medianas */
        padding: 15px; /* Espaciado ajustado en tablets */
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .grid-realestate3 {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas móviles */
        padding: 10px; /* Espaciado ajustado en móviles */
    }
}

















.image-footer {
    width: 100%;
    height: 900px; /* Ajusta la altura según tus necesidades */
    background: url('https://sosupics.com/PORTFOLIO/ZILLOW/REALESTATEPROJECT/PROJECT2/DSCF3332.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: end;
    justify-content: center;
    text-align:center;
    position: relative;
    padding: 20px; /* Espaciado para texto */
}

.footer-text {
    color: white;
    font-size: 14px;
    line-height: 1.5; /* Espaciado entre líneas */
   
    max-width: 90%; /* Limita el ancho del texto */
    font-family: Arial, sans-serif; /* Fuente legible */
}

