:root {
  --brand-blue: #2f86a6;
  --brand-blue-dark: #1f5f79;
  --brand-green: #4f9155;
  --brand-sand: #f4ecdf;
  --brand-bg: #f8f6f2;
  --white: #ffffff;
  --text: #22252a;
  --muted: #5f6670;
  --line: #dbe5ea;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: var(--brand-bg);
  padding-top: 74px;
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 246, 242, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-inner {
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1160px, 94%);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(47, 134, 166, 0.25);
}

.logo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(130deg, var(--brand-blue), var(--brand-green));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-links a.active,
.nav-links a:hover { color: var(--brand-blue-dark); }

.nav-cta {
  color: var(--white) !important;
  background: var(--brand-blue);
  padding: 9px 16px;
  border-radius: 999px;
}

.nav-cta:hover { background: var(--brand-blue-dark); }

.hamburger {
  border: 0;
  background: transparent;
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

.hero {
  background: linear-gradient(160deg, #eaf4f8 0%, #f4f9f2 65%, var(--brand-sand) 100%);
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue-dark);
  margin-bottom: 12px;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin-bottom: 14px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d9e8ef;
  border-radius: 999px;
  padding: 8px 14px;
  margin-top: 10px;
  color: var(--brand-blue-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-blue);
  color: var(--white);
}

.btn-primary:hover { background: var(--brand-blue-dark); }

.btn-secondary {
  border-color: var(--brand-blue);
  color: var(--brand-blue-dark);
  background: transparent;
}

.btn-secondary:hover { background: #e9f3f7; }

.btn-wa {
  background: #25d366;
  color: var(--white);
}

.btn-wa:hover { background: #1ea857; }

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 22px rgba(36, 82, 102, 0.08);
}

.badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.badge-item {
  background: #f3f8fa;
  border: 1px solid #ddebf1;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.86rem;
  color: var(--brand-blue-dark);
  font-weight: 700;
}

.section {
  padding: 62px 0;
}

.section-title {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 24px;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.light {
  background: var(--brand-sand);
  border-top: 1px solid #e9dcc5;
  border-bottom: 1px solid #e9dcc5;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--brand-blue-dark);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.contact-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.contact-box p { color: var(--muted); }

form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.appointment-box {
  background: linear-gradient(145deg, #ffffff, #f4fbff);
  border: 1px solid #cfe1ea;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(31, 95, 121, 0.08);
}

.appointment-box h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.appointment-box p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

input, textarea, select {
  width: 100%;
  border: 1px solid #ccdce3;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font: inherit;
}

textarea { min-height: 100px; resize: vertical; }

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

.gallery-item {
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--white);
}

.gallery-thumb {
  background: linear-gradient(120deg, #e7f2f7, #edf6ea);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  color: var(--brand-blue-dark);
  font-weight: 800;
}

.gallery-meta {
  padding: 12px;
}

.gallery-meta p {
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  background: #1f2830;
  color: #d2d8dd;
  padding: 42px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
}

footer a { color: #cfe8f2; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.copy {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
  font-size: 0.85rem;
  color: #afbac4;
}

.page-hero {
  background: linear-gradient(140deg, var(--brand-blue-dark), var(--brand-blue), var(--brand-green));
  color: var(--white);
  padding: 56px 0 48px;
}

.page-hero p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-size: 1.6rem;
  display: flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.sticky-lead-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 980;
  background: rgba(31, 40, 48, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
}

.sticky-lead-inner {
  width: min(1100px, 96%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sticky-lead-text {
  color: #e9eef2;
  font-size: 0.9rem;
  font-weight: 700;
}

.sticky-lead-actions {
  display: flex;
  gap: 8px;
}

.sticky-btn {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 12px;
}

.sticky-btn.whatsapp { background: #25d366; color: #fff; }

.lead-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 34, 0.62);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.lead-popup-overlay.open { display: flex; }

.lead-popup {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #cfe1ea;
  box-shadow: 0 18px 44px rgba(22, 63, 82, 0.24);
  padding: 18px;
}

.lead-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lead-popup-head h3 {
  font-size: 1.3rem;
}

.lead-popup-close {
  border: 0;
  background: #edf5f9;
  color: #1f5f79;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 800;
  cursor: pointer;
}

.lead-popup p {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .cards,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body { padding-top: 74px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: var(--brand-bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 5%;
  }
  .nav-links.open { display: flex; }
  .hero-grid,
  .two-col,
  .cards,
  .gallery-grid,
  .footer-grid,
  .badge-grid {
    grid-template-columns: 1fr;
  }
  .sticky-lead-inner { flex-direction: column; align-items: stretch; }
  .sticky-lead-actions { width: 100%; }
  .sticky-btn { flex: 1; text-align: center; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
