/* NYBA GROUP S.A.S. — Estudio de diseño de interiores, Bogotá */

:root {
  --clay: #b06a4f;
  --clay-dark: #8f4f37;
  --ink: #1f1b18;
  --ink-soft: #4a423c;
  --cream: #f8f4ee;
  --sand: #efe7dc;
  --line: #e1d6c8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 27, 24, 0.12);
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .4em;
  letter-spacing: .2px;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 14px;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .3px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem; font-weight: 700;
}
.brand .name { font-weight: 700; letter-spacing: 1.5px; font-size: 1.02rem; }
.brand .name small { display: block; font-weight: 400; font-size: .62rem; letter-spacing: 3px; color: var(--clay); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--clay); }
.nav-phone { font-weight: 700; color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(31,27,24,.82) 0%, rgba(31,27,24,.45) 55%, rgba(31,27,24,.25) 100%),
    url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  transform: scale(1.02);
}
.hero-inner { position: relative; max-width: 640px; padding: 80px 0; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: #fff; }
.hero p { color: rgba(255,255,255,.86); font-size: 1.12rem; max-width: 520px; }
.hero .eyebrow { color: #e7b9a4; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.hero-actions .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Stats ---------- */
.stats {
  background: var(--ink);
  color: var(--cream);
}
.stats .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 46px 0;
}
.stat { text-align: center; }
.stat b { font-family: "Cormorant Garamond", serif; font-size: 2.6rem; display: block; color: #fff; line-height: 1; }
.stat span { font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(248,244,238,.7); }

/* ---------- Section base ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); height: 520px; object-fit: cover; width: 100%; }
.about-badge {
  position: absolute; bottom: -26px; left: -26px;
  background: var(--clay); color: #fff;
  padding: 22px 26px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-badge b { font-family: "Cormorant Garamond", serif; font-size: 2.2rem; display: block; line-height: 1; }
.about-badge span { font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; }
.about-list { list-style: none; padding: 0; margin: 22px 0 0; }
.about-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink-soft); }
.about-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--clay); font-weight: 700;
}

/* ---------- Services ---------- */
.services { background: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ic {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--cream); color: var(--clay);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.5rem; }
.card p { font-size: .95rem; margin: 0; }

/* ---------- Projects ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 18px; }
.gallery figure {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius);
}
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px; color: #fff; font-weight: 600; letter-spacing: .5px;
  background: linear-gradient(transparent, rgba(31,27,24,.78));
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; }
.step b {
  counter-increment: step;
  font-family: "Cormorant Garamond", serif; font-size: 2.4rem; color: var(--clay);
  display: block; margin-bottom: 8px;
}
.step b::before { content: "0" counter(step); }
.step h3 { font-size: 1.25rem; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--clay) 0%, var(--clay-dark) 100%);
  color: #fff; text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.cta p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 28px; }
.cta .phone-xl { font-family: "Cormorant Garamond", serif; font-size: clamp(2rem,5vw,3rem); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.info-block { margin-bottom: 26px; display: flex; gap: 16px; }
.info-block .ic { color: var(--clay); flex: 0 0 auto; margin-top: 3px; }
.info-block h4 { margin: 0 0 4px; font-family: inherit; font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--clay); font-weight: 700; }
.info-block p { margin: 0; color: var(--ink); font-weight: 500; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--cream); color: var(--ink); transition: border .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn-primary { width: 100%; justify-content: center; }
.form-note { font-size: .8rem; color: var(--ink-soft); margin: 14px 0 0; text-align: center; }
.map-embed { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(248,244,238,.72); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .brand .name { color: var(--cream); }
.site-footer h5 { color: #fff; font-family: inherit; font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: .92rem; }
.site-footer a:hover { color: var(--clay); }
.legal-row {
  border-top: 1px solid rgba(248,244,238,.14);
  padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .82rem;
}
.legal-row .reg { color: rgba(248,244,238,.55); }

/* ---------- Legal pages ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 80px 0 60px; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem,5vw,3.4rem); }
.legal-body { padding: 70px 0; max-width: 820px; }
.legal-body h2 { font-size: 1.7rem; margin-top: 40px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { padding-left: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img img { height: 380px; }
  .cards, .gallery, .steps, .stats .grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-rows: 200px; }
  .gallery figure.tall { grid-row: span 1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .cards, .gallery, .steps, .stats .grid, .footer-grid, .form .row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .about-badge { left: 14px; bottom: 14px; }
  .legal-row { flex-direction: column; }
}
