/* ============================================================
   Rodrigo Becerra — sitio general
   Monocromo: negro/blanco/gris en todo el sitio, sin colores de marca.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #060606;
  --bg-soft: #101010;
  --bg-card: #161616;
  --fg: #f5f2e6;
  --fg-dim: #b6b2a2;
  --fg-faint: #7a7768;
  --line: rgba(245, 242, 230, 0.12);

  /* No brand colors — everything neutral black/white/gray, same as the hub. */
  --abt: #f5f2e6;
  --abt-2: #cfcabb;
  --abt-bg: #060606;

  --serv-sky: #f5f2e6;
  --serv-green: #f5f2e6;
  --serv-soil: #cfcabb;
  --serv-bg: #060606;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  text-transform: none;
}

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

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

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 700;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 18px; left: 18px; right: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--maxw) + 24px);
  margin: 0 auto;
  padding: 12px 14px 12px 20px;
  background: rgba(12, 13, 10, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245,242,230,0.10);
  border-radius: 999px;
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-nav .brand img { height: 24px; width: auto; }
.site-nav .back {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  transition: all .2s ease;
}
.site-nav .back:hover { color: var(--bg); background: var(--fg); border-color: var(--fg); }

/* ---------- Liquid glass surface (iOS-style) — shared by buttons & cards ---------- */
.glass, .btn,
.stat-banner, .pain-item, .service-card, .cta-card, .testi-card,
.choice, .countdown-block, .cta-final, .countdown-timer .unit {
  background: rgba(255,255,255,0.055) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow:
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.55),
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.22),
    inset 0 0 12px 2px rgba(255,255,255,0.045),
    0 10px 30px -14px rgba(0,0,0,0.6) !important;
  transition: transform .35s cubic-bezier(0.16,1,0.3,1), border-color .3s ease, box-shadow .3s ease;
}

/* Subtle hover life for glass cards (not buttons, which have their own lift) */
.stat-banner, .pain-item, .cta-card, .testi-card, .choice, .countdown-block {
  transform: translateY(0);
}
.stat-banner:hover, .pain-item:hover, .cta-card:hover, .testi-card:hover, .choice:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.3) !important;
  box-shadow:
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.6),
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.24),
    inset 0 0 16px 3px rgba(255,255,255,0.06),
    0 18px 40px -16px rgba(0,0,0,0.65) !important;
}

/* ---------- Cursor glow (follows the mouse, lights up the background) ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  margin-top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .8s ease;
  will-change: transform;
}
.cursor-glow.in { opacity: 1; }
@media (max-width: 720px) {
  .cursor-glow { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--fg);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-abt, .btn-serv, .btn-wa { color: var(--fg); }
.btn-ghost { color: var(--fg); }
.btn-block { width: 100%; }

/* ---------- Cinematic scrub section ---------- */
.cinematic {
  position: relative;
  height: 440vh;
}
.cinematic .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.cinematic canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cinematic .vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5,6,5,0.88) 0%, rgba(5,6,5,0.62) 26%, rgba(5,6,5,0.18) 52%, transparent 70%),
    linear-gradient(to top, rgba(5,6,5,0.75), transparent 38%);
  pointer-events: none;
}
.cinematic .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.cinematic .overlay-inner {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 220px;
  margin-left: max(28px, calc((100vw - var(--maxw)) / 2 + 28px));
}
.cinematic .reveal-line {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.cinematic .reveal-line .eyebrow {
  color: inherit;
  opacity: 0.75;
  margin-bottom: 16px;
}
.cinematic .reveal-line h1 {
  font-size: clamp(24px, 2.9vw, 38px);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.cinematic .reveal-sub {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  font-weight: 500;
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--fg-dim);
  letter-spacing: 0.01em;
  margin-top: 16px;
}
.cinematic .scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: opacity .3s ease;
}
.cinematic .scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 24px;
  margin: 8px auto 0;
  background: linear-gradient(to bottom, var(--fg-dim), transparent);
}

/* Filter treatments applied to the shared frame set */
.theme-abt .cinematic canvas,
.theme-serv .cinematic canvas { filter: grayscale(1) contrast(1.1) brightness(0.95); }

/* ---------- Generic section rhythm ---------- */
section.block {
  position: relative;
  padding: 160px 0;
}
section.block.tight { padding: 100px 0; }
.center { text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* TextEffect (blur preset) — staggered word reveal for headlines */
.text-effect-word {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-effect-word.in { opacity: 1; filter: blur(0px); }

.section-title {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 450;
  max-width: 820px;
}
.section-lede {
  color: var(--fg-dim);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 600px;
  margin-top: 22px;
  font-weight: 400;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--fg-faint);
  font-size: 13px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-nav { padding: 14px 18px; }
  section.block { padding: 80px 0; }
}
