/* --- Reset y Estilos Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #c5a880;
    color: #121212;
}

.btn-primary:hover {
    background-color: #b0936b;
}

.btn-outline {
    border: 1px solid #c5a880;
    color: #c5a880;
}

.btn-outline:hover {
    background-color: #c5a880;
    color: #121212;
}

/* --- Header & Navegación --- */
.site-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 60px;
    width: auto;
}

.site-nav {
    display: flex;
    gap: 30px;
}

.site-nav a {
    color: #cccccc;
    font-size: 15px;
    transition: color 0.3s;
}

.site-nav a:hover {
    color: #c5a880;
}

/* --- Espaciado Generoso entre Secciones --- */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-header h2, .project-info h2, .location-content h2, .contact-header h2 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 15px;
}

/* --- Sección Hero --- */
.hero-section {
    background-image: linear-gradient(rgba(18, 18, 18, 0.25), rgba(18, 18, 18, 0.10)), url('Images/PortadaJoseBenitez2020.jpg');
    background-repeat: no-repeat;
    background-position: center 15%;
    background-size: cover;
    padding: 140px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background-color: rgba(197, 168, 128, 0.25);
    color: #dfc298;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-section h1 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-section p {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 30px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

/* --- Sección El Proyecto --- */
.project-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: cover;
}

.project-info h3 {
    color: #c5a880;
    margin: 20px 0 10px 0;
    font-size: 20px;
}

.check-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: #cccccc;
}

.check-list li::before {
    content: "▪";
    color: #c5a880;
    position: absolute;
    left: 0;
}

/* --- Contenedores de Imágenes con Efecto Zoom (Galerías, Departamentos, Amenidades) --- */
.img-wrapper {
    overflow: hidden;
    border-radius: 6px;
    width: 100%;
    height: 100%;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.img-wrapper img:hover {
    transform: scale(1.20);
}


/* --- Sección Departamentos --- */
.departments-section img,
.seccion-departamentos img {
    width: 100%;
    /* Remueve la altura fija (height: 300px;) o el filtro si los habías agregado */
    object-fit: cover;
    object-position: center;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.dept-card {
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.dept-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
    background-color: #171717;
    height: 200px;
}

.dept-body {
    padding: 25px;
    flex-grow: 1;
}

.dept-body h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 22px;
}

.dept-body p {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.5;
}

/* --- Sección Áreas Comunes y Amenidades --- */
.amenities-section {
    padding: 100px 0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.amenity-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.amenity-card .img-wrapper {
    height: 180px;
    border-radius: 0;
    margin-bottom: 15px;
}

.amenity-card h3 {
    color: #ffffff;
    font-size: 18px;
    padding: 0 15px;
}

/* --- Sección Ubicación --- */
/* Contenedor en dos columnas */
.ubicacion-grid {
    display: flex;
    align-items: center;
    gap: 40px; /* Espacio de separación entre el texto y el mapa */
    margin-top: 30px;
}

/* Columna de texto */
.ubicacion-info {
    flex: 1;
    text-align: left; /* Mantiene el texto alineado limpiamente a la izquierda */
}

.ubicacion-direccion {
    margin-bottom: 15px;
    line-height: 1.5;
}

.ubicacion-desc {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Lista de puntos clave */
.puntos-clave {
    list-style: none;
    padding: 0;
    margin: 0;
}

.puntos-clave li {
    margin-bottom: 10px;
}

/* Columna del mapa */
.ubicacion-mapa-container {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ubicacion-mapa-container iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: none;
}

/* Diseño responsivo: se apilan en pantallas móviles */
@media (max-width: 900px) {
    .ubicacion-grid {
        flex-direction: column;
        gap: 25px;
    }
}

/* Centrar el título de la sección de ubicación */
/* Título centrado y con el tamaño exacto de las demás secciones */
.ubicacion-section .section-title {
    text-align: center;
    width: 100%;
    font-size: 2.5rem; /* Asegúrate de que este valor coincida con el de los h2 de "El proyecto" o "Departamentos" */
    font-weight: 700;  /* Ajusta si tus otros títulos usan un grosor distinto */
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* --- Sección Contacto --- */
.contact-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 100px 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-methods {
    margin-top: 15px;
    color: #cccccc;
}

.contact-methods a {
    color: #c5a880;
}

.contact-form {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #121212;
    border: 1px solid #333333;
    border-radius: 4px;
    color: #ffffff;
    font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c5a880;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 14px;
}

/* --- Footer --- */
.site-footer {
    background-color: #0d0d0d;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #222222;
    color: #777777;
    font-size: 14px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .site-nav {
        display: none;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .travel-times {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }
}

/* --- Estilos para el Modal Lightbox --- */
.lightbox-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(5px); /* Efecto difuminado moderno (opcional) */
}

/* Imagen ampliada dentro del modal */
.lightbox-contenido {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

/* Animación de apertura suave */
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Texto descriptivo opcional debajo de la foto */
#captionLightbox {
    margin: 15px auto;
    text-align: center;
    color: #ffffff;
    font-size: 1.1rem;
    font-family: inherit;
}

/* Botón de cerrar (la "X" de la esquina superior derecha) */
.lightbox-cerrar {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-cerrar:hover,
.lightbox-cerrar:focus {
    color: #ffc107; /* O el color de acento que uses en tu web */
    text-decoration: none;
    cursor: pointer;
}

/* Cursor de lupa o apuntador en las imágenes de la galería */
.galeria-img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.galeria-img:hover {
    transform: scale(1.02);
}

.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
}

.whatsapp-flotante img {
    width: 35px;
    height: 35px;
}