:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6b655c;
  --graphite: #232020;
  --wood: #8a6a4f;
  --wood-dark: #6f543c;
  --line: #e7e1d8;
  --sand: #e7e1d8;
  --shadow: 0 12px 30px rgba(28, 26, 23, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: 'Montserrat', sans-serif; }
.brand, .hero-title, .section-title { font-family: 'Playfair Display', 'Montserrat', serif; }
.brand { font-weight: 700; }

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

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.84);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(138, 106, 79, 0.15);
  box-shadow: 0 4px 20px rgba(28, 26, 23, 0.03);
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
  background: rgba(250, 248, 245, 0.96);
  border-bottom-color: rgba(138, 106, 79, 0.28);
  box-shadow: 0 10px 30px rgba(28, 26, 23, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled .header-inner {
  height: 64px;
}

/* Brand & Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle at 35% 35%, #1d1916, #0d0b0a);
  border: 1px solid rgba(229, 193, 88, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 242, 161, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.brand:hover .brand-badge {
  background: radial-gradient(circle at 35% 35%, #2a221a, #120e0c);
  border-color: #f5e0b3;
  box-shadow: 0 6px 20px rgba(184, 142, 40, 0.4), inset 0 1px 2px rgba(255, 242, 161, 0.6);
  transform: rotate(-6deg) scale(1.08);
}

.brand-icon-gold {
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.brand:hover .brand-icon-gold {
  transform: scale(1.06);
  filter: drop-shadow(0 0 6px rgba(229, 193, 88, 0.6));
}

.brand-details {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
  transition: color 0.25s ease;
}

.brand:hover .brand-name {
  color: var(--wood-dark);
}

.brand-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wood);
  opacity: 0.85;
  margin-top: 2px;
}

/* Navigation Links */
.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 4px;
  border-radius: 99px;
  border: 1px solid rgba(138, 106, 79, 0.12);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.05rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 99px;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link .nav-label {
  position: relative;
  z-index: 2;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--wood), #c9a86a);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(138, 106, 79, 0.08);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 18px;
}

.nav-link.active {
  color: var(--wood-dark);
  font-weight: 600;
  background: rgba(138, 106, 79, 0.12);
}

/* Header Actions & CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--wood-dark), var(--wood));
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(111, 84, 60, 0.25);
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.header-cta svg {
  fill: currentColor;
  transition: transform 0.25s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(111, 84, 60, 0.35);
  background: linear-gradient(135deg, #5c442f, var(--wood-dark));
}

.header-cta:hover svg {
  transform: scale(1.15) rotate(-8deg);
}

/* Hamburger menu button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: rgba(138, 106, 79, 0.08);
  border: 1px solid rgba(138, 106, 79, 0.18);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.nav-toggle:hover {
  background: rgba(138, 106, 79, 0.15);
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
}

.nav-toggle .bar + .bar {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar-2 {
  opacity: 0;
  transform: translateX(-8px);
}

.nav-toggle[aria-expanded="true"] .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.45)), url('images/hero.jpg') center/cover no-repeat;
  background-color: #2a2621;
}
.hero-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.hero-media { display: flex; justify-content: center; }
.hero-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(201, 168, 106, 0.05));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 213, 173, 0.28);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-frame::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(232, 213, 173, 0.45);
  border-radius: 16px;
  pointer-events: none;
  z-index: 2;
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  filter: contrast(1.04) saturate(1.06);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.hero-frame:hover .hero-img {
  transform: scale(1.02);
  filter: contrast(1.06) saturate(1.08);
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-content { max-width: 720px; padding: 120px 0 80px; color: #fff; }
.hero-eyebrow {
  font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.9; margin-bottom: 1rem; color: #e8d5ad;
}
.hero-eyebrow::before,
.hero-eyebrow::after { content: '—'; margin: 0 0.6rem; opacity: 0.6; }
.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.12;
  margin-bottom: 1.8rem;
  background: linear-gradient(120deg, #fff 30%, #e8d5ad 55%, #c9a86a 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroIn 1s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; animation: heroIn 1s 0.2s ease both; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 0.95rem 1.9rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1rem; transition: transform 0.15s, background 0.2s; }
.btn-primary { background: var(--wood); color: #fff; }
.btn-primary:hover { background: var(--wood-dark); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--wood); color: var(--wood-dark); background: transparent; }
.btn-outline:hover { background: var(--wood); color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-dark { background: var(--graphite, #232020); color: #f4f1ec; }
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: #cfc8bd; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wood-dark); margin-bottom: 0.6rem; }
.section-dark .section-eyebrow { color: var(--wood); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--wood), #e8d5ad);
  margin: 0.7rem auto 0;
  border-radius: 2px;
}
.section-head .section-title::after { margin: 0.7rem auto 0; }
.sobre-text .section-title::after { margin: 0.7rem 0 0; }
.section-sub { color: var(--muted); margin-top: 0.9rem; }

/* ---------- Cards (Luthieria) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--sand); border-radius: 16px;
  padding: 1.8rem; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(28, 26, 23, 0.14); border-color: #d6c39a; }
.card-icon {
  font-size: 1.8rem; margin-bottom: 0.9rem;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f5eee3, #efe3cd); border-radius: 12px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; font-family: 'Playfair Display', serif; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Before / After slider ---------- */
