/* ========================================
   DELUX ARRIENDOS - PROPIEDADES
   Estilo coherente con styles.css
   3 recuadros por línea, diseño elegante
======================================== */

/* ------------------------------
   VARIABLES GLOBALES
--------------------------------*/
:root {
  --primary: #2b3c6f;
  --secondary: #f6c90e;
  --gray-light: #f4f5f7;
  --gray-medium: #d8dadd;
  --gray-dark: #5a5a5a;
  --text: #222;
  --radius: 14px;
  --font-main: "Poppins", "Segoe UI", sans-serif;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ------------------------------
   RESET BÁSICO
--------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ------------------------------
   BODY / FONDO
--------------------------------*/
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--gray-light)
    url("https://www.transparenttextures.com/patterns/corrugated-metal.png");
  background-attachment: fixed;
  background-size: cover;
  line-height: 1.6;
  padding-top: 2rem;
}

/* ------------------------------
   CONTENEDOR PRINCIPAL

/* ------------------------------
   TÍTULO DE PÁGINA
--------------------------------*/
.titulo-pagina {
  text-align: center;
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: 0.5px;
}

/* ------------------------------
   GRID DE PROPIEDADES
--------------------------------*/
.grid-propiedades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* ------------------------------
   TARJETA DE PROPIEDAD
--------------------------------*/
.prop-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 370px;
}

.prop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.15);
}

/* ------------------------------
   IMAGEN PRINCIPAL
--------------------------------*/
.prop-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--gray-medium);
  transition: transform 0.3s ease;
}

.prop-card:hover img {
  transform: scale(1.05);
}

/* ------------------------------
   INFORMACIÓN DE PROPIEDAD
--------------------------------*/
.prop-info {
  padding: 1.2rem 1.4rem 1.5rem;
  text-align: left;
}

.prop-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.prop-info .ubicacion {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.prop-info .descripcion {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  height: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prop-info .precio {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ------------------------------
   BOTÓN DE DETALLE
--------------------------------*/
.btn-vermas {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-vermas:hover {
  background: #344b86;
  transform: translateY(-2px);
}

/* ------------------------------
   GALERÍA MINI (opcional)
--------------------------------*/
.mini-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.mini-galeria img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mini-galeria img:hover {
  transform: scale(1.05);
}

/* ------------------------------
   RESPONSIVE
--------------------------------*/
@media (max-width: 1024px) {
  .grid-propiedades {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .prop-card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .grid-propiedades {
    grid-template-columns: 1fr 1fr;
  }

  .prop-card img {
    height: 180px;
  }
}

@media (max-width: 560px) {
  .grid-propiedades {
    grid-template-columns: 1fr;
  }

  .prop-card {
    max-width: 100%;
  }
}
/* ===========================
   MODAL DELUXE ULTRA PREMIUM
=========================== */
.modal-deluxe {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.modal-content-deluxe {
  background: #fff;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
  transition: 0.3s;
}

.close-modal:hover {
  color: #ff4d6d;
}

.modal-body img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.btn-contacto {
  background-color: #ffcc00;
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-contacto:hover {
  background-color: #ffd633;
}
/* ======== MODAL ======== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  animation: aparecer 0.4s ease;
}

@keyframes aparecer {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.8rem;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #007aff;
}

/* ======== GALERÍA ======== */
.modal-galeria {
  text-align: center;
}

#modal-imagen-principal {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
}

.modal-miniaturas {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-miniaturas img {
  width: 80px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-miniaturas img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* ======== INFORMACIÓN ======== */
.modal-info {
  margin-top: 1.5rem;
  color: #222;
}

.modal-info h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.modal-info p {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

#modal-precio {
  font-weight: 700;
  color: #007aff;
}

#modal-video {
  width: 100%;
  height: 400px;
  margin-top: 1rem;
  border-radius: 10px;
}
