/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

.especial-carousel {
  max-width: 600px;
  margin: 30px auto;
}


/* HEADER */
/* Header principal con degradado y borde */
/* Header con degradado */
.header {
  position: relative;
  background:#00a856;
  color: white;
  padding: 60px 20px;
  border-bottom: 4px solid #009c4f;
  overflow: hidden;
}

/* Logo a la izquierda */
.logo-header {
  position: absolute;
  top: 15px;
  left: 150px;
  height: 90px;
  width: auto;
}

/* Contenedor central */
.header-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Título principal */
.titulo {
  font-size: 3rem;
  font-weight: 800;
  color: white;
}

/* Subtítulo */
.subtitulo {
  font-size: 1.2rem;
  margin-top: 10px;
  opacity: 0.95;
}






/* SECCIONES */
.seccion {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.seccion h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00a856;
  text-align: center;
  margin-bottom: 30px;
}





/* CASAS GRID */
.casas-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.casa-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 320px;
}

.casa-card:hover {
  transform: translateY(-6px);
}

.casa-card h3 {
  text-align: center;
  padding: 15px;
  font-size: 1.3rem;
  background: #f3f3f3;
  color: #333;
}

/* CARRUSEL */
.carousel {
  position: relative;
}

.carousel-images {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.carousel-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: none;
}

.carousel-images img.active {
  display: block;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #00a856 !important;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
  background: #00c266;
  color: white;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* BOTÓN */
.casa-card button,
.postulacion button {
  display: block;
  width: fit-content;
  margin: 15px auto 20px auto; /* Centrado horizontal */
  background: #00c23a;
  color: white;
  font-weight: 600;
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}


.casa-card button:hover,
.postulacion button:hover {
  background: #009a55;
}

/* POSTULACIÓN INFO */
.postulacion {
  background: #fff;
  border: 2px dashed #00c266;
  border-radius: 12px;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

.postulacion p {
  font-size: 1.05rem;
  margin: 10px 0 20px 0;
  max-width: 700px;
  margin-inline: auto;
  color: #444;
}

/* MODALES */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.modal-content h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #00a856;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-content input,
.modal-content textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.modal-content textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 200px;
}

.modal-content button[type="submit"] {
  background: #00c266;
  color: white;
  border: none;
  padding: 12px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
}

.modal-content button[type="submit"]:hover {
  background: #00a856;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #000;
}

/* RESULTADO */
.resultado {
  margin-top: 10px;
  font-size: 0.95rem;
  text-align: center;
}

.resultado.hidden {
  display: none;
}

.resultado.success {
  color: #00c266;
}

.resultado.error {
  color: red;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .casas-grid {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .modal-content {
    width: 90%;
  }
}


.acordeon {
  margin-top: 20px;
  text-align: center;
}

.acordeon-btn {
  background-color: #00a95c;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.acordeon-btn:hover {
  background-color: #008e4d;
}

.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.acordeon-contenido.active {
  max-height: 500px;
  margin-top: 15px;
}

.acordeon-contenido table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.acordeon-contenido th,
.acordeon-contenido td {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

.acordeon-contenido th {
  background-color: #f2f2f2;
  font-weight: 600;
}


.casa-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 320px;
}

.casa-card:hover {
  transform: translateY(-6px);
}

.casa-card h3 {
  text-align: center;
  padding: 15px;
  font-size: 1.3rem;
  background: #f3f3f3;
  color: #333;
  margin: 0;
  border-bottom: 1px solid #ddd;
}

.casa-card .disponibilidad {
  display: block;
  text-align: center;
  padding: 8px;
  font-weight: bold;
  font-size: 1rem;
  border-top: 1px solid #f0f0f0;
  margin: 0;
}

.disponible {
  background-color: #e9fbee;
  color: #00a856;
}

.no-disponible {
  background-color: #ffe5e5;
  color: #cc0000;
}


.especial-carousel .carousel-images {
  height: 300px; /* o el alto que desees */
}

.especial-carousel .carousel-images img {
  height: 300px;
}


.mapa-interactivo {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.mapa-interactivo h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}

.contenedor-mapa {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.imagen-mapa {
  width: 100%;
  height: auto;
  display: block;
}

.punto-con-tarjeta {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 10;
  text-align: center;
}

.icono-punto img {
  width: 30px;
  height: auto;
  transition: transform 0.2s;
}

.icono-punto:hover img {
  transform: scale(1.2);
}

.tarjeta-info {
  background: white;
  border: 2px solid #00a856;
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  display: none;
}

.punto-con-tarjeta.mostrar .tarjeta-info {
  display: block;
}
