:root {
  --primary: #d50018;
  --primary-dark: #9b0012;
  --gold: #ffd400;
  --ink: #171717;
}

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

.nav-link {
  position: relative;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--primary);
  transition: transform 180ms ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.mobile-link {
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  transition: background 180ms ease, color 180ms ease;
}

.mobile-link:hover {
  background: #fff1f2;
  color: var(--primary);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

#menuButton.is-open .hamburger {
  transform: rotate(45deg);
}

#menuButton.is-open .hamburger::before {
  transform: translateY(7px) rotate(90deg);
}

#menuButton.is-open .hamburger::after {
  opacity: 0;
}

.section-pad {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.section-title {
  margin-top: 0.8rem;
  color: var(--ink);
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 1.05;
  font-weight: 950;
}

.text-primary-DEFAULT {
  color: var(--primary);
}

.hero-proof {
  min-height: 108px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  padding: 1rem;
  backdrop-filter: blur(14px);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  font-size: 0.95rem;
  font-weight: 950;
}

.hero-proof span {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.45;
}

.hero-card {
  align-self: center;
}

.hero-card-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 1rem;
}

.hero-card-row span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #111;
  font-size: 0.8rem;
  font-weight: 950;
}

.hero-card-row p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-weight: 950;
}

.trust-strip span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.glass-panel {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 80px rgba(213, 0, 24, 0.25);
}

.info-tile,
.service-card,
.unit-card,
.contact-panel,
.map-panel,
.category-panel {
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 60px rgba(24, 24, 27, 0.08);
  backdrop-filter: blur(16px);
}

.info-tile {
  padding: 1.5rem;
}

.service-card {
  min-height: 290px;
  padding: 2rem;
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(213, 0, 24, 0.28);
  box-shadow: 0 30px 80px rgba(213, 0, 24, 0.14);
}

.service-card h3 {
  margin-top: 1rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.service-card p {
  margin-top: 0.8rem;
  color: #52525b;
  line-height: 1.75;
}

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

.feature-card {
  min-height: 260px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 212, 0, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.feature-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #111;
  font-size: 0.82rem;
  font-weight: 950;
}

.feature-card h3 {
  margin-top: 1.2rem;
  font-size: 1.35rem;
  font-weight: 950;
}

.feature-card p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.category-panel {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2rem);
}

.category-panel h3 {
  margin-top: 0.7rem;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.1;
  font-weight: 950;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-list span {
  border-radius: 8px;
  border: 1px solid rgba(213, 0, 24, 0.16);
  background: #fff;
  padding: 0.75rem 0.95rem;
  color: #3f3f46;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(24, 24, 27, 0.05);
}

.unit-card {
  padding: 1.45rem;
  transition: transform 200ms ease, border-color 200ms ease;
}

.unit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(213, 0, 24, 0.3);
}

.unit-card h3 {
  margin: 0.45rem 0 0.8rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.25;
}

.unit-card p {
  color: #52525b;
  font-size: 0.95rem;
  line-height: 1.65;
}

.unit-card .unit-city {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.unit-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.unit-actions a {
  display: inline-flex;
  justify-content: center;
  min-width: 74px;
  border-radius: 8px;
  border: 1px solid rgba(213, 0, 24, 0.2);
  padding: 0.62rem 0.9rem;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.unit-actions a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.cta-band {
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.74), rgba(155, 0, 18, 0.9)),
    url("img/barato-3.jpeg") center/cover;
}

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

.gallery-item {
  grid-column: span 2;
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: #27272a;
}

.gallery-item:first-child {
  grid-column: span 3;
}

.gallery-item:nth-child(2) {
  grid-column: span 3;
}

.gallery-tall {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.contact-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-panel h3 {
  font-size: 1.5rem;
  font-weight: 950;
  color: var(--ink);
}

.contact-panel dt {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel dd {
  margin-top: 0.25rem;
  color: #3f3f46;
  font-weight: 650;
  line-height: 1.55;
}

.contact-panel a {
  overflow-wrap: anywhere;
}

.map-panel {
  min-height: 500px;
  overflow: hidden;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
}

.footer-list {
  display: grid;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-card {
  animation: modalIn 220ms ease both;
}

.whatsapp-list {
  display: grid;
  gap: 0.85rem;
}

.whatsapp-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(213, 0, 24, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(24, 24, 27, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.whatsapp-option:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: #fff7f7;
}

.whatsapp-option span,
.whatsapp-option strong,
.whatsapp-option small {
  display: block;
}

.whatsapp-option strong {
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.35;
}

.whatsapp-option small {
  margin-top: 0.22rem;
  color: #71717a;
  font-size: 0.86rem;
  line-height: 1.35;
}

.whatsapp-option em {
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--primary);
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .feature-grid,
  .category-panel {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item,
  .gallery-item:first-child,
  .gallery-item:nth-child(2),
  .gallery-tall {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }

  .whatsapp-option {
    align-items: stretch;
    flex-direction: column;
  }

  .whatsapp-option em {
    text-align: center;
  }

  .trust-strip .grid {
    gap: 1.2rem;
  }

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

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

  .gallery-item {
    min-height: 240px;
  }
}
