/* bajalo — landing. Amarillo comprometido + tinta cálida; una sola familia (Bricolage Grotesque). */
:root {
  --sun: oklch(0.86 0.165 86);
  --sun-deep: oklch(0.76 0.15 78);
  --on-sun: oklch(0.2 0.02 80);
  --ink: oklch(0.2 0.015 80);
  --ink-2: oklch(0.42 0.02 80);
  --bg: oklch(0.985 0.004 90);
  --surface: oklch(1 0 0);
  --line: oklch(0.9 0.012 88);
  --calm-bg: oklch(0.2 0.015 80);
  --calm-ink: oklch(0.96 0.01 90);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: oklch(0.95 0.01 90);
    --ink-2: oklch(0.76 0.015 88);
    --bg: oklch(0.17 0.01 80);
    --surface: oklch(0.22 0.012 80);
    --line: oklch(0.32 0.012 80);
    --calm-bg: oklch(0.13 0.01 80);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-variation-settings: "opsz" 14;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 28px; }
h1, h2, h3 {
  font-variation-settings: "opsz" 96, "wdth" 92;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(34px, 4.6vw, 56px); }
p { text-wrap: pretty; }

/* Header */
.top { position: absolute; inset: 0 0 auto; z-index: 2; }
.top-in { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; font-size: 21px; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.brand .logo { border-radius: 8px; box-shadow: 0 0 0 1.5px var(--on-sun); }
nav { display: flex; gap: 22px; align-items: center; font-size: 16px; font-weight: 550; color: var(--on-sun); }
nav a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { nav a:hover { text-decoration: underline; } }
.lang { border: 1.5px solid var(--on-sun); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.top .brand { color: var(--on-sun); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--on-sun); color: var(--sun);
  padding: 14px 22px 14px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 18px;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn .logo { border-radius: 6px; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.btn-ink { background: var(--ink); color: var(--bg); padding: 14px 24px; }

/* Hero */
.hero { background: var(--sun); color: var(--on-sun); padding-top: 128px; padding-bottom: 96px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7vw, 88px); }
.lead { font-size: 21px; line-height: 1.45; margin: 22px 0 34px; max-width: 30ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.note { font-size: 15px; font-weight: 550; opacity: 0.8; }

/* Hero scene: ventana del navegador + popup + archivo */
.scene { position: relative; margin: 0; padding: 0 0 56px; }
.browser { background: var(--surface); border: 2px solid var(--on-sun); border-radius: var(--radius); overflow: hidden; transform-origin: 50% 100%; }
.chrome { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 2px solid var(--on-sun); background: oklch(0.96 0.03 88); color: oklch(0.2 0.02 80); font-size: 14px; font-weight: 600; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }
.tab { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext { display: grid; place-items: center; padding: 3px; border-radius: 8px; background: oklch(0.2 0.02 80 / 0.08); }
.ext .logo { border-radius: 6px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #222; }
.player img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.bar { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgb(0 0 0 / 0.55)); }
.track { flex: 1; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.35); overflow: hidden; }
.track b { display: block; width: 46%; height: 100%; background: var(--sun); }

.pop {
  position: absolute; top: 52px; right: -14px; width: min(300px, 62%);
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--on-sun); border-radius: 12px; padding: 14px;
  transform-origin: calc(100% - 30px) 0;
}
.pop-title { margin: 0 0 10px; font-weight: 700; font-size: 15px; }
.pop-row span:first-child { white-space: nowrap; }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; }
.pop-btn { background: var(--sun); color: var(--on-sun); font-weight: 700; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }

.chip {
  position: absolute; left: 24px; bottom: 0; width: min(330px, 78%);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center;
  background: var(--on-sun); color: var(--calm-ink); border-radius: 14px; padding: 12px 16px 14px 12px;
}
.chip-icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 9px; background: var(--sun); position: relative; }
.chip-icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; background: var(--on-sun); clip-path: polygon(0 10%, 100% 10%, 50% 75%); }
.chip-text { display: flex; flex-direction: column; line-height: 1.2; }
.chip-text strong { font-size: 15px; }
.chip-text small { font-size: 13px; opacity: 0.75; }
.chip-progress { grid-column: 2; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.18); overflow: hidden; }
.chip-progress b { display: block; height: 100%; width: 100%; background: var(--sun); transform-origin: 0 50%; }

