/* Fuentes alojadas en el propio sitio (sin Google Fonts, por privacidad). Subconjuntos latin y latin-ext. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/bricolage-grotesque-500-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/bricolage-grotesque-500-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/geist-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/geist-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/geist-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/geist-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/geist-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/geist-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/geist-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/geist-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Recursive';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/recursive-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Recursive';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/recursive-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Optizen · mariomorales.solutions — propuesta "Raíces Low-Poly"
   Tokens de marca Optizen + motivos facetados del video "Digitalizar una mina"
   ========================================================================== */
:root {
  --oz-paper: #F5F3EE; --oz-surface: #FFFFFF; --oz-soil: #ECE7DC; --oz-stone: #E2DDD2; --oz-mist: #CFC9BC;
  --oz-ink: #121417; --oz-ink-soft: #4A4F57; --oz-ink-muted: #6B7079;
  --oz-jade: #1F6F5C; --oz-jade-deep: #154D40; --oz-jade-tint: #E3EFEA; --oz-moss: #CFE2D9; --oz-on-jade: #FFFFFF;
  --oz-signal: #FF6B3D; --oz-signal-tint: #FFE8DF;
  --oz-success: #2E8B57; --oz-warning: #C98A12; --oz-danger: #C2412D;
  /* sección "bosque de noche": siempre oscura, también en modo oscuro */
  --oz-night: #121417; --oz-night-ink: #F2F0EB; --oz-night-soft: #B8BCC3;

  --oz-radius-pill: 999px; --oz-radius-sm: 12px; --oz-radius: 24px; --oz-radius-lg: 32px;
  --oz-shadow: 0 1px 2px rgba(18,20,23,.05), 0 12px 32px rgba(31,111,92,.10);
  --oz-space-1: 4px; --oz-space-2: 8px; --oz-space-3: 16px; --oz-space-4: 24px;
  --oz-space-5: 40px; --oz-space-6: 64px; --oz-space-7: 96px; --oz-space-8: 144px;

  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-accent: 'Recursive', system-ui, sans-serif;
  --f-body: 'Geist', system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, monospace;
  --chamfer: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --oz-paper: #0F1113; --oz-surface: #171A1D; --oz-soil: #15181A; --oz-stone: #2A2F33; --oz-mist: #3A3F46;
    --oz-ink: #F2F0EB; --oz-ink-soft: #B8BCC3; --oz-ink-muted: #8A8F97;
    --oz-jade: #4FB59A; --oz-jade-deep: #3A9A80; --oz-jade-tint: #15291F; --oz-moss: #1F3A30; --oz-on-jade: #0F1113;
    --oz-signal-tint: #3A1F16; --oz-night: #0A0C0D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --oz-paper: #0F1113; --oz-surface: #171A1D; --oz-soil: #15181A; --oz-stone: #2A2F33; --oz-mist: #3A3F46;
  --oz-ink: #F2F0EB; --oz-ink-soft: #B8BCC3; --oz-ink-muted: #8A8F97;
  --oz-jade: #4FB59A; --oz-jade-deep: #3A9A80; --oz-jade-tint: #15291F; --oz-moss: #1F3A30; --oz-on-jade: #0F1113;
  --oz-signal-tint: #3A1F16; --oz-night: #0A0C0D;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--oz-paper); color: var(--oz-ink);
  font: 400 18px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* textura de papel */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--oz-jade); }
:focus-visible { outline: 2px solid var(--oz-jade); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; color: var(--oz-ink); }
h1 { font-size: clamp(42px, 5.6vw, 74px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 1.8vw, 22px); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.accent {
  font-family: var(--f-accent); font-weight: 600; color: var(--oz-jade); font-style: normal;
  font-variation-settings: 'CASL' 1, 'MONO' 0, 'slnt' 0; letter-spacing: -0.03em;
}
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--oz-ink-soft); max-width: 52ch; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.muted { color: var(--oz-ink-muted); }

