/* Área de cliente «Mis Temarios». Tokens de la web paraguas (web_paraguas/site/assets/site.css).
   Móvil primero: texto ≥ 16 px, botones de 48 px, lenguaje sencillo. */
:root {
  --paper: #f6f7f9; --surface: #ffffff; --ink: #171a21; --muted: #5b6270; --line: #dde1e8;
  --amber: #b45309; --amber-soft: #fdf1e2; --slate: #1d2633; --on-slate: #f3f4f6; --on-slate-muted: #c3c8d1;
  --ok: #15803d; --ok-soft: #e7f6ec; --wait: #92400e; --wait-soft: #fef3c7; --pay: #475569; --pay-soft: #eef1f5;
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12151b; --surface: #1a1e26; --ink: #eceef2; --muted: #a2a9b6; --line: #2c323d;
    --amber: #f0a43a; --amber-soft: #2e2416; --slate: #0b0e13;
    --ok: #4ade80; --ok-soft: #12291b; --wait: #fbbf24; --wait-soft: #2d2410; --pay: #a2a9b6; --pay-soft: #222833;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.2; margin: 0; }
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.barra { background: var(--slate); color: var(--on-slate); padding-top: env(safe-area-inset-top, 0); position: sticky; top: 0; z-index: 5; }
.barra__in, .vista, .pie { width: 100%; max-width: 720px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.barra__in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.marca { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1rem; }
.marca img { border-radius: 8px; }
.salir { background: none; border: 1px solid var(--on-slate-muted); color: var(--on-slate); border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 15px; cursor: pointer; }

.vista { flex: 1; padding-top: 22px; padding-bottom: 110px; display: grid; gap: 16px; align-content: start; }
.vista:focus { outline: none; }
.sub { color: var(--muted); }
.pie { font-size: 14px; color: var(--muted); padding-bottom: 96px; text-align: center; }

/* Tarjetas */
.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; }
a.tarjeta { color: inherit; text-decoration: none; }
a.tarjeta:active { transform: scale(.99); }
.tarjeta__cab { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.tarjeta__tipo { font-weight: 700; color: var(--amber); font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.tarjeta__meta { color: var(--muted); font-size: 15px; }
.estado { display: inline-block; white-space: nowrap; border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 700; }
.estado--disponible { background: var(--ok-soft); color: var(--ok); }
.estado--preparacion { background: var(--wait-soft); color: var(--wait); }
.estado--pendiente_pago { background: var(--pay-soft); color: var(--pay); }
.nota { background: var(--wait-soft); color: var(--wait); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.nota--info { background: var(--amber-soft); color: var(--ink); }

/* Botones y formularios */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 12px; border: 0; background: var(--amber); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.boton--sec { background: transparent; color: var(--amber); border: 2px solid var(--amber); }
.boton--ancho { width: 100%; }
.boton[disabled] { opacity: .6; cursor: default; }
label { font-weight: 600; display: grid; gap: 6px; }
input { font: inherit; font-size: 17px; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); width: 100%; }
.form { display: grid; gap: 16px; }
.error { background: #fde8e8; color: #9b1c1c; border-radius: 10px; padding: 12px; }
@media (prefers-color-scheme: dark) {
  .error { background: #3b1414; color: #fca5a5; }
  .boton:not(.boton--sec), .marca-nuevo { color: #1a1206; } /* sobre el ámbar claro del modo oscuro, texto oscuro */
}

/* Material */
.carpeta > summary { list-style: none; cursor: pointer; font-weight: 700; padding: 12px 0; display: flex; gap: 10px; align-items: center; min-height: 48px; }
.carpeta > summary::-webkit-details-marker { display: none; }
.carpeta > summary::before { content: "📁"; }
.carpeta[open] > summary::before { content: "📂"; }
.carpeta .carpeta { margin-left: 14px; }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); min-height: 52px; }
.doc a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.marca-nuevo { background: var(--amber); color: #fff; border-radius: 6px; font-size: 12px; font-weight: 700; padding: 2px 7px; margin-left: 6px; white-space: nowrap; }
.volver { color: var(--muted); text-decoration: none; font-weight: 600; }

/* App: código en desplegable */
details.codigo summary { cursor: pointer; color: var(--muted); font-size: 15px; min-height: 40px; display: flex; align-items: center; }
.codigo code { font-size: 20px; letter-spacing: .08em; font-weight: 700; }

/* Pestañas inferiores */
.pestanas { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom, 0); z-index: 5; }
.pestanas a { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; min-height: 60px; }
.pestanas a span { font-size: 22px; line-height: 1; }
.pestanas a[aria-current="page"] { color: var(--amber); }

.cargando { color: var(--muted); padding: 30px 0; text-align: center; }
.vacio { text-align: center; padding: 30px 18px; }
.lista { display: grid; gap: 12px; }
[hidden] { display: none !important; }
