/* Estilos de la app (creadora y alumno). Mobile first, tema oscuro. */
:root {
  --bg: #0b0d10;
  --surface: #14171c;
  --surface-2: #1b1f26;
  --surface-3: #232831;
  --line: #2a3039;
  --text: #eef1f5;
  --muted: #8d96a5;
  --accent: #c6ff3d;
  --accent-ink: #0b0d10;
  --accent-soft: rgba(198, 255, 61, 0.12);
  --ok: #3ddc97;
  --warn: #ffb547;
  --danger: #ff5d6c;
  --info: #5ab0ff;
  --live: #ff3b5c;
  --prot: #5ab0ff;
  --carb: #ffb547;
  --grasa: #ff7ab6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --nav-h: 68px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; }
.oculto { display: none !important; }
svg.inline { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; }
svg { flex-shrink: 0; }
.anillo > svg { width: 100%; height: 100%; }

/* ---------- Estructura ---------- */
.shell { min-height: 100vh; display: flex; }
.lateral { display: none; }
.contenido { flex: 1; min-width: 0; padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top));
  background: rgba(11, 13, 16, 0.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .titulo { flex: 1; min-width: 0; font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.marca .logo { width: auto; height: 28px; }
.marca .acento, .acento { color: var(--accent); }
.lema { color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.vista { padding: 18px 16px; max-width: 1100px; margin: 0 auto; }

.nav-inferior {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(20, 23, 28, 0.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.nav-inferior a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font-size: 11px; font-weight: 500;
}
.nav-inferior a.activo { color: var(--accent); }
.nav-inferior svg { width: 22px; height: 22px; }

@media (min-width: 900px) {
  .nav-inferior { display: none; }
  .contenido { padding-bottom: 40px; }
  .lateral {
    display: flex; flex-direction: column; gap: 4px;
    position: sticky; top: 0; height: 100vh; width: 240px; flex-shrink: 0;
    padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line);
  }
  .lateral .marca { padding: 4px 10px 22px; font-size: 18px; }
  .lateral a {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
    color: var(--muted); font-weight: 500;
  }
  .lateral a:hover { background: var(--surface-2); color: var(--text); }
  .lateral a.activo { background: var(--accent-soft); color: var(--accent); }
  .lateral svg { width: 20px; height: 20px; }
  .lateral .pie { margin-top: auto; }
  .vista { padding: 28px 32px; }
  .topbar { padding-left: 32px; padding-right: 32px; }
}

/* ---------- Componentes ---------- */
.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tarjeta + .tarjeta { margin-top: 12px; }
.tarjeta.resaltada { border-color: rgba(198, 255, 61, 0.35); background: linear-gradient(160deg, rgba(198, 255, 61, 0.09), var(--surface) 55%); }
.tarjeta-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.seccion { margin-top: 26px; }
.seccion > .tarjeta-cab { margin-bottom: 12px; }
.pila > * + * { margin-top: 12px; }
.grid { display: grid; gap: 12px; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-2-md { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fila { display: flex; align-items: center; gap: 10px; }
.fila-entre { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.envolver { flex-wrap: wrap; }
.crecer { flex: 1; min-width: 0; }

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .valor { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .etq { color: var(--muted); font-size: 12.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform 0.08s, background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: #3a414c; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn.primario { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primario:hover { filter: brightness(1.05); }
.btn.peligro { color: var(--danger); }
.btn.fantasma { background: transparent; border-color: transparent; }
.btn.fantasma:hover { background: var(--surface-2); }
.btn.chico { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.icono { width: 44px; padding: 0; }
.btn.icono.chico { width: 36px; }
.btn.bloque { width: 100%; }
.btn.wa { background: #25d366; border-color: #25d366; color: #062b14; }
.btn.live { background: var(--live); border-color: var(--live); color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px;
  background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.chip.ok { background: rgba(61, 220, 151, 0.14); color: var(--ok); }
.chip.warn { background: rgba(255, 181, 71, 0.14); color: var(--warn); }
.chip.danger { background: rgba(255, 93, 108, 0.14); color: var(--danger); }
.chip.info { background: rgba(90, 176, 255, 0.14); color: var(--info); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.live { background: var(--live); color: #fff; }
.punto-live { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: latido 1.4s infinite; }
@keyframes latido { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.selector { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.selector::-webkit-scrollbar { display: none; }
.selector button {
  flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.selector button.activo { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.pestanas { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 -16px 18px; padding: 0 16px; scrollbar-width: none; }
.pestanas::-webkit-scrollbar { display: none; }
.pestanas a { flex-shrink: 0; padding: 12px 12px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.pestanas a.activo { color: var(--text); border-color: var(--accent); }

/* Formularios */
label.campo { display: block; }
label.campo > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); outline: none; font-size: 16px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: #5f6773; }
.casilla { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.casilla input { width: 20px; height: 20px; accent-color: var(--accent); }
.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dias label { position: relative; }
.dias input { position: absolute; opacity: 0; }
.dias span {
  display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer;
}
.dias input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.interruptor { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.interruptor input { opacity: 0; width: 0; height: 0; }
.interruptor span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); cursor: pointer; transition: 0.2s; }
.interruptor span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: 0.2s; }
.interruptor input:checked + span { background: var(--accent); }
.interruptor input:checked + span::after { transform: translateX(20px); background: var(--accent-ink); }

/* Listas */
.lista { display: flex; flex-direction: column; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text);
}
.item:last-child { border-bottom: 0; }
a.item:hover .item-titulo { color: var(--accent); }
.item-titulo { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--surface-3); color: var(--accent); font-weight: 700; font-size: 15px;
}
.avatar.grande { width: 64px; height: 64px; font-size: 22px; }

.tabla-envoltura { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabla td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }

.vacio { text-align: center; padding: 32px 16px; color: var(--muted); }
.vacio svg { width: 40px; height: 40px; margin: 0 auto 10px; opacity: 0.6; }

/* Barras de macros y progreso */
.barra { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.barra > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.macro { display: grid; grid-template-columns: 1fr; gap: 6px; }

.anillo { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.anillo .centro { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.anillo .centro b { display: block; font-size: 26px; line-height: 1; }

.vasos { display: flex; gap: 6px; flex-wrap: wrap; }
.vaso {
  width: 34px; height: 42px; border-radius: 6px 6px 10px 10px; border: 2px solid var(--line); background: transparent; cursor: pointer; padding: 0; position: relative; overflow: hidden;
}
.vaso.lleno { border-color: var(--info); }
.vaso.lleno::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 75%; background: var(--info); opacity: 0.8; }

/* Calendario de asistencia */
.calendario { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.calendario .cab { font-size: 11px; color: var(--muted); font-weight: 600; }
.calendario .d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.calendario .d.si { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.calendario .d.hoy { outline: 2px solid var(--accent); outline-offset: -2px; }
.calendario .d.fuera { visibility: hidden; }

/* Ejercicios */
.ejercicio { background: var(--surface-2); border-radius: 14px; padding: 14px; }
.ejercicio + .ejercicio { margin-top: 10px; }
.ejercicio .num-ej { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.series { display: grid; gap: 6px; margin-top: 10px; }
.serie { display: grid; grid-template-columns: 34px 1fr 1fr 44px; gap: 6px; align-items: center; }
.serie input { min-height: 40px; padding: 6px 10px; text-align: center; }
.serie .check { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.serie .check.hecho { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Banner en vivo */
.banner-live {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(120deg, #ff3b5c, #ff7a45); color: #fff;
}
.banner-live .crecer b { display: block; font-size: 16px; }

/* Modal */
.velo { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-end; justify-content: center; animation: aparecer 0.15s; }
.modal {
  width: 100%; max-width: 620px; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: var(--shadow);
  animation: subir 0.2s ease-out;
}
.modal-cab { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.modal-cab h2 { flex: 1; font-size: 18px; }
.modal-cuerpo { padding: 16px; overflow-y: auto; }
.modal-pie { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@media (min-width: 700px) {
  .velo { align-items: center; padding: 24px; }
  .modal { border-radius: 22px; }
  .modal.ancho { max-width: 900px; }
}
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(30px); opacity: 0; } }

/* Aviso flotante */
.toasts { position: fixed; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top)); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--surface-3); border: 1px solid var(--line); color: var(--text); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; max-width: 480px; animation: subir 0.2s; }
.toast.ok { border-color: rgba(61, 220, 151, 0.5); }
.toast.error { border-color: rgba(255, 93, 108, 0.6); }

/* Firma */
.firma-lienzo { width: 100%; height: 200px; border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.contrato-texto { white-space: pre-wrap; background: var(--surface-2); border-radius: 12px; padding: 16px; font-size: 14px; line-height: 1.6; max-height: 50vh; overflow-y: auto; }

/* Pantallas de acceso */
.acceso { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at top, rgba(198, 255, 61, 0.12), transparent 60%), var(--bg); }
.acceso .caja { width: 100%; max-width: 400px; }
.acceso .marca { justify-content: center; font-size: 24px; margin-bottom: 8px; }
.acceso .marca { flex-direction: column; gap: 14px; font-size: 32px; }
.acceso .marca .logo { height: 64px; }

/* Registro y pago */
.pasos-registro { display: flex; gap: 6px; margin-bottom: 12px; }
.pasos-registro i { flex: 1; height: 5px; border-radius: 9px; background: var(--surface-3); }
.pasos-registro i.hecho { background: var(--accent); }
.opcion {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; text-align: left;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer;
}
.opcion b { display: block; font-size: 15px; }
.opcion small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.opcion.activa { border-color: var(--accent); background: var(--accent-soft); }
.opcion.activa b { color: var(--accent); }
.opcion-emoji { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.opcion-emoji svg { width: 20px; height: 20px; }
.opcion.activa .opcion-emoji { background: var(--accent); color: var(--accent-ink); }
.sello { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sello svg { width: 30px; height: 30px; stroke-width: 1.8; }
.plan-opcion { position: relative; }
.plan-opcion .precio { font-size: 24px; font-weight: 800; margin-left: auto; text-align: right; line-height: 1.1; white-space: nowrap; }
.plan-opcion .precio small { display: block; }
.plan-opcion .precio s { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.yape-caja { background: #742284; color: #fff; border-radius: 16px; padding: 16px; }
.yape-caja .numero { font-size: 26px; font-weight: 800; letter-spacing: 0.04em; }
.paso-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }

.cargando { display: grid; place-items: center; padding: 60px 0; }
.giro { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: girar 0.7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.qr-grande { background: #fff; border-radius: 18px; padding: 18px; width: min(320px, 100%); margin: 0 auto; }
.qr-grande svg { width: 100%; height: auto; }

.grafico { width: 100%; height: auto; }
.grafico text { fill: var(--muted); font-size: 11px; font-family: var(--font); }

.resultado-alimento { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.resultado-alimento:hover { background: var(--surface-2); }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--surface-2); font-size: 20px; cursor: pointer; }
.stepper input { width: 70px; min-height: 44px; border: 0; border-radius: 0; text-align: center; background: var(--surface); }

@media print { .nav-inferior, .lateral, .topbar { display: none; } }

/* Racha y reto de 30 días */
.racha { display: flex; gap: 16px; align-items: center; color: var(--text); }
.racha-num { flex-shrink: 0; width: 76px; height: 76px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); display: grid; place-content: center; text-align: center; }
.racha-num b { font-size: 30px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.racha-num span { font-size: 10.5px; font-weight: 600; line-height: 1.15; }
.reto-mini { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; margin-top: 8px; }
.reto-mini i { height: 8px; border-radius: 2px; background: var(--surface-3); }
.reto-mini i.si { background: var(--accent); }
.reto-mini i.hoy { box-shadow: inset 0 0 0 1.5px var(--accent); }
.reto-grande { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.reto-grande div { aspect-ratio: 1; border-radius: 10px; background: var(--surface-2); display: grid; place-content: center; text-align: center; border: 1px solid var(--line); }
.reto-grande b { font-size: 15px; line-height: 1.1; }
.reto-grande span { font-size: 10px; color: var(--muted); }
.reto-grande .si { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.reto-grande .si span { color: var(--accent-ink); opacity: 0.7; }
.reto-grande .hoy { border-color: var(--accent); }
.reto-grande .no { opacity: 0.55; }
.reto-grande .futuro { background: transparent; }

/* Medallas */
.medallas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.medalla { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.medalla-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; margin-bottom: 8px; }
.medalla-ico svg { width: 20px; height: 20px; }
.medalla.lograda { border-color: rgba(198, 255, 61, 0.4); }
.medalla.lograda .medalla-ico { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 700px) { .medallas { grid-template-columns: repeat(4, minmax(0, 1fr)); } .reto-grande { grid-template-columns: repeat(10, 1fr); } }

/* Fotos de progreso */
.antes-despues { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.antes-despues figure { margin: 0; }
.antes-despues img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--surface-2); display: block; }
.antes-despues figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.fotos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.foto-mini { position: relative; padding: 0; border: 0; background: var(--surface-2); border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer; }
.foto-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-mini span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px; font-size: 10.5px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }
.foto-grande { width: 100%; border-radius: 12px; display: block; }

/* Rutina: la vez pasada y récord */
.ej-previo { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.ej-previo b { color: var(--text); }
.ej-record { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; }
.ej-record svg { width: 14px; height: 14px; }

/* Comidas frecuentes */
.chips-recientes { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-recientes button { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chips-recientes button span { color: var(--muted); margin-left: 4px; }
.chips-recientes button:hover { border-color: var(--accent); }
