/* KinWatt web · kinwatt.v1.css
   Sistema de diseño: tokens claro/oscuro, tipografía, rejilla, nav, botones,
   marcos de dispositivo en CSS, precios, FAQ, footer, páginas legales y 404.
   Para cambiar algo: subir versión (kinwatt.v2.css); los assets son immutable. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --accent: #b45309;
  --accent-hover: #9a4507;
  --on-accent: #ffffff;
  --sol: #f5a623;
  --separator: rgb(0 0 0 / .12);
  --bezel: #1d1d1f;
  --bezel-ring: #d2d2d7;
  --alu-1: #e3e4e6;
  --alu-2: #a9aaad;
  --nav-bg: rgb(255 255 255 / .72);
  --nav-bg-solid: #ffffff;
  --tint: rgb(180 83 9 / .09);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #1c1c1e;
    --surface: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --accent: #fbbf24;
    --accent-hover: #fcd34d;
    --on-accent: #1c1200;
    --separator: rgb(255 255 255 / .15);
    --bezel: #1d1d1f;
    --bezel-ring: #3a3a3c;
    --alu-1: #4a4a4d;
    --alu-2: #2c2c2e;
    --nav-bg: rgb(0 0 0 / .72);
    --nav-bg-solid: #000000;
    --tint: rgb(251 191 36 / .12);
  }
}
/* Sección que fuerza el tema oscuro en cualquier modo */
.theme-dark {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #1c1c1e;
  --surface: #2c2c2e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --accent: #fbbf24;
  --accent-hover: #fcd34d;
  --on-accent: #1c1200;
  --separator: rgb(255 255 255 / .15);
  --bezel-ring: #3a3a3c;
  --alu-1: #4a4a4d;
  --alu-2: #2c2c2e;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(1.0625rem, 1rem + .3vw, 1.1875rem) / 1.47 var(--font);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; text-decoration: none; }

.ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Rejilla y secciones ---------- */
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--wide { --wrap: 1180px; }
.section { padding-block: clamp(72px, 11vw, 152px); background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }

.eyebrow { margin-bottom: .5em; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); font-weight: 600; letter-spacing: -.01em; color: var(--accent); }
.title { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem); line-height: 1.07; font-weight: 700; letter-spacing: -.03em; margin-bottom: .5em; text-wrap: balance; }
.title--sm { font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3rem); }
.lead { font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem); line-height: 1.38; letter-spacing: -.015em; color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.center .lead { margin-inline: auto; }
.fine { margin-top: 1.25em; font-size: .875rem; line-height: 1.45; color: var(--text-2); max-width: 36em; }
.center .fine { margin-inline: auto; }
.hl { color: var(--accent); }
.subpoint { margin-top: 1.5em; padding: 18px 20px; border-radius: var(--r-md); background: var(--tint); font-size: 1rem; line-height: 1.45; max-width: 34em; }
.subpoint strong { display: block; margin-bottom: 2px; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; margin-top: .75em; font-weight: 600; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); border-bottom: 1px solid var(--separator); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--nav-bg-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nav__in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 2px; }
.nav__links a, .nav__lang { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; font-size: .875rem; color: var(--text-2); }
.nav__links a:hover, .nav__lang:hover { color: var(--text); text-decoration: none; }
.nav__lang .short { display: none; }
@media (max-width: 860px) { .nav__links { display: none; } }
@media (max-width: 560px) { .nav__lang .long { display: none; } .nav__lang .short { display: inline; } .nav__lang { padding-inline: 8px; } }

