:root {
  --bg: #f9fafb;
  --text: #0f172a;
  --muted: #475569;
  --brand: #2563eb;
  --brand-2: #9333ea;
  --brand-contrast: #ffffff;
  --surface: #ffffff;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  opacity: 1;
  transition: opacity .25s ease;
}

body.page-exit { opacity: 0; }

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

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

main { flex: 1 0 auto; }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 20px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.site-nav a.active,
.site-nav a:hover {
  background: #f3f4f6;
  box-shadow: 0 2px 0 0 rgba(15,23,42,0.12) inset;
}

/* Desktop nav hover underline animation */
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; border-radius: 2px; }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

/******************
  Mobile Nav (animated)
******************/
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; inset: 56px 0 auto 0; }
  .site-nav ul {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .site-nav.open ul {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Hero */
.hero {
  background: var(--surface);
  color: var(--text);
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.2px;
}

.lead { color: var(--muted); margin: 0 0 16px; }

.whatsapp { display: inline-block; margin: 8px 0 24px; }
.whatsapp img { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15)); }

.video { aspect-ratio: 16 / 9; width: 100%; max-width: 720px; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.video iframe { width: 100%; height: 100%; border: 0; }

/* Sections */
section { padding: 28px 0; }
section h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); position: relative; }
section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
  margin-top: 6px;
}
section p { margin: 0; color: var(--muted); }

/* Alternate section background for visual rhythm */
main section:nth-of-type(even) { background: #f5f6f8; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0b1220;
  color: #cbd5e1;
}
.site-footer .container { padding: 16px 0; }
.site-footer a { color: #e2e8f0; text-decoration: underline; }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.gallery-grid img {
  border-radius: 12px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(37,99,235,0.2);
}

/* Slideshow */
.slideshow { position: relative; max-width: 900px; margin: 0 auto 12px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.12); background: #f5f6f8; }
.slideshow .slides { position: relative; width: 100%; height: clamp(220px, 50vw, 520px); }
.slideshow .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center top; opacity: 0; transition: opacity .4s ease; }
.slideshow .slide.active { opacity: 1; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); color: #0f172a; border: 1px solid rgba(0,0,0,0.08); border-radius: 999px; width: 48px; height: 48px; cursor: pointer; font-size: 22px; line-height: 48px; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,0.25); z-index: 2; }
.slide-btn:hover { background: #ffffff; }
.slide-btn.prev { left: 12px; }
.slide-btn.next { right: 12px; }

/* Content typography */
.content { max-width: 800px; }
.content p { margin: 0 0 12px; }

/* Contact form */
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.contact-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: block; margin-bottom: 12px; }
.contact-form label span { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #94a3b8; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.btn { display: inline-block; background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 600; box-shadow: 0 6px 14px rgba(37,99,235,0.25); }
.btn:hover { filter: brightness(1.04); }
@media (max-width: 768px) { .contact-form .grid { grid-template-columns: 1fr; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); transition: transform .2s ease, box-shadow .2s ease; color: inherit; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.12); }
.card h3 { margin: 8px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.breadcrumbs { font-size: 14px; color: #64748b; margin: 8px 0 0; }
.breadcrumbs a { color: #64748b; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

