/* Concepto: producto de Apple. Negro puro y gris humo alternados, tipografía enorme,
   esquinas amplias. Color solo con intención: azul = acción, verde = resultado, naranja = lo manual. */
:root {
  --black: #000000;
  --ink: #1d1d1f;
  --white: #ffffff;
  --smoke: #f5f5f7;
  --card-d: #1c1c1e;
  --card-d2: #2c2c2e;
  --muted-d: #a1a1a6;
  --muted-l: #6e6e73;
  --line-d: rgba(255, 255, 255, 0.12);
  --line-l: #d2d2d7;

  --blue: #0a84ff;
  --blue-btn: #0071e3;
  --blue-btn-h: #0077ed;
  --link: #2997ff;
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --grad: linear-gradient(90deg, #0a84ff 0%, #3ec6e0 52%, #30d158 100%);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--ink);
  font-family: var(--font); font-size: 1.1875rem; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: #000;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.in { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(0px, 2.5vw, 24px); }
.in--narrow { max-width: 980px; }
.dark { background: var(--black); color: #f5f5f7; }
.light { background: var(--smoke); color: var(--ink); }
.band { padding-block: clamp(5rem, 11vw, 10rem); }
section[id] { scroll-margin-top: 56px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: var(--blue); -webkit-text-fill-color: transparent; }
.eyebrow { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -0.01em; color: var(--muted-d); }
.light .eyebrow { color: var(--muted-l); }

.h2 { font-size: clamp(2.9rem, 7.4vw, 6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
.sub { margin-top: 1.4rem; font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--muted-d); text-wrap: balance; }
.light .sub { color: var(--muted-l); }
.center { text-align: center; }
.center .sub { margin-inline: auto; max-width: 30ch; }

/* Botones tipo píldora */
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.6rem; border: 0; border-radius: 999px;
  font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.1; cursor: pointer; white-space: nowrap;
  background: var(--blue-btn); color: #fff; transition: background-color .25s var(--ease), transform .25s var(--ease), opacity .25s;
}
.pill-btn:hover { background: var(--blue-btn-h); }
.pill-btn:active { transform: scale(.97); }
.pill-btn:disabled { opacity: .5; cursor: default; }
.pill-btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1.2rem; }
.pill-btn--sm { min-height: 36px; padding: .45rem 1.05rem; font-size: .95rem; }
.pill-btn--gray { background: rgba(255, 255, 255, .14); color: #f5f5f7; }
.pill-btn--gray:hover { background: rgba(255, 255, 255, .22); }
.pill-btn--green { background: var(--green); color: #00210a; }
.pill-btn--green:hover { background: #4ade6f; }
.pill-btn--light { background: #fff; color: var(--ink); }
.pill-btn--light:hover { background: #ececf0; }
.pill-btn--outline { background: transparent; color: var(--blue-btn); box-shadow: inset 0 0 0 1.5px var(--blue-btn); }
.pill-btn--outline:hover { background: var(--blue-btn); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--link); font-size: 1.2rem; letter-spacing: -0.01em; }
.text-link::after { content: "›"; font-size: 1.5em; line-height: 1; transition: transform .25s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }
.text-link:hover { text-decoration: underline; }

/* Barra superior de vidrio */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: 56px;
  background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav .in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }
.nav img { height: 24px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.8vw, 2.6rem); }
.nav__links a:not(.pill-btn) { font-size: .95rem; color: rgba(245, 245, 247, .8); transition: color .2s; }
.nav__links a:not(.pill-btn):hover { color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 8rem) clamp(4rem, 8vw, 7rem); }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: min(1100px, 130vw); height: 620px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(10, 132, 255, .30), rgba(48, 209, 88, .12) 55%, transparent 75%);
  filter: blur(30px); pointer-events: none;
}
.hero .in { position: relative; }
.hero__head { display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 9.5rem); font-weight: 800; letter-spacing: -0.055em; line-height: .96; text-wrap: balance; max-width: 12ch; }
.hero .sub { max-width: 26ch; }
.hero__cta { margin-top: .6rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; }

