/* Sakbé Digital · dark and gold. Palettes live in [data-theme]; every color below reads from these tokens. */
:root,
[data-theme="marino"] {
  --bg: #0a1628;
  --soft: #0e1d33;
  --surface: #12233d;
  --ink: #f4f0e6;
  --text: #d5dbe4;
  --muted: #97a3b6;
  --line: #233452;
  --accent: #d4af6a;
  --accent-ink: #e6c88f;
  --accent-soft: rgba(212, 175, 106, .12);
  --on-accent: #0a1628;
  --header-bg: rgba(10, 22, 40, .82);
}
[data-theme="negro"] {
  --bg: #0b0b0c;
  --soft: #121214;
  --surface: #18181b;
  --ink: #f5f1e8;
  --text: #d9d4c9;
  --muted: #9d988d;
  --line: #2b2b30;
  --accent: #c9a45c;
  --accent-ink: #e0c084;
  --accent-soft: rgba(201, 164, 92, .12);
  --on-accent: #0b0b0c;
  --header-bg: rgba(11, 11, 12, .82);
}
[data-theme="selva"] {
  --bg: #0a1a14;
  --soft: #0e221a;
  --surface: #132a21;
  --ink: #f2efe6;
  --text: #d2dbd6;
  --muted: #90a49b;
  --line: #21392f;
  --accent: #cfa960;
  --accent-ink: #e3c486;
  --accent-soft: rgba(207, 169, 96, .12);
  --on-accent: #0a1a14;
  --header-bg: rgba(10, 26, 20, .82);
}
:root {
  --radius: 18px;
  --wrap: 1180px;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 18px 40px -16px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 76px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 13px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 24px; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 40px; height: 34px; flex: none; }
.logo__steps { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linejoin: round; }
.logo__road { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.logo__sun { fill: var(--accent); }
.logo__word { font: 800 22px/1 var(--display); color: var(--ink); letter-spacing: -.03em; }
.logo__word span { font-weight: 500; color: var(--accent); margin-left: 4px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header__tools { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; font: 600 13px/1 var(--body); color: var(--muted); padding: 8px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(42px, 6vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin-top: 26px; max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__show { position: relative; margin: 0; padding-bottom: 28px; }
.browser { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser__bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.phone { position: absolute; right: -14px; bottom: 0; width: 26%; border: 6px solid #000; border-radius: 26px; overflow: hidden; background: #000; box-shadow: var(--shadow), 0 0 0 1px var(--line); }

/* Sections */
.section { padding: 104px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 760px; margin-bottom: 52px; }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Portfolio */
.case__intro { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 32px; align-items: end; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.case__kind { font-size: 14px; color: var(--accent); margin-bottom: 8px; }
.case h3 { font-size: clamp(28px, 3.4vw, 40px); }
.case__intro > p { color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-flow: dense; gap: 18px; }
.shot { position: relative; margin: 0; grid-column: span 2; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.03); }
.shot--wide { grid-column: span 4; }
.shot--tall { grid-row: span 2; }
.shot:not(.shot--tall) { aspect-ratio: 16 / 10; }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--header-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.tags li { font-size: 13.5px; font-weight: 500; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; padding: 26px 30px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); transition: border-color .2s, color .2s; }
.next-case:hover { border-color: var(--accent); color: var(--ink); }
.next-case b { color: var(--accent); white-space: nowrap; }

/* What's included */
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.feature p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }

/* Prices */
.price { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price--star { border: 1.5px solid var(--accent); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 32px; background: var(--accent); color: var(--on-accent); font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.price__for { color: var(--muted); font-size: 15px; margin-top: 6px; }
.price__num { font: 800 44px/1 var(--display); color: var(--ink); letter-spacing: -.03em; margin: 22px 0; }
.price__num small { font: 500 15px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 28px; font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plans { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; margin-top: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plans__head p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }
.plans dl { margin: 0; }
.plans dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plans dl div:first-child { padding-top: 0; }
.plans dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.plans dt { font-size: 15.5px; }
.plans dd { margin: 0; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps b { display: block; font: 800 15px/1 var(--display); color: var(--accent); margin-bottom: 18px; }
.steps p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

/* Contact */
.cta { text-align: center; max-width: 760px; margin: 0 auto; padding: 64px 32px; border: 1.5px solid var(--accent); border-radius: 28px; background: radial-gradient(120% 120% at 50% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.cta > p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 18px auto 30px; max-width: 520px; }
.cta__mail { margin-top: 22px !important; font-size: 15px !important; }
.cta__mail a { color: var(--muted); text-decoration: none; }
.cta__mail a:hover { color: var(--accent); }

/* Footer */
.footer { padding: 56px 0; border-top: 1px solid var(--line); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 15px; color: var(--muted); }
.logo--sm .logo__mark { width: 33px; height: 28px; }
.logo--sm .logo__word { font-size: 19px; }
.footer__contact { width: 100%; }
.footer__contact a, .footer__legal a { color: var(--ink); text-decoration: none; }
.footer__contact a:hover, .footer__legal a:hover { color: var(--accent); }
.footer__legal { width: 100%; font-size: 14px; }

/* Privacy notice page */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; }
.legal p, .legal li { margin-top: 10px; }
.legal ul { padding-left: 22px; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent); }

/* Reveal: only when JS is running; never hides content otherwise */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1060px) {
  .header__cta { display: none; }
  .case__intro { grid-template-columns: 1fr 1.4fr; }
  .case__intro .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; margin: 0; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 15px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .header__tools { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .grid--3, .plans { grid-template-columns: 1fr; }
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .case__intro { grid-template-columns: 1fr; gap: 16px; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shot, .shot--wide { grid-column: span 2; }
  .shot--tall { grid-column: span 1; grid-row: span 1; aspect-ratio: 9 / 16; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .grid--4, .steps { grid-template-columns: 1fr; }
  .price, .plans, .feature, .steps li { padding: 24px; }
  .plans dl div { flex-direction: column; gap: 4px; }
  .next-case { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { width: 100%; }
  .phone { right: -6px; width: 30%; border-width: 4px; border-radius: 18px; }
  .lang button { padding: 8px 9px; }
  .cta { padding: 44px 22px; }
  .shots { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
