@font-face {
    font-family: "Fuente";
    src: url("fonts/Allura-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Fuente2";
    src: url("fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}


/* CONFIGURACIÓN GENERAL */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* CONFIGURACIÓN ENCABEZADO */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: black;
    transition: background 0.3s ease;
}

header.scrolled .hamburger span {
    background: white;
}

/* BARRA SUPERIOR */

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 200px;
    box-sizing: border-box;
    z-index: 1000;

    transition: background-color 0.3s ease;
}


header.scrolled {
    background-color: rgba(60, 120, 200, 0.85);
}
header.scrolled .menu a {
    color: white; /* el color que quieras al hacer scroll */
}

.logo img {
    height: 70px;   /* controla tamaño */
    width: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 50px;
}

.menu a {
    color: black;
    text-decoration: none;
    white-space: nowrap;
    font-weight: bold;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

#btn-proyectos::after {
    content: "▾";                 /* flecha hacia abajo */
    margin-left: 6px;
    font-size: 0.75em;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* CERRAMOS CONFIGURACION DE ENCABEZADO */
/* DROPDOWN DE PROYECTOS */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    display: none;
    padding: 10px 10px;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    z-index: 999;
    gap: 10px 0px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.8);
}

.dropdown.active .dropdown-menu {
    display: grid;
}

.dropdown-menu a {
    font-size: 0.95rem;
    text-align: center;
    
    white-space: nowrap;

    transition: color 0.2s ease;
}

.dropdown-menu a:hover {
    color: #1e63d6; /* azul profesional */
}

header.scrolled .dropdown-menu a {
    color: black;
}

header.scrolled .dropdown-menu a:hover {
    color: #1e63d6;
}

/* FIN DEL DROPDOWN DE PROYECTOS */

/* CERRAMOS FUNCIONES PARA MOVIL DE ENCABEZADO */
/* FONDO PRINCIPAL */
.fondo {
    
    margin-top: 0px;
    background: url("Arte-Macas.webp") top center / cover no-repeat;
    min-height: 100vh; 
    
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 150px;

}
.fondo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55); /* 👈 controla la claridad */
    z-index: 1;
}

/* 
ZONA DE EL CERRETE DE PROYECTO 
*/

.proyectos {
    margin-top: 10px;
    position: relative; /* sobre el overlay */
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 0 0px;

}

.proyectos-titulo {
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: #333;
    font-family: "Fuente2", cursive;

}

.carrete-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 80%;          /* 🔹 ancho máximo del carrete */
       /* opcional: no crece demasiado en pantallas grandes */
    margin: 0 auto;

}

.carrete {
    display: flex;
    gap: 20px;
    overflow: hidden; /* ❌ ocultamos barra */
    scroll-behavior: smooth;
    padding: 10px 30px;
}

.proyecto {
    width: 300px;
    height: 200px;
    flex: 0 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.proyecto img {
    width: 100%;
    height: 100%; 
    object-fit: cover;     /* rellena el contenedor recortando si hace falta */
    object-position: center;
    filter: brightness(70%);
    border-radius: 12px;
    transition: filter 0.3s ease;
}

.proyecto:hover img {
    filter: brightness(60%); /* 🔹 solo oscurece la imagen */
}

.proyecto:hover {
    transform: scale(1.05); /* agranda ligeramente la imagen */

}

.proyecto span {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    color: whitesmoke;
    font-size: 2.8rem;
    font-style: italic;
    font-family: "Fuente", cursive;
    /*background-color: rgba(0,0,0,0.8);*/
    padding: 8px 15px;
    border-radius: 6px;

}

.btn-left, .btn-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
   
}

.btn-left {
    left: -80px;
    
}

.btn-right {
    right: -80px;
    
}

/*
FIN ZONA DE PROYECTOS
*/
/*
ZONA DE BANER DE COMPRAR CASA Y LOTE 
*/

.interesado_casa,
.interesado_lote {
    display: flex;
    width: 100%;
    height: 40vh;              /* ~30% de la ventana */
    background-color: white;
    
    z-index: 2;
}

.interesado_casa {
    margin-top: 150px;
    margin-bottom: 100px;
}

.interesado_lote {
    margin-top: 60px;
    margin-bottom: 100px;
}

.interesado-img {
    width: 60%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.interesado-img::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.casa-img::after {
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 60%,
        rgba(255,255,255,1) 100%
    );
}

.lote-img::after {
    background: linear-gradient(
        to left,
        rgba(255,255,255,0) 60%,
        rgba(255,255,255,1) 100%
    );
}

.casa-img {
    background-image: url("casa.webp");
}

.lote-img {
    background-image: url("lote.webp");
}

.interesado-texto {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
}

.interesado_casa .interesado-texto {
    align-items: flex-end;   /* pega texto y botón a la derecha */
    text-align: right;
}
.interesado_lote .interesado-texto {
    align-items: flex-start;
    text-align: left;
}

.interesado-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
}

.interesado-texto button {
    width: fit-content;
    padding: 12px 30px;
    font-size: 1rem;
    background-color: #005eff;   /* azul profesional */
    color: white;
    border: 1.5px solid #005eff;
    border-radius: 30px;
    cursor: pointer;
    margin-right: 250px;
    margin-left: 250px;
    transition: background-color 0.3s ease;
    
}

.interesado-texto button:hover {
    background-color: #0046c7;
}

/*
FIN ZONA DE OFERTA CASA Y LOTE 
*/
.footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    width: 100%;
    padding: 5px;

}
.footer-contenido {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
 
}
.footer-columna p {
    padding: 5px 10px;
    margin: 0;
    font-size: 1rem;
}

