:root {
  --green: #2d6a4f;
  --green-2: #1b4332;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --gold: #d4af37;
  --radius: 16px;
  --shadow-sm: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 30px rgba(16, 24, 16, 0.12);
  --container: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--ink);
  overflow-x: hidden;
  background: var(--surface-2);
}
/* Basic link reset so fallback remains clean */
a { color: var(--green-2); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  body { background-attachment: scroll; }
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Mobile polish: prevent horizontal scroll leaks */
img, video { max-width: 100%; height: auto; }
.images-grid { overflow: hidden; }
section { overflow-x: clip; }

/* Spacing utilities */
.section { padding: 64px 0; }
@media (max-width: 640px) { .section { padding: 44px 0; } }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #e5e7eb; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, var(--green), var(--green-2)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, var(--green-2), var(--green)); }

/* Typography */
.section-title {
  text-align: center;
  font-size: 2.25rem;
  color: var(--green);
  margin-bottom: 2.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  border-radius: 2px;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(34,50,40,0.06);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card-icon {
  font-size: 1.6rem;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color: white;
  box-shadow: 0 6px 18px rgba(27,67,50,0.18);
}
.card-title { font-weight: 700; color: #133022; font-size: 1.1rem; }
.card-desc { color: var(--ink-3); font-size: 0.98rem; line-height: 1.5; flex: 1 1 auto; }

/* Image grid building blocks (used in about/galeria/etc.) */
.images-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.images-grid.small { gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.image-card { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); transition: transform 0.25s ease, box-shadow 0.25s ease; background: white; border: 1px solid rgba(0,0,0,0.06); }
.image-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(45,106,79,0.2); }
.image-card img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: center center; transition: transform 0.4s ease; }
.image-card:hover img { transform: scale(1.04); }
.image-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: white; padding: 1rem 1rem; font-weight: 600; font-size: 1rem; pointer-events: none; }

/* Helpers */
.lazy-load { opacity: 0; transition: opacity 0.3s ease; }
.lazy-load.loaded { opacity: 1; }

/* Floating Actions */
#whatsapp-fab, #backToTop {
  position: fixed;
  right: 18px;
  z-index: 50;
  border: none;
  outline: none;
  cursor: pointer;
}
#whatsapp-fab {
  bottom: 18px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(18,140,126,0.4);
  border: 2px solid #128C7E;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
#whatsapp-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(18,140,126,0.45); background: #22c15e; }
/* Precise centering and sizing to avoid visual misalignment of the WhatsApp glyph */
#whatsapp-fab img { width: 26px; height: 26px; display: block; margin: 0; object-fit: contain; }

#backToTop {
  bottom: 86px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(45,106,79,0.35);
  font-weight: 800;
}
/* Align caret inside back-to-top button */
#backToTop { display: grid; place-items: center; line-height: 1; font-size: 14px; padding: 0; }