/* ---------- Botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px; background-color: #b45309; background-color: var(--accent); background-image: none; color: #fff; color: var(--on-accent); font: 600 1.0625rem/1 var(--font); letter-spacing: -.01em; cursor: pointer; text-align: center; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.btn:hover { text-decoration: none; }
@media (hover: hover) { .btn:hover { background-color: var(--accent-hover); } }
.btn:active { opacity: .85; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: .9375rem; }
.btn--sm::before { content: ""; position: absolute; inset: -4px -2px; }
.btn--ghost { background-color: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (hover: hover) { .btn--ghost:hover { background-color: var(--tint); } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; }
.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--tint); color: var(--text); font-size: .9375rem; font-weight: 600; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cta-note { margin-top: 14px; font-size: .9375rem; color: var(--text-2); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(24px, 5vw, 64px); text-align: center; background: var(--bg); overflow: hidden; }
.hero__icon { width: clamp(72px, 9vw, 104px); height: auto; margin: 0 auto clamp(18px, 3vw, 28px); }
.hero .eyebrow { margin-bottom: .75em; }
.hero h1 { max-width: 12em; margin: 0 auto .35em; font-size: clamp(2.5rem, 1.2rem + 6.4vw, 5.5rem); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.hero .lead { margin: 0 auto clamp(24px, 4vw, 36px); max-width: 30em; }
.hero .badge { margin-bottom: 20px; }
.hero__devices { margin-top: clamp(44px, 7vw, 88px); }

.band { padding-block: clamp(36px, 5vw, 56px); background: var(--bg); border-block: 1px solid var(--separator); text-align: center; }
.band p { font-size: clamp(1.25rem, .9rem + 1.5vw, 2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
.band span { color: var(--text-2); font-weight: 400; }

/* ---------- Marcos de dispositivo ---------- */
.device { margin: 0; position: relative; }
.device__screen { position: relative; overflow: hidden; background: #000; }
.device__screen img { display: block; width: 100%; height: auto; }
.iphone { width: 100%; max-width: 300px; padding: 3.4%; border-radius: 15% / 7%; background: var(--bezel); box-shadow: 0 0 0 1px var(--bezel-ring); }
.iphone .device__screen { border-radius: 12% / 5.6%; }
.iphone .device__screen::before { content: ""; position: absolute; top: 2.2%; left: 50%; width: 30%; aspect-ratio: 3.4; translate: -50% 0; border-radius: 99px; background: #000; z-index: 1; }
.ipad { width: 100%; max-width: 520px; padding: 3%; border-radius: 5.5% / 4.2%; background: var(--bezel); box-shadow: 0 0 0 1px var(--bezel-ring); }
.ipad .device__screen { border-radius: 2.6% / 2%; }
.mac { width: 100%; max-width: 880px; }
.mac .device__screen { padding: 2.2% 2.2% 3.2%; background: var(--bezel); border-radius: 2.4% 2.4% 0 0 / 3.6% 3.6% 0 0; box-shadow: 0 0 0 1px var(--bezel-ring); }
.mac .device__screen img { border-radius: 4px 4px 0 0; }
.mac::after { content: ""; display: block; height: clamp(8px, 1.6vw, 16px); margin-inline: -5%; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(var(--alu-1), var(--alu-2)); }

.hero-devices { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; max-width: 1100px; margin-inline: auto; }
.hero-devices > * { grid-row: 1; }
.hero-devices .mac { grid-column: 2 / 12; max-width: none; }
.hero-devices .ipad { grid-column: 1 / 5; max-width: none; z-index: 1; translate: 0 6%; }
.hero-devices .iphone { grid-column: 10 / 13; max-width: none; z-index: 2; translate: 0 8%; }
@media (max-width: 734px) {
  .hero-devices .ipad { grid-column: 1 / 6; }
  .hero-devices .iphone { grid-column: 9 / 13; }
}

/* Composición dúo (dispositivo principal + iPhone superpuesto) */
.duo { position: relative; width: 100%; padding-bottom: 8%; }
.duo .mac { width: 92%; }
.duo .ipad { width: 88%; max-width: none; }
.duo .iphone { position: absolute; right: 0; bottom: 0; width: 27%; max-width: none; z-index: 2; }

/* Papel (página de PDF) */
.paper { width: 100%; max-width: 380px; margin-inline: auto; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--separator), 0 18px 40px -24px rgb(0 0 0 / .35); }
.paper img { width: 100%; height: auto; }

/* Escenario de widgets */
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; justify-items: center; padding: clamp(12px, 3vw, 32px); border-radius: var(--r-lg); background: var(--bg-alt); }
.stage picture { display: block; width: 100%; }
.stage img { width: 100%; height: auto; }
.stage__wide { grid-column: 1 / -1; width: 100%; }

/* ---------- Funciones ---------- */
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 7vw, 112px); align-items: center; }
.feature--rev .feature__media { order: -1; }
.feature__text { max-width: 32em; }
.feature__media { display: flex; justify-content: center; align-items: center; min-width: 0; }
.feature__media > .device, .feature__media > .duo, .feature__media > .paper, .feature__media > .stage { margin-inline: auto; }
.feature__media > .stage { width: 100%; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .feature--rev .feature__media { order: 0; }
  .feature__media .iphone { max-width: 260px; }
}

