@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #08100b;
  --bg-soft: #0f1812;
  --panel: rgba(15, 27, 19, 0.26);
  --panel-strong: rgba(9, 17, 12, 0.34);
  --line: rgba(201, 232, 205, 0.12);
  --line-strong: rgba(173, 209, 178, 0.22);
  --text: #f3f8f2;
  --muted: #b9cdbb;
  --accent: #cfe8d0;
  --accent-soft: #8fb392;
  --hero-image: url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1800&q=80");
  --shadow-lg: 0 16px 42px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.14);
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(143, 179, 146, 0.12), transparent 35%),
    linear-gradient(180deg, #0f1812 0%, #08100b 50%, #101913 100%);
  color: var(--text);
  line-height: 1.6;
}

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

.home-video-page {
  background:
    radial-gradient(circle at top, rgba(143, 179, 146, 0.12), transparent 35%),
    #08100b;
}

.page-video-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background: #08100b;
}

.page-video-frame,
.page-video-overlay {
  position: absolute;
  inset: 0;
}

.page-video-frame iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  border: 0;
  transform: translate(-50%, -50%);
}

.page-video-overlay {
  background:
    linear-gradient(180deg, rgba(6, 10, 7, 0.28) 0%, rgba(6, 10, 7, 0.38) 100%),
    radial-gradient(circle at 20% 20%, rgba(143, 179, 146, 0.12), transparent 38%);
}

.home-video-page .site-header,
.home-video-page .hero,
.home-video-page main,
.home-video-page .site-footer {
  position: relative;
  z-index: 1;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 104px 0;
  position: relative;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
    linear-gradient(180deg, rgba(8, 16, 11, 0.18), rgba(8, 16, 11, 0.32));
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head h2,
.cta-strip-shell h2,
.hero-copy h1,
.contact-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-head h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.95;
  margin-bottom: 14px;
}

.section-head p,
.hero-text,
.project-card p,
.gallery-copy p,
.contact-card p,
.footer-meta p,
.footer-brand p {
  color: rgba(246, 241, 232, 0.78);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(10, 18, 12, 0.14);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(10, 18, 12, 0.24);
  border-color: rgba(173, 209, 178, 0.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(173, 209, 178, 0.28);
  background: linear-gradient(180deg, rgba(79, 111, 82, 0.56), rgba(207, 232, 208, 0.08));
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.brand-copy strong,
.footer-brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-copy small,
.footer-brand p {
  display: block;
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: rgba(246, 241, 232, 0.7);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a,
.footer-nav a {
  color: rgba(246, 241, 232, 0.82);
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 0;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(173, 209, 178, 0.14);
}

.menu-toggle {
  display: none;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  border: 1px solid rgba(173, 209, 178, 0.22);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 15px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  top: 18px;
}

.menu-toggle span:nth-child(2) {
  top: 26px;
}

.menu-toggle span:nth-child(3) {
  top: 34px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 26px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 26px;
  transform: rotate(-45deg);
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(135deg, rgba(7, 7, 7, 0.24), rgba(7, 7, 7, 0.14)),
    var(--hero-image) center center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(6, 10, 7, 0.08) 0%, rgba(6, 10, 7, 0.24) 100%),
    radial-gradient(circle at 20% 20%, rgba(143, 179, 146, 0.14), transparent 38%);
}

.home-video-page .hero-media {
  opacity: 0.12;
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 112px 0 40px;
}

.hero-copy {
  width: min(100%, 1120px);
  margin: 0 auto;
  text-align: center;
}

.hero-copy-compact {
  max-width: 720px;
}

.hero-intro {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1rem;
  color: rgba(246, 241, 232, 0.82);
}

.hero-copy h1 {
  max-width: 1120px;
  margin: 0 auto 16px;
  font-size: clamp(2.9rem, 5.3vw, 5rem);
  line-height: 0.94;
  text-wrap: balance;
}

.hero-text {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1rem;
}

.hero-panel,
.project-card,
.gallery-panel,
.unit-card,
.contact-card,
.form-card,
.cta-strip-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.hero-panel {
  width: min(100%, 1180px);
  padding: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.hero-project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  min-height: 100%;
  padding: 30px 24px 24px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(10, 18, 12, 0.16), rgba(10, 18, 12, 0.24));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hero-project-visual {
  width: 100%;
  height: 208px;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 18, 12, 0.1);
}

.hero-project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hero-project-card:hover,
.hero-project-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(173, 209, 178, 0.2);
  background: linear-gradient(180deg, rgba(10, 18, 12, 0.18), rgba(10, 18, 12, 0.28));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.hero-project-card > img,
.logo-placeholder {
  width: auto;
  height: 80px;
  margin: 0 auto 18px;
}

.logo-placeholder {
  min-width: 150px;
  padding: 0 14px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(79, 111, 82, 0.32), rgba(207, 232, 208, 0.04));
  border: 1px solid rgba(173, 209, 178, 0.16);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}

