:root {
  --bg: #0b0b0c;
  --surface: #18181a;
  --surface-2: #242427;
  --line: rgba(255, 255, 255, .1);
  --text: #f4f4f5;
  --muted: #9b9ba4;
  --accent: #ff7a1a;
  --accent-2: #ff9a3c;
  --accent-deep: #e05a00;
  --accent-ink: #160b02;
  --up: #ffa24d;
  --radius: 26px;
  --font: "Lexend", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--bg); }
body {
  background: radial-gradient(90% 40% at 85% 38%, rgba(255, 122, 26, .16), rgba(255, 122, 26, 0) 70%), var(--bg);
  color: var(--text);
  font: 400 15px/1.45 var(--font);
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
img, video { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header: 54 px, wordmark with the "O" of "Off" in orange, update date, burger */
.top {
  position: sticky; top: 0; z-index: 20;
  height: 54px; padding: 0 4px 0 16px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(11, 11, 12, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { margin-right: auto; font-size: 21px; font-weight: 700; letter-spacing: -.8px; }
.brand b { font-weight: inherit; color: var(--accent); text-shadow: 0 0 14px rgba(255, 122, 26, .6); }
.upd { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; color: var(--muted); background: var(--surface); transition: opacity .25s ease; }
.upd i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(255, 122, 26, .8); }
.menu-open .upd { opacity: 0; }

/* Burger: three lines, the short middle one orange; turns into an orange X */
.burger { position: relative; flex: none; width: 44px; height: 44px; }
.burger span {
  position: absolute; right: 11px; width: 22px; height: 2.5px; border-radius: 2px; background: var(--text);
  transition: transform .4s cubic-bezier(.7, 0, .2, 1), opacity .25s ease, background-color .3s ease;
}
.burger span:nth-child(1) { top: 14.5px; }
.burger span:nth-child(2) { top: 20.75px; width: 14px; background: var(--accent); }
.burger span:nth-child(3) { top: 27px; }
.menu-open .burger span { background: var(--accent); }
.menu-open .burger span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-open .burger span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

/* Menu open: page scrolling is switched off without moving anything — no layout change, so nothing jumps */
.menu-open, .menu-open body { overflow: hidden; }
html { scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#top5, #how { scroll-margin-top: 62px; }

/* Burger menu: full-screen sheet under the header, items rise one by one */
.menu {
  position: fixed; inset: 0; z-index: 19; outline: 0;
  padding: 54px 0 env(safe-area-inset-bottom); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: var(--bg);
  /* opens as a circle growing out of the burger and closes back into it */
  clip-path: circle(0 at calc(100% - 26px) 27px); visibility: hidden;
  transition: clip-path .55s cubic-bezier(.7, 0, .3, 1), visibility 0s linear .55s;
}
.menu-open .menu { clip-path: circle(150vmax at calc(100% - 26px) 27px); visibility: visible; transition: clip-path .8s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
/* orange glow in the corner swells in after the circle */
.menu::before {
  content: ""; position: fixed; top: -45vw; right: -45vw; width: 130vw; height: 130vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 122, 26, .26), rgba(255, 122, 26, .08) 55%, transparent);
  opacity: 0; transform: scale(.3); transition: opacity .4s ease, transform .5s ease;
}
.menu-open .menu::before { opacity: 1; transform: none; transition: opacity 1s ease .15s, transform 1.4s cubic-bezier(.16, 1, .3, 1) .1s; }
.menu-in { position: relative; display: flex; flex-direction: column; padding: 14px 20px 20px; }
.rise { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .2s ease, transform .3s ease, filter .2s ease; }
.menu-open .rise {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .6s ease calc(.22s + var(--i) * 55ms), transform .9s cubic-bezier(.16, 1, .3, 1) calc(.22s + var(--i) * 55ms), filter .6s ease calc(.22s + var(--i) * 55ms);
}
.menu-main a { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -1px; }
.menu-main em { font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: 1px; color: var(--accent); }
.menu-main a:active, .menu-apps a:active { color: var(--accent); }
.menu-label { margin: 22px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.menu-apps a { display: flex; align-items: center; gap: 12px; height: 46px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.menu-apps b { width: 18px; font-size: 20px; font-weight: 700; color: transparent; -webkit-text-stroke: 1.2px #55555c; text-align: center; }
.menu-apps li:first-child b { -webkit-text-stroke-color: var(--accent); }
.menu-apps span { margin-left: auto; display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.menu-apps svg { width: 16px; height: 16px; }
.menu .menu-cta { margin-top: 22px; }
.menu-note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }

/* Category tabs: underline on the active one, strip cut off at the edge */
.tabs { display: flex; gap: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; position: relative; height: 44px; display: flex; align-items: center; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.tabs a.is-on { color: var(--text); }
.tabs a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }

/* Title + one-line subtitle */
.intro { padding: 16px 16px 14px; }
h1 { font-size: 29px; line-height: 1.1; font-weight: 600; letter-spacing: -1.1px; text-wrap: balance; }
h1 em { font-style: normal; font-weight: 300; color: var(--accent-2); }
.sub { margin-top: 6px; font-size: 14px; line-height: 1.4; font-weight: 300; color: var(--muted); }

/* Carousel: cards 85% wide, the next one peeks out, scroll-snap */
.track {
  display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 16px 36px; margin-bottom: -36px; scroll-padding: 0 16px; /* room at the bottom so the strip does not clip the card glow */
}
.track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 85%; height: 396px; border-radius: var(--radius); overflow: hidden;
  scroll-snap-align: start; isolation: isolate; background: var(--surface);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 0 0 1px var(--line), 0 16px 30px -16px rgba(0, 0, 0, .8);
}
.slide video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 11, 12, .35) 0%, rgba(11, 11, 12, 0) 20%, rgba(11, 11, 12, 0) 50%, rgba(11, 11, 12, .8) 74%, rgba(11, 11, 12, .97) 100%);
}
.slide--top { box-shadow: 0 0 0 1.5px rgba(255, 122, 26, .6), 0 14px 32px -16px rgba(255, 122, 26, .5); }
.slide-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 14px 0 16px; }
.no { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -1.5px; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .9); }
.slide--top .no { -webkit-text-stroke: 0; color: var(--accent); text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
/* Place change this week: up in orange, down in gray, new on orange */
.mv {
  height: 32px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px;
  font-size: 15px; font-style: normal; font-weight: 600;
  background: rgba(11, 11, 12, .55); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mv svg { width: 15px; height: 15px; stroke-width: 3; }
.mv--up { color: var(--up); }
.mv--down, .mv--same { color: var(--muted); }
.mv--new { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.slide-body { padding: 0 16px 14px; }
.best {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: #fff; background: rgba(255, 122, 26, .25); box-shadow: inset 0 0 0 1px rgba(255, 122, 26, .6);
}
.slide h2 { margin: 6px 0 12px; font-size: 30px; line-height: 1.05; font-weight: 600; letter-spacing: -1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn {
  height: 50px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; white-space: nowrap; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn svg { width: 18px; height: 18px; }
.btn--main {
  height: 54px; font-size: 17px; color: var(--accent-ink); border: 0;
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 60%, var(--accent-deep));
  box-shadow: 0 10px 26px -8px rgba(255, 122, 26, .85), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--main svg { stroke-width: 2.5; }
.micro { margin-top: 7px; text-align: center; font-size: 12px; color: var(--muted); }

/* Counter "1 / 5", bars and arrows */
.ctrl { display: flex; align-items: center; gap: 12px; padding: 12px 10px 18px 18px; }
.count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.count b { font-weight: 600; color: var(--text); }
.bars { flex: 1; display: flex; gap: 5px; }
.bars i { flex: 1; height: 3px; border-radius: 3px; background: var(--surface-2); transition: background .3s; }
.bars i.on { background: var(--accent); }
.arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.arrow + .arrow { margin-left: -4px; }

/* Below the fold: "Cómo las probamos" — test results board, the criterion chips re-sort the apps */
.lab { position: relative; padding: 8px 16px 28px; }
/* Keep the decorative glow within the page; negative side insets add document overflow. */
.lab::before { content: ""; position: absolute; inset: 40px 0 auto; height: 320px; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 122, 26, .16), transparent 70%); pointer-events: none; }
.kicker { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(255, 122, 26, .9); }
.lab-h { margin: 10px 0 12px; font-size: 28px; line-height: 1.05; font-weight: 600; letter-spacing: -1.1px; }
.lab-h em { font-style: normal; font-weight: 300; color: var(--accent-2); }
.lab-card {
  padding: 12px 12px 14px; border-radius: var(--radius);
  background: linear-gradient(#141416, #141416) padding-box, linear-gradient(160deg, rgba(255, 122, 26, .65), rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .04) 70%, rgba(255, 122, 26, .35)) border-box;
  border: 1px solid transparent; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .9);
}
/* Criterion switch: four equal buttons, icon over label, the active one is filled orange */
.crit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.crit button {
  min-width: 0; height: 58px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .2s ease;
}
.crit button:active { transform: scale(.96); }
.crit svg { width: 18px; height: 18px; }
.crit .is-on { color: var(--accent-ink); font-weight: 600; border-color: transparent; background: linear-gradient(160deg, var(--accent-2), var(--accent) 60%, var(--accent-deep)); box-shadow: 0 8px 20px -8px rgba(255, 122, 26, .9); }
.crit-desc { min-height: 36px; margin: 10px 2px 4px; font-size: 13px; line-height: 1.4; font-weight: 300; color: var(--muted); }
/* Board: rank, round frame from the app's video, name + score, bar, arrow */
.board { list-style: none; padding: 0; }
.board li { position: relative; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.board li:last-child .row { border-bottom: 0; }
.pos { width: 14px; flex: none; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); }
.ava { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; padding: 2px; background: var(--surface-2); }
.ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.nm { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.nm span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.val { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: linear-gradient(90deg, rgba(255, 122, 26, .35), rgba(255, 154, 60, .75)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.lab.pre .bar i { width: 0; }
.row .go { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); transition: background-color .3s ease, color .3s ease; }
.row .go svg { width: 16px; height: 16px; stroke-width: 2.4; }
/* Leader: spinning orange ring around the frame, bright bar, orange score and arrow */
.is-top .pos, .is-top .val { color: var(--accent-2); }
.is-top .ava { background: conic-gradient(from var(--a, 0deg), var(--accent), #ffd0a1, var(--accent-deep), var(--accent)); animation: ring 3s linear infinite; box-shadow: 0 0 18px rgba(255, 122, 26, .45); }
.is-top .bar i { background: linear-gradient(90deg, var(--accent-deep), var(--accent) 60%, #ffc28a); box-shadow: 0 0 12px rgba(255, 122, 26, .7); }
.is-top .go { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ring { to { --a: 360deg; } }
.lab-cta { margin-top: 12px; }
.lab-micro { margin-top: 8px; text-align: center; font-size: 12px; color: var(--muted); }
.note { margin-top: 14px; font-size: 12px; line-height: 1.4; color: var(--muted); }

@media (max-width: 374px) {
  .upd { display: none; }
  h1 { font-size: 27px; }
  .slide { height: 380px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
