/* ============================================================
   WhichApps — web corporativa. Dark-tech con el degradado
   verde→azul del logo como acento luminoso.
   Tipos: Instrument Serif (display) + Geist (UI).
   ============================================================ */

@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-400.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* fondos noche */
  --bg: #070C14;
  --bg-soft: #0C1320;
  --bg-card: #0F1826;
  --bg-card-hi: #131F31;

  /* tinta */
  --ink: #EAF1F8;
  --muted: #8A9BB0;
  --faint: #5A6B80;
  --line: rgba(140, 170, 210, .12);
  --line-soft: rgba(140, 170, 210, .07);

  /* paleta del logo */
  --green: #34D86A;
  --green-soft: #6BE88C;
  --cyan: #00BFE8;
  --blue: #0090F0;
  --blue-deep: #0066D6;

  --grad: linear-gradient(105deg, var(--green) 0%, var(--cyan) 55%, var(--blue) 100%);
  --grad-soft: linear-gradient(105deg, rgba(52,216,106,.16), rgba(0,144,240,.16));

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-card: 18px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--green); color: #04150A; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3 { margin: 0; font-weight: 400; }
.display { font-family: var(--serif); line-height: 1.05; letter-spacing: -.01em; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 56ch; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-soft);
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--grad); }

/* glow / atmósfera de fondo */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura::before, .aura::after { content: ''; position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; }
.aura::before { width: 620px; height: 620px; top: -180px; right: -120px; background: radial-gradient(closest-side, rgba(0,144,240,.45), transparent); }
.aura::after { width: 560px; height: 560px; top: 220px; left: -200px; background: radial-gradient(closest-side, rgba(52,216,106,.30), transparent); }
/* textura grano */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .025 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .nav, .footer { position: relative; z-index: 1; }

/* reveals */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .25s var(--ease), backdrop-filter .25s; }
.nav.scrolled { background: rgba(7,12,20,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 700; }
.brand .grad-text { font-weight: 700; }
.nav-links { display: flex; gap: 30px; font-size: .92rem; font-weight: 500; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--r-pill); cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; padding: 12px 22px;
  transition: transform .15s var(--ease), box-shadow .2s, opacity .15s, background .2s;
}
.btn-grad { background: var(--grad); color: #04150A; box-shadow: 0 8px 28px -10px rgba(0,144,240,.6); }
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(0,144,240,.75); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(140,170,210,.32); background: rgba(255,255,255,.07); }
.nav .btn { padding: 9px 18px; font-size: .88rem; }

@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 168px 0 96px; }
.hero-inner { max-width: 880px; }
.hero > .container > .hero-inner > .eyebrow { margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); }
.hero .lead { margin-top: 26px; font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 60ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* tira de números */
.stats { display: flex; gap: 52px; margin-top: 64px; flex-wrap: wrap; }
.stat .v { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.stat .k { font-size: .86rem; color: var(--muted); margin-top: 6px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-top: 14px; }
.section-head .lead { margin-top: 16px; }

/* ---------- Qué hacemos (bento) ---------- */
.do-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.do-card {
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  padding: 30px; transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.do-card:hover { transform: translateY(-4px); border-color: var(--line); background: var(--bg-card-hi); }
.do-card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); margin-bottom: 18px; }
.do-card .ic svg { width: 23px; height: 23px; color: var(--green-soft); }
.do-card h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; }
.do-card p { margin: 9px 0 0; font-size: .94rem; color: var(--muted); }
@media (max-width: 880px) { .do-grid { grid-template-columns: 1fr; } }

/* ---------- Producto estrella: My Healthy Car ---------- */
.product { position: relative; }
.product-card {
  position: relative; overflow: hidden; border-radius: 28px;
  border: 1px solid var(--line); background:
    radial-gradient(700px 380px at 82% 20%, rgba(0,144,240,.16), transparent 60%),
    radial-gradient(560px 360px at 12% 90%, rgba(52,216,106,.13), transparent 60%),
    var(--bg-soft);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 60px);
}
.product-card .tag { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-soft); }
.product-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 14px 0 0; letter-spacing: -.01em; }
.product-card .desc { margin: 16px 0 0; color: var(--muted); max-width: 46ch; }
.product-feats { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 11px; }
.product-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; }
.product-feats svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green); }
.product-ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.product-shot { display: flex; justify-content: center; }
.product-shot img { width: min(300px, 76vw); border-radius: 30px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.7); transform: rotate(3deg); border: 1px solid var(--line); }
@media (max-width: 900px) { .product-card { grid-template-columns: 1fr; } .product-shot { order: -1; } }

/* ---------- Servicios / Dealer ---------- */
.svc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.svc-main {
  border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-card-hi), var(--bg-card));
  padding: clamp(30px, 4vw, 48px); position: relative; overflow: hidden;
}
.svc-main::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 280px at 88% 12%, rgba(0,191,232,.14), transparent 60%); pointer-events: none; }
.svc-main h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.01em; }
.svc-main p { color: var(--muted); margin: 14px 0 0; max-width: 48ch; }
.svc-side { display: grid; gap: 18px; }
.svc-side .mini { border-radius: 20px; border: 1px solid var(--line-soft); background: var(--bg-card); padding: 26px; }
.svc-side .mini h4 { margin: 0; font-size: 1.05rem; font-weight: 650; }
.svc-side .mini p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 880px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Próximamente ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.soon-card { border: 1px dashed var(--line); border-radius: var(--r-card); background: rgba(255,255,255,.015); padding: 28px; }
.soon-card .pill { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.soon-card h3 { margin: 14px 0 0; font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.soon-card p { margin: 8px 0 0; font-size: .9rem; color: var(--faint); }
@media (max-width: 880px) { .soon-grid { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { padding-top: 24px; border-top: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-style: italic; font-size: 2.2rem; }
.step h4 { margin: 10px 0 0; font-size: 1.05rem; font-weight: 650; }
.step p { margin: 7px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { text-align: center; }
.contact-card {
  border-radius: 28px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(600px 300px at 50% -10%, rgba(0,144,240,.18), transparent 60%), var(--bg-soft);
  padding: clamp(48px, 7vw, 80px) 24px;
}
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.contact .lead { margin: 16px auto 0; }
.contact-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.mail-link { font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.mail-link a { color: var(--green-soft); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.mail-link a:hover { border-color: var(--green-soft); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 52px 0 60px; font-size: .9rem; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { font-size: 1rem; margin-bottom: 10px; }
.footer .tagline { color: var(--faint); max-width: 30ch; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; color: var(--muted); transition: color .15s; }
.footer a:hover { color: var(--ink); }
.footer .legal { margin-top: 30px; font-size: .8rem; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .do-card, .btn { transition: none; }
}
