@import url("fonts.googleapis.com");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Raleway", sans-serif;
    color: #666;
    background: #f2f2f2;
    font-size: 1em;
    line-height: 1.5em;
    box-sizing: border-box;
}
/* 	<uniquifier>: Use a unique and descriptive class name
	<weight>: Use a value from 100 to 900 */
nav {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #474b4e;
    transition: .4s;
    z-index: 10; 
}
.logo {
    display: flex;
}
.logo img {
    width: 40px;
    align-content: center;
}
.logo h3 {
    margin-left: 10px;
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-family: "Raleway", sans-serif;
    align-content: flex-end;
}
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}
.nav-links a {
    display: block;
    padding: 20px 10px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-family: "Raleway", sans-serif;
    transition: all ease-in-out 100ms;
}
.nav-links a:hover {
    background-color: darkorange;
}
.nav-links .nav-contact-button {
    padding: 10px 18px;
    margin-left: 16px;
    border: orange solid 2px;
    border-radius: 50px;
}
.nav-links .nav-contact-button:hover {
    background-color: orange;
}
.movilemenu {
    display: none;
    cursor: pointer;
    width: 34px;
}
.movilemenu .bar {
    flex-basis: 100%;
    height: 4px;
    background-color: white;
    margin: 3px;
}
h1{
	font-weight: 400;
	text-align: center;
	padding: 20px, 0;
	font-size: 40px;
	margin: 10px;
}
.linea{
	background: #550b51;
	height: 5px;
	width: 100%;
	display: block;
}

 /* --- Galería de Proyectos y Terrenos --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    overflow: hidden;
    height: 450px;
    background: #eee;
    cursor: pointer; /* Indica que es clickeable */
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    opacity: 0;
    transition: 0.4s;
}

.card:hover .card-info {
    opacity: 1;
}

/* Icono de zoom al hacer hover */
.zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.card:hover .zoom-icon {
    opacity: 1;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

        /* =========================================
           ESTILOS DEL LIGHTBOX (CSS NUEVO)
           ========================================= */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--overlay);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000; /* Por encima de la navegación */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s;
            cursor: zoom-out;
        }

        .lightbox.active {
            opacity: 1;
            visibility: visible;
        }

        .lightbox-img {
            max-width: 90%;
            max-height: 80%;
            box-shadow: 0 5px 25px rgba(0,0,0,0.5);
            transform: scale(0.9);
            transition: transform 0.4s ease;
        }

        .lightbox.active .lightbox-img {
            transform: scale(1);
        }

        .lightbox-caption {
            position: absolute;
            bottom: 50px;
            color: white;
            text-align: center;
            width: 100%;
            font-size: 1.2rem;
            letter-spacing: 1px;
        }

        .close-lightbox {
            position: absolute;
            top: 30px;
            right: 40px;
            color: white;
            font-size: 40px;
            cursor: pointer;
            transition: 0.3s;
        }

        .close-lightbox:hover {
            color: var(--accent);
        }

        /* Evitar scroll cuando el lightbox está abierto */
        body.no-scroll {
            overflow: hidden;
        }


@media all and (max-width: 375px) {
    nav {
        flex-wrap: wrap;
    }
    .movilemenu {
        display: flex;
        flex-wrap: wrap;
    }
    .nav-links {
        display: none;
        flex-basis: 100%;
        flex-wrap: wrap;
    }
    .nav-links li {
        flex-basis: 100%;
    }
    .nav-links a {
        text-align: center;
        font-size: 20px;
    }
    .nav-links a:hover {
        background-color: darkorange;
    }
    .nav-links .nav-contact-button {
        padding: 10px 19px;
        margin-left: 0;
        border: none;
        border-radius: 0;
        margin-bottom: 10px;
    }
    .nav-links .nav-contact-button:hover {
        background-color: darkorange;
    }
}
