/* nahuelbello.com — main page styles */

:root {
  --bg: #0a0c10;
  --card: #12161e;
  --card-hi: #181d27;
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --text: #f3f5f9;
  --muted: #a7b0bf;
  --faint: #7d8696;
  --accent: #ff7a45;
  --accent-soft: rgba(255, 122, 69, 0.13);
  --grad: linear-gradient(100deg, #ff5f3a 0%, #ff8f45 48%, #ffc35e 100%);
  --ok: #3ee08f;
  --radius: 18px;
  --max: 1080px;
  --gutter: 16px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; }
::selection { background: rgba(255, 122, 69, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Sunset-over-the-bay glow behind the hero */
.glow {
  position: absolute; inset: 0 0 auto 0; height: 960px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(55% 60% at 90% -8%, rgba(255, 106, 58, 0.22), transparent 62%),
    radial-gradient(45% 50% at -8% 4%, rgba(56, 150, 255, 0.11), transparent 60%);
}
.nav, main, footer { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.mono {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad); color: #1b0e06; font-weight: 800; font-size: 13px; letter-spacing: 0.02em;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 10px; border-radius: 8px; transition: color 0.15s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { margin-left: 6px; }
@media (max-width: 560px) { .brand-name, .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-hi); background: rgba(255, 255, 255, 0.03); color: var(--text);
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.26); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: #1b0e06; }
.btn-primary:hover { background: var(--grad); border-color: transparent; filter: brightness(1.07); }
.btn-ghost { background: transparent; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 36px; }
@media (min-width: 720px) { .hero { padding: 88px 0 56px; } }

.greet {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 8px 14px;
  border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(255, 122, 69, 0.3);
  color: #ffd5c2; font-size: 14px; font-weight: 500; line-height: 1.4;
}
.id { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.avatar {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; color: var(--faint); font-weight: 800; font-size: 20px;
  background-color: var(--card-hi);
  background-image: var(--photo);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255, 140, 70, 0.75);
}
.avatar span { opacity: 0; }
@media (min-width: 720px) { .avatar { width: 88px; height: 88px; } }
h1 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.role { margin: 3px 0 0; color: var(--muted); font-size: 15px; line-height: 1.4; }

.display {
  margin: 0; max-width: 21ch;
  font-size: clamp(34px, 6.6vw, 66px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 22px 0 0; max-width: 62ch; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.6; }
.lead strong { color: var(--text); font-weight: 600; }

.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 560px) { .ctas .btn { flex: 1 1 auto; } }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--muted); font-size: 13.5px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(62, 224, 143, 0.5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(62, 224, 143, 0); } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 84px 0; } }
.section-tight { padding-top: 8px; }
.kicker { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
h2 { margin: 0; max-width: 24ch; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.sub { margin: 14px 0 0; max-width: 60ch; color: var(--muted); font-size: 17px; }

/* ---------- Video / audio ---------- */
.video { margin-top: 26px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video iframe, .video video { display: block; width: 100%; height: 100%; border: 0; }
.audio { margin-top: 22px; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.audio p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.audio strong { color: var(--text); }
.audio audio { width: 100%; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.stat { padding: 22px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
@media (min-width: 720px) { .stat { padding: 26px 24px; } }
.num {
  font-size: clamp(32px, 5.2vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.minis { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.minis strong { color: var(--text); font-weight: 600; }
.note { margin: 18px 0 0; max-width: 70ch; color: var(--muted); font-size: 15.5px; }
.note strong { color: var(--text); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.card { padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color 0.2s ease; }
.card:hover { border-color: var(--line-hi); }
.ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.ic svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Objections ---------- */
.ob { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 900px) { .ob { grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; } }
.ob-list { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .ob-list { flex-direction: column; } }
.ob-btn {
  padding: 11px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font: 500 15px/1.35 var(--font); text-align: left; cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.ob-btn:hover { color: var(--text); border-color: var(--line-hi); }
.ob-btn[aria-pressed="true"] { color: var(--text); background: var(--card-hi); border-color: rgba(255, 122, 69, 0.6); box-shadow: inset 3px 0 0 var(--accent); }
.ob-card { padding: 24px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
@media (min-width: 720px) { .ob-card { padding: 30px 30px; min-height: 270px; } }
.ob-row { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; margin: 0 0 18px; }
.ob-row:last-child { margin-bottom: 0; }
.ob-tag { padding-top: 5px; color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ob-text { margin: 0; }
.ob-you .ob-text { color: var(--muted); font-size: 17px; font-style: italic; }
.ob-me .ob-tag { color: var(--accent); }
.ob-me .ob-text { font-size: clamp(18px, 2.3vw, 22px); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.ob-why { padding-top: 16px; border-top: 1px solid var(--line); }
.ob-why .ob-text { color: var(--muted); font-size: 15px; }
.ph { display: inline-block; padding: 0 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: #ffd5c2; font-size: 0.86em; font-weight: 500; line-height: 1.6; }
.ob-card.swap .ob-me .ob-text, .ob-card.swap .ob-why .ob-text { animation: fadeUp 0.35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fine { margin: 16px 0 0; color: var(--faint); font-size: 14px; }

/* ---------- Timeline ---------- */
.tl { list-style: none; margin: 30px 0 22px; padding: 0; }
.tl li { position: relative; display: grid; gap: 2px 28px; padding: 0 0 30px 28px; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: -8px; width: 1px; background: var(--line-hi); }
.tl li:last-child { padding-bottom: 8px; }
.tl li:last-child::before { display: none; }
.tl li::after { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
@media (min-width: 720px) { .tl li { grid-template-columns: 140px minmax(0, 1fr); padding-left: 32px; } }
.tl-when { margin: 0; color: var(--accent); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.6; }
.tl h3 { margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -0.015em; }
.tl-org { margin: 2px 0 8px; color: var(--faint); font-size: 14.5px; }
.tl-body p:last-child { margin: 0; max-width: 64ch; color: var(--muted); font-size: 15.5px; }
.tl-body a { color: var(--text); text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.more { display: inline-block; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-hi); padding-bottom: 2px; transition: border-color 0.15s; }
.more:hover { border-color: var(--accent); }

/* ---------- Toolkit ---------- */
#toolkit { padding-top: 24px; }
.grid3 { display: grid; gap: 34px; }
@media (min-width: 900px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; } }
.langs { list-style: none; margin: 0; padding: 0; }
.langs li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.langs strong { font-weight: 600; }
.langs span { color: var(--muted); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.cta {
  padding: 36px 22px; border-radius: 24px; border: 1px solid var(--line-hi);
  background: radial-gradient(80% 120% at 100% 0%, rgba(255, 106, 58, 0.17), transparent 60%), var(--card);
}
@media (min-width: 720px) { .cta { padding: 60px 56px; } }
.cta > p:not(.kicker) { margin: 14px 0 0; max-width: 56ch; color: var(--muted); font-size: 17px; }
.cta .email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; color: var(--text); font-size: 15px; }
.email { font-weight: 600; letter-spacing: 0.01em; word-break: break-all; }
.copy {
  height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-hi); background: transparent;
  color: var(--muted); font: 600 13px/1 var(--font); cursor: pointer;
}
.copy:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.cta .tri { margin-top: 10px; color: var(--faint); font-size: 14px; }

/* ---------- Footer ---------- */
footer { padding: 8px 0 44px; color: var(--faint); font-size: 13.5px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  .ob-card.swap .ob-me .ob-text, .ob-card.swap .ob-why .ob-text { animation: none; }
}
