/* ====== ESTILOS GENERALES ====== */
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

/* ====== ENCABEZADO ====== */
header {
  background-color: #1b2430;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  height: 55px;
  width: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

header .logo:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-shrink: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s;
}

nav a:hover {
  color: #60a5fa;
}

/* ====== SECCIONES ====== */
section {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
  border-bottom: 3px solid #60a5fa;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* ====== PROPIEDADES ====== */
.propiedades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.propiedad {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 1rem;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.propiedad:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.propiedad img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.propiedad h3 {
  margin: 1rem;
  font-size: 1.2rem;
}

.propiedad
/* ====== ESTILOS GENERALES ====== */
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

/* ====== ENCABEZADO ====== */
header {
  background-color: #1b2430;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  height: 55px;
  width: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

header .logo:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-shrink: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s;
}

nav a:hover {
  color: #60a5fa;
}

/* ====== SECCIONES ====== */
section {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
  border-bottom: 3px solid #60a5fa;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* ====== PROPIEDADES ====== */
.propiedades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.propiedad {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 1rem;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.propiedad:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.propiedad img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.propiedad h3 {
  margin: 1rem;
  font-size: 1.2rem;
}

.propiedad p {
  margin: 0 1rem 1rem;
  color: #555;
}

/* ====== CONTACTO ====== */
#contacto p {
  margin-bottom: 0.5rem;
}

#contacto a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

#contacto a:hover {
  text-decoration: underline;
}

/* ====== PIE DE PÁGINA ====== */
footer {
  background-color: #1f2937;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ====== ESTATUS ====== */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  top: -1px;
}

.red { background-color: #e53935; }
.green { background-color: #4caf50; }
.yellow { background-color: #fbc02d; }

/* ====== SLIDER PRINCIPAL ====== */
.image-slider {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

.image-slider img {
  width: 100%;
  display: none;
  border-radius: 10px;
}

.image-slider img.active {
  display: block;
}

.image-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.35);
  color: white;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  transition: background-color 0.3s, transform 0.2s;
  backdrop-filter: blur(3px);
}

.image-slider button.prev { left: 8px; }
.image-slider button.next { right: 8px; }

.image-slider button:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

/* ====== MODAL SLIDER ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 50px auto;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 350px; /* mismo que el slider exterior */
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  position: relative; /* importante para la "x" */
}

/* contenedor del slider dentro del modal */
.modal-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 15px;
  overflow: hidden;
  border-radius: 12px;
}

/* imagen dentro del modal */
.modal-slider img,
.modal-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: none;
  border-radius: 12px;
  opacity: 0.95;
  transition: opacity 0.35s ease;
}

.modal-slider img.active,
.modal-image.active {
  display: block;
  opacity: 1;
}

/* ====== Flechas del modal ====== */
.modal-slider .modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.45);
  color: white;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  z-index: 5;
}

.modal-slider .modal-arrow.left { left: 5px; }
.modal-slider .modal-arrow.right { right: 5px; }

.modal-slider .modal-arrow:hover {
  background-color: rgba(0,0,0,0.75);
  transform: translateY(-50%) scale(1.08);
}

/* texto del modal */
.modal-text {
  text-align: left;
  color: #333;
  margin-top: 8px;
}

.close {
  color: black;
  position: absolute;
  top: 15px;
  right: 30px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1002;
}

.close:hover {
  color: black;
}

/* ====== RESPONSIVE CELULAR ====== */
@media (max-width: 600px) {
  header {
    flex-wrap: nowrap;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
  }

  nav a { margin: 0; }
}