/* Ventana de demostración */
.demo { position: relative; margin-top: clamp(3rem, 6vw, 5.5rem); }
.win {
  background: var(--card-d); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(10, 132, 255, .45), 0 30px 80px -30px #000;
}
.win__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.2rem; padding: .9rem 1.2rem; background: var(--card-d2); }
.dots { display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.win__title { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem .9rem; font-size: .95rem; font-weight: 500; color: #f5f5f7; min-width: 0; }
.status {
  display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(255, 159, 10, .16); color: #ffb340;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.is-run { background: rgba(10, 132, 255, .18); color: #64b5ff; }
.status.is-run::before { animation: pulse 1s ease-in-out infinite; }
.status.is-ok { background: rgba(48, 209, 88, .16); color: #4ae076; }
@keyframes pulse { 50% { opacity: .25; } }
.win__progress { height: 3px; background: rgba(255, 255, 255, .06); }
.win__progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .35s var(--ease); }
.grid { overflow-x: auto; }
.grid table { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 1.05rem; color: #f5f5f7; }
.grid th { padding: 1rem 1.3rem .7rem; text-align: left; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); }
.grid td { padding: .95rem 1.3rem; border-top: 1px solid rgba(255, 255, 255, .07); white-space: pre; transition: background-color .5s var(--ease), color .5s var(--ease); }
.grid td.bad { color: #ffb340; background: rgba(255, 159, 10, .09); }
.grid td.amt, .grid th.amt { text-align: right; }
.grid td.fixed { animation: ok 1.8s var(--ease) both; }
@keyframes ok { 0% { background: rgba(48, 209, 88, .35); } 100% { background: transparent; } }
.grid tr.dup td { background: rgba(255, 69, 58, .14); color: #ff8a82; text-decoration: line-through; }
.grid tr.gone { opacity: 0; transition: opacity .45s var(--ease); }
.grid tr.total td { font-weight: 700; font-size: 1.15rem; border-top: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); }
.pill { display: inline-block; padding: .18rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.pill--ok { background: rgba(48, 209, 88, .16); color: #4ae076; }
.pill--wait { background: rgba(255, 159, 10, .16); color: #ffb340; }
.win__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; padding: 1rem 1.3rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.log { display: flex; align-items: center; gap: .6rem; font-size: .98rem; color: var(--muted-d); min-width: 0; }
.log.is-ok { color: #4ae076; }
.demo__note { margin-top: 1.1rem; text-align: center; font-size: .95rem; color: var(--muted-d); }

/* Frase que se enciende al desplazar */
.statement { font-size: clamp(2rem, 5.2vw, 4.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; text-wrap: balance; }
.statement .w { opacity: .38; transition: opacity .15s linear; }

/* Servicios */
.plans { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.plan { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(1.8rem, 3.6vw, 3.2rem); border-radius: 28px; background: var(--card-d); color: #f5f5f7; isolation: isolate; }
.plan::before { content: ""; position: absolute; z-index: -1; top: -30%; right: -20%; width: 70%; height: 70%; border-radius: 50%; background: var(--accent); opacity: .22; filter: blur(70px); }
.plan--blue { --accent: var(--blue); --accent-soft: #64b5ff; }
.plan--green { --accent: var(--green); --accent-soft: #4ae076; }
.plan__kind { display: inline-flex; align-self: flex-start; align-items: center; gap: .5rem; padding: .3rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--accent-soft); background: rgba(255, 255, 255, .07); }
.plan__kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plan__name { margin-top: 1.4rem; font-size: clamp(2.6rem, 4.6vw, 3.9rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.plan__desc { margin-top: 1rem; color: var(--muted-d); font-size: 1.2rem; line-height: 1.4; max-width: 30ch; }
.plan__price { margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid var(--line-d); }
.price { font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.055em; line-height: 1; }
.price small { display: block; margin-top: .6rem; font-size: 1.05rem; font-weight: 500; letter-spacing: 0; color: var(--muted-d); }
.price__note { margin-top: .7rem; font-size: 1.02rem; color: var(--muted-d); line-height: 1.45; }
.plan__list { margin-top: 1.8rem; display: grid; gap: .8rem; }
.plan__list li { position: relative; padding-left: 2rem; font-size: 1.1rem; line-height: 1.4; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--accent); opacity: .95; }
.plan__list li::after { content: ""; position: absolute; left: .4rem; top: .42em; width: .38rem; height: .68rem; border-right: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(40deg); }
.plan .pill-btn { margin-top: 2.2rem; align-self: flex-start; }

/* Método */
.steps { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.step { padding: 1.8rem 1.6rem 2rem; border-radius: 24px; background: #fff; display: grid; gap: .9rem; align-content: start; }
.step__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; font-weight: 700; color: #fff; background: var(--c); }
.step h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.step p { font-size: 1.05rem; color: var(--muted-l); line-height: 1.45; }

/* Postura */
.posture h2 { font-size: clamp(2.9rem, 8.4vw, 7.4rem); font-weight: 800; letter-spacing: -0.055em; line-height: .98; text-wrap: balance; }
.pillars { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); text-align: left; }
.pillar { display: grid; gap: .6rem; align-content: start; padding-top: 1.4rem; border-top: 1px solid var(--line-d); }
.pillar h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--c); }
.pillar p { font-size: 1.15rem; color: var(--muted-d); line-height: 1.4; }

/* Contacto */
.card { margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.4rem, 3.6vw, 3rem); border-radius: 28px; background: #fff; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.2rem; text-align: left; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .95rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 1.1rem; color: var(--ink); background: var(--smoke);
  border: 2px solid transparent; border-radius: 14px; padding: .9rem 1rem; transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; }
.form__status { flex: 1 1 18rem; font-size: .98rem; color: var(--muted-l); line-height: 1.45; }
.mail { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.2rem; color: var(--muted-l); font-size: 1.1rem; }
.mail strong { color: var(--ink); font-weight: 600; user-select: all; overflow-wrap: anywhere; }

.foot { padding-block: 2rem 2.6rem; border-top: 1px solid var(--line-l); }
.foot .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; font-size: .9rem; color: var(--muted-l); }
.foot img { height: 22px; width: auto; }

/* Aparición suave */
.rv { opacity: .55; transform: translateY(26px) scale(.985); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .statement .w { opacity: 1; }
  .grid td.fixed { animation: none; }
  .status.is-run::before { animation: none; }
}

@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .nav__links a:not(.pill-btn) { display: none; }
  .nav img { height: 22px; }
  .win__bar { grid-template-columns: 1fr; justify-items: start; }
  .win__title { justify-content: flex-start; }
  .win__foot .pill-btn { width: 100%; }
  .form { grid-template-columns: 1fr; }
  .hero__cta .pill-btn { width: 100%; }
}
