/* Sitio48 — estudio, Córdoba Capital
   Shared stylesheet. Themes via body[data-theme]. */

:root {
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(28, 22, 16, 0.08);
  --wa: #25d366;
  --wa-ink: #07351c;
  --max: 1120px;
  --pad: clamp(1.1rem, 4.2vw, 2.25rem);
}

/* —— Themes —— */
[data-theme="sitio48"] {
  --bg: #f3eee4;
  --bg-2: #ebe4d6;
  --ink: #1c1814;
  --muted: #6a6358;
  --brand: #1c1814;
  --brand-deep: #100e0c;
  --soft: #e6ddce;
  --line: #d8d0c2;
  --elev: #fffaf3;
  --accent: #d96a3f;
  --accent-ink: #fff;
  --hero-spot: none;
}

[data-theme="alem"] {
  --bg: #eef3f1;
  --bg-2: #e3ece8;
  --ink: #102421;
  --muted: #4a5e59;
  --brand: #0f5c56;
  --brand-deep: #0a3f3b;
  --soft: #cfe3de;
  --line: #cfdcd7;
  --elev: #f7fbf9;
  --accent: #c9a15a;
  --accent-ink: #1a1610;
  --hero-spot: #0c3f3b;
}

[data-theme="sur"] {
  --bg: #f7f1ea;
  --bg-2: #f0e5db;
  --ink: #2b1614;
  --muted: #6a524c;
  --brand: #6e2a28;
  --brand-deep: #4a1b1a;
  --soft: #ead4cc;
  --line: #e2d4c8;
  --elev: #fffaf5;
  --accent: #c4a07a;
  --accent-ink: #2b1614;
  --hero-spot: #4a1b1a;
}

[data-theme="rio"] {
  --bg: #f4f8fb;
  --bg-2: #e8f1f8;
  --ink: #152033;
  --muted: #4d5d73;
  --brand: #2a6fa3;
  --brand-deep: #163b5e;
  --soft: #d5e4f2;
  --line: #d0dbe8;
  --elev: #ffffff;
  --accent: #e2b23a;
  --accent-ink: #1a1610;
  --hero-spot: #1a4a72;
}

[data-theme="mesa"] {
  --bg: #f6efe6;
  --bg-2: #efe4d6;
  --ink: #2a1610;
  --muted: #6e5248;
  --brand: #8b3a28;
  --brand-deep: #5c2418;
  --soft: #edd8c8;
  --line: #e2cfc0;
  --elev: #fff8f0;
  --accent: #c4783a;
  --accent-ink: #fff;
  --hero-spot: #3a1c14;
}

[data-theme="estudio"] {
  --bg: #f3efe4;
  --bg-2: #e8e2d4;
  --ink: #1a2118;
  --muted: #5c6156;
  --brand: #2d4a3e;
  --brand-deep: #1a2e26;
  --soft: #e0ddd0;
  --line: #d4d0c4;
  --elev: #fbf8f1;
  --accent: #c4a35a;
  --accent-ink: #1a2118;
  --hero-spot: #1a2a22;
}

/* leftover clinic-pitch themes (unused on the public home) */
[data-theme="index"],
[data-theme="altodent"] {
  --bg: #f3eee4; --bg-2: #e7efe9; --ink: #142826; --muted: #4d5e5b;
  --brand: #0c4a46; --brand-deep: #083632; --soft: #d3e6e2; --line: #d9d0c2;
  --elev: #fbf8f2; --accent: #c4a36a; --accent-ink: #142826;
  --hero-spot: #0c4a46;
}
[data-theme="melano"] {
  --bg: #f6f0e6; --bg-2: #f0e4dc; --ink: #2a161a; --muted: #6a5256;
  --brand: #7a2332; --brand-deep: #541821; --soft: #ecd6d4; --line: #e2d4c6;
  --elev: #fffdf8; --accent: #b08968; --accent-ink: #2a161a;
  --hero-spot: #7a2332;
}
[data-theme="rie"] {
  --bg: #f4f8fb; --bg-2: #eaf4fa; --ink: #173041; --muted: #4d6473;
  --brand: #2f86b5; --brand-deep: #1b5c80; --soft: #d4eaf6; --line: #d3e2ec;
  --elev: #ffffff; --accent: #e8c547; --accent-ink: #173041;
  --hero-spot: #2f86b5;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16.5px;
  letter-spacing: -0.011em;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, .wordmark, .step-num, .price, .brand-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 550;
  letter-spacing: -0.03em;
}

