:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #666666;
  --gold: #c9a34d;
  --gold-strong: #b8871c;
  --dark: #111111;
  --card: #ffffff;
  --line: rgba(17, 17, 17, 0.1);
  --shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201, 163, 77, 0.12), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fcfbf8 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 110px;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: 999px;
  position: sticky;
  top: 14px;
  z-index: 30;
  box-shadow: 0 12px 40px rgba(17,17,17,0.04);
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--dark), #2a2a2a 55%, var(--gold));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.eyebrow,
.section-tag,
.card-small {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.brand-copy h1,
.hero-content h2,
.section-heading h3,
.info-panel h3,
.contact-band h3,
.detail-box h3,
.hero-card h3,
.footer h4 {
  font-family: 'Cormorant Garamond', serif;
  margin: 0;
  line-height: 1;
}

.brand-copy h1 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.brand-copy .eyebrow { margin: 0 0 4px; color: var(--gold-strong); }
.top-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

.btn {
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  color: white;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: 0 14px 30px rgba(184, 135, 28, 0.22);
}
.btn-outline {
  border-color: rgba(17,17,17,0.12);
  background: white;
}
.btn-dark {
  color: white;
  background: var(--dark);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: stretch;
  padding: 56px 0 32px;
}

.hero-content,
.hero-card,
.info-panel,
.reference-panel,
.service-card,
.detail-box {
  background: var(--card);
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: var(--shadow);
}

.hero-content {
  padding: clamp(28px, 4vw, 54px);
  border-radius: 34px;
  position: relative;
  overflow: hidden;
}

.hero-content::before,
.hero-content::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(201, 163, 77, 0.28);
  pointer-events: none;
}
.hero-content::before {
  inset: 18px 18px auto auto;
  width: 140px;
  height: 140px;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 56% 100%, 0 100%, 0 44%);
}
.hero-content::after {
  left: -30px;
  bottom: -30px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
}

.hero-content .eyebrow { color: var(--gold-strong); margin: 0 0 16px; }
.hero-content h2 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: .95;
  max-width: 10ch;
  margin-bottom: 16px;
}
.lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}
.hero-badges span {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(201, 163, 77, 0.1);
  border: 1px solid rgba(201, 163, 77, 0.25);
  font-weight: 600;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  border-radius: 34px;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(17,17,17,0.97), rgba(30,30,30,0.92));
  color: white;
  position: relative;
}
.frame-lines {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201, 163, 77, 0.34);
  border-radius: 26px;
}
.hero-card-inner {
  min-height: 100%;
  border-radius: 24px;
  padding: 36px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    url('../assets/referencia.png') center/cover no-repeat;
  position: relative;
  isolation: isolate;
}
.hero-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.82));
  z-index: -1;
}
.hero-card .card-small { color: #e3c476; margin: 0 0 10px; }
.hero-card h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 22px;
}
.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.hero-card li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.signature-grid,
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin: 18px 0 28px;
}

.info-panel,
.reference-panel,
.detail-box {
  border-radius: 30px;
  padding: 28px;
}
.info-panel h3,
.section-heading h3,
.contact-band h3,
.detail-box h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 6px 0 14px;
}
.info-panel p:not(.section-tag),
.detail-box p,
.reference-panel .overlay-note,
.service-card p { color: var(--muted); line-height: 1.8; }
.section-tag { color: var(--gold-strong); margin: 0; }
.section-tag.light { color: #edd393; }

.reference-panel {
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 420px;
}
.reference-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overlay-note {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: rgba(255,255,255,0.92);
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 600;
}

.services { padding: 34px 0; }
.section-heading { margin-bottom: 20px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  border-radius: 28px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -30px;
  bottom: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 163, 77, 0.16), transparent 65%);
}
.service-number {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(17,17,17,0.06);
  color: var(--gold-strong);
  font-weight: 700;
  margin-bottom: 18px;
}
.service-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin: 0 0 10px;
}

.contact-band {
  margin: 20px 0 28px;
  border-radius: 30px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, #121212, #272727);
  color: white;
  box-shadow: 0 24px 48px rgba(17,17,17,0.18);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-actions a {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.inline-link {
  font-weight: 700;
  color: var(--gold-strong);
}

.footer {
  margin-top: 26px;
  padding: 30px 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(17,17,17,0.08);
}
.footer h4 { font-size: 2rem; }
.footer p { margin: 6px 0 0; color: var(--muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  background: linear-gradient(135deg, #1d1d1d, #000000);
  color: white;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(17,17,17,0.24);
  border: 1px solid rgba(201, 163, 77, 0.35);
}
.floating-whatsapp span::before {
  content: "•";
  color: var(--gold);
  margin-right: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@media (max-width: 980px) {
  .hero,
  .signature-grid,
  .details-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .contact-band,
  .footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .top-actions,
  .contact-actions,
  .footer-links { justify-content: flex-start; }
  .reference-panel { min-height: 300px; }
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 20px, 1180px); padding-top: 12px; }
  .topbar { border-radius: 28px; padding: 16px; }
  .hero { padding-top: 24px; }
  .hero-content,
  .hero-card,
  .info-panel,
  .detail-box,
  .contact-band,
  .service-card { border-radius: 24px; }
  .hero-content h2 { max-width: 100%; }
  .btn { width: 100%; }
  .hero-cta { display: grid; }
}
