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

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #163452;
  background-color: #f5f7fb;
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e0e6f0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-text h1 {
  font-size: 1rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.brand-text p {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  font-weight: 500;
  color: #00a36a;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-list a {
  position: relative;
  padding-block: 0.25rem;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #004b8d, #00a36a);
  transition: width 0.25s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d0d7e5;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 16px;
  background: #163452;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #004b8d, #00a36a);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 75, 141, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 75, 141, 0.3);
}

.btn-outline {
  border: 1px solid #004b8d;
  color: #004b8d;
  background: #ffffff;
}

.btn-outline:hover {
  background: #004b8d;
  color: #ffffff;
}

.btn-ghost {
  border: 1px solid transparent;
  background: #ffffff;
  color: #004b8d;
}

.btn-ghost:hover {
  border-color: #d0d7e5;
  background: #f0f3fa;
}

.btn.full-width {
  width: 100%;
}

.header-call {
  font-size: 0.8rem;
  padding-inline: 1rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, #00a36a55, transparent 55%),
    linear-gradient(135deg, #020b17aa, #04162aee);
  z-index: -1;
}

.hero-content {
  color: #ffffff;
  padding-block: 5rem;
}

.hero h2 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  max-width: 19ch;
  font-weight: 700;
}

.hero p {
  max-width: 42ch;
  margin-top: 1rem;
  font-size: 0.98rem;
  color: #e7eef7;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-tagline {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8dbff;
}

/* Sections */

.section {
  padding-block: 4rem;
}

.section-alt {
  background: #ffffff;
}

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

.section-header.align-left {
  text-align: left;
}

.section-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.section-header p {
  color: #5d6b82;
  font-size: 0.95rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.card {
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 14px 40px rgba(15, 46, 86, 0.08);
  border: 1px solid #e2e8f3;
}

.card h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.9rem;
  color: #4d6075;
}

/* Propiedades */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.feature-list {
  list-style: none;
  margin-block: 1rem 1.4rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.93rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #004b8d, #00a36a);
}

.note {
  font-size: 0.86rem;
  color: #647795;
  margin-bottom: 0.9rem;
}

.properties-grid {
  display: grid;
  gap: 1.25rem;
}

.property-card {
  background: #0f3255;
  border-radius: 1.4rem;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(9, 37, 70, 0.45);
}

.property-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.property-body {
  padding: 1.2rem 1.4rem 1.4rem;
}

.property-body h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.property-body p {
  font-size: 0.88rem;
  color: #dbe6ff;
}

/* Galería */

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

.gallery-item {
  border-radius: 1.2rem;
  overflow: hidden;
  background: #dde6f5;
  cursor: zoom-in;
  box-shadow: 0 10px 30px rgba(9, 30, 66, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(1, 10, 22, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: min(960px, 96vw);
  max-height: 88vh;
  border-radius: 1.2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

/* Redes */

.social-embed iframe {
  width: 100%;
  border-radius: 1.2rem;
  box-shadow: 0 16px 40px rgba(9, 30, 66, 0.2);
}

/* Contacto */

.contact-section {
  align-items: stretch;
}

.contact-info .contact-list {
  list-style: none;
  margin-block: 1rem 1.4rem;
  font-size: 0.93rem;
}

.contact-info .contact-list li {
  margin-bottom: 0.35rem;
}

.map-wrapper iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 1.2rem;
  box-shadow: 0 10px 30px rgba(9, 30, 66, 0.2);
  margin-top: 1rem;
}

.contact-form-wrapper {
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 14px 40px rgba(9, 30, 66, 0.15);
  border: 1px solid #e1e8f3;
}

.contact-form .form-group {
  margin-bottom: 0.9rem;
}

.contact-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  border: 1px solid #ccd6ea;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #f7f9ff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #004b8d;
  box-shadow: 0 0 0 1px #004b8d33;
  background: #ffffff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  color: #6b7b92;
}

/* Footer */

.main-footer {
  background: #041528;
  color: #d7e4ff;
  padding-block: 1.4rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.main-footer a {
  color: #8fd8ff;
}

/* WhatsApp Float */

.whatsapp-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.4rem;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  z-index: 40;
}

.whatsapp-icon {
  font-size: 1.6rem;
  color: #ffffff;
}

/* Responsive */

@media (max-width: 860px) {
  .nav-list {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 0.5rem 1.4rem 1rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 0 12px 30px rgba(9, 30, 66, 0.15);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav-list.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .header-call {
    display: none;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding-block: 3.8rem;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .properties-grid {
    order: -1;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.6rem, 100%);
  }

  .hero h2 {
    font-size: 1.8rem;
  }

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

  .gallery-item img {
    height: 210px;
  }

  .contact-form-wrapper {
    padding: 1.3rem 1.4rem;
  }
}