.hero-project-card strong,
.project-logo-copy strong,
.gallery-copy h3,
.unit-card h3 {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
}

.hero-project-card span,
.project-logo-copy span,
.gallery-copy span,
.unit-meta,
.contact-link small {
  display: block;
  color: rgba(246, 241, 232, 0.72);
}

.hero-project-line {
  margin: 14px 0 22px;
  color: rgba(246, 241, 232, 0.82);
  font-size: 0.95rem;
}

.hero-card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(207, 232, 208, 0.32);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-card-btn::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.hero-card-btn:hover,
.hero-card-btn:focus-visible {
  color: #ecf2eb;
  border-color: rgba(236, 242, 235, 0.68);
  transform: translateX(2px);
}

.project-section {
  background:
    radial-gradient(circle at top right, rgba(143, 179, 146, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(10, 18, 12, 0.24));
}

.project-detail-hero .hero-shell {
  min-height: calc(88svh - 82px);
}

.project-detail-shell {
  align-items: stretch;
}

.project-detail-card {
  width: min(100%, 1080px);
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.project-detail-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}

.project-detail-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(3rem, 5vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: 0.018em;
  text-wrap: balance;
}

.project-detail-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.project-section-shell {
  display: grid;
  gap: 28px;
}

.project-section-head,
.project-block,
.project-cta {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
}

.project-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: end;
  padding: 32px;
}

.project-section-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.project-section-logo {
  flex: 0 0 auto;
  margin: 0;
}

.project-section-copy h2,
.project-block-head h3,
.project-cta h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.96;
}

.project-section-copy h2 {
  font-size: clamp(2.8rem, 4vw, 4.4rem);
}

.project-section-location {
  margin-top: 8px;
  color: rgba(246, 241, 232, 0.72);
}

.project-section-tagline,
.project-section-description,
.project-block-head p,
.empty-state {
  color: rgba(246, 241, 232, 0.8);
}

.project-section-tagline {
  margin: 14px 0 0;
  font-size: 1rem;
}

.project-section-description {
  margin: 0;
  font-size: 1rem;
}

.project-block {
  padding: 28px;
}

.project-block-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.project-block-head h3,
.project-cta h3 {
  font-size: clamp(2rem, 3vw, 3rem);
}

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

.project-cta {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.project-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.empty-state {
  margin: 0;
  padding: 20px 0 4px;
}

.hero-actions,
.cta-strip-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.84rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ecf2eb;
  background: linear-gradient(135deg, rgba(93, 132, 98, 0.88), rgba(79, 111, 82, 0.92));
  border: 1px solid rgba(207, 232, 208, 0.18);
}

.btn-secondary {
  color: var(--text);
  background: rgba(79, 111, 82, 0.08);
  border: 1px solid rgba(173, 209, 178, 0.14);
}

.btn-block {
  width: 100%;
}

