/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
}

/* === HEADER (común en todas las páginas) === */
header {
  background: #1a1a1a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none; /* Elimina subrayado */
  color: inherit; /* Mantiene el color del texto */
}

.logo-container img {
  width: 50px;
  height: auto;
}

.logo-container h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 600;
}

nav a:hover {
  color: #ffd700;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

/* Mobile menu */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1a1a1a;
  padding: 80px 20px 30px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
}

.mobile-nav.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 10px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #333;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === SECTIONS COMUNES === */
.footer {
  background-color: #000;
  color: #d4af37;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #d4af37;
  margin-top: 60px;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
}

.footer p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.redes-sociales {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.redes-sociales a {
  color: #d4af37;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.redes-sociales a:hover {
  color: #fff;
  transform: scale(1.2);
}

/* === PÁGINA: INDEX.HTML === */
.hero {
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url(assets/imagen6.jpeg) no-repeat center/cover;
  height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  animation: fadeIn 2s ease;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #d4af37;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
}

.manifiesto {
  padding: 60px 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeUp 1.5s ease;
}

.manifiesto h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #d4af37;
}

.imagenes-extra {
  background: #000;
  padding: 50px 20px;
  text-align: center;
}

.contenedor-imagenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.contenedor-imagenes img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.contenedor-imagenes img:hover {
  transform: scale(1.05);
}

.asesores {
  background-color: #111;
  padding: 60px 20px;
  text-align: center;
}

.titulo-asesores {
  color: #d4af37;
  font-size: 1.8rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
  font-family: 'Playfair Display', serif;
}

.contenedor-asesores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.asesor-card {
  background: #000;
  border: 1px solid #d4af37;
  border-radius: 15px;
  max-width: 300px;
  padding: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.asesor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.asesor-card {
  background: #000;
  border: 1px solid #d4af37;
  border-radius: 15px;
  max-width: 300px;
  padding: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  text-decoration: none; /* Elimina subrayado del enlace */
  color: inherit; /* Hereda el color del texto del contenedor */
}

.asesor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.asesor-card h3 {
  color: #d4af37;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.asesor-card p {
  color: #fff;
  font-size: 0.95rem;
}

.galeria-section,
.luxury-section,
.remate-section {
  padding: 60px 20px;
}
.sin-propiedades {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Playfair Display', serif;
}

.sin-propiedades p {
  line-height: 1.6;
}

.sin-propiedades a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
}

.sin-propiedades a:hover {
  text-decoration: underline;
}
.titulo-propiedades,
.titulo-lujo,
.titulo-remate {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #d4af37;
  animation: fadeUp 1.2s ease;
}

.subtitulo-lujo,
.subtitulo-remate {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #aaa;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.galeria,
.galeria-lujo,
.galeria-remate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.propiedad-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 340px; /* Altura total fija */
}

.propiedad-card img {
  width: 100%;
  height: 250px; /* Altura fija para la imagen */
  object-fit: cover;
  border: 2px solid #d4af37;
  border-radius: 10px 10px 0 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.propiedad-card:hover img {
  transform: scale(1.03);
  box-shadow: 0 0 20px #d4af37;
}

.info-propiedad {
  padding: 12px 0;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  border: 1px solid #d4af37;
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.info-propiedad h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-propiedad p {
  color: #d4af37;
  font-weight: 600;
  font-size: 1.1rem;
}

.videos-section {
  background-color: #000;
  padding: 60px 20px;
  text-align: center;
}

.titulo-videos {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #d4af37;
  margin-bottom: 40px;
  animation: fadeUp 1.2s ease;
}

.contenedor-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  border: 2px solid #d4af37;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.video-card iframe {
  width: 100%;
  height: 200px;
  display: block;
}

/* === PÁGINA: CONTACTO.HTML === */
.contacto-section {
  max-width: 800px;
  margin: 100px auto 60px;
  padding: 20px;
  text-align: center;
  animation: fadeUp 1.2s ease;
}

.contacto-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #d4af37;
  margin-bottom: 30px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-bottom: 30px;
}

.tel-boton,
.correo-boton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: #d4af37;
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

.tel-boton:hover,
.correo-boton:hover {
  background-color: #fff;
  transform: translateY(-2px);
}

.phone-number {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #d4af37;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ffffff;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #d4af37;
}

button {
  background: #d4af37;
  color: #000;
  padding: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

button:hover {
  background: #b9972e;
  transform: translateY(-2px);
}

/* === PÁGINA: CASA-CANCUN.HTML === */
.detalle-propiedad {
  max-width: 1200px;
  margin: 100px auto 60px;
  padding: 20px;
  color: #fff;
}

.detalle-propiedad h1 {
  color: #d4af37;
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  animation: fadeUp 1s ease;
}

.galeria-detalle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.galeria-detalle img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #d4af37;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.galeria-detalle img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.info-detalle {
  background: rgba(26, 26, 26, 0.85);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #d4af37;
  margin-bottom: 30px;
}

.info-detalle p {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.info-detalle p strong {
  color: #d4af37;
  font-weight: 600;
}

.boton-contacto {
  display: inline-block;
  background: #d4af37;
  color: #000;
  padding: 14px 32px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  text-align: center;
  margin: 0 auto;
  display: block;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.boton-contacto:hover {
  background: #b8902d;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  /* Index */
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }
  .manifiesto h2,
  .titulo-propiedades,
  .titulo-lujo,
  .titulo-remate,
  .titulo-videos,
  .titulo-contacto,
  .contacto-section h1,
  .detalle-propiedad h1 { font-size: 2rem; }
  .titulo-asesores { font-size: 1.5rem; }
  .asesor-card img { width: 120px; height: 120px; }
  .video-card iframe { height: 180px; }
  .subtitulo-lujo,
  .subtitulo-remate { font-size: 1rem; }
  .contacto-link { font-size: 1rem; }

  /* Contacto */
  .contacto-section { margin: 80px auto 40px; }
  .contacto-section h1 { font-size: 2rem; }

  /* Casa Cancún */
  .detalle-propiedad { margin: 80px auto 40px; }
  .galeria-detalle { grid-template-columns: 1fr; gap: 15px; }
  .galeria-detalle img { height: 200px; }
  .info-detalle { padding: 20px; }
  .info-detalle p { font-size: 1rem; }
  .boton-contacto {
    padding: 12px 25px;
    font-size: 1rem;
    width: 90%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .manifiesto h2,
  .titulo-propiedades,
  .titulo-lujo,
  .titulo-remate,
  .titulo-videos,
  .titulo-contacto,
  .contacto-section h1,
  .detalle-propiedad h1 { font-size: 1.8rem; }
  .titulo-asesores { font-size: 1.3rem; }
  .asesor-card h3 { font-size: 1rem; }
  .asesor-card p { font-size: 0.85rem; }
  .footer p { font-size: 0.8rem; }
  .video-card iframe { height: 160px; }
  .subtitulo-lujo,
  .subtitulo-remate { font-size: 0.9rem; }
  .contacto-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .info-detalle p { font-size: 0.95rem; }
}