/* Hoja de estilo común del sitio del desarrollador de elsipe.
   Sin dependencias, sin fuentes externas y sin JavaScript: es un fichero
   estático más, así que se sirve tal cual en Netlify Drop. */

:root {
  color-scheme: light dark;

  --fondo: #ffffff;
  --fondo-suave: #f6f7f9;
  --texto: #1c1e21;
  --texto-tenue: #5c636d;
  --borde: #e4e7ec;
  --acento: #1a56db;
  --acento-suave: #eaf0fe;
  --sombra: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 28px rgba(16, 24, 40, .07);
  --radio: 14px;
  --ancho: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #14161a;
    --fondo-suave: #1c1f25;
    --texto: #e9ebee;
    --texto-tenue: #a3aab4;
    --borde: #2c3138;
    --acento: #8ab4ff;
    --acento-suave: #1d2635;
    --sombra: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 28px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 40px 20px 80px;
  max-width: var(--ancho);
  background: var(--fondo);
  color: var(--texto);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1 {
  margin: 0 0 .35em;
  font-size: clamp(1.8rem, 1.35rem + 2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

h2 {
  margin: 2.3em 0 .7em;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; }

/* Entradilla: el párrafo que sigue al título de la página. */
.lead { font-size: 1.08rem; color: var(--texto-tenue); }

a {
  color: var(--acento);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { text-decoration: none; }

a:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 2px;
  border-radius: 4px;
}

strong { font-weight: 600; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: .5em; }
li:last-child { margin-bottom: 0; }

hr {
  margin: 2.6em 0 1.4em;
  border: none;
  border-top: 1px solid var(--borde);
}

/* Texto secundario: entradilla de ficha, fechas, pie de página. */
.meta { color: var(--texto-tenue); font-size: .93rem; }

/* El enlace de vuelta al sitio («← elsipe») se ve como una píldora. */
.volver { margin: 0 0 1.8em; font-size: .93rem; }

.volver a {
  display: inline-block;
  padding: .2em .75em;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--fondo-suave);
  color: var(--texto-tenue);
  text-decoration: none;
}

.volver a:hover {
  border-color: var(--acento);
  color: var(--acento);
}

/* Bloques de código en línea: nombres de paquete, READY, .00 … */
code {
  padding: .1em .4em;
  border: 1px solid var(--borde);
  border-radius: 6px;
  background: var(--fondo-suave);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .87em;
  word-break: break-word;
}

/* Etiqueta de tipo (App, Juego). */
.tag {
  display: inline-block;
  margin-right: .5em;
  padding: .12em .6em;
  border-radius: 999px;
  background: var(--acento-suave);
  color: var(--acento);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  vertical-align: .1em;
}

/* Lista de aplicaciones de la portada: cada una, una tarjeta. */
ul.apps {
  display: grid;
  gap: 14px;
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

ul.apps > li {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--fondo-suave);
  box-shadow: var(--sombra);
  transition: transform .15s ease, border-color .15s ease;
}

ul.apps > li:hover {
  transform: translateY(-2px);
  border-color: var(--acento);
}

/* Tablas (aplicaciones cubiertas por la política). */
table {
  width: 100%;
  margin: 1.3em 0;
  border: 1px solid var(--borde);
  border-spacing: 0;
  border-collapse: separate;
  border-radius: var(--radio);
  overflow: hidden;
  font-size: .96rem;
}

th, td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--borde);
  text-align: left;
}

th {
  background: var(--fondo-suave);
  color: var(--texto-tenue);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--fondo-suave); }

/* Galería de capturas. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin: 1.3em 0;
  padding: 0;
  list-style: none;
}

.shots li { margin: 0; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--borde);
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.shots a:hover img {
  transform: translateY(-2px);
  box-shadow: var(--sombra);
}

@media (max-width: 520px) {
  body { padding: 28px 16px 64px; font-size: 16px; }
  h2 { margin-top: 2em; }
  th, td { padding: 9px 11px; }
  table { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  ul.apps > li, .shots img { transition: none; }
  ul.apps > li:hover, .shots a:hover img { transform: none; }
}
