/* ===== Tokens ===== */
:root {
  --dark: #15171d;
  --gold: #c9a227;
  --gold-light: #e0bc4a;
  --light: #faf8f3;
  --white: #ffffff;
  --text-dark: #23252b;
  --text-gray: #656b76;
  --border: #ece9e1;
  --gold-tint: linear-gradient(135deg, #ffffff, #f5ecd4);
  --whatsapp: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 20, 25, 0.06);
  --shadow-lg: 0 20px 50px rgba(20, 20, 25, 0.1);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
svg { width: 100%; height: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.section-eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-eyebrow.center { text-align: center; }

.section-sub {
  color: var(--text-gray);
  max-width: 620px;
  margin: 14px auto 0;
}
.section-sub.center { text-align: center; }
.section-sub.left { margin: 14px 0 0; }

.center { text-align: center; }

h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 4px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn-whatsapp:hover { box-shadow: 0 12px 26px rgba(37,211,102,.45); }

.btn-outline { border-color: rgba(35,37,43,.2); color: var(--text-dark); }
.btn-outline:hover { background: rgba(35,37,43,.05); }

.btn-gold { background: var(--gold); color: var(--dark); box-shadow: 0 8px 20px rgba(201,162,39,.35); }
.btn-gold:hover { background: var(--gold-light); }
.btn-gold.full { width: 100%; justify-content: center; }

.btn-outline-light { border-color: rgba(35,37,43,.22); color: var(--text-dark); }
.btn-outline-light:hover { background: rgba(35,37,43,.06); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #a5811d);
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  flex: none;
}
.logo-mark svg { width: 58%; height: 58%; }
.logo-text { color: var(--dark); font-size: 1.05rem; white-space: nowrap; }
.logo-text strong { color: var(--gold); }
.logo-text.light { color: var(--dark); }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.main-nav a:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-dark); font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 999px;
  transition: border-color .2s, color .2s;
}
.header-phone svg { width: 16px; height: 16px; color: var(--gold); }
.header-phone:hover { border-color: var(--gold); color: var(--gold); }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: .5px;
  padding: 8px 13px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-btn.active { background: var(--gold); color: var(--dark); }
.lang-btn:not(.active):hover { color: var(--text-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(201,162,39,.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(201,162,39,.1), transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #fbf8f1 55%, #f6efdd 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(35,37,43,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,37,43,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 75%);
}
.hero-inner { position: relative; z-index: 2; padding: 60px 24px; max-width: 760px; }

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero h1 { color: var(--dark); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 22px; }
.hero h1 span { color: var(--gold); }
.hero-sub { color: var(--text-gray); font-size: 1.1rem; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 24px; }
.hero-badges li { display: flex; align-items: center; gap: 8px; color: var(--text-dark); font-size: 0.9rem; font-weight: 500; }
.hero-badges svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ===== About ===== */
.about { background: var(--light); }
.about-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.about-media-box {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background: var(--gold-tint);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.about-media-box svg { width: 34%; height: 34%; color: var(--gold); }

.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point svg { width: 26px; height: 26px; color: var(--gold); flex: none; margin-top: 2px; }
.point h4 { font-size: 1rem; margin-bottom: 3px; }
.point p { font-size: 0.9rem; color: var(--text-gray); }

/* ===== Services ===== */
.services-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gold-tint);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; color: var(--gold); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { color: var(--text-gray); font-size: 0.92rem; }

/* ===== Projects ===== */
.projects { background: var(--light); }
.filter-tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin-top: 40px; margin-bottom: 36px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--dark); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: opacity .25s ease, transform .25s ease;
}
.project-card.hide { display: none; }
.project-placeholder {
  aspect-ratio: 4/3;
  background: var(--gold-tint);
  display: flex; align-items: center; justify-content: center;
}
.project-placeholder svg { width: 22%; height: 22%; color: var(--gold); opacity: .8; }
.project-placeholder.has-image { padding: 0; position: relative; }
.project-placeholder.has-image img { width: 100%; height: 100%; object-fit: cover; }
.project-card[data-images] { cursor: pointer; }
.project-view {
  position: absolute; inset: 0;
  background: rgba(21,23,29,.55);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.project-view svg { width: 26px; height: 26px; color: var(--gold); }
.project-card[data-images]:hover .project-view { opacity: 1; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,11,14,.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: 88vw; max-height: 82vh; text-align: center; }
.lightbox-content img {
  max-width: 88vw; max-height: 76vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  object-fit: contain;
}
.lightbox-counter { color: rgba(255,255,255,.7); margin-top: 14px; font-size: 0.9rem; letter-spacing: .5px; }
.lightbox-close {
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.18); }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.lightbox-nav:hover { background: rgba(201,162,39,.35); border-color: var(--gold); }
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-nav.hidden { display: none; }

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}
.project-card figcaption { padding: 16px 18px; font-size: 0.85rem; color: var(--text-gray); }
.project-card figcaption span:first-child { display: block; font-weight: 700; color: var(--text-dark); font-size: 0.98rem; margin-bottom: 2px; }

/* ===== CTA strip ===== */
.cta-strip {
  background: linear-gradient(120deg, #fdf7e8, #f6e8bf);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.cta-strip-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.cta-strip h3 { color: var(--dark); font-size: 1.5rem; margin-bottom: 4px; }
.cta-strip p { color: var(--text-gray); }
.cta-strip-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--gold); }
.contact-list h4 { font-size: 0.92rem; color: var(--text-gray); font-weight: 600; margin-bottom: 2px; }
.contact-list a { font-weight: 600; font-size: 1.02rem; }
.contact-list a[href^="tel"]:hover, .contact-list a[href^="https"]:hover, .contact-list a[href^="mailto"]:hover { color: var(--gold); }

.map-embed { margin-top: 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { display: block; }

.contact-form {
  background: var(--light);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 4px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: inherit;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--text-dark);
  resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-note { font-size: 0.8rem; color: var(--text-gray); text-align: center; }

/* ===== Footer ===== */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-gray); font-size: 0.9rem; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { color: var(--text-gray); font-size: 0.85rem; width: 100%; text-align: center; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 8px; }

/* ===== Floating buttons ===== */
.floating-buttons {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 200;
}
.fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 27px; height: 27px; }
.fab-call { background: var(--gold); color: var(--dark); }
.fab-whatsapp { background: var(--whatsapp); color: #fff; }
.fab-whatsapp svg { width: 30px; height: 30px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 320px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 24px 24px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .header-phone { padding: 10px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 28px 22px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}
