*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #202533;
  background-color: #f5f5f7;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Navbar */

.main-header {
  position: relative;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 18, 40, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-logo img {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #c9a25a;
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #f9fafb;
}

/* Hero */

.hero {
  position: relative;
  min-height: 80vh;
  padding-top: 70px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 16, 35, 0.8), rgba(11, 16, 35, 0.45));
}

.hero-content {
  position: relative;
  color: #f9fafb;
  text-align: left;
  width: min(1120px, 92%);
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: #f9fafb;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  max-width: 540px;
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn.primary {
  background: #c9a25a;
  color: #0b1023;
  font-weight: 600;
}

.btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn.secondary {
  border-color: #f9fafb;
  color: #f9fafb;
  background: transparent;
}

.btn.secondary i {
  margin-right: 0.4rem;
}

.btn.secondary:hover {
  background: rgba(249, 250, 251, 0.12);
}

.btn-link {
  font-size: 0.9rem;
  color: #c9a25a;
  font-weight: 500;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn.full {
  width: 100%;
}

/* Secciones generales */

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: #5f6474;
}

/* Nosotros */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.about h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about h2 span {
  color: #c9a25a;
}

.about p {
  margin-bottom: 0.8rem;
  color: #4b5062;
}

.icon-list {
  list-style: none;
  margin-top: 0.5rem;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: #333746;
}

.icon-list i {
  color: #c9a25a;
}

.about-image img {
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
}

/* Propiedades */

.properties {
  background: #ffffff;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.property-card {
  background: #f9fafb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.property-image {
  position: relative;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.property-card:hover .property-image img {
  transform: scale(1.06);
}

.property-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(16, 24, 40, 0.9);
  color: #f9fafb;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.property-content {
  padding: 1.2rem 1.2rem 1.3rem;
}

.property-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.property-content p {
  font-size: 0.9rem;
  color: #555a6c;
  margin-bottom: 0.8rem;
}

.property-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #373c4a;
  margin-bottom: 0.8rem;
}

.property-features i {
  margin-right: 0.25rem;
}

/* Galería */

.gallery-wrapper h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.gallery-wrapper p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #5f6474;
}

.gallery-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.gallery-grid img {
  border-radius: 12px;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
}

/* Video */

.video-section {
  background: #0f172a;
  color: #f9fafb;
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.video-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.video-text p {
  color: #e5e7eb;
}

.video-frame-wrapper {
  width: 100%;
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Redes sociales */

.social-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.social-block h2,
.social-block h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.6rem;
}

.social-block p {
  color: #4b5062;
  margin-bottom: 0.9rem;
}

.social-links-inline {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
}

.social-icon.fb {
  background: #1877f2;
}

.social-icon.ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.wa {
  background: #25d366;
}

/* Contacto */

.contact {
  background: #f5f5f7;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.contact-info p {
  color: #4b5062;
}

.contact-list {
  list-style: none;
  margin: 1rem 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: #111827;
}

.contact-list i {
  color: #c9a25a;
}

.contact-note {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Formulario */

.contact-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #4b5062;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #c9a25a;
  box-shadow: 0 0 0 1px rgba(201, 162, 90, 0.3);
}

/* WhatsApp flotante */

.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  z-index: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

/* Footer */

.main-footer {
  background: #0b1023;
  color: #e5e7eb;
  padding-top: 2.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.footer-brand img {
  height: 42px;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  color: #d1d5db;
}

.footer-info p,
.footer-links p {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: #f9fafb;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  margin-top: 1.6rem;
  padding: 0.9rem 5%;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-bottom a {
  color: #e5e7eb;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 950;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2rem;
  color: #e5e7eb;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 900px) {
  .about-grid,
  .video-grid,
  .social-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding-inline: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 55px;
    right: 1rem;
    flex-direction: column;
    background: rgba(11, 16, 35, 0.98);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .hero {
    text-align: left;
    justify-content: flex-start;
  }

  .hero-content {
    padding-inline: 1.1rem;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 140px;
  }

  .social-block:nth-child(2) {
    max-width: 420px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 78vh;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 3rem 0;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .footer-grid {
    gap: 1rem;
  }

  .whatsapp-float {
    bottom: 14px;
    right: 14px;
  }
}