/* Tres equipos */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); margin-top: clamp(40px, 6vw, 72px); text-align: center; }
.trio__fig { display: flex; align-items: flex-end; justify-content: center; height: clamp(200px, 24vw, 280px); margin-bottom: 28px; }
.trio__fig .iphone { max-width: clamp(100px, 11vw, 124px); }
.trio__fig .ipad { max-width: clamp(160px, 18vw, 210px); }
.trio__fig .mac { max-width: clamp(230px, 26vw, 320px); }
.trio h3 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.trio p { color: var(--text-2); font-size: 1.0625rem; max-width: 16em; margin-inline: auto; }
@media (max-width: 760px) { .trio { grid-template-columns: minmax(0, 1fr); } .trio p { max-width: 24em; } }

/* Franja de detalles */
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.details li { display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 20px 24px; border-radius: var(--r-md); background: var(--surface); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.details .ico { color: var(--accent); width: 30px; height: 30px; }
@media (max-width: 900px) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .details { grid-template-columns: minmax(0, 1fr); } }

/* Muestra de PDF */
.sample { max-width: 760px; margin-inline: auto; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px); border-radius: var(--r-lg); background: var(--bg-alt); text-align: center; }
.sample .btn { margin-top: 28px; }
.sample .fine { margin-inline: auto; }

/* Privacidad */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(40px, 6vw, 64px); text-align: left; }
.points .ico { width: 40px; height: 40px; color: var(--accent); margin-bottom: 14px; }
.points h3 { font-size: 1.1875rem; font-weight: 600; margin-bottom: 4px; letter-spacing: -.015em; }
.points p { color: var(--text-2); font-size: 1.0625rem; }
@media (max-width: 760px) { .points { grid-template-columns: minmax(0, 1fr); } }

/* Precios */
.trial { display: inline-flex; margin-bottom: 36px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 780px; margin: 40px auto 0; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: clamp(28px, 4vw, 40px); border-radius: var(--r-lg); background: var(--bg-alt); border: 2px solid transparent; }
.plan--best { border-color: var(--accent); }
.plan__name { font-size: 1.3125rem; font-weight: 600; letter-spacing: -.02em; }
.plan__price { font: 700 clamp(2.75rem, 2rem + 3vw, 3.75rem) / 1.05 var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.plan__per { color: var(--text-2); font-size: 1.0625rem; }
.plan__tag { align-self: flex-start; margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .9375rem; font-weight: 600; }
.includes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; max-width: 780px; margin: 48px auto 0; text-align: left; }
.includes li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.4; }
.includes .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); stroke-width: 2.2; }
@media (max-width: 680px) { .plans, .includes { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 760px; margin: clamp(32px, 5vw, 56px) auto 0; border-top: 1px solid var(--separator); }
.faq details { border-bottom: 1px solid var(--separator); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.3125rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 18px; height: 18px; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; transition: rotate .25s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > p { padding: 0 40px 24px 0; color: var(--text-2); font-size: 1.0625rem; line-height: 1.5; }

/* Cierre */
.closing { text-align: center; }
.closing__icon { width: clamp(72px, 9vw, 96px); margin: 0 auto 24px; }
.closing .lead { margin: 0 auto 32px; }
.contact { margin-top: 36px; font-size: .9375rem; color: var(--text-2); }

/* ---------- Footer ---------- */
.foot { padding: 40px 0 56px; background: var(--bg-alt); border-top: 1px solid var(--separator); font-size: .8125rem; line-height: 1.5; color: var(--text-2); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--text); }
.foot__legal { max-width: 62em; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--separator); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Páginas legales ---------- */
.legal { padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); }
.legal .wrap { --wrap: 980px; }
.legal h1 { margin: .15em 0 .3em; font-size: clamp(2.25rem, 1.2rem + 5vw, 4.25rem); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.updated { margin-bottom: 28px; font-size: .875rem; color: var(--text-2); }
.legal .intro { max-width: 40em; font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.5; color: var(--text-2); }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.legal-item { padding: 28px; border-radius: var(--r-md); background: var(--bg-alt); }
.legal-item h2 { margin-bottom: 10px; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.015em; }
.legal-item p { font-size: 1rem; line-height: 1.6; color: var(--text-2); }
.legal .btn { margin-top: 32px; }
@media (max-width: 680px) { .legal-grid { grid-template-columns: minmax(0, 1fr); } .legal-item { padding: 22px; } }

/* ---------- 404 neutral ---------- */
.nf { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 32px 24px; text-align: center; }
.nf__code { font: 700 clamp(4rem, 3rem + 8vw, 8rem) / 1 var(--font-num); letter-spacing: -.04em; color: var(--text-2); }
.nf h1 { margin-top: 12px; font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 700; letter-spacing: -.03em; }
.nf p { margin-top: 8px; color: var(--text-2); }
.nf .btn { margin-top: 32px; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .js .reveal { opacity: 1; translate: 0 0; transition: none; }
}
