:root {
  --bg: #2c2d28;
  --bg-2: #34352f;
  --gold: #d6bd8e;
  --ivory: #f4f1ea;
  --ink: #2c2d28;
  --muted: #6d6e66;
  --side: 300px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Raleway", system-ui, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; }

/* Sidebar */
.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--side);
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 24px 40px;
  z-index: 10;
}
.brand img { width: 220px; height: 220px; object-fit: cover; display: block; }
.nav { margin-top: auto; margin-bottom: auto; width: 100%; display: flex; flex-direction: column; gap: 14px; padding-left: 20px; }
.nav a {
  color: #e9e6df; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  transition: color .2s;
}
.nav a:hover, .nav a:focus-visible { color: var(--gold); }

/* Main */
.content { margin-left: var(--side); }

.hero {
  min-height: 100vh;
  background: var(--bg);
  color: #fff;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 80px clamp(24px, 6vw, 96px);
}
.skyline {
  position: absolute; right: -40px; bottom: 0;
  width: min(900px, 90%); color: rgba(255,255,255,.14);
}
.hero-text { position: relative; max-width: 620px; }
.eyebrow {
  color: var(--gold); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 20px;
}
h1 { font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.15; letter-spacing: .02em; }
.lead { margin-top: 22px; color: #cfccc3; font-size: 1.05rem; max-width: 52ch; }
.btn {
  display: inline-block; margin-top: 32px;
  padding: 14px 28px; background: var(--gold); color: var(--ink);
  font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover, .btn:focus-visible { background: #e6d0a3; transform: translateY(-2px); }

.block { padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 96px); }
.block.alt { background: #fff; }
h2 {
  font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 40px;
}
h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); margin-top: 16px; }

.cards { display: grid; gap: 16px; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff; border: 1px solid #e3dfd4; padding: 32px 26px;
  transition: transform .25s, box-shadow .25s;
}
.card.dark { background: var(--bg); border-color: var(--bg); color: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.num { color: var(--gold); font-size: 13px; letter-spacing: .2em; font-weight: 600; }
.card h3 { font-weight: 600; font-size: 1.05rem; margin: 14px 0 10px; text-transform: uppercase; letter-spacing: .05em; line-height: 1.35; }
.card p { font-size: .95rem; color: var(--muted); }
.card.dark p { color: #c9c6bd; }
.note { margin-top: 28px; color: var(--muted); font-size: .95rem; }

.list { list-style: none; display: grid; gap: 12px; max-width: 760px; }
.list li {
  background: var(--bg); color: #fff; padding: 20px 26px;
  border-left: 4px solid var(--gold); font-weight: 500; letter-spacing: .03em;
}

.contact { background: var(--bg); color: #fff; }
.contact .lead { margin-top: 0; }
.contact-list { list-style: none; margin-top: 28px; display: grid; gap: 8px; color: #e9e6df; }
.contact-list strong { color: var(--gold); font-weight: 600; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }

.link-cta {
  display: inline-block; margin-top: 28px; color: var(--gold);
  font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: color .2s, border-color .2s;
}
.link-cta:hover, .link-cta:focus-visible { color: #e6d0a3; border-color: #e6d0a3; }
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .2s; }
.wa:hover, .wa:focus-visible { transform: scale(1.08); }

/* Base: evitar desbordes y mejorar soporte en móviles */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, svg { max-width: 100%; }
.hero { min-height: 100vh; min-height: 100dvh; }
.contact-list li { overflow-wrap: anywhere; }
.wa { right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); }

/* Pantallas muy grandes */
@media (min-width: 1600px) {
  :root { --side: 340px; }
  .brand img { width: 250px; height: 250px; }
  .hero-text { max-width: 720px; }
  .lead { font-size: 1.15rem; }
}

/* Laptop pequeña / tablet horizontal */
@media (max-width: 1100px) {
  :root { --side: 240px; }
  .brand img { width: 180px; height: 180px; }
  .nav { padding-left: 8px; }
}

/* Tablet / móvil: sidebar pasa a barra superior */
@media (max-width: 860px) {
  html { scroll-padding-top: 84px; }
  .sidebar {
    position: sticky; inset: 0 auto auto 0; width: 100%;
    flex-direction: row; justify-content: space-between; align-items: center;
    padding: 8px 16px; gap: 12px;
  }
  .brand img { width: 64px; height: 64px; }
  .nav { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; gap: 4px 6px; width: auto; }
  .nav a { font-size: 11px; padding: 10px 8px; }
  .content { margin-left: 0; }
  .hero { min-height: calc(100vh - 80px); min-height: calc(100dvh - 80px); padding-top: 56px; padding-bottom: 56px; }
  .skyline { right: -80px; width: 120%; }
}

/* Móvil */
@media (max-width: 560px) {
  .sidebar { padding: 6px 12px; }
  .brand img { width: 52px; height: 52px; }
  .nav a { font-size: 10px; letter-spacing: .1em; padding: 12px 6px; }
  .eyebrow { font-size: 11px; letter-spacing: .16em; }
  .btn { display: block; text-align: center; padding: 16px 20px; }
  .cards-4 { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .list li { padding: 16px 18px; }
  h2 { letter-spacing: .08em; margin-bottom: 28px; }
  .wa { width: 52px; height: 52px; }
}

/* Móviles muy angostos */
@media (max-width: 360px) {
  .nav a { font-size: 9px; letter-spacing: .06em; padding: 12px 4px; }
}

/* Pantallas bajas en horizontal (móvil girado) */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
