:root {
  --primary: #0f7a6b;
  --primary-dark: #0b5c50;
  --whatsapp: #25d366;
  --text: #262626;
  --muted: #6b6b6b;
  --bg-alt: #f5f7f7;
  --border: #e3e6e6;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { line-height: 1.25; margin-top: 0; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; }
h3.subheading { font-size: 1.2rem; margin: 2rem 0 1rem; color: var(--primary-dark); }

a { color: var(--primary-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 0 0;
  gap: 10px 12px;
}
.logo img { height: 40px; display: block; }
.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 0 10px;
}
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--primary-dark); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: auto;
}
.nav-cta:hover { background: var(--primary-dark); }
.social-icon {
  display: inline-flex;
  align-items: center;
}
.social-icon img { width: 30px; height: 30px; display: block; }

/* Hero */
.hero {
  background-size: cover;
  background-position: center 40%;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-overlay {
  width: 100%;
  background: linear-gradient(100deg, rgba(0,20,18,0.78) 0%, rgba(0,20,18,0.55) 55%, rgba(0,20,18,0.4) 100%);
  padding: 36px 0;
}
.hero h1 { color: #fff; font-size: 2.4rem; max-width: 640px; }
.hero p { color: #f0f0f0; font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 1.5rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-facebook { background: #1877f2; color: #fff; }
.btn-icon { width: 20px; height: 20px; }
.contact-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1rem; }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.section-alt .card { background: #fff; }

.gallery-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gallery-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1 1 auto;
  padding-bottom: 2px;
}
.gallery-grid::-webkit-scrollbar { display: none; }
.gallery-arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
}
.gallery-arrow:hover { background: var(--bg-alt); }
.gallery-item { margin: 0; flex: 0 0 170px; scroll-snap-align: start; }
.gallery-item .thumb,
.gallery-placeholder {
  display: block;
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-item .thumb {
  cursor: zoom-in;
  border: none;
  padding: 0;
  background: none;
  font: inherit;
}
.gallery-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #eef1f1, #eef1f1 10px, #e4e8e8 10px, #e4e8e8 20px);
  border: 1px dashed var(--border);
}
.gallery-placeholder span {
  font-size: 0.72rem;
  color: var(--muted);
  background: #fff;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Photo lightbox: native <dialog> element. The browser handles the modal top-layer,
   background scroll locking and Escape-to-close — no page-authored position:fixed
   overlay, so none of that mechanism's mobile quirks apply. */
.photo-dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  border: none;
  padding: 24px;
  background: #000;
  border-radius: 0;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
}
.photo-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-dialog::backdrop { background: #000; }
.photo-dialog img {
  display: block;
  max-width: min(92vw, 900px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-out;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-bottom: 1rem;
}
.team-member { text-align: center; }
.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}
.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #eef1f1, #eef1f1 8px, #e4e8e8 8px, #e4e8e8 16px);
  border: 1px dashed var(--border);
}
.avatar-placeholder span {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  padding: 0 10px;
}
.team-member h4 { margin-bottom: 2px; font-size: 1rem; }
.team-member p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.section-alt .accordion-item { background: #fff; }
.accordion-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
  margin-left: 12px;
}
.accordion-item[open] summary::after { content: "\2212"; }
.accordion-item[open] summary { border-bottom: 1px solid var(--border); }
.accordion-body { padding: 4px 20px 20px; }
.accordion-body p { margin: 0 0 12px; }

.before-after {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.before-after figure { margin: 0; text-align: center; }
.before-after img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.before-after figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { margin-bottom: 14px; }
.contact-list strong { display: block; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.contact-list a { font-size: 1.05rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list .value { display: inline-block; font-size: 1.05rem; }

.map-embed { border-radius: var(--radius); overflow: hidden; }

/* Footer */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: #ccc; }
.footer-legal-link {
  background: none;
  border: none;
  color: #ccc;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  padding: 0;
}

/* Legal modal: native <dialog>, same reasoning as the photo lightbox. */
.modal {
  position: fixed;
  margin: auto;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 700px;
  width: calc(100% - 48px);
  max-height: 85vh;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.6); }
.modal-content {
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
}
.modal-content h2 { margin-bottom: 1rem; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  border: none;
  cursor: pointer;
}
.modal-close:hover { background: var(--border); }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}

@media (max-width: 360px) {
  .logo img { height: 32px; }
}
