* {
  box-sizing: border-box;
}

html {
  font-size: clamp(16px, 0.28vw + 14px, 18px);
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 15%, rgba(191, 219, 254, 0.35) 0%, transparent 42%),
    radial-gradient(circle at 92% 10%, rgba(147, 197, 253, 0.2) 0%, transparent 40%),
    linear-gradient(160deg, #eff5fb 0%, #e7eef8 45%, #dde7f4 100%);
  color: #1f2a37;
  min-height: 100vh;
  line-height: 1.55;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.18);
}

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

.container {
  width: min(1220px, 94%);
  margin: 0 auto;
  padding: 2.2rem 0 3.2rem;
}

.navbar {
  background: linear-gradient(120deg, #1f3f68 0%, #2a507d 58%, #26476f 100%);
  color: #fff;
  padding: 1rem 3.5%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'brand menu controls';
  align-items: center;
  gap: 0.7rem 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.navbar__brand {
  grid-area: brand;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.navbar__logo {
  height: clamp(48px, 4.4vw, 68px);
  width: auto;
  display: block;
}

.navbar__controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: end;
  margin-left: 0;
}

.navbar__toggle {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  display: none;
  height: 36px;
  width: 42px;
  padding: 0;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
  align-items: center;
  justify-content: center;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 26px;
  height: 2px;
  background: #22334a;
  border-radius: 999px;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: #22334a;
  border-radius: 999px;
}

.navbar-toggler-icon::before {
  top: -7px;
}

.navbar-toggler-icon::after {
  top: 7px;
}

.navbar__links {
  grid-area: menu;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
  justify-content: center;
  justify-self: center;
  width: auto;
}

.navbar__label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
  display: none;
}

.navbar__menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

.navbar__menu li {
  flex: 0 0 auto;
}

.lang-selector__select {
  font-size: 0.86rem;
  height: 36px;
  padding: 0 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.94);
  color: #1f2a37;
  text-transform: uppercase;
  font-weight: 700;
  min-width: 84px;
}

@media (min-width: 1024px) {
  .nav-icon {
    display: none;
  }
}

.navbar__menu a {
  color: #fff;
  opacity: 0.92;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  transition: background 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.navbar__menu a.active,
.navbar__menu a:hover {
  opacity: 1;
  text-decoration: underline;
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 840px) {
  .navbar {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .navbar__logo {
    height: 52px;
  }

  .navbar__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .navbar__label {
    display: block;
  }

  .navbar__links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    overflow: visible;
  }

  .navbar__menu {
    flex-direction: column;
    align-items: flex-start;
    overflow-x: visible;
    white-space: normal;
  }

  .navbar__links.is-open {
    display: flex;
  }
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.hero--detail {
  align-items: start;
}

.hero__content {
  display: grid;
  gap: 1rem;
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero__content h1 {
  margin: 0 0 0.5rem;
}

.hero__content p {
  margin: 0;
}

.hero__list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.hero__list li {
  margin: 0;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero__image {
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.section--center {
  text-align: center;
}

.section h1 {
  font-size: clamp(1.75rem, 2vw, 2.35rem);
  margin: 0 0 0.8rem;
}

.section h2 {
  font-size: clamp(1.2rem, 1.5vw, 1.65rem);
  margin: 0 0 0.8rem;
}

.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.title-icon {
  width: 30px;
  height: 30px;
}

.section p {
  margin: 0 0 1.2rem;
  color: #334155;
  max-width: 72ch;
}

.map-image {
  width: 100%;
  max-width: 720px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.55);
  margin: 1rem 0 1.5rem;
}

.apartment-plan-image {
  max-width: 360px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 640px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.card {
  background: #ffffff;
  padding: 1.1rem;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid #dbe5f2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.room-card {
  text-decoration: none;
  color: inherit;
}

.room-card h3 {
  margin: 0.2rem 0 0.35rem;
}

.room-card p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.section-card {
  margin-bottom: 1rem;
}

.card-title {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0;
}

.card-title span {
  display: block;
  line-height: 1.35;
}

.card-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

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

.gallery-thumb {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
}

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

.lightbox.is-open {
  display: flex;
}

.lightbox__image {
  max-width: min(960px, 90vw);
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: #ffffff;
  color: #22334a;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.2rem;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #ffffff;
  color: #22334a;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.4rem;
}

.lightbox__prev {
  left: 1rem;
}

.lightbox__next {
  right: 1rem;
}

.list {
  display: grid;
  gap: 0.6rem;
}

.list li {
  list-style: none;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dbe5f2;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  position: relative;
  padding-left: 2.6rem;
}

.list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  position: absolute;
  left: 1rem;
  top: 1.1rem;
}

.list--no-bullets li::before {
  content: none;
}

.list--icon li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1rem;
}

.list--icon li::before {
  content: none;
}

.list-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.75;
  margin-top: 2px;
}

.list-item-icon {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-left: 1rem;
}

.list-item-icon::before {
  content: none;
}

.btn {
  display: inline-block;
  background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--ghost {
  background: transparent;
  color: #2c3e50;
  border: 1px solid #2c3e50;
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.4);
}

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.form-row--inline {
  display: grid;
  grid-template-columns: 240px minmax(180px, 260px);
  align-items: center;
  gap: 1rem;
}

.form-row--inline input {
  justify-self: start;
  width: 100%;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 24px;
}

.form input,
.form textarea {
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
}

.form input {
  height: 40px;
}

@media (max-width: 640px) {
  .form-row--inline {
    grid-template-columns: 1fr;
  }

  .form-row--inline input {
    justify-self: stretch;
  }
}

.faq {
  display: grid;
  gap: 1rem;
}

.faq details {
  gap: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 0.8rem;
}

.faq details p {
  margin: 0;
}

.testimonials {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.testimonials__viewport {
  position: relative;
  min-height: 220px;
}

.testimonial {
  display: none;
}

.testimonial.is-active {
  display: flex;
}

.testimonial__quote {
  font-size: 1.05rem;
  line-height: 1.6;
}

.testimonial__author {
  font-weight: 700;
  margin: 0.4rem 0 0;
}

.testimonial__role {
  margin: 0.2rem 0 0;
  color: #475569;
}

.testimonials__control {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.9);
  color: #1e3a8a;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.testimonials__dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.6);
  cursor: pointer;
}

.testimonials__dot.is-active {
  background: #2563eb;
}

@media (max-width: 640px) {
  .testimonials {
    grid-template-columns: 1fr;
  }

  .testimonials__control {
    display: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.footer {
  padding: 1.4rem 4%;
  text-align: center;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(203, 213, 225, 0.8);
}

.cta-section {
  padding: 0 4% 1.2rem;
  display: flex;
  justify-content: center;
}

.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 0.72rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
  min-width: min(240px, 90%);
}

.cta-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(37, 211, 102, 0.38);
}

@media (max-width: 840px) {
  .cta-section {
    position: sticky;
    bottom: 0;
    background: #f8fafc;
    padding: 0.75rem 4% 1rem;
    z-index: 90;
  }
}
