:root {
  --bg: #050505;
  --panel: #111111;
  --panel-2: #171717;
  --text: #f5f5f5;
  --muted: #c9c9c9;
  --line: rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.22);
  --accent: #ffffff;
  --shadow: 0 18px 45px rgba(0,0,0,.28);
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; position: relative; z-index: 1; }
.section { padding: 5.5rem 0; position: relative; }
.bg-pattern {
  position: fixed; inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,.05), transparent 25%), radial-gradient(circle at bottom left, rgba(255,255,255,.04), transparent 22%), #050505;
  z-index: -2;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,5,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 82px;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand strong { display: block; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.brand span { display: block; font-size: .8rem; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav a { color: var(--muted); font-size: .96rem; transition: .25s ease; }
.main-nav a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch {
  display: flex; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03);
}
.lang-btn {
  border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: .45rem .85rem; cursor: pointer; font-weight: 700;
}
.lang-btn.active { background: var(--accent); color: #000; }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; color: #fff; border-radius: 12px; width: 46px; height: 46px; }
.hero { position: relative; min-height: calc(100vh - 82px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.55), rgba(0,0,0,.45)); }
.hero-content { padding: 7rem 0; }
.hero-copy { max-width: 700px; }
.eyebrow { display: inline-block; margin-bottom: 1rem; color: #fff; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.hero h1, .section-heading h2, .card h2, .contact-info h2, .thankyou-card h1 {
  font-family: 'Playfair Display', serif; line-height: 1.05; margin: 0 0 1rem;
}
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); text-wrap: balance; }
.hero p { font-size: 1.1rem; line-height: 1.8; color: #ececec; max-width: 620px; }
.hero-actions, .branch-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.35rem; border-radius: 999px; font-weight: 800; letter-spacing: .02em; transition: .25s ease;
  border: 1px solid var(--line-strong);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: #000; }
.btn-secondary { background: rgba(255,255,255,.05); color: #fff; }
.btn-full { width: 100%; }
.grid-2, .contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card, .feature-card, .branch-card, .social-card, .contact-form, .contact-info, .map-wrap, .video-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .contact-info { padding: 2rem; }
.card p, .feature-card p, .branch-card p, .contact-info p, .section-heading p { color: var(--muted); line-height: 1.8; }
.section-heading { max-width: 760px; margin: 0 auto 2.2rem; text-align: center; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.features-grid, .branches-grid, .social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature-card, .branch-card, .social-card { padding: 1.8rem; }
.feature-number { font-size: .85rem; color: var(--muted); letter-spacing: .18em; margin-bottom: 1rem; font-weight: 800; }
.feature-card h3, .branch-card h3 { margin: 0 0 .85rem; font-size: 1.2rem; }
.branches-grid { grid-template-columns: repeat(2, 1fr); }
.social-grid { grid-template-columns: repeat(2, 1fr); }
.social-card span { display: block; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.social-card strong { display: block; margin-top: .45rem; font-size: 1.15rem; }
.social-card:hover { border-color: rgba(255,255,255,.35); transform: translateY(-4px); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.gallery-item {
  padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #000; cursor: pointer; position: relative;
}
.gallery-item::after {
  content: 'Ampliar'; position: absolute; inset: auto 14px 14px auto; background: rgba(0,0,0,.75); color: #fff; padding: .45rem .7rem; border-radius: 999px; font-size: .75rem; opacity: 0; transition: .25s ease;
}
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover::after { opacity: 1; }
.video-wrap { overflow: hidden; padding: .6rem; }
.video-wrap iframe, .map-wrap iframe {
  width: 100%; border: 0; border-radius: calc(var(--radius) - 10px); aspect-ratio: 16 / 9; display: block;
}
.contact-grid { align-items: start; }
.contact-info ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; color: var(--muted); }
.contact-form { padding: 1.2rem; display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,.03); color: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #bdbdbd; }
.site-footer { padding: 1.6rem 0 2.2rem; border-top: 1px solid var(--line); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .95rem; }
.footer-content a { color: #fff; }
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 2rem; z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 20px; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 2rem; cursor: pointer;
}
.floating-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.floating-wa-main {
  border: 0; border-radius: 999px; padding: 1rem 1.2rem; background: #fff; color: #000; font-weight: 800; box-shadow: var(--shadow); cursor: pointer;
}
.floating-wa-panel {
  display: none; position: absolute; right: 0; bottom: 70px; min-width: 180px; background: #111; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.floating-wa-panel.open { display: block; }
.floating-wa-panel a { display: block; padding: .95rem 1rem; border-bottom: 1px solid var(--line); }
.floating-wa-panel a:last-child { border-bottom: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.thankyou-body { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.thankyou-card {
  width: min(100%, 520px); text-align: center; padding: 2.25rem; border-radius: 30px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border: 1px solid var(--line);
}
.thankyou-card img { width: 110px; margin: 0 auto 1.4rem; }
.thankyou-card p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.8; }

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute; top: 82px; right: 1rem; left: 1rem; flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(8,8,8,.98); border: 1px solid var(--line); border-radius: 18px; display: none; overflow: hidden;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .grid-2, .contact-grid, .branches-grid, .social-grid, .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 4rem); }
  .hero { min-height: auto; }
  .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.68), rgba(0,0,0,.72)); }
}

@media (max-width: 640px) {
  .section { padding: 4.3rem 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions, .branch-actions, .footer-content { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .brand strong { font-size: .92rem; }
  .brand span { font-size: .72rem; }
  .brand img { width: 50px; height: 50px; }
}