/* eyebrow facetado: la etiqueta con esquina cortada del video */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--oz-ink-muted);
  padding: 8px 12px 8px 12px; background: var(--oz-surface); border: 1px solid var(--oz-stone);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
}
.eyebrow b { color: var(--oz-jade); font-weight: 500; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 15px 26px; border-radius: var(--oz-radius-pill); font: 500 16px/1 var(--f-body);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, transform .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--oz-jade); color: var(--oz-on-jade); }
.btn-primary:hover { background: var(--oz-jade-deep); }
.btn-secondary { background: transparent; color: var(--oz-ink); border-color: var(--oz-mist); }
.btn-secondary:hover { background: var(--oz-jade-tint); }
.btn-ink { background: var(--oz-ink); color: var(--oz-paper); min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-ink:hover { background: var(--oz-jade-deep); color: var(--oz-on-jade); }
.link { color: var(--oz-jade); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- navegación ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none;
}
.nav-inner {
  pointer-events: auto; max-width: 1200px; margin: 0 auto; width: calc(100% - 32px);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px;
  background: color-mix(in srgb, var(--oz-surface) 88%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--oz-stone); border-radius: var(--oz-radius-pill);
}
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--oz-ink); }
.logo svg { width: 30px; height: 30px; color: var(--oz-jade); }
.logo-word { font: 700 21px/1 var(--f-display); letter-spacing: -0.03em; }
.logo-by { font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--oz-ink-muted); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--oz-stone); }
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--oz-radius-pill); color: var(--oz-ink-soft); text-decoration: none; font-size: 15px; }
.nav-links a:hover { background: var(--oz-jade-tint); color: var(--oz-ink); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--oz-stone); background: transparent; color: var(--oz-ink-soft); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--oz-jade-tint); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- hero + método (scrollytelling sobre la maqueta) ---------- */
.scrolly {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 32px;
  max-width: 1440px; margin: 0 auto; padding: 0 24px 0 max(24px, calc((100vw - 1200px) / 2));
}
.s-hero { grid-column: 1; grid-row: 1; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 120px 0 72px; }
.s-visual { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 0; height: 100vh; align-self: start; }
.s-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.s-step { grid-column: 1; min-height: 96vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px 0; }
.s-step:last-of-type { min-height: 96vh; }
.s-tail { grid-column: 1; height: 46vh; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 8px 16px 8px 12px;
  background: var(--oz-jade-tint); color: var(--oz-jade-deep); border-radius: var(--oz-radius-pill); font-size: 14px; font-weight: 500;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--oz-signal); flex: none; }
.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--oz-signal); opacity: 0; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; border-top: 1px solid var(--oz-stone); padding-top: 18px; max-width: 520px; }
.layers div { padding-right: 12px; }
.layers dt { font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--oz-ink-muted); }
.layers dd { margin: 4px 0 0; font-size: 15px; line-height: 1.35; color: var(--oz-ink); }

.ring-num {
  width: 44px; height: 44px; display: grid; place-items: center; font: 500 13px/1 var(--f-mono);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); /* hexágono facetado */
}
.ring-1 { background: var(--oz-jade); color: var(--oz-on-jade); }
.ring-2 { background: var(--oz-jade-tint); color: var(--oz-jade-deep); }
.ring-3 { background: var(--oz-signal-tint); color: var(--oz-ink); }
.ring-4 { background: transparent; color: var(--oz-ink-muted); outline: 1px dashed var(--oz-mist); outline-offset: -1px; clip-path: none; border-radius: 50%; }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-meta { display: inline-flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; border-top: 1px solid var(--oz-stone); max-width: 46ch; }
.step-meta span { font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--oz-ink-muted); }
.step-meta span b { color: var(--oz-ink); font-weight: 500; }
.quote-line { border-left: 2px solid var(--oz-moss); padding-left: 14px; color: var(--oz-ink-soft); font-size: 16px; max-width: 44ch; }

.hud {
  position: absolute; left: 0; bottom: 28px; display: flex; align-items: center; gap: 14px; pointer-events: none;
  font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--oz-ink-muted);
}
.hud-dots { display: flex; gap: 6px; }
.hud-dots i { width: 22px; height: 4px; background: var(--oz-stone); transition: background .4s; clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.hud-dots i.on { background: var(--oz-jade); }

/* ---------- divisor facetado (línea de suelo) ---------- */
.facet-divider { display: block; width: 100%; height: 90px; margin-bottom: -1px; }

/* ---------- secciones ---------- */
section.block { padding: var(--oz-space-8) 0; }
.soil { background: var(--oz-soil); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: end; margin-bottom: var(--oz-space-6); }
.sec-head > div { display: flex; flex-direction: column; gap: 18px; }

/* problema */
.pains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--oz-mist); }
.pains li { display: grid; grid-template-columns: 80px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--oz-mist); }
.pains .n { font: 500 13px var(--f-mono); color: var(--oz-jade); letter-spacing: .06em; }
.pains p { color: var(--oz-ink-soft); }
.pains .metric { font: 500 13px/1.4 var(--f-mono); letter-spacing: .04em; color: var(--oz-ink); text-align: right; }

