:root {
  --navy: #102b62;
  --blue: #1657a8;
  --blue-dark: #0d234f;
  --green: #9fdc52;
  --green-dark: #5d9c2e;
  --ink: #17233b;
  --muted: #66738a;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: #e2e8f2;
  --shadow: 0 24px 60px rgba(16, 43, 98, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.modal-open { overflow: hidden; }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 242, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-mark {
  width: 40px;
  height: 40px;
  position: relative;
  display: grid;
  place-items: center;
  border: 3px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  font-size: 23px;
  font-weight: 900;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  right: -4px;
  bottom: 2px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--green);
}

.brand-copy { display: grid; gap: 3px; }
.brand-name { font-size: 1.05rem; }
.brand-sub { color: var(--muted); font-size: 0.69rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 0.92rem; font-weight: 700; }
.nav-links a:hover { color: var(--blue); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--navy); font-size: 1.8rem; cursor: pointer; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(16, 43, 98, 0.16);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(16, 43, 98, 0.2); }
.button.secondary { background: var(--green); color: var(--blue-dark); box-shadow: 0 10px 24px rgba(93, 156, 46, 0.2); }
.button.ghost { border-color: var(--line); background: var(--white); color: var(--navy); box-shadow: none; }
.button.small { min-height: 40px; padding: 0 16px; font-size: .86rem; }

