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

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f7fb;
  --text: #111827;
  --muted: #5b6475;
  --gold: #b78a2f;
  --gold-strong: #8b6720;
  --border: rgba(17, 24, 39, 0.08);
  --shadow: 0 18px 60px rgba(17, 24, 39, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --max: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(183, 138, 47, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(17, 24, 39, 0.05), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.page-shell {
  min-height: 100vh;
}

.topbar {
  width: min(calc(100% - 32px), var(--max));
  margin: 24px auto 0;
  padding: 18px 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 16px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.brand-mini {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold-strong);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-strong));
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0 48px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(183, 138, 47, 0.12);
  color: var(--gold-strong);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1,
.hero h2,
.section h2,
.section h3,
.brand-mini {
  font-family: 'Cinzel', serif;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero h2 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--gold-strong);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 650px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-badges span {
  padding: 12px 16px;
  border: 1px solid rgba(183, 138, 47, 0.25);
  background: linear-gradient(180deg, #fffaf1, #ffffff);
  border-radius: 999px;
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.logo-frame {
  position: relative;
  background:
    linear-gradient(135deg, rgba(183, 138, 47, 0.14), rgba(17, 24, 39, 0.02)),
    #ffffff;
  padding: 22px;
  border-radius: 36px;
  border: 1px solid rgba(183, 138, 47, 0.18);
  box-shadow: var(--shadow);
}

.logo-frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 46px;
  border: 1px dashed rgba(183, 138, 47, 0.25);
  z-index: -1;
}

.logo-frame img {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading.center {
  justify-content: center;
}

.section-heading p {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  color: var(--gold-strong);
  font-weight: 800;
}

.line {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.card,
.service-card,
.profile-card,
.identity-box,
.closing-box {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 28px 0 10px;
}

.large-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.large-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(183, 138, 47, 0.10), transparent 40%),
    radial-gradient(circle at right top, rgba(17, 24, 39, 0.06), transparent 25%);
  pointer-events: none;
}

.card-content {
  position: relative;
  padding: 40px;
}

.card-content h3 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.card-content p {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 1.03rem;
}

#servicios {
  padding: 72px 0 22px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  border-radius: var(--radius-md);
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, #ffffff, #fbfbfd);
}

.service-number {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(183, 138, 47, 0.16), rgba(183, 138, 47, 0.05));
  color: var(--gold-strong);
  font-weight: 800;
  margin-bottom: 24px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.service-card p {
  color: var(--muted);
}

.split-section {
  padding: 72px 0 24px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.profile-card,
.identity-box {
  border-radius: var(--radius-lg);
  padding: 34px;
  height: 100%;
}

.profile-card h3,
.identity-copy h3 {
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.profile-list {
  list-style: none;
  margin-bottom: 18px;
}

.profile-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.profile-card p,
.identity-copy p {
  color: var(--muted);
}

.identity-box {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(183, 138, 47, 0.08), transparent 35%),
    #ffffff;
}

.identity-box img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(183, 138, 47, 0.18);
}

.closing {
  padding: 32px 0 90px;
}

.closing-box {
  border-radius: 34px;
  padding: 44px;
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(183, 138, 47, 0.12), transparent 35%),
    #ffffff;
}

.closing-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 8px 0 16px;
}

.closing-box p {
  max-width: 840px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .identity-box,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-text {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }
}

@media (max-width: 720px) {
  .topbar {
    border-radius: 24px;
    position: static;
    margin-top: 14px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 14px;
  }

  .hero,
  #servicios,
  .split-section,
  .closing {
    padding-left: 0;
    padding-right: 0;
  }

  .card-content,
  .service-card,
  .profile-card,
  .identity-box,
  .closing-box {
    padding: 24px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .card-content h3,
  .profile-card h3,
  .identity-copy h3 {
    font-size: 1.45rem;
  }

  .closing-box h2 {
    font-size: 1.8rem;
  }
}