.wrap {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
}

/* —— Quiet piece note (example pages) —— */
.piece-note {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.42rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.piece-note a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.piece-note a:hover { color: var(--brand); }

/* quiet leftover for old banners if a file still uses them */
.demo-banner {
  background: transparent;
  color: var(--muted);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.42rem 1rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--line);
}

/* —— Sticky chrome —— */
.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 58px;
  padding-block: 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}
.mark-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  background: #d96a3f;
}
.mark, .mark-48 {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: -0.04em;
}
.mark-48 { background: var(--accent); color: #fff; }
.brand-text { min-width: 0; }
.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1.1;
}
.brand-place {
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 2vw, 1.15rem);
  font-size: 0.82rem;
  font-weight: 500;
}
.nav-links > a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links > a:not(.btn):hover { border-bottom-color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-brand {
  background: var(--brand);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost-light {
  background: transparent;
  color: #f6f1e8;
  border-color: rgba(255,255,255,0.38);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); }
.btn-wa {
  background: var(--wa);
  color: var(--wa-ink);
}
.btn-nav-wa {
  background: var(--ink);
  color: #f6f1e8;
  padding: 0.48rem 0.9rem;
  font-size: 0.78rem;
}
[data-theme="sitio48"] .btn-nav-wa {
  background: var(--accent);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--brand-deep, var(--brand));
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink, #fff);
}
.btn-lg { padding: 0.88rem 1.35rem; font-size: 0.95rem; }
.nav .btn { padding: 0.48rem 0.9rem; font-size: 0.78rem; }

/* —— Studio hero (home) —— */
.studio-hero {
  position: relative;
  min-height: min(92svh, 820px);
  display: flex;
  align-items: flex-end;
  color: #f6f1e8;
  overflow: hidden;
  isolation: isolate;
}
.studio-hero .hero-bg,
.hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.studio-hero .hero-bg { object-position: 55% 42%; }
.studio-hero .hero-veil,
.hero-photo .hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.studio-hero .hero-veil {
  background:
    linear-gradient(180deg, rgba(22, 18, 14, 0.12) 0%, rgba(22, 18, 14, 0.28) 42%, rgba(16, 12, 10, 0.78) 100%);
}
.hero-inner, .hero-copy { position: relative; z-index: 2; }
.studio-hero .hero-inner {
  padding: 3.2rem 0 3.4rem;
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
}
.wordmark {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, #fff 88%, var(--accent));
}
.hero-place {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin: 0 0 0.85rem;
}
.studio-hero h1 {
  font-size: clamp(2.15rem, 8vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 560;
  margin: 0 0 0.85rem;
  max-width: 13ch;
}
.studio-hero .lede {
  color: rgba(246, 241, 232, 0.86);
  max-width: 38ch;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 430;
}

/* —— Example photo hero —— */
.hero-photo {
  position: relative;
  min-height: min(78svh, 620px);
  display: flex;
  align-items: flex-end;
  color: #f7f4ee;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo .hero-veil {
  background:
    linear-gradient(180deg, rgba(10, 12, 12, 0.18) 0%, rgba(10, 12, 12, 0.35) 40%, rgba(8, 10, 10, 0.78) 100%);
}
.hero-photo .hero-copy {
  padding: 2.6rem 0 2.8rem;
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
}
.hero-photo h1 {
  font-size: clamp(1.85rem, 7vw, 3.2rem);
  line-height: 1.06;
  margin: 0 0 0.7rem;
  max-width: 16ch;
  font-weight: 560;
}
.hero-photo .lede {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
  max-width: 38ch;
}

/* legacy rounded panel (plantilla) */
.hero { position: relative; overflow: hidden; padding: 1.6rem 0 2.2rem; }
.hero-panel {
  position: relative;
  border-radius: 24px;
  padding: 1.55rem 1.3rem 1.7rem;
  color: #f7f4ee;
  background: var(--hero-spot);
  isolation: isolate;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-deco .orb { position: absolute; border-radius: 50%; }
.hero-deco .ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.16); }
.hero-deco .slash { position: absolute; height: 1px; background: rgba(255,255,255,0.14); transform: rotate(-18deg); width: 140%; left: -20%; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 78%, var(--accent));
  margin-bottom: 0.7rem;
  font-family: var(--sans);
}
.kicker i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 550;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  font-family: var(--sans);
}

