/* Nicolás Canavezzio — web personal. Estilo oscuro y moderno con los colores de Austral Products. Primero para el celular. */
:root {
  --bg: #0B1226;          /* azul marino muy oscuro (Austral) */
  --bg-2: #101A33;
  --card: #121C36;
  --card-2: #172345;
  --navy: #20315B;        /* azul de marca */
  --orange: #BD4418;      /* naranja de marca */
  --orange-700: #9E3712;
  --orange-300: #E8835C;  /* naranja para texto sobre fondo oscuro */
  --steel: #B2B2B2;
  --line: rgba(255, 255, 255, .09);
  --text: #F3F2EE;
  --muted: #9AA3B8;

  --f-sans: "Inter Tight", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --col: 560px;
  --pad: 20px;
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::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.55 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(90vw 70vh at 100% 0%, rgba(32,49,91,.75), transparent 60%), radial-gradient(70vw 50vh at 0% 75%, rgba(189,68,24,.07), transparent 60%);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: .98; }
h2 { font-size: clamp(2.2rem, 9.5vw, 3rem); margin-bottom: 28px; text-wrap: balance; }
h2 em, .tagline em, .cap em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--orange-300); }
h3 { font-size: 1.45rem; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--orange-300); outline-offset: 3px; border-radius: 6px; }

main { max-width: var(--col); margin: 0 auto; }
section { padding: 80px var(--pad) 8px; position: relative; }
.kicker { color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--orange); }

/* ---------- Encabezado ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; max-width: var(--col); margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--pad) 14px; display: flex; justify-content: space-between; align-items: center; transition: background .3s, backdrop-filter .3s; }
.top.solid { background: rgba(11,18,38,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--orange); }
.who span { display: flex; flex-direction: column; line-height: 1.15; }
.who b { font-size: .92rem; font-weight: 600; }
.who small { font-size: .72rem; color: var(--muted); }
.top-cta { padding: 9px 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); font-size: .85rem; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.top-cta:hover { background: var(--orange); border-color: var(--orange); }

/* ---------- Portada ---------- */
.hero { padding-top: 104px; padding-bottom: 40px; overflow: hidden; }
.glow { position: absolute; left: 50%; top: 60px; width: 420px; height: 420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(189,68,24,.28), rgba(32,49,91,.35) 45%, transparent 70%); filter: blur(30px); z-index: -1; }
.portrait { position: relative; margin: 0 0 30px; width: min(76%, 300px); }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); }
.portrait figcaption { position: absolute; left: 14px; right: auto; bottom: -16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: rgba(18,28,54,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(189,68,24,.25); }
.hero .kicker { margin-top: 8px; }
.hero h1 { font-size: clamp(3.4rem, 16vw, 5rem); letter-spacing: -.05em; line-height: .88; margin-bottom: 16px; }
.tagline { font-size: 1.3rem; line-height: 1.3; max-width: 24ch; color: rgba(243,242,238,.9); }
.cta { display: grid; gap: 10px; margin-top: 26px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 99px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 34px -12px rgba(189,68,24,.7); }
.btn-primary:hover { background: var(--orange-700); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); }

/* ---------- Números ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat b { display: block; font-size: 2.5rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.stat > span { display: block; margin-top: 6px; color: var(--muted); font-size: .85rem; }

/* ---------- Historia ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 5px; top: 8px; width: 2px; height: calc(var(--p, 0) * (100% - 16px)); background: var(--orange); box-shadow: 0 0 10px rgba(189,68,24,.6); }
.cap { position: relative; padding: 20px 20px 6px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.cap::before { content: ""; position: absolute; left: -27px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(255,255,255,.3); transition: .4s; }
.cap.lit::before { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 12px rgba(189,68,24,.8); }
.cap .meta { color: var(--orange-300); margin-bottom: 8px; }
.cap h3 { margin-bottom: 8px; }
.cap p:not(.meta) { color: rgba(243,242,238,.78); }
.cap.now { background: linear-gradient(140deg, var(--navy), var(--card)); border-color: rgba(232,131,92,.35); }

/* ---------- Método ---------- */
.gas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gas-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 14px; }
.gas-item span { display: block; font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--orange-300); margin-bottom: 10px; }
.gas-item p { margin: 0; font-size: .88rem; line-height: 1.3; color: rgba(243,242,238,.85); font-weight: 500; }
.quote { margin: 28px 0 0; padding: 24px; border-radius: var(--r); background: var(--card-2); border: 1px solid var(--line); font: italic 1.75rem/1.15 var(--f-serif); position: relative; }
.quote::before { content: "“"; display: block; font-size: 3.4rem; line-height: .6; color: var(--orange); margin-bottom: 8px; }

/* ---------- Contacto ---------- */
.contact { padding-bottom: 40px; }
.links { display: grid; gap: 10px; }
.links a { display: flex; align-items: center; gap: 12px; padding: 19px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: border-color .2s, transform .2s var(--ease); }
.links a::after { content: "↗"; color: var(--muted); }
.links a small { margin-left: auto; color: var(--muted); font: 400 .74rem var(--f-mono); }
.links a:hover { border-color: rgba(232,131,92,.5); }
.links a:active { transform: scale(.98); }
.links a.wa { background: var(--orange); border-color: var(--orange); color: #fff; }
.links a.wa small, .links a.wa::after { color: rgba(255,255,255,.8); }
.foot { text-align: center; color: var(--muted); margin: 48px 0 0; }

/* ---------- Entrada al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Pantallas grandes: la columna centrada ---------- */
@media (min-width: 760px) {
  main { border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: rgba(11,18,38,.55); }
  section { padding-left: 32px; padding-right: 32px; }
  .top { padding-left: 32px; padding-right: 32px; }
  .cta { grid-template-columns: 1fr 1fr; }
}