.footer-columna iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.redes {
    display: grid;
    grid-template-columns: repeat(2, 50px);
    gap: 40px;
    padding: 20px 150px;
}

.redes a {
    width: 60px;
    height: 60px;
    display: block;
}

.redes img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-separador {
    border: none;
    height: 1px;
    background-color: white;
    margin: 0px;
}
.footer-derechos {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    margin: 2;
}

/*
CONFIGURACION DEL BOTON DE WHATSAP
*/
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 2000;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float::after {
    content: "Chatea con nosotros";
    position: absolute;
                 /* arriba del botón */
    right: 0%;
    top: 40%;
    transform: translateX(-50%) translateY(10px);

    background: rgba(255, 255, 255, 0.65);
    color: black;
    padding: 10px 16px;
    border-radius: 10px;

    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}


.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* o cover si quieres que llene más */
    display: block;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.whatsapp-float:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}


@media (max-width: 1200px) {

    /* ============================================  */
    /* ENCABEZADO PARA CELULAR     */
    /* ============================================  */

    header {
        padding: 50px 60px;
        height: 110px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger span {
        width: 45px;
        height: 5px;
    }

    .logo img {
        height: 100px;   /* controla tamaño */
    }
    .menu {
        position: absolute;
        top: 100%;
        right: 10px;

        flex-direction: column;
        gap: 20px;

        background: rgba(255, 255, 255, 0.85);
        padding: 20px;
        border-radius: 12px;

        width: 30vw;          /* 👈 CLAVE */
        max-width: 320px;     /* 👈 NO más grande */
        max-height: 50vh;     /* 👈 no se sale */
        display: none;
    }

    .menu a {
        font-size: 1.8rem;
        padding: 2px 0;
    }


    #btn-proyectos::after {
        content: "◀";             /* flecha a la izquierda */
        margin-left: 10px;
    }

    
    header .menu.active {
        display: flex;
    }

    header.scrolled .menu a {
        color: black;
    }

    /* ============================================  */
    /* CONFIGURACION DEL MENU PROYECTOS PARA CELULAR   */
    /* ============================================  */

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        top: -50%;
        right: 160%;
        left: auto;

        transform: none;

        grid-template-columns: repeat(1, 1fr); /* ✅ 3 columnas */
        grid-auto-rows: auto;                  /* filas automáticas */

        min-width: 10px; /* 3 × 180px */
        padding: 15px;

        gap: 15px;
    }

    .dropdown-menu a{
        font-size: 1.8rem;
    }

    /* ============================================  */
    /* CONFIGURACION BOTONES DEL CARRETE   */
    /* ============================================  */

    .fondo {
        padding-top: 180px;
        min-height: 70vh; 
    }

    .proyectos-titulo {
        font-size: 3.5rem;
        padding-left: 30px;
        padding-right: 30px;
    }

    .proyecto {
        width: 400px;
        height: 300px;
    }

    .proyecto span {
    font-size: 4.5rem;
    }

    .btn-left, .btn-right {
        font-size: 4rem;
    }

    .btn-left {
        left: -80px;
    }

    .btn-right {
        right: -80px;
    }


    /* ============================================  */
    /* CONFIGURACION BANNER DE INTERESADO   */
    /* ============================================  */

    /* CONTENEDOR GENERAL: MISMA ESTRUCTURA */
    .interesado_casa,
    .interesado_lote {
        height: auto;                 /* 🔥 deja respirar */
        min-height: 360px;            /* mantiene presencia visual */
    }

    /* IMAGEN: NO SE DEFORMA */
    .interesado-img {
        background-size: cover;
        background-position: center;
    }

    /* TEXTO: ESCALA REAL */
    .interesado-texto {
        padding: clamp(20px, 5vw, 60px);
    }

    .interesado-texto h2 {
        font-size: 2.8rem
    }

    .interesado-texto button {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        padding: clamp(8px, 2vw, 12px) clamp(20px, 5vw, 30px);
        margin: 0;                    /* evita desbordes */
    }

    /* ============================================  */
    /* FOOTER PARA CELULAR      */
    /* ============================================  */

  .footer {
    padding: 0;
  }

  .footer-contenido {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr 0.6fr; /* 👈 mapa domina */
    gap: 10px;
    padding: 20px;
    align-items: stretch; /* 👈 todas las columnas mismo alto */

  }

  /* COLUMNA 1 – INFO */
  .footer-columna p {
    font-size: 1.2rem;      /* 👈 más pequeña */
    line-height: 1.3;
    padding: 2px 4px;
    text-align: left;
    color: white;
    text-decoration: none;
    pointer-events: none;
  }

  /* COLUMNA 2 – MAPA */
  .footer-columna iframe {
    width: 120%;
    height: 100%;           /* 👈 llena TODO el alto */
    min-height: 180px;
    border-radius: 8px;
  }

  /* COLUMNA 3 – REDES */
  .redes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;  /* 👈 pegado a la derecha */
    justify-content: center;
    gap: 12px;
    padding-top: 10px;
    padding-right: 40px;
  }

  .redes a {
    width: 55px;            /* 👈 más pequeños */
    height: 55px;
  }

  .footer-derechos {
    font-size: 0.7rem;
    padding: 6px;
  }

  /* ============================================  */
    /* ICONO DE WATSAP CELULAR     */
    /* ============================================  */

    .whatsapp-float {
        width: 80px;
        height: 80px;
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-float img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* o cover si quieres que llene más */
        display: block;
    }

    .whatsapp-float::after {
        display: none;
    }
 

}