.whatsapp-picker { position: relative; display: inline-flex; }
.whatsapp-button { background: #25d366; color: #073b20; box-shadow: 0 10px 24px rgba(37, 211, 102, .22); }
.whatsapp-button:hover { background: #1fbd59; box-shadow: 0 14px 28px rgba(37, 211, 102, .28); }
.whatsapp-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; width: 300px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.whatsapp-menu[hidden] { display: none; }
.whatsapp-menu a { display: grid; gap: 2px; padding: 12px 13px; border-radius: 11px; color: var(--ink); font-size: .85rem; font-weight: 800; }
.whatsapp-menu a:hover { background: #effaf3; color: #128c45; }
.whatsapp-menu small { color: var(--muted); font-size: .76rem; font-weight: 700; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 74px;
  background: radial-gradient(circle at 88% 14%, rgba(159, 220, 82, .25), transparent 28%), linear-gradient(135deg, #eff5ff 0%, #ffffff 58%, #f2f9eb 100%);
}

.hero::after {
  content: "";
  width: 420px;
  height: 420px;
  position: absolute;
  right: -190px;
  bottom: -230px;
  border: 70px solid rgba(22, 87, 168, 0.06);
  border-radius: 50%;
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 99px; background: var(--green); }
.hero h1 { max-width: 700px; margin: 15px 0 20px; color: var(--blue-dark); font-size: clamp(2.55rem, 5vw, 5rem); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--blue); }
.hero p { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; gap: 12px; align-items: center; margin-top: 24px; color: var(--muted); font-size: .9rem; }
.hero-note strong { color: var(--navy); }

.hero-photo { position: relative; min-height: 430px; }
.hero-photo img { width: 100%; height: 430px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.photo-tag { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: rgba(16, 43, 98, .88); color: var(--white); font-size: .78rem; font-weight: 800; }
.photo-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.section { padding: 90px 0; }
.section.compact { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { max-width: 620px; margin: 10px 0 0; color: var(--blue-dark); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.02; letter-spacing: -.055em; }
.section-head p { max-width: 500px; margin: 0; color: var(--muted); }

.unit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.unit-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 10px 28px rgba(16, 43, 98, .05); transition: transform .2s ease, box-shadow .2s ease; }
.unit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.unit-card-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.unit-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.unit-card:hover .unit-card-image img { transform: scale(1.04); }
.unit-card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(13, 35, 79, .56)); }
.unit-badge { position: absolute; z-index: 1; top: 16px; left: 16px; padding: 7px 11px; border-radius: 999px; background: var(--green); color: var(--blue-dark); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.unit-card-body { padding: 24px; }
.unit-card h3 { margin: 0 0 7px; color: var(--blue-dark); font-size: 1.55rem; letter-spacing: -.035em; }
.unit-card p { margin: 0 0 20px; color: var(--muted); }
.unit-meta { display: grid; gap: 8px; margin-bottom: 21px; color: var(--ink); font-size: .9rem; }
.unit-meta span { display: flex; align-items: start; gap: 9px; }
.unit-meta b { color: var(--blue); }

.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 64px; }
.about-card { padding: 36px; border-radius: var(--radius-lg); background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.about-card strong { display: block; margin-bottom: 25px; color: var(--green); font-size: 3rem; line-height: .9; letter-spacing: -.06em; }
.about-card p { margin: 0; color: rgba(255,255,255,.76); }
.about-copy h2 { margin: 12px 0 18px; color: var(--blue-dark); font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.03; letter-spacing: -.055em; }
.about-copy p { margin: 0 0 16px; color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.category-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 12px; background: #eff8e6; color: var(--green-dark); font-weight: 900; }
.category h3 { margin: 0 0 6px; font-size: 1rem; }
.category p { margin: 0; color: var(--muted); font-size: .88rem; }

.contact-band { padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--white); box-shadow: var(--shadow); }
.contact-band-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact-band .whatsapp-menu { top: auto; bottom: calc(100% + 10px); }
.contact-band h2 { margin: 0 0 8px; font-size: 1.8rem; letter-spacing: -.04em; }
.contact-band p { margin: 0; color: rgba(255,255,255,.72); }
.contact-data { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; color: rgba(255,255,255,.88); font-size: .9rem; }

.page-hero { padding: 60px 0 50px; background: linear-gradient(135deg, #edf4ff, #ffffff 58%, #f3f9ed); }
.page-hero-grid { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 50px; }
.page-hero h1 { margin: 12px 0 15px; color: var(--blue-dark); font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.065em; }
.page-hero p { max-width: 610px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.page-hero-photo img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.crumb { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; color: var(--blue); font-size: .82rem; font-weight: 800; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.info-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.info-card h2 { margin: 0 0 12px; color: var(--blue-dark); font-size: 1.6rem; letter-spacing: -.04em; }
.info-card p { margin: 0; color: var(--muted); }
.facts { display: grid; gap: 12px; margin-top: 20px; }
.fact { display: grid; grid-template-columns: 105px 1fr; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.fact:last-child { padding-bottom: 0; border-bottom: 0; }
.fact strong { color: var(--blue); }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-item { position: relative; overflow: hidden; min-height: 190px; padding: 0; border: 0; border-radius: var(--radius-md); background: #dce7f5; cursor: pointer; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; transition: transform .35s ease; }
.gallery-item::after { content: "Ampliar foto"; position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(13,35,79,.78); color: var(--white); font-size: .7rem; font-weight: 800; opacity: 0; transition: opacity .2s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

.site-footer { padding: 34px 0; background: var(--blue-dark); color: rgba(255,255,255,.7); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-sub { color: rgba(255,255,255,.56); }
.footer-text { max-width: 580px; font-size: .82rem; }
.footer-text p { margin: 0 0 5px; }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(4, 15, 36, .88); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-content { position: relative; width: min(980px, 100%); }
.modal-image { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 16px; background: #091a39; }
.modal-caption { margin-top: 10px; color: rgba(255,255,255,.78); text-align: center; font-size: .88rem; }
.modal-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--green); color: var(--blue-dark); font-size: 1.4rem; font-weight: 900; cursor: pointer; }
.modal-arrow { position: absolute; top: calc(50% - 20px); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--blue-dark); font-size: 1.25rem; cursor: pointer; }
.modal-arrow.prev { left: -56px; }
.modal-arrow.next { right: -56px; }

@media (max-width: 840px) {
  .nav-links { position: absolute; top: 78px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .nav-toggle { display: block; }
  .nav-wrap > .button { display: none; }
  .nav-wrap > .whatsapp-picker { display: none; }
  .hero-grid, .page-hero-grid, .about-grid, .split-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 62px; }
  .hero-photo, .hero-photo img { min-height: 320px; height: 320px; }
  .section { padding: 70px 0; }
  .section-head, .contact-band-grid, .footer-grid { align-items: start; flex-direction: column; }
  .section-head { display: flex; }
  .unit-grid { grid-template-columns: 1fr; }
  .page-hero-photo img { height: 320px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item:first-child { grid-column: span 2; grid-row: auto; }
  .modal-arrow.prev { left: 8px; }
  .modal-arrow.next { right: 8px; }
}

@media (max-width: 540px) {
  .nav-wrap, .container { width: min(100% - 28px, 1160px); }
  .brand-sub { display: none; }
  .hero h1 { font-size: 2.8rem; }
  .hero p, .page-hero p { font-size: 1rem; }
  .about-card, .info-card, .contact-band { padding: 24px; }
  .category-grid { grid-template-columns: 1fr; }
  .gallery { gap: 9px; }
  .gallery-item, .gallery-item img { min-height: 145px; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
}
