/* Chiprout · estudio de software — monocromo oscuro, elegante. */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --ink: #f5f4f1;
  --mut: #a0a0a8;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --max: 1060px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--bg); }

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

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 30px; display: block; opacity: 0.95; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--mut);
  transition: color 0.2s ease;
}
.top nav a:hover { color: var(--ink); }
.top nav .nav-cta {
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 18px;
  transition: background 0.2s ease, color 0.2s ease;
}
.top nav .nav-cta:hover { background: var(--ink); color: var(--bg); }

/* ---------- Tipografía base ---------- */
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 22px;
}

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.12;
}
h1 em, h2 em { font-style: italic; font-weight: 350; }

.sub, .lead {
  font-size: 18px;
  color: var(--mut);
  max-width: 560px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 28px 130px;
}
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); max-width: 820px; margin-bottom: 28px; }
.hero .sub { margin-bottom: 44px; }

.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  padding: 13px 30px;
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); opacity: 1; }

.quiet {
  font-size: 14.5px;
  color: var(--mut);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.quiet:hover { color: var(--ink); }

/* ---------- Bloques ---------- */
.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 28px 30px;
  border-top: 1px solid var(--line);
}
.block h2 { font-size: clamp(32px, 4.2vw, 46px); margin-bottom: 18px; }
.block .lead { margin-bottom: 56px; }

/* ---------- Producto: Cabina ---------- */
.product {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  padding: 52px;
  overflow: hidden;
}
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.product-icon { width: 44px; height: 44px; border-radius: 10px; }
.product-head h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
}
.product-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mut);
}
.product-desc { font-size: 16.5px; color: var(--mut); margin-bottom: 14px; }
.product-claim {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 19px;
  margin-bottom: 30px;
}
.product-art {
  position: relative;
  max-height: 430px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 110px -30px rgba(94, 160, 255, 0.35);
}
.product-art img { width: 100%; display: block; }
/* Desvanecido inferior: la captura es alta y solo mostramos la parte clave. */
.product-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 130px;
  background: linear-gradient(180deg, transparent, var(--bg-2));
  pointer-events: none;
}

.product-next {
  margin-top: 22px;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  padding: 30px 52px;
  color: var(--mut);
  font-size: 15px;
}

/* ---------- Grid de 3 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.cell {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  padding: 30px 28px;
}
.cell h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; letter-spacing: 0.2px; }
.cell p { font-size: 15px; color: var(--mut); }

#empresas .cta-row { margin-top: 48px; }

/* ---------- Pasos ---------- */
.steps .num {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--mut);
  margin-bottom: 18px;
}

/* ---------- Fundador ---------- */
.founder {
  margin-top: 70px;
  display: flex;
  align-items: center;
  gap: 36px;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}
.founder-mark { width: 76px; height: 76px; filter: invert(1); opacity: 0.9; flex: none; }
.founder p { font-size: 17.5px; color: var(--mut); max-width: 640px; }
.founder strong { color: var(--ink); font-weight: 600; }

/* ---------- Contacto ---------- */
.contact { padding-bottom: 130px; text-align: center; }
.contact .eyebrow { margin-bottom: 26px; }
.contact h2 { margin-bottom: 34px; }
.mail {
  display: inline-block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 400;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  transition: border-color 0.2s ease;
}
.mail:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 28px 56px;
  text-align: center;
}
footer img { height: 30px; opacity: 0.85; margin-bottom: 22px; }
footer p { font-size: 13px; color: var(--mut); }
footer a { border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .top nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 70px; min-height: 0; }
  .block { padding-top: 80px; }
  .product { grid-template-columns: 1fr; padding: 32px 26px; gap: 36px; }
  .product-next { padding: 26px; }
  .grid-3 { grid-template-columns: 1fr; }
  .founder { flex-direction: column; align-items: flex-start; gap: 24px; }
}
