/* aumentado.es · portada de las apps de Aumentado. Estética del Laboratorio, la misma que editor.aumentado.es. */
@font-face { font-family: "Geist"; src: url("../fuentes/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../fuentes/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --ink-rgb: 17 17 17;
  --ink: #111;
  --ink-2: rgba(17, 17, 17, .6);
  --ink-3: rgba(17, 17, 17, .42);
  --glass: rgba(255, 255, 255, .34);
  --glass-borde: rgba(255, 255, 255, .5);
  --glass-2: rgba(0, 0, 0, .07);
  --line: rgba(17, 17, 17, .12);
  --azul: #0052FF;
  --azul-suave: rgba(0, 82, 255, .12);
  --sans: "Inter Tight", "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink-rgb: 236 236 236;
  --ink: #ececec;
  --ink-2: rgba(236, 236, 236, .6);
  --ink-3: rgba(236, 236, 236, .42);
  --glass: rgba(255, 255, 255, .06);
  --glass-borde: rgba(255, 255, 255, .1);
  --glass-2: rgba(255, 255, 255, .06);
  --line: rgba(236, 236, 236, .12);
  --azul: #5C8DFF;
  --azul-suave: rgba(92, 141, 255, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: rgba(0, 0, 0, .25) #c6c6c6; }
html[data-theme="dark"] { scrollbar-color: rgba(255, 255, 255, .2) #262626; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  font-family: var(--sans); font-size: 17px; line-height: 1.5; letter-spacing: -.01em;
  color: var(--ink); background: transparent; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--azul); color: #fff; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; }
p { margin: 0; }
.theme-anim, .theme-anim * { transition: background-color .4s, color .4s, border-color .4s !important; }
.salto { position: absolute; left: -9999px; top: 8px; background: var(--azul); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.salto:focus { left: 8px; }

/* ---------- Fondo: sala con foco (Laboratorio) ---------- */
.lab-fondo {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: #c9c9c9;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 76%, rgba(0,0,0,.07) 80%, rgba(0,0,0,.14) 86%, rgba(0,0,0,.23) 89%, rgba(0,0,0,.31) 95%, rgba(0,0,0,.36) 100%),
    radial-gradient(ellipse 45% 70% at 0% 0%, rgba(0,0,0,.08), rgba(0,0,0,0) 70%),
    linear-gradient(90deg, #818181 0%, #888888 5%, #9b9b9b 15%, #afafaf 25%, #c5c5c5 35%, #d2d2d2 42.5%, #d5d5d5 57%, #d0d0d0 65%, #cbcbcb 75%, #c4c4c4 95%, #c1c1c1 100%);
}
.lab-fondo::after {
  content: ""; position: absolute; inset: 72% 0 0 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='300' preserveAspectRatio='none'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.004 0.35' numOctaves='3' seed='7'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 100% 100%;
  mix-blend-mode: soft-light; opacity: .4;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%);
  mask-image: linear-gradient(to bottom, transparent, #000 35%);
}
.lab-fondo::before {
  content: ""; position: absolute; inset: 76% 0 0 39%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.06) 4%, rgba(255,255,255,0) 60%);
}
[data-theme="dark"] .lab-fondo {
  background-color: #262626;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 76%, rgba(0,0,0,.12) 82%, rgba(0,0,0,.28) 90%, rgba(0,0,0,.45) 100%),
    radial-gradient(ellipse 45% 70% at 0% 0%, rgba(0,0,0,.25), rgba(0,0,0,0) 70%),
    linear-gradient(90deg, #141414 0%, #171717 5%, #1d1d1d 15%, #242424 25%, #2c2c2c 35%, #333 42.5%, #363636 57%, #323232 65%, #2e2e2e 75%, #2a2a2a 95%, #282828 100%);
}
[data-theme="dark"] .lab-fondo::after { opacity: .25; }

/* ---------- Menú en píldora ---------- */
.nav-wrap { position: fixed; left: 50%; top: 1rem; transform: translateX(-50%); z-index: 90; max-width: calc(100vw - 1rem); }
@media (min-width: 834px) { .nav-wrap { top: 1.5rem; } }
.nav-pill {
  display: flex; align-items: center; gap: 1.25rem; height: 45px; padding: 0 .5rem 0 1.1rem; border-radius: 999px;
  background-color: hsla(0, 0%, 47%, .1);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  white-space: nowrap; opacity: 0; transform: translateY(-50px);
}
.nav-wrap.is-in .nav-pill { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.215,.61,.355,1) .05s, transform .7s cubic-bezier(.215,.61,.355,1) .05s; }
.sin-js .nav-pill { opacity: 1; transform: none; }
.nav-marca { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.04em; text-decoration: none; }
.nav-marca .icono-tile { width: 22px; height: 22px; border-radius: 22%; box-shadow: none; }
.nav-pill a:not(.nav-marca) { font-size: 14px; font-weight: 350; letter-spacing: -.02em; text-decoration: none; transition: opacity .3s; }
.nav-pill:has(a:hover) a:not(:hover) { opacity: .4; }
@media (min-width: 834px) { .nav-pill { gap: 2rem; padding: 0 .5rem 0 1.4rem; } .nav-pill a:not(.nav-marca) { font-size: 15px; } }

.theme-toggle {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1px solid rgb(var(--ink-rgb) / .18); background: transparent; color: rgb(var(--ink-rgb) / .8);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0;
  transition: transform .3s cubic-bezier(.215,.61,.355,1);
}
.theme-toggle:hover { transform: rotate(-15deg); }
.theme-toggle svg { width: .9rem; height: .9rem; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- Icono en la línea del de la app ---------- */
.icono-tile {
  position: relative; width: 56px; height: 56px; border-radius: 22%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, #0a1a4f 0%, #2f63e0 52%, #f2b27a 54.5%, #ffd9a8 55%, #0b0e1a 56%, #0b0e1a 100%);
  box-shadow: 0 10px 22px -10px rgba(10, 26, 79, .7), inset 0 0 0 1px rgba(255,255,255,.12);
}
.icono-tile::before {
  content: ""; position: absolute; width: 64%; height: 64%; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.18), rgba(255,255,255,.04) 70%);
}
.icono-tile svg { position: relative; width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icono-tile--vacio { background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line); }
.icono-tile--vacio::before { border-color: rgb(var(--ink-rgb) / .22); background: none; }
.icono-tile--vacio svg { stroke: var(--ink-3); }

/* ---------- Portada ---------- */
main { flex: 1; width: 100%; max-width: 72rem; margin: 0 auto; padding: clamp(6.5rem, 12vh, 8.5rem) 1rem 4rem; }
@media (min-width: 768px) { main { padding-left: 1.5rem; padding-right: 1.5rem; } }
.cabeza { max-width: 44rem; margin-bottom: clamp(32px, 4vw, 48px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 18px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 4px var(--azul-suave); }
h1 { font-size: clamp(42px, 5.4vw, 72px); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
h1 em { font-style: normal; color: var(--azul); }
.intro { margin-top: 20px; max-width: 34rem; font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.5; color: var(--ink-2); }

/* ---------- Rejilla de apps ---------- */
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } }
.app {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: 28px; padding: 10px; background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-borde);
  -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1);
  text-decoration: none; color: inherit;
  transition: transform .45s cubic-bezier(.215,.61,.355,1), box-shadow .45s;
}
a.app:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--glass-borde), 0 30px 60px -34px rgba(0,0,0,.5); }
.app__pantalla { border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 1600 / 982; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.app__pantalla img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.215,.61,.355,1); }
a.app:hover .app__pantalla img { transform: scale(1.015); }
.app__cuerpo { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 18px 12px 12px; }
.app__cuerpo .icono-tile { grid-row: span 2; align-self: start; }
.app h2 { font-size: clamp(22px, 2.1vw, 28px); font-weight: 450; letter-spacing: -.04em; line-height: 1.1; }
.app__desc { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.app__pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 8px 12px 6px; }
.estado { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.estado i { width: 6px; height: 6px; border-radius: 50%; background: var(--azul); }
.ir { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--azul); color: #fff; font-size: 14px; font-weight: 450; }
.ir svg { width: 15px; height: 15px; transition: transform .35s cubic-bezier(.215,.61,.355,1); }
a.app:hover .ir svg { transform: translateX(3px); }

.app--pronto { background: transparent; box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; justify-content: center; }
.app--pronto .app__cuerpo { padding: 24px 16px; }
.app--pronto h2 { color: var(--ink-2); }
.app--pronto .app__desc { color: var(--ink-3); }
.etiqueta { display: inline-block; width: fit-content; margin: 0 16px 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: var(--azul-suave); color: var(--azul); }

/* ---------- Pie ---------- */
.pie { width: 100%; max-width: 72rem; margin: 0 auto; padding: 28px 1rem 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }
@media (min-width: 768px) { .pie { padding-left: 1.5rem; padding-right: 1.5rem; } }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Entrada ---------- */
.revela { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.215,.61,.355,1), transform .8s cubic-bezier(.215,.61,.355,1); }
.revela.visto, .sin-js .revela { opacity: 1; transform: none; }
.revela:nth-child(2) { transition-delay: .08s; }
@media (prefers-reduced-motion: reduce) {
  .revela, .nav-pill { opacity: 1 !important; transform: none !important; transition: none !important; }
  a.app:hover, a.app:hover .app__pantalla img, a.app:hover .ir svg { transform: none; }
}