/* oficina digital */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split > div:first-child { display: flex; flex-direction: column; gap: 22px; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.ticks .ic { width: 36px; height: 36px; border-radius: var(--oz-radius-sm); background: var(--oz-jade-tint); color: var(--oz-jade); display: grid; place-items: center; }
.ticks .ic svg { width: 18px; height: 18px; }
.ticks b { display: block; font-weight: 500; }
.ticks span { color: var(--oz-ink-soft); font-size: 16px; }

.panel {
  background: var(--oz-surface); border: 1px solid var(--oz-stone); border-radius: var(--oz-radius-lg); padding: 22px; box-shadow: var(--oz-shadow);
  position: relative;
}
.panel-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--oz-stone); }
.panel-title { font: 600 18px var(--f-display); }
.live-chip { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--oz-ink); padding: 6px 12px; border-radius: var(--oz-radius-pill); background: var(--oz-signal-tint); }
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.kpi { background: var(--oz-paper); border-radius: 16px; padding: 14px; }
.kpi .mono { color: var(--oz-ink-muted); font-size: 10.5px; }
.kpi strong { display: block; font: 600 28px/1.1 var(--f-display); letter-spacing: -0.02em; margin-top: 6px; }
.kpi small { font: 500 11px var(--f-mono); color: var(--oz-jade); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 12px 6px 0; border-bottom: 1px solid var(--oz-stone); }
.bars i { flex: 1; background: var(--oz-moss); clip-path: polygon(0 6px, 50% 0, 100% 6px, 100% 100%, 0 100%); }
.bars i.hi { background: var(--oz-jade); }
.panel-foot { display: flex; justify-content: space-between; padding-top: 14px; }
.panel-tag { position: absolute; top: -14px; right: 26px; }

/* empleados IA */
.staff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--oz-surface); border: 1px solid var(--oz-stone); border-radius: var(--oz-radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.card .row { display: flex; justify-content: space-between; align-items: center; }
.card .live { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--oz-ink); }
.card p { color: var(--oz-ink-soft); font-size: 16px; }
.card hr { border: 0; border-top: 1px solid var(--oz-stone); margin: 4px 0 0; width: 100%; }
.card .stats { display: flex; gap: 14px; font: 500 12px var(--f-mono); letter-spacing: .04em; color: var(--oz-ink); }
.card.featured { background: var(--oz-signal-tint); border-color: var(--oz-signal); box-shadow: var(--oz-shadow); }
.card.ghost { background: transparent; border: 1.5px dashed var(--oz-mist); justify-content: center; align-items: flex-start; }
.card.ghost h3 { color: var(--oz-ink-soft); }