/* Coreografía de carga: una sola vez, cuenta la historia en 2 segundos. El estado final es el visible por defecto. */
@media (prefers-reduced-motion: no-preference) {
  .browser { animation: rise 700ms var(--ease-out) both; }
  .pop { animation: pop 420ms var(--ease-out) 650ms both; }
  .chip { animation: rise 520ms var(--ease-out) 1150ms both; }
  .chip-progress b { animation: fill 1100ms linear 1450ms both; }
  .chip-text small { animation: appear 240ms ease 2550ms both; }
  .hero-copy > * { animation: rise 600ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(-6px); } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes appear { from { opacity: 0; } }

/* Pasos */
.steps-sec { padding-block: 104px 88px; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--line); }
.steps li { position: relative; }
.num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: var(--on-sun); font-size: 26px; font-weight: 800; margin-bottom: 22px; box-shadow: 0 0 0 8px var(--bg); }
.steps h3 { font-size: 28px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); max-width: 30ch; }

/* Dónde anda */
.where { padding-block: 24px 104px; }
.sites { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sites li { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.015em; padding: 10px 22px; border: 2px solid var(--ink); border-radius: 999px; }
.sites li:first-child, .sites li:nth-child(2) { background: var(--sun); color: var(--on-sun); border-color: var(--sun); }
.not { margin: 24px 0 0; color: var(--ink-2); }

/* Tranqui */
.calm { background: var(--calm-bg); color: var(--calm-ink); padding-block: 96px; }
.calm-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.calm h2 { color: var(--sun); }
.calm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 22px; font-weight: 550; }
.calm li { padding-bottom: 14px; border-bottom: 1px solid rgb(255 255 255 / 0.14); }

/* FAQ */
.faq { padding-block: 104px; }
.faq-in { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; }
.qa details { border-bottom: 1.5px solid var(--line); interpolate-size: allow-keywords; }
.qa details:first-child { border-top: 1.5px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 0; font-size: 20px; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
.plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); position: relative; transition: transform 200ms var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; background: var(--on-sun); border-radius: 1px; }
.plus::after { transform: rotate(90deg); }
details[open] .plus { transform: rotate(45deg); }
details p { margin: 0 0 22px; color: var(--ink-2); max-width: 60ch; }
details::details-content { height: 0; overflow: clip; transition: height 240ms var(--ease-out), content-visibility 240ms allow-discrete; }
details[open]::details-content { height: auto; }
.use { font-size: 15px; color: var(--ink-2); margin-top: 22px; }

/* Cierre */
.end { background: var(--sun); color: var(--on-sun); padding-block: 96px; }
.end-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.end h2 { max-width: 16ch; }

/* Instalación manual */
.manual { padding-block: 72px; border-bottom: 1.5px solid var(--line); }
.manual h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 20px; }
.manual ol { margin: 0 0 28px; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }

/* Footer */
.foot { padding-block: 36px 48px; font-size: 15px; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot .brand { color: var(--ink); font-size: 18px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Legales */
.prose { max-width: 720px; padding-top: 128px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(40px, 5vw, 56px); margin-bottom: 12px; }
.updated { color: var(--ink-2); margin-top: 0; }
body:has(.prose) .top { position: static; background: var(--sun); }
body:has(.prose) .prose { padding-top: 56px; }

@media (max-width: 900px) {
  .hero { padding-top: 104px; padding-bottom: 72px; }
  .hero-in, .calm-in, .faq-in { grid-template-columns: 1fr; gap: 40px; }
  .pop { right: 8px; top: 48px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .steps li { padding-left: 80px; }
  .num { position: absolute; left: 0; top: 0; margin: 0; }
  nav a:not(.lang) { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 16px; }
  .lead { font-size: 19px; }
  .chip { left: 10px; }
  .pop { width: auto; right: 6px; top: 44px; padding: 10px; }
  .pop-title { font-size: 13px; margin-bottom: 6px; }
  .pop-row { font-size: 12px; padding: 6px 6px 6px 10px; }
  .pop-btn { padding: 4px 10px; }
  summary { font-size: 18px; }
}

/* Página de desinstalación */
.bye-form { display: grid; gap: 16px; margin: 28px 0 32px; }
.bye-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bye-form legend { font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.reason { cursor: pointer; }
.reason input { position: absolute; opacity: 0; pointer-events: none; }
.reason span { display: inline-block; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.reason input:checked + span { background: var(--sun); color: var(--on-sun); border-color: var(--sun); }
.reason input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.reason:active span { transform: scale(0.97); }
.bye-form textarea { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); resize: vertical; }
.bye-form .btn { justify-self: start; border: 0; cursor: pointer; }
.bye-thanks { font-size: 22px; font-weight: 700; }
.bye-status { color: var(--ink-2); min-height: 1em; margin: 0; }
