/* guillempejo.github.io — 9-oct-2026. Neutra a propósito: el color lo ponen los iconos de las apps.
   Un solo momento animado: la pantalla de inicio de la portada «instala» sus apps al cargar. */
:root {
  --bg: #F2F3F7; --surface: #FFFFFF; --ink: #1B2130; --text: #39404F; --muted: #646B7A; --line: #DCDFE7;
  --accent: #6A4CF2; --wall-a: #2A2F58; --wall-b: #5A3FD0;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14161D; --surface: #1C1F29; --ink: #EEF0F6; --text: #C9CDD8; --muted: #959BAA; --line: #2C303D;
    --accent: #A592FF; --wall-a: #1E2142; --wall-b: #4630A8; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Idioma: el HTML trae los dos; se ve el que marca <html data-lang> (sin JS, inglés) */
html:not([data-lang="es"]) [data-l="es"], html[data-lang="es"] [data-l="en"] { display: none; }

/* ---------- Barra ---------- */
.bar { max-width: 1120px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar__name { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font: 700 17px var(--display); color: var(--ink); text-decoration: none; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang button { min-width: 48px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted);
  font: 600 14px var(--body); cursor: pointer; transition: background .15s, color .15s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Portada ---------- */
.hero { max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 24px;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--accent) 55%, transparent), 0 12px 28px rgba(27, 33, 48, .2); }
.hero h1 { font-size: clamp(46px, 6.6vw, 84px); line-height: .95; letter-spacing: -0.045em; font-weight: 800; }
.hero__lead { margin-top: 24px; font-size: clamp(19px, 1.9vw, 22px); line-height: 1.5; color: var(--ink); max-width: 34ch; }
.hero__facts { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.hero__facts strong { color: var(--ink); font-weight: 700; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; transition: transform .15s ease, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.ext { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.ext:hover { text-decoration-color: var(--accent); }

/* La pantalla de inicio: 12 iconos reales sobre un fondo de pantalla */
.home { position: relative; border-radius: 44px; padding: 36px 26px 30px; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, var(--wall-b) 0%, transparent 60%), linear-gradient(160deg, var(--wall-a), #12142A);
  box-shadow: 0 30px 60px -20px rgba(42, 47, 88, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.home ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 10px; }
.home a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #fff; border-radius: 18px; padding: 4px 0; }
.home img { width: min(76px, 100%); height: auto; aspect-ratio: 1; border-radius: 23%; box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  transition: transform .2s ease; }
.home a:hover img { transform: scale(1.06); }
.home span { font-size: 12.5px; font-weight: 500; line-height: 1.2; text-align: center; color: rgba(255, 255, 255, .92); }
.home li { animation: install .5s cubic-bezier(.2, .9, .3, 1.25) backwards; }
.home li:nth-child(1) { animation-delay: .10s } .home li:nth-child(2) { animation-delay: .16s } .home li:nth-child(3) { animation-delay: .22s }
.home li:nth-child(4) { animation-delay: .28s } .home li:nth-child(5) { animation-delay: .34s } .home li:nth-child(6) { animation-delay: .40s }
.home li:nth-child(7) { animation-delay: .46s } .home li:nth-child(8) { animation-delay: .52s } .home li:nth-child(9) { animation-delay: .58s }
.home li:nth-child(10) { animation-delay: .64s } .home li:nth-child(11) { animation-delay: .70s } .home li:nth-child(12) { animation-delay: .76s }
@keyframes install { from { opacity: 0; transform: scale(.55); } }

/* ---------- Secciones ---------- */
.sec { max-width: 1120px; margin: 0 auto; padding: 72px 24px 0; scroll-margin-top: 16px; }
.sec__head { max-width: 680px; margin-bottom: 32px; }
.sec__head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; font-weight: 700; }
.sec__head p { margin-top: 12px; color: var(--muted); }

/* Apps destacadas: cada tarjeta lleva un tinte suave del color de su icono */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 24px; scroll-margin-top: 16px;
  background: color-mix(in srgb, var(--c) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line)); }
.app__icon { width: 72px; height: 72px; border-radius: 23%; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent); }
.app h3 { font-size: 26px; margin-top: 6px; }
.app p { max-width: 52ch; }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; color: var(--ink);
  background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.chips .chips__soon { background: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 40%, var(--line)); color: var(--muted); }
.stores { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px;
  text-decoration: none; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); transition: border-color .15s, background .15s; }
.store:hover { border-color: var(--ink); }

/* El resto: en lista, con menos peso que las destacadas */
.more { list-style: none; margin: 20px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.more li { display: grid; grid-template-columns: 108px 1fr auto; align-items: center; gap: 20px; padding: 20px 24px; scroll-margin-top: 16px; }
.more li + li { border-top: 1px solid var(--line); }
.more__icons { display: flex; justify-content: center; }
.more__icons img { width: 44px; height: 44px; border-radius: 23%; border: 2px solid var(--surface); }
.more__icons img + img { margin-left: -12px; }
.more h3 { font-size: 19px; }
.more p { font-size: 15.5px; color: var(--muted); }
.count { font: 600 13px var(--body); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.sec__links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 28px; }

/* Más allá de las apps */
.beyond { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.beyond > div { padding-top: 20px; border-top: 2px solid var(--ink); }
.beyond h3 { font-size: 22px; margin-bottom: 10px; }
.beyond a { color: var(--ink); font-weight: 600; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 4px; }

/* Herramientas */
.stack { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.stack > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.stack dt { font-weight: 700; color: var(--ink); }
.stack dd { margin: 0; }

/* ---------- Pie ---------- */
.foot { max-width: 1120px; margin: 96px auto 0; padding: 0 24px 48px; }
.foot__contact { padding: 48px; border-radius: 32px; background: var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot__contact h2 { color: var(--bg); font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.foot__contact .btn { background: var(--bg); color: var(--ink); }
.foot__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 0 28px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--muted); font-size: 15px; text-underline-offset: 4px; }
.foot__links a:hover { color: var(--ink); }
.foot__small { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Móvil ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .home { max-width: 460px; }
  .apps, .beyond, .stack { grid-template-columns: 1fr; }
  .beyond { gap: 28px; }
  .more li { grid-template-columns: auto 1fr; }
  .more li .store { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar, .hero, .sec, .foot { padding-left: 16px; padding-right: 16px; }
  .home { border-radius: 36px; padding: 28px 14px 24px; }
  .home ul { gap: 18px 6px; }
  .home span { font-size: 11.5px; }
  .app { padding: 22px; }
  .hero { padding-bottom: 16px; }
  .hero__actions { gap: 4px 22px; }
  .hero__actions .btn { flex-basis: 100%; }
  .hero__photo { width: 80px; height: 80px; margin-bottom: 20px; }
  .sec { padding-top: 64px; }
  .more li { grid-template-columns: 1fr; padding: 20px; gap: 12px; }
  .more__icons { justify-content: flex-start; }
  .more__icons img { width: 40px; height: 40px; }
  .stack > div { grid-template-columns: 1fr; gap: 4px; }
  .foot__contact { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home li { animation: none; }
  .btn, .home img { transition: none; }
}