.project-grid,
.units-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card,
.unit-card,
.contact-card,
.form-card {
  border-radius: var(--radius-md);
  padding: 28px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.project-top .logo-placeholder,
.project-top img {
  height: 62px;
  margin: 0;
}

.project-logo-copy span {
  margin-top: 8px;
}

.project-actions,
.unit-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-badge,
.unit-status,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 0;
  border: 1px solid rgba(173, 209, 178, 0.24);
  background: rgba(143, 179, 146, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab {
  padding: 13px 18px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 241, 232, 0.88);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tab.is-active,
.tab:hover,
.tab:focus-visible {
  background: rgba(143, 179, 146, 0.16);
  border-color: rgba(173, 209, 178, 0.34);
  color: var(--text);
}

.gallery-panel {
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 420px;
}

.gallery-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

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

.gallery-item {
  position: relative;
  grid-column: span 4;
  min-height: 220px;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-md);
  transform: translateY(0);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item:nth-child(4n + 1) {
  grid-column: span 6;
  min-height: 320px;
}

.gallery-item:nth-child(4n + 4) {
  min-height: 260px;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(173, 209, 178, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(6, 6, 6, 0.56) 100%);
}

.gallery-item-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 0.92rem;
}

.units-panel {
  min-height: 260px;
}

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

.unit-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.unit-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.unit-data {
  display: grid;
  gap: 12px;
}

.unit-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.unit-row strong {
  font-size: 1rem;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-strip {
  padding-top: 0;
}

.cta-strip-shell {
  padding: 30px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-strip-shell h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
}

.contact-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
}

.contact-card,
.form-card {
  min-height: 100%;
}

.contact-lead {
  margin-top: 10px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 0;
  background: rgba(10, 18, 12, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: rgba(143, 179, 146, 0.1);
  color: var(--accent);
}

.contact-link strong {
  display: block;
  margin-bottom: 2px;
}

.form-card label {
  display: block;
  margin-bottom: 8px;
  color: rgba(246, 241, 232, 0.88);
}

.form-card label:not(:first-child) {
  margin-top: 16px;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(10, 18, 12, 0.1);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-card input:focus,
.form-card textarea:focus {
  border-color: rgba(173, 209, 178, 0.24);
  background: rgba(79, 111, 82, 0.12);
}

.form-response {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--accent);
}

.site-footer {
  padding: 48px 0 120px;
  min-height: 320px;
  border-top: 1px solid rgba(173, 209, 178, 0.1);
  background: rgba(51, 72, 54, 0.94);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-meta {
  justify-self: end;
  text-align: right;
}

.footer-meta p {
  margin: 4px 0;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  min-width: 152px;
  min-height: 56px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(93, 132, 98, 0.94), rgba(79, 111, 82, 0.94));
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 24px;
  background: rgba(8, 8, 8, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.lightbox-figure {
  margin: 0;
  width: min(100%, 1080px);
}

.lightbox-figure img {
  width: 100%;
  max-height: 78svh;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-figure figcaption {
  margin-top: 10px;
  text-align: center;
  color: rgba(246, 241, 232, 0.8);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  padding: 14px 18px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

#hero,
#contacto,
[id="galeria"],
[id="unidades"],
[id^="proyecto-"] {
  scroll-margin-top: 110px;
}

@media (max-width: 1080px) {
  .hero-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-section-head,
  .project-units-grid {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .units-grid,
  .footer-shell,
  .contact-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta {
    justify-self: start;
    text-align: left;
  }

  .gallery-item,
  .gallery-item:nth-child(4n + 1) {
    grid-column: span 6;
  }
}

@media (max-width: 800px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 62;
  }

  .main-nav {
    position: fixed;
    top: 82px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 0;
    background: rgba(10, 18, 12, 0.92);
    border: 1px solid rgba(173, 209, 178, 0.1);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 61;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 12px;
  }

  .hero-shell {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-copy-compact {
    max-width: 620px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 12vw, 4.3rem);
  }

  .project-section-brand,
  .project-detail-brand,
  .project-block-head,
  .project-cta {
    flex-direction: column;
    align-items: start;
  }

  .project-cta-actions {
    justify-content: start;
  }

  .project-grid,
  .units-grid,
  .contact-shell,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .gallery-copy,
  .cta-strip-shell {
    flex-direction: column;
    align-items: start;
  }

  .footer-nav {
    justify-content: start;
  }

  .hero-projects {
    grid-template-columns: 1fr;
  }

  .hero-project-card {
    max-width: none;
  }

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

  .gallery-item,
  .gallery-item:nth-child(4n + 1) {
    grid-column: span 1;
    min-height: 220px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .lightbox-prev {
    left: 24px;
  }

  .lightbox-next {
    right: 24px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 84px 0;
  }

  .container {
    width: min(100% - 20px, 1180px);
  }

  .hero-panel,
  .gallery-panel,
  .project-card,
  .unit-card,
  .contact-card,
  .form-card,
  .cta-strip-shell {
    padding: 22px;
  }

  .hero-actions,
  .cta-strip-actions,
  .project-detail-actions,
  .project-actions,
  .unit-actions,
  .project-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .whatsapp-float {
    width: 100%;
  }

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

  .gallery-item,
  .gallery-item:nth-child(4n + 1) {
    grid-column: span 1;
  }

  .project-top,
  .unit-header,
  .unit-row {
    flex-direction: column;
  }

  .whatsapp-float {
    right: 12px;
    left: 12px;
    bottom: 12px;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