.before-after { text-align: center; margin-top: 56px; }
.slider { position: relative; max-width: 760px; margin: 32px auto 0; overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); }
.slider-track { display: flex; transition: transform 0.4s ease; }
.ba-slide { display: flex; flex: 0 0 100%; }
.ba-img { flex: 1 1 50%; height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; font-weight: 500; }
.ba-before { background: #d9d2c6; color: #6b655c; }
.ba-after { background: #bfae97; color: #3a332b; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; z-index: 2; }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }
.slider-arrow:hover { background: rgba(0,0,0,0.6); }

/* ---------- Events grid ---------- */
.grid-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.video-card { background: #2c2924; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; display: block; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid rgba(255, 255, 255, 0.06); }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.video-thumb { height: 220px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, #3a342a, #191714 70%); color: #e8d5ad; font-size: 0.95rem; }
.video-thumb::before { content: '▶'; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(232, 213, 173, 0.15); border: 1px solid rgba(232, 213, 173, 0.4); font-size: 1.1rem; padding-left: 3px; margin-right: 0.8rem; transition: background 0.2s; }
.video-card:hover .video-thumb::before { background: var(--wood); border-color: var(--wood); color: #fff; }
.video-label { padding: 1rem 1.2rem; font-size: 0.95rem; color: #e9e4db; }
.cta-center { text-align: center; margin-top: 40px; }

/* ---------- Gallery ---------- */
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover { border: 3px solid var(--wood); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 0.9rem 0.9rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65)); color: #fff; font-size: 0.85rem;
  text-align: center;
}

/* ---------- Catalog ---------- */
.grid-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.product { background: var(--surface); border: 1px solid var(--sand); border-radius: 14px; padding: 1.2rem; box-shadow: var(--shadow); text-align: center; }
.product-img { height: 200px; display: flex; align-items: center; justify-content: center; background: var(--sand); border-radius: 10px; margin-bottom: 1rem; color: var(--muted); }
.product h3 { font-size: 1.1rem; }
.product-spec { color: var(--muted); font-size: 0.88rem; margin: 0.4rem 0 1.2rem; }

/* ---------- About ---------- */
.sobre-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.sobre-foto {
  min-height: 400px; border-radius: 18px; background: radial-gradient(circle at 30% 20%, #8a6a4f, #4a3a2b 70%);
  display: flex; align-items: center; justify-content: center; color: #e9d8c2;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem;
}
.sobre-text .section-eyebrow { color: var(--wood); }
.sobre-text p { margin-top: 1rem; }
.sobre-text h2 { margin-bottom: 0.5rem; }
.depoimentos { margin-top: 2rem; display: grid; gap: 1rem; }
.depoimentos blockquote {
  background: linear-gradient(135deg, #2f2b26, #262220); border-left: 3px solid var(--wood);
  padding: 1.1rem 1.4rem; border-radius: 0 12px 12px 0; color: #e9e4db; font-size: 0.95rem;
  font-style: italic; transition: transform 0.2s, border-color 0.2s;
}
.depoimentos blockquote:hover { transform: translateX(6px); border-color: #e8d5ad; }

/* ---------- Footer ---------- */
.footer { background: #141313; color: #cfc7bd; padding: 56px 0 32px; }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand h3 { color: #fff; }
.footer-contact { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-contact a { color: #cfc7bd; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-copy { font-size: 0.85rem; margin-top: 1.2rem; color: #88807a; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); transition: transform 0.15s;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.2rem;
    gap: 0.5rem;
    border-radius: 20px;
    border: 1px solid rgba(138, 106, 79, 0.2);
    box-shadow: 0 20px 40px rgba(28, 26, 23, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.97);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .header.scrolled .nav {
    top: 66px;
  }
  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .hero { flex-direction: column; justify-content: center; }
  .hero-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hero-frame { max-width: 400px; margin: 0 auto; animation: none; }
  .hero-content { text-align: center; padding-top: 90px; padding-bottom: 0; }
  .hero-cta { justify-content: center; }
  .sobre-grid { grid-template-columns: 1fr; }
  .footer-contact { flex-direction: column; }
}