/* La web de ReadMagic. Sin librerías ni fuentes de fuera: carga al instante y no pide nada a
   terceros (lo que también deja corta su propia nota de privacidad). Colores, los de la app. */
:root {
  --pared: #f1e6dc;
  --tinta: #4a342a;
  --suave: #7b6558;
  --madera: #9c6b4e;
  --madera-oscura: #6e4833;
  --fondo: #3b2a26;
  --oro: #e2b95a;
  --papel: #f7efe6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pared);
  color: var(--tinta);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px;
}
.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  text-decoration: none;
}
.marca img { border-radius: 9px; }
.barra nav a {
  margin-left: 18px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  text-decoration: none;
  color: var(--suave);
}
.barra nav a:hover { color: var(--tinta); }

/* ── Portada ─────────────────────────────────────────────────────────── */
.portada {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.portada h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: normal;
}
.portada p.entrada {
  font-size: 19px;
  color: var(--suave);
  margin: 0 0 26px;
  max-width: 30em;
}
.etiqueta {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
}

/* La insignia oficial de Google Play (imagen de Google, sin tocar; solo se escala). */
.insignia { display: inline-block; line-height: 0; border-radius: 10px; }
.insignia img { display: block; height: 70px; width: auto; }
.insignia + .nota { margin-top: 0; }
.insignia:focus-visible { outline: 2px solid var(--madera); outline-offset: 3px; }
.nota {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: var(--suave);
  margin-top: 10px;
}

/* ── El estante, dibujado con cajas ──────────────────────────────────── */
.mueble {
  background: var(--madera);
  border-radius: 22px 22px 6px 6px;
  padding: 14px;
  box-shadow: 0 24px 50px rgba(74, 52, 42, 0.25);
  position: relative;
}
.mueble::after {            /* las patas */
  content: "";
  position: absolute;
  left: 34px; right: 34px; bottom: -16px;
  height: 16px;
  border-left: 16px solid var(--madera-oscura);
  border-right: 16px solid var(--madera-oscura);
}
.balda {
  background: var(--fondo);
  height: 150px;
  margin-bottom: 14px;
  padding: 0 12px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  box-shadow: inset 0 14px 16px -8px rgba(0, 0, 0, 0.5);
}
.balda:last-child { margin-bottom: 0; }
.balda::before {            /* la guirnalda */
  content: "";
  position: absolute;
  left: 10px; right: 10px; top: 8px;
  height: 10px;
  background: radial-gradient(circle, #ffd98a 0 3px, rgba(255, 217, 138, 0.35) 4px 7px, transparent 8px) 0 0 / 34px 10px repeat-x;
}
.lomo {
  width: var(--g, 22px);
  height: var(--a, 110px);
  background: var(--c, #7a2e2b);
  border-radius: 2px 2px 0 0;
  box-shadow: inset -5px 0 6px rgba(0, 0, 0, 0.18), inset 3px 0 4px rgba(255, 255, 255, 0.10);
  position: relative;
  transition: transform 0.25s ease;
}
.lomo::before, .lomo::after {   /* los filetes */
  content: "";
  position: absolute;
  left: 15%; right: 15%;
  height: 2px;
  background: rgba(241, 221, 176, 0.6);
}
.lomo::before { top: 9%; }
.lomo::after { bottom: 9%; }
.lomo:hover { transform: translateY(-10px); }
.lomo.inclinado { transform: rotate(-9deg); transform-origin: bottom left; margin-left: 14px; }
.lomo.inclinado:hover { transform: rotate(-9deg) translateY(-10px); }
.planta {
  width: 30px; height: 26px;
  background: #c9794f;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
  margin: 0 8px;
  position: relative;
}
.planta::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 24px;
  width: 50px; height: 46px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 7px 22px at 50% 60%, #5e9b6b 98%, transparent) ,
    radial-gradient(ellipse 7px 20px at 28% 66%, #3f7a54 98%, transparent),
    radial-gradient(ellipse 7px 20px at 72% 66%, #3f7a54 98%, transparent);
}

/* ── Lo que hace ─────────────────────────────────────────────────────── */
.franja { background: var(--papel); }
.rasgos {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.rasgos h2 { grid-column: 1 / -1; font-size: 32px; font-weight: normal; margin: 0 0 6px; }
.rasgo h3 { font-size: 20px; font-weight: normal; margin: 0 0 6px; }
.rasgo p { margin: 0; color: var(--suave); font-size: 16px; }
.rasgo .gema { color: var(--oro); font-size: 22px; }

.formatos {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  text-align: center;
}
.formatos h2 { font-size: 28px; font-weight: normal; margin: 0 0 16px; }
.formatos span {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  margin: 4px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}

.pie {
  text-align: center;
  padding: 28px 20px 40px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: var(--suave);
}
.pie p { margin: 8px 0 0; }

/* ── Páginas de texto (privacidad, términos) ─────────────────────────── */
.texto {
  max-width: 740px;
  margin: 0 auto;
  padding: 12px 20px 48px;
  font-size: 17px;
}
.texto h1 { font-size: 34px; font-weight: normal; line-height: 1.15; }
.texto h2 { font-size: 24px; font-weight: normal; margin-top: 2em; }
.texto h3 { font-size: 19px; font-weight: normal; margin-top: 1.6em; color: var(--madera-oscura); }
.texto ul { padding-left: 1.2em; }
.texto li { margin-bottom: 0.4em; }

@media (max-width: 780px) {
  .portada { grid-template-columns: 1fr; padding-top: 8px; }
  .rasgos { grid-template-columns: 1fr; }
  .balda { height: 120px; }
  .lomo { height: calc(var(--a, 110px) * 0.8); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lomo { transition: none; }
}
