* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #FFF6EA;
  color: #222;
  font-family: system-ui, -apple-system, Roboto, "Segoe UI", sans-serif;
  font-size: 22px;
  line-height: 1.3;
  padding-bottom: 40px;
  overscroll-behavior-y: contain;
}
.cabecera {
  background: #E8622A;
  color: #fff;
  padding: calc(18px + env(safe-area-inset-top)) 20px 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.cabecera h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: .3px; }

.aviso { margin: 16px; padding: 18px; border-radius: 18px; text-align: center; }
.instalar { background: #fff; border: 3px solid #2E9E4F; }
.estado { background: #fff; border: 3px solid #F2B33D; font-size: 22px; font-weight: 600; }
.barra { height: 14px; background: #f1e6d6; border-radius: 7px; margin-top: 12px; overflow: hidden; }
.barra > div { height: 100%; width: 0; background: #F2B33D; transition: width .3s; }
.ayuda { font-size: 22px; margin: 14px 0 0; }

.lista { display: flex; flex-direction: column; gap: 22px; padding: 18px 16px; }

.tarjeta {
  display: block; width: 100%; text-align: left; border: 0; padding: 0; margin: 0;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,.14);
  font: inherit; color: inherit; cursor: pointer;
}
.tarjeta:active { transform: scale(.98); }
.foto { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #e9dccb; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 46px;
  display: flex; align-items: center; justify-content: center; padding-left: 8px;
}
.nuevo {
  position: absolute; top: 14px; left: 14px;
  background: #D7263D; color: #fff; font-weight: 800; font-size: 22px;
  padding: 6px 14px; border-radius: 12px; letter-spacing: 1px;
}
.falta {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.72); color: #fff; font-size: 20px; font-weight: 600;
  padding: 10px 14px; text-align: center;
}
.texto { padding: 16px 18px 18px; }
.titulo { font-size: 28px; font-weight: 800; line-height: 1.2; }
.detalle { font-size: 19px; color: #7a6a58; margin-top: 6px; }

.vacio { margin: 40px 24px; text-align: center; font-size: 26px; color: #6b5a48; }

.boton {
  border: 0; border-radius: 18px; font: inherit; font-weight: 800; cursor: pointer;
  color: #fff; background: #555;
}
.boton:active { transform: scale(.97); }
.grande { font-size: 26px; padding: 20px 26px; width: 100%; }
.enorme { font-size: 34px; padding: 26px 30px; width: 82%; max-width: 420px; }
.verde { background: #2E9E4F; }
.gris { background: #5b5b5b; }

.reproductor {
  position: fixed; inset: 0; background: #000; z-index: 10;
  display: flex; flex-direction: column;
}
.reproductor video { flex: 1; width: 100%; min-height: 0; object-fit: contain; background: #000; }
.volver {
  margin: calc(10px + env(safe-area-inset-top)) 10px 10px; padding: 18px 22px;
  font-size: 30px; background: #E8622A; align-self: stretch;
}
.fin, .mensaje {
  position: absolute; inset: 0; background: rgba(0,0,0,.78);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mensaje p { color: #fff; font-size: 30px; text-align: center; margin: 0 28px; font-weight: 700; }
[hidden] { display: none !important; }