/* casos */
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; background: var(--oz-surface); border: 1px solid var(--oz-stone); border-radius: var(--oz-radius-lg); overflow: hidden; }
.case-media { position: relative; min-height: 360px; background: var(--oz-soil); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-media .play {
  position: absolute; left: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 14px;
  background: var(--oz-surface); color: var(--oz-ink); text-decoration: none; font-weight: 500; font-size: 15px;
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
}
.case-media .play svg { width: 20px; height: 20px; color: var(--oz-signal); }
.case-body { padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.ba { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 18px; font: 500 13px var(--f-mono); letter-spacing: .03em; align-items: baseline; border-top: 1px solid var(--oz-stone); padding-top: 16px; }
.ba .h { color: var(--oz-ink-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ba .after { color: var(--oz-jade); }
.case-quote { font-size: 16px; color: var(--oz-ink-soft); border-left: 2px solid var(--oz-moss); padding-left: 14px; }

/* paquetes */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--oz-surface); border: 1px solid var(--oz-stone); border-radius: var(--oz-radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.main { border-color: var(--oz-jade); box-shadow: var(--oz-shadow); }
.plan .price { font: 600 34px/1 var(--f-display); letter-spacing: -0.02em; }
.plan .price small { font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--oz-ink-muted); display: block; margin-bottom: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; color: var(--oz-ink-soft); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li svg { width: 18px; height: 18px; color: var(--oz-jade); margin-top: 4px; }
.plan .btn { margin-top: auto; }
.plan-glyph { width: 56px; height: 56px; }
.plans-note { margin-top: 24px; font-size: 15px; color: var(--oz-ink-muted); max-width: 70ch; }

/* fundador */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--oz-radius-lg); overflow: hidden; background: var(--oz-soil); }
.portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait .note { position: absolute; left: 18px; bottom: 18px; }
.founder-body { display: flex; flex-direction: column; gap: 20px; }
.founder-body p { color: var(--oz-ink-soft); max-width: 58ch; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--oz-radius-pill); background: var(--oz-surface); border: 1px solid var(--oz-stone); font-size: 14px; }
.chip .pulse { width: 7px; height: 7px; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.faq details { border-bottom: 1px solid var(--oz-stone); }
.faq details:first-child { border-top: 1px solid var(--oz-stone); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; padding: 14px 0; font: 600 19px/1.3 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px var(--f-mono); color: var(--oz-jade); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--oz-ink-soft); max-width: 60ch; }

/* cta nocturna */
.night { position: relative; background: var(--oz-night); color: var(--oz-night-ink); overflow: hidden; }
.night canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.night .wrap { position: relative; padding-top: var(--oz-space-8); padding-bottom: var(--oz-space-7); }
.night h2 { color: var(--oz-night-ink); font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; }
.night .accent { color: #4FB59A; }
.night p { color: var(--oz-night-soft); max-width: 46ch; margin: 22px 0 32px; }
.night .btn-primary { background: #4FB59A; color: #0F1113; }
.night .btn-primary:hover { background: #6FCBB0; }
.night .mail-line { margin: 18px 0 0; font-size: 15px; }
.night .mail-line a { color: var(--oz-night-ink); text-underline-offset: 4px; }
.footer { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: var(--oz-space-7); padding-top: 24px; border-top: 1px solid rgba(242,240,235,.14); font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--oz-night-soft); }
.footer a { color: var(--oz-night-ink); text-decoration: none; }

/* entrada */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1260px) {
  .nav-links { display: none; }
  .logo-by { display: none; }
  .nav-inner .spacer { margin-left: auto; }
  .staff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .scrolly { grid-template-columns: minmax(0, 1fr); padding: 0 24px; }
  .s-hero { grid-row: auto; min-height: auto; padding: 112px 0 24px; }
  .s-visual { grid-column: 1; grid-row: auto; height: 50vh; top: 0; z-index: 3; margin: 0 -24px; background: linear-gradient(var(--oz-paper) 82%, color-mix(in srgb, var(--oz-paper) 0%, transparent)); }
  .s-step { grid-column: 1; min-height: 64vh; justify-content: flex-start; padding: 28px 0 40px; }
  .s-step:last-of-type { min-height: 64vh; }
  .s-tail { height: 30vh; }
  .hud { left: 24px; bottom: 10px; }
  .layers { grid-template-columns: 1fr 1fr 1fr; }
  section.block { padding: var(--oz-space-7) 0; }
  .sec-head, .split, .founder, .faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pains li { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 14px; }
  .pains li p, .pains li .metric { grid-column: 2; text-align: left; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .case-media { min-height: 220px; }
  .case-body { padding: 24px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .portrait { aspect-ratio: 4 / 3; }
}
@media (max-width: 620px) {
  .staff { grid-template-columns: minmax(0, 1fr); }
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid .kpi:last-child { display: none; }
  .nav-inner { padding-left: 14px; }
  .nav .btn-ink { padding: 10px 14px; font-size: 14px; }
  .facet-divider { height: 56px; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}

/* contacto: WhatsApp como vía secundaria */
.wa-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; color: var(--oz-ink-soft); font-size: 15px; text-decoration: none; margin-top: -8px; }
.wa-link svg { width: 18px; height: 18px; color: var(--oz-jade); }
.wa-link:hover { color: var(--oz-jade); text-decoration: underline; text-underline-offset: 4px; }
.btn-ghost-night { background: transparent; color: var(--oz-night-ink); border-color: rgba(242,240,235,.28); }
.btn-ghost-night:hover { background: rgba(242,240,235,.08); }
.btn-ghost-night svg { width: 18px; height: 18px; }

/* selector de idioma */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--oz-radius-pill); border: 1px solid var(--oz-stone); color: var(--oz-ink-soft); font: 500 12px/1 var(--f-mono); letter-spacing: .08em; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--oz-jade-tint); color: var(--oz-ink); }
.lang summary svg { width: 16px; height: 16px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; margin: 0; padding: 6px; list-style: none; background: var(--oz-surface); border: 1px solid var(--oz-stone); border-radius: 16px; box-shadow: var(--oz-shadow); z-index: 5; }
.lang a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--oz-ink-soft); text-decoration: none; font-size: 15px; }
.lang a:hover { background: var(--oz-jade-tint); color: var(--oz-ink); }
.lang a[aria-current] { color: var(--oz-jade); font-weight: 500; }
@media (max-width: 620px) { .lang summary { padding: 0 10px; } .lang summary span { display: none; } }