/* —— Sections —— */
section { padding: 3rem 0; }
.sec-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.55rem;
}
.sec-head { margin-bottom: 1.6rem; }
.sec-head h2, section h2 {
  font-size: clamp(1.55rem, 4.6vw, 2.15rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.4rem;
  line-height: 1.15;
  font-weight: 550;
}
.sec-head p {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
  font-size: 1rem;
}

.grid { display: grid; gap: 0.85rem; }
.cards-2, .cards-3 { grid-template-columns: 1fr; }

.card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
}
.card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}
.ico {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--soft); color: var(--brand);
  margin-bottom: 0.75rem;
}
.ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.why .card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.why .ico { margin: 0; }
.num {
  font-family: var(--serif);
  width: auto; height: auto;
  border-radius: 0;
  display: block;
  background: transparent;
  color: var(--accent);
  font-weight: 550;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1;
  padding-top: 0.15rem;
}

/* —— How it works —— */
.how {
  background: var(--bg-2);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}
.steps li {
  position: relative;
  padding: 0;
  background: none;
  border: 0;
}
.step-num {
  display: block;
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  color: var(--accent);
  line-height: 0.9;
  margin-bottom: 0.65rem;
}
.steps h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
}
.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 34ch;
  font-size: 0.98rem;
}

/* —— Piezas grid —— */
.pieces {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.piece {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.piece:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.piece-photo {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--soft);
}
.piece-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ex-label {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6f1e8;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.piece-body { padding: 0.95rem 1.05rem 1.15rem; }
.piece-body h3 {
  margin: 0 0 0.2rem;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}
.piece-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.piece .go {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--brand);
}

/* legacy demo-card */
.demo-card {
  display: block;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--elev);
}
.demo-card .swatch { height: 140px; position: relative; background-size: cover; background-position: center; }
.demo-card .swatch span {
  position: absolute; left: 1rem; bottom: 0.85rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
}
.demo-card .body { padding: 1.05rem 1.1rem 1.2rem; }
.demo-card h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.demo-card p { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.92rem; }
.demo-card .go { font-weight: 600; font-size: 0.88rem; color: var(--brand); }
.swatch-a { background: #0f5c56; }
.swatch-m { background: #6e2a28; }
.swatch-r { background: #245a8f; }

/* —— Offer —— */
.offer-section { padding-bottom: 3.4rem; }
.offer {
  background: #1c1814;
  color: #f3eee4;
  border-radius: 22px;
  padding: 1.7rem 1.3rem 1.8rem;
  display: grid;
  gap: 1.4rem;
}
.offer h2, .offer .price {
  color: #fff;
  margin: 0;
}
.price {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.price span {
  font-size: 0.42em;
  font-style: italic;
  margin-right: 0.12em;
  opacity: 0.8;
}
.offer-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d96a3f;
  margin: 0 0 0.55rem;
}
.offer-lead {
  color: rgba(255,255,255,0.72);
  margin: 0.55rem 0 1.2rem;
  max-width: 32ch;
  font-size: 1rem;
}
.offer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.offer-list li {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.98rem;
  color: rgba(243, 238, 228, 0.9);
}
.offer-list li:first-child { border-top: 0; padding-top: 0; }
.offer-list strong { color: #fff; font-weight: 600; }
.offer-box {
  background: #1c1814;
  color: #f3eee4;
  border-radius: 22px;
  padding: 1.4rem 1.2rem 1.5rem;
}
.offer-box h2 { color: #fff; margin: 0 0 0.4rem; }
.offer-box p { color: rgba(255,255,255,.78); margin: 0 0 1rem; }
.offer-box ul { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.offer-box li { padding: 0.45rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.offer-box li:first-child { border-top: 0; }

/* —— About —— */
.about { padding-top: 3.2rem; padding-bottom: 3.4rem; }
.about-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 62ch;
}
.about h2 { margin: 0 0 0.7rem; }
.about p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* —— Place / contact —— */
.place {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.place-map {
  height: 160px;
  position: relative;
  background:
    linear-gradient(180deg, transparent, var(--elev) 92%),
    repeating-linear-gradient(90deg, transparent 0 18px, color-mix(in srgb, var(--brand) 7%, transparent) 18px 19px),
    repeating-linear-gradient(0deg, transparent 0 18px, color-mix(in srgb, var(--brand) 7%, transparent) 18px 19px),
    var(--soft);
}
.place-map .pin {
  position: absolute;
  left: 58%; top: 42%;
  width: 18px; height: 18px;
  background: var(--brand);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -80%) rotate(-45deg);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--brand) 35%, transparent);
}
.place-map .pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 50%;
}
.place-body { padding: 1.2rem 1.2rem 1.35rem; }
.place-body h2 { margin: 0 0 0.35rem; font-size: 1.45rem; }
.place-body p { margin: 0 0 0.9rem; color: var(--muted); }
.addr {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.25rem;
}
.hours { font-size: 0.92rem; color: var(--muted); margin: 0 0 1rem !important; }
.place-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* —— Footer —— */
footer {
  padding: 2.2rem 0 6.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: flex-start;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.foot-brand img {
  width: 28px; height: 28px; border-radius: 7px;
}
.foot-brand strong {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}
.foot-meta { display: grid; gap: 0.25rem; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}
.foot-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.foot-links a:hover { color: var(--brand); }
.foot-note {
  width: 100%;
  font-size: 0.78rem;
  color: var(--muted);
}
.disclaimer { display: none; } /* old legal dump — do not show on the public site */

/* —— WhatsApp float —— */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(18, 140, 70, 0.38);
  text-decoration: none;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float span {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}

.price-pill { display: none; }
.note {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

@media (min-width: 640px) {
  .cards-2, .cards-3 { grid-template-columns: 1fr 1fr; }
  .pieces { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr 1fr; gap: 1.6rem 1.4rem; }
  .steps li {
    padding-top: 0.4rem;
    border-top: 1px solid var(--line);
  }
  .hero-panel { padding: 2.1rem 2rem 2rem; min-height: 340px; }
  .place-map { height: 190px; }
  .offer { padding: 2.2rem 2rem; }
  .studio-hero { min-height: min(88svh, 780px); }
}

@media (min-width: 900px) {
  .cards-3 { grid-template-columns: 1fr 1fr 1fr; }
  .why .grid { grid-template-columns: 1fr 1fr 1fr; }
  .place { display: grid; grid-template-columns: 1.05fr 1fr; }
  .place-map { height: auto; min-height: 240px; }
  .offer {
    grid-template-columns: 1fr 1.05fr;
    align-items: end;
    gap: 2.5rem;
    padding: 2.6rem 2.4rem;
  }
  section { padding: 3.6rem 0; }
  .studio-hero .hero-inner { padding: 4.2rem 0 4.5rem; }
}

@media (min-width: 1040px) {
  .pieces {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.15rem;
  }
  .piece { grid-column: span 2; }
  .piece:nth-child(4) { grid-column: 2 / span 2; }
  .piece:nth-child(5) { grid-column: 4 / span 2; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 0.98rem; }
  .nav-links { gap: 0.5rem; font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .piece { transition: none; }
  .piece:hover { transform: none; }
}

/* ============================================================
   Sitio48 home — studio system (does not restyle example pages)
   Palette: night ink + terracotta ember + cream
   Type: Fraunces display + Outfit sans
   ============================================================ */

.home {
  --night: #110f0d;
  --night-2: #1c1713;
  --cream: #f4eee4;
  --cream-2: #e8dfd0;
  --ember: #e45a28;
  --ember-hot: #ff6d3a;
  --rust: #9a3418;
  --mute: #c4b8aa;
  --sans: "Outfit", "DM Sans", "Segoe UI", system-ui, sans-serif;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
}

.home h1, .home h2, .home h3,
.home .wordmark, .home .step-num, .home .price, .home .brand-name {
  font-family: var(--serif);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ember);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>");
  background-size: 180px 180px;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, rgba(228,90,40,0.22) 0%, rgba(228,90,40,0) 68%);
  mix-blend-mode: screen;
  will-change: transform;
}

/* —— Home chrome —— */
.home .chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--cream);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.home .chrome.is-solid {
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(244,238,228,0.1);
}
.home .nav-links > a:not(.btn) { color: var(--cream); }
.home .nav-links > a:not(.btn):hover { border-bottom-color: var(--ember); }
.home .btn-nav-wa {
  background: var(--ember);
  color: #fff;
  border-radius: 999px;
}
.home .btn-nav-wa:hover { background: var(--ember-hot); }
.home .brand-name { color: var(--cream); }
.home .mark-img {
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

/* —— Buttons —— */
.home .btn {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.home .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255,255,255,0.28), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.home .btn:hover::after { opacity: 1; }
.home .btn-accent {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 10px 28px rgba(228,90,40,0.32);
}
.home .btn-accent:hover {
  background: var(--ember-hot);
  transform: translateY(-1px);
}
.home .btn-ghost-light {
  color: var(--cream);
  border-color: rgba(244,238,228,0.35);
}
.home .btn-ghost-light:hover { background: rgba(255,255,255,0.08); }

/* —— Hero —— */
.home .studio-hero {
  min-height: 100svh;
  align-items: flex-end;
  color: var(--cream);
}
.home .studio-hero .hero-bg {
  object-position: 55% 42%;
  transform-origin: 60% 40%;
  animation: kenburns 28s ease-in-out alternate infinite;
  will-change: transform;
}
.home .studio-hero .hero-veil {
  background:
    linear-gradient(180deg, rgba(17,15,13,0.18) 0%, rgba(17,15,13,0.12) 32%, rgba(17,15,13,0.72) 72%, rgba(17,15,13,0.94) 100%),
    radial-gradient(120% 70% at 10% 90%, rgba(228,90,40,0.28), transparent 55%);
}
.home .studio-hero .hero-inner {
  padding: 7.5rem 0 3.2rem;
}
.home .hero-place {
  color: var(--ember-hot);
  letter-spacing: 0.2em;
  font-weight: 600;
}
.home .wordmark {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-style: italic;
  font-weight: 500;
  color: rgba(244,238,228,0.82);
  margin: 0 0 0.35rem;
}
.home .studio-hero h1 {
  font-size: clamp(2.55rem, 9.4vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 600;
  max-width: 12ch;
  margin: 0 0 0.85rem;
}
.home .studio-hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--ember-hot);
}
.home .studio-hero .lede {
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  max-width: 32ch;
  color: rgba(244,238,228,0.88);
  line-height: 1.4;
}
.home .hero-meta {
  margin: 1.15rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244,238,228,0.62);
  font-weight: 500;
}

@keyframes kenburns {
  from { transform: scale(1) translate3d(0,0,0); }
  to { transform: scale(1.1) translate3d(-2%, -1.4%, 0); }
}

/* —— Marquee —— */
.home .marquee {
  background: var(--ember);
  color: #fff;
  overflow: hidden;
  border-block: 0;
  padding: 0.85rem 0;
}
.home .marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.home .marquee-track span { padding: 0 0.35rem 0 1.15rem; }
.home .marquee-track i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  opacity: 0.85;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— Color blocks —— */
.home .color-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  gap: 0;
}
.home .color-blocks > div {
  min-height: 140px;
  padding: 1.3rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.home .color-blocks strong {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.6vw, 2.45rem);
  letter-spacing: -0.045em;
  font-weight: 600;
  line-height: 0.95;
}
.home .color-blocks span {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
}
.home .color-blocks > div:nth-child(1) { background: var(--ember); color: #fff; }
.home .color-blocks > div:nth-child(2) { background: var(--night-2); color: var(--cream); }
.home .color-blocks > div:nth-child(3) { background: var(--cream); color: var(--night); }
.home .color-blocks > div:nth-child(4) { background: var(--rust); color: var(--cream); }

/* —— Process —— */
.home .how {
  background: var(--cream);
  color: var(--night);
  padding: 4.2rem 0 4.4rem;
}
.home .how .sec-kicker { color: var(--ember); }
.home .how h2 {
  color: var(--night);
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 14ch;
}
.home .how .steps {
  gap: 1.8rem;
}
.home .how .steps li {
  padding-top: 0;
  border: 0;
}
.home .how .step-num {
  color: var(--ember);
  font-size: clamp(3.2rem, 10vw, 5rem);
  font-style: italic;
  font-weight: 500;
}
.home .how .steps h3 { color: var(--night); font-size: 1.35rem; }
.home .how .steps p { color: #5c554c; }

/* —— Work —— */
.home .work {
  background: var(--night);
  color: var(--cream);
  padding: 4.4rem 0 4.8rem;
}
.home .work .sec-kicker { color: var(--ember-hot); }
.home .work h2 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--cream);
}
.home .sec-head-row {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}
.home .sec-head-row p {
  color: var(--mute);
  max-width: 36ch;
}
.home .pieces {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
.home .piece {
  position: relative;
  background: var(--night-2);
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  color: var(--cream);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.home .piece:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.35);
}
.home .piece-photo {
  aspect-ratio: 4 / 5;
  min-height: 280px;
}
.home .piece-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.home .piece:hover .piece-photo img { transform: scale(1.08); }
.home .piece-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3.4rem 1.15rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(12,10,8,0.88) 70%);
}
.home .piece-body h3 {
  color: #fff;
  font-size: 1.45rem;
  margin: 0 0 0.15rem;
}
.home .piece-body p { color: rgba(244,238,228,0.75); }
.home .piece .go {
  color: var(--ember-hot);
  margin-top: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home .piece .go::after { content: " →"; }
.home .ex-label {
  background: var(--ember);
  color: #fff;
  backdrop-filter: none;
  font-size: 0.62rem;
}
.home .piece-barrio {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6f1e8;
  background: rgba(20,16,12,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

/* —— Offer / price poster —— */
.home .offer-section {
  background: var(--ember);
  padding: 0;
}
.home .offer-section .wrap { width: 100%; max-width: none; }
.home .offer {
  background: transparent;
  color: #fff;
  border-radius: 0;
  padding: 3.4rem var(--pad) 3.6rem;
  width: min(1120px, 100% - var(--pad) * 2);
  margin-inline: auto;
  gap: 1.6rem 2.4rem;
}
.home .offer-kicker,
.home .offer-includes-kicker,
.home .offer-pay {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin: 0 0 0.7rem;
}
.home .offer-pay {
  margin: 0.55rem 0 0;
  color: rgba(255,255,255,0.88);
}
.home .price {
  font-size: clamp(4.4rem, 16vw, 8.6rem);
  line-height: 0.8;
  letter-spacing: -0.065em;
  font-weight: 600;
  color: #fff;
}
.home .price span {
  font-size: 0.36em;
  font-style: italic;
  opacity: 0.85;
}
.home .guarantee {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  margin: 0.85rem 0 1.15rem;
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 500;
}
.home .offer-lead { color: rgba(255,255,255,0.86); }
.home .offer .btn-accent {
  background: var(--night);
  color: var(--cream);
  box-shadow: none;
}
.home .offer .btn-accent:hover { background: #000; color: #fff; }
.home .offer-includes-kicker {
  color: #fff;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}
.home .offer-list {
  margin: 0;
}
.home .offer-list li {
  border-top-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  padding: 0.72rem 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.home .offer-list li:first-child {
  border-top: 1px solid rgba(255,255,255,0.28);
  padding-top: 0.72rem;
}
.home .offer-list strong {
  color: #fff;
  font-weight: 650;
  font-family: var(--sans);
}

.home .offer-poster {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home .offer-poster .btn { margin-top: 0.15rem; }
.home .color-blocks strong { white-space: nowrap; }
.home .offer-door {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.28);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.4;
  color: rgba(255,255,255,0.92);
  max-width: 48ch;
}

/* —— About —— */
.home .about {
  background: var(--cream);
  color: var(--night);
  padding: 4.4rem 0 4.6rem;
}
.home .about .sec-kicker { color: var(--ember); }
.home .about h2 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  color: var(--night);
  letter-spacing: -0.045em;
}
.home .about p {
  color: #5c554c;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  max-width: 46ch;
}

/* —— Footer —— */
.home footer {
  background: var(--night);
  color: var(--mute);
  padding: 2.4rem 0 7rem;
}
.home .foot { border-top-color: rgba(244,238,228,0.12); }
.home .foot-brand strong,
.home .foot-links a { color: var(--cream); }
.home .foot-links a:hover { color: var(--ember-hot); }

/* —— Reveals ——
   Content is ALWAYS visible (no hide-then-show).
   JS may add .is-in for a translate-only motion. */
.home [data-reveal] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .home [data-reveal].is-in {
    animation: home-rise 0.7s cubic-bezier(.16, 1, .3, 1) both;
  }
  .home .steps li[data-reveal]:nth-child(2) { animation-delay: 0.08s; }
  .home .steps li[data-reveal]:nth-child(3) { animation-delay: 0.16s; }
  .home .color-blocks > div[data-reveal]:nth-child(2) { animation-delay: 0.06s; }
  .home .color-blocks > div[data-reveal]:nth-child(3) { animation-delay: 0.12s; }
  .home .color-blocks > div[data-reveal]:nth-child(4) { animation-delay: 0.18s; }
  .home .piece[data-reveal]:nth-child(2) { animation-delay: 0.06s; }
  .home .piece[data-reveal]:nth-child(3) { animation-delay: 0.12s; }
  .home .piece[data-reveal]:nth-child(4) { animation-delay: 0.04s; }
  .home .piece[data-reveal]:nth-child(5) { animation-delay: 0.1s; }
}
@keyframes home-rise {
  from { transform: translateY(18px); }
  to { transform: none; }
}

@media (min-width: 640px) {
  .home .color-blocks { grid-template-columns: repeat(4, 1fr); }
  .home .color-blocks > div { min-height: 180px; padding: 1.6rem 1.4rem; }
  .home .pieces { grid-template-columns: 1fr 1fr; }
  .home .piece:first-child { grid-column: span 2; }
  .home .piece:first-child .piece-photo { aspect-ratio: 16 / 9; min-height: 380px; }
  .home .how .steps li {
    padding-top: 1rem;
    border-top: 2px solid rgba(228,90,40,0.35);
  }
}

@media (min-width: 900px) {
  .home .studio-hero .hero-inner { padding: 8.5rem 0 4.2rem; }
  .home .how, .home .work, .home .about { padding: 5.4rem 0 5.6rem; }
  .home .offer {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    padding-block: 4.6rem;
  }
  .home .offer-door { grid-column: 1 / -1; }
  .home .sec-head-row {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

@media (min-width: 1040px) {
  .home .pieces {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(260px, auto);
    gap: 1rem;
  }
  .home .piece:first-child {
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
  }
  .home .piece:first-child .piece-photo {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
  }
  .home .piece:nth-child(2) { grid-column: 5 / span 2; grid-row: 1; }
  .home .piece:nth-child(3) { grid-column: 5 / span 2; grid-row: 2; }
  .home .piece:nth-child(4) { grid-column: 1 / span 3; grid-row: 3; }
  .home .piece:nth-child(5) { grid-column: 4 / span 3; grid-row: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .home .studio-hero .hero-bg,
  .home .marquee-track,
  .home [data-reveal],
  .home .piece,
  .home .piece-photo img,
  .home .btn { animation: none !important; transition: none !important; }
  .home [data-reveal] { opacity: 1; transform: none; }
  .home .piece:hover { transform: none; }
  .home .piece:hover .piece-photo img { transform: none; }
  .cursor-glow { display: none; }
}

.home .piece { display: block; height: 100%; }
.home .piece-photo { width: 100%; }
.home .chrome { z-index: 60; }
.home .color-blocks { padding: 0; }
.home .offer-section { padding: 0; }
.home .nav { min-height: 64px; }
.home main,
.home footer,
.home .marquee {
  position: relative;
  z-index: 1;
}
