* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(145deg, #2e2e2e, #3a3a3a);
    color: #fff;
  }
  
  header {
    background: #1c1c1c;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }
  
  .logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #ccc;
    letter-spacing: 1px;
  }
  
  nav a {
    color: #bbb;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
  }
  
  nav a:hover {
    color: #fff;
  }
  
  .hero {
    height: 90vh;
    background: url('fondooo.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 60px;
    color: white;
    text-shadow: 1px 1px 4px black;
  }
  
  .hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    max-width: 700px;
  }
  
  .hero p {
    font-size: 1.2rem;
    margin: 20px 0;
    max-width: 600px;
  }
  
  .boton-hero {
    padding: 12px 30px;
    background-color: #8b8b8b;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;

  }
  
  .boton-hero:hover {
    background-color: #aaa;
  }

  
  
 /* Contenedor principal de las tarjetas */
.propiedades {
  padding: 60px 40px;
  background-color: #2b2b2b;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Tarjetas individuales */
.card {
  background-color: #1e1e1e;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
}

/* Contenedor del carrusel de imágenes */
.card .swiper-container {
  width: 100%;
  aspect-ratio: 16 / 9; /* Mantiene proporción correcta y evita imágenes aplastadas */
}

/* Estilo de las imágenes */
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Rellena el espacio sin deformar */
  display: block;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

/* Contenido textual dentro de la tarjeta */
.card .info {
  padding: 20px;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.card p {
  font-size: 0.95rem;
  color: #ccc;
}

/* Botones del swiper */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  z-index: 10;
}

/* ------------------- DISEÑO RESPONSIVE ------------------- */

/* Tablets */
@media (max-width: 992px) {
  .propiedades {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 20px;
  }

  .card h3 {
    font-size: 1.3rem;
  }

  .card p {
    font-size: 0.9rem;
  }
}

/* Celulares */
@media (max-width: 600px) {
  .propiedades {
    grid-template-columns: 1fr;
    padding: 30px 15px;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.85rem;
  }
}

  
  footer {
    background-color: #1c1c1c;
    padding: 30px;
    text-align: center;
    color: #bbb;
  }
  
  footer p {
    font-size: 0.9rem;
  }

  .contacto {
    background-color: #1e1e1e;
    padding: 60px 40px;
    color: white;
    text-align: center;
  }
  
  .contacto h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #f0f0f0;
  }
  
  .contacto form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #2b2b2b;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .contacto label {
    text-align: left;
    font-weight: 600;
    color: #ccc;
  }
  
  .contacto input,
  .contacto textarea,
  .contacto select {
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #333;
    color: #f0f0f0;
    outline: none;
    transition: all 0.3s ease;
  }
  
  .contacto input:focus,
  .contacto textarea:focus,
  .contacto select:focus {
    background-color: #444;
    box-shadow: 0 0 0 2px #888;
  }
  
  .contacto button {
    background-color: #8b8b8b;
    color: white;
    border: none;
    padding: 14px;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
  }
  
  .contacto button:hover {
    background-color: #aaa;
    transform: scale(1.03);
  }
  
  .nosotros {
    background-color: #262626;
    color: white;
    padding: 60px 40px;
    text-align: center;
  }
  
  .nosotros h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .nosotros p {
    max-width: 800px;
    margin: 10px auto;
    line-height: 1.7;
    font-size: 1.1rem;
  }
  .oculto {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
  }
  
  .visible {
    opacity: 1;
    transform: translateY(0);
  
  }

  .detalles i {
    color: #aaa;
    margin-right: 5px;
  }
  
  .mensaje-exito {
    margin-top: 25px;
    padding: 18px;
    background-color: #2e7d32;
    color: #fff;
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    display: none;
  }

  .mensaje-exito.visible {
    display: block;
  }

  footer {
    background-color: #1e1e1e;
    text-align: center;
    padding: 20px;
    color: #888;
    margin-top: 60px;
    font-size: 0.9rem;
  }

  		#whatsapp-button {
        position: fixed;
        bottom: 20px; /* Espacio desde la parte inferior */
        right: 20px; /* Espacio desde la derecha */
        background-color: #25D366; /* Color de fondo de WhatsApp */
        color: white; /* Color del ícono */
        border-radius: 50%; /* Hacerlo circular */
        width: 60px; /* Ancho del botón */
        height: 60px; /* Alto del botón */
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-decoration: none; /* Sin subrayado */
        transition: background 0.3s; /* Efecto de transición al pasar el mouse */
		animation: bounce 2s infinite; /* Agregar animación de rebote */
		}

		#whatsapp-button:hover {
			background-color: #128C7E; /* Color más oscuro al pasar el cursor */
		}

		#whatsapp-button i {
			font-size: 24px; /* Tamaño del ícono */
		}
		@keyframes bounce {
			0%, 20%, 50%, 80%, 100% {
				transform: translateY(0); /* Posición inicial */
			}
			40% {
				transform: translateY(-10px); /* Subir 10px */
			}
			60% {
				transform: translateY(-5px); /* Subir 5px */
			}
		}
		#help-text {
			display: none;
			position: absolute;
			bottom: 100px; /* Justo encima del botón */
			right: 70px;
			background-color: #25D366;
			color: white;
			padding: 10px;
			border-radius: 5px;
			font-size: 14px;
			box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
		} 
		
		/* Mostrar el texto cuando se hace hover en el botón de WhatsApp */
		#whatsapp-button:hover + #help-text {
			display: block;
		}
		
		@media (max-width: 600px) {
            nav ul {
                flex-direction: column; /* Cambiar a columna para móviles */
            }
        }

  
.estado-badge {
  position: absolute;
  background-color: #f57c00; /* Naranjo fuerte */
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
  font-size: 1.1rem;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Asegúrate que la tarjeta tenga posición relativa */
.card {
  position: relative;
}

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none; /* Mostrarlo con JS */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: url('publi.png') center/cover no-repeat;
  padding: 40px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  position: relative;
}

.popup-texto h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.popup-texto p {
  margin-bottom: 20px;
}

.popup-texto input,
.popup-texto button {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.popup-texto input {
  background-color: rgba(255,255,255,0.9);
  color: #000;
}

.popup-texto button {
  background-color: #f57c00;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.popup-texto button:hover {
  background-color: #ffa726;
}

.cerrar-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}