.btn-ink { white-space: nowrap; }

/* pie: enlaces legales */
.footer-legal a { color: var(--oz-night-ink); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* páginas legales */
.legal-page .nav-inner { padding-right: 8px; }
.legal-langs { display: inline-flex; gap: 6px; align-items: center; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--oz-ink-muted); }
.legal-langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--oz-ink-soft); text-decoration: none; }
.legal-langs a[aria-current] { color: var(--oz-jade); }
.legal { max-width: 820px; padding-top: 128px; padding-bottom: var(--oz-space-7); display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(36px, 4.4vw, 56px); }
.legal section { padding-top: 22px; border-top: 1px solid var(--oz-stone); }
.legal h2 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 8px; }
.legal p { color: var(--oz-ink-soft); font-size: 17px; max-width: 68ch; }
.legal p + p { margin-top: 10px; }
.legal a { color: var(--oz-jade); }
.legal-foot { max-width: 820px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 48px; border-top: 1px solid var(--oz-stone); font: 500 11px/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--oz-ink-muted); }
.legal-foot a { color: var(--oz-ink-soft); text-decoration: none; }
.legal-foot a:hover { color: var(--oz-jade); }

/* logo de texto: mariomorales.solutions */
.logo-word { white-space: nowrap; }
.logo-tld { color: var(--oz-ink-muted); font-weight: 500; }
@media (max-width: 620px) { .logo-tld { display: none; } }

/* dolores sin métrica: tres columnas */
.pains li { grid-template-columns: 80px minmax(0, 4fr) minmax(0, 7fr); }
@media (max-width: 900px) { .pains li { grid-template-columns: 44px minmax(0, 1fr); } }

/* caso: anillos trabajados */
.case-rings { margin: 0; display: grid; gap: 12px; border-top: 1px solid var(--oz-stone); padding-top: 16px; }
.case-rings div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; }
.case-rings dt { font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--oz-jade); }
.case-rings dd { margin: 0; font-size: 16px; color: var(--oz-ink-soft); }

/* enlace al portafolio */
.nav-links .nav-out { color: var(--oz-jade); }
.portfolio-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 24px; padding: 10px 20px; border-radius: var(--oz-radius-pill); border: 1px solid var(--oz-mist); background: var(--oz-surface); color: var(--oz-ink); text-decoration: none; font-size: 15px; font-weight: 500; transition: background .2s, border-color .2s; }
.portfolio-link span { color: var(--oz-jade); }
.portfolio-link:hover { background: var(--oz-jade-tint); border-color: var(--oz-jade); }
.nav-links a { white-space: nowrap; padding: 0 11px; }
@media (max-width: 1400px) { .logo-tld { display: none; } }
@media (max-width: 480px) {
  .nav-inner { gap: 6px; padding-left: 12px; }
  .logo { gap: 7px; }
  .logo svg { width: 26px; height: 26px; }
  .logo-word { font-size: 17px; }
  .nav .btn-ink { padding: 10px 12px; }
  .lang summary { padding: 0 8px; }
}
