/* Specio Wellness: crema cálido, fotos a sangre, vidrio claro, serif cursiva en una palabra por título. */
:root {
  --bg: #f6ede1;
  --ink: #2a211a;
  --muted: #7b6b5d;
  --line: rgba(42, 33, 26, 0.12);
  --accent: #6f8f84;
  --peach: #f0b48a;
  --glass: rgba(255, 250, 243, 0.74);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.glass { background: var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 1px 1px var(--glass-edge), 0 10px 24px -12px rgba(60, 35, 15, 0.35); }
.logo { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; flex: none; opacity: .85; }
.logo::after { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; }
.tag { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
h1, h2 { font-weight: 500; letter-spacing: -0.8px; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 8vw, 38px); } h1 em { font-size: 1.18em; letter-spacing: -0.4px; }
h2 { font-size: 24px; } h2 em { font-size: 1.18em; }
.muted { color: var(--muted); }

/* Estructura de pantalla */
.pantalla { position: relative; min-height: 100dvh; max-width: 480px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; isolation: isolate; }
.foto { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: 50% 30%; }
.foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(60,35,15,0.4), rgba(60,35,15,0) 38%); }
.foto i { position: absolute; inset: -5%; background: inherit; animation: respira 18s ease-in-out infinite alternate; }
@keyframes respira { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Formularios */
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.campo input { border-radius: 14px; border: 0; padding: 13px 14px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; }
.btn { display: block; width: 100%; border-radius: 999px; padding: 14px 18px; font-weight: 500; text-align: center; text-decoration: none; }
.btn.solid { background: var(--ink); color: #fff3e4; }
.btn.line { box-shadow: inset 0 0 0 1px rgba(42,33,26,0.22); }
.aviso { border-radius: 14px; padding: 10px 14px; font-size: 14px; background: rgba(240,180,138,0.35); }

/* Opciones elegibles (onboarding) */
.opcion { display: block; position: relative; }
.opcion input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcion span { display: block; border-radius: 18px; padding: 14px 16px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.opcion input:checked + span { background: var(--ink); color: #fff3e4; }
.opcion input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opcion small { display: block; opacity: .75; margin-top: 2px; font-size: 13px; }

/* Home */
.hora { color: #fff; text-shadow: 0 1px 14px rgba(60,35,15,0.4); margin-top: 6px; }
.hora .d { font-size: 14px; opacity: .92; }
.hora h1 { margin-top: 6px; }
.espacio { flex: 1; min-height: 120px; }
.tarjeta { border-radius: 24px; padding: 16px; }
.tarjeta .q { font-size: 21px; font-weight: 500; letter-spacing: -0.4px; line-height: 1.15; }
.tarjeta .q em { font-size: 1.2em; }
.replies { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.reply { border-radius: 14px; padding: 12px 8px; text-align: center; background: rgba(255,255,255,0.8); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, transform .15s; }
.reply:active { transform: scale(0.97); }
.reply[aria-pressed="true"] { background: var(--ink); color: #fff3e4; }
.later { display: block; margin: 10px auto 0; font-size: 13px; color: var(--muted); padding: 6px 10px; }
.sugerencias { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sug { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-radius: 16px; padding: 12px 14px; background: rgba(255,255,255,0.8); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.sug small { color: var(--muted); }
.pie { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #fff; text-shadow: 0 1px 10px rgba(60,35,15,0.5); }
.pie a, .pie button { text-decoration: none; color: inherit; text-shadow: inherit; padding: 4px 0; }
.pantalla > .aviso { background: var(--glass); backdrop-filter: blur(12px); }

/* Pantallas sobre crema (sin foto) */
.crema .hora { color: var(--ink); text-shadow: none; }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla td, .tabla th { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.codigo { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 2px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .foto i { animation: none; } * { transition: none !important; } }

/* ---------- Comida ---------- */
.momentos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.opcion.mini span { padding: 10px 4px; border-radius: 14px; font-size: 13px; text-align: center; }
.captura { display: flex; align-items: center; gap: 14px; border-radius: 24px; padding: 18px; cursor: pointer; background: rgba(255,255,255,0.8); box-shadow: inset 0 0 0 1px var(--line), 0 14px 26px -18px rgba(70,40,15,0.5); }
.captura:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.lente { width: 46px; height: 46px; border-radius: 50%; flex: none; background: var(--ink); display: grid; place-items: center; }
.lente::after { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff3e4; }
.captura-txt { display: flex; flex-direction: column; gap: 2px; }
.captura-txt small { color: var(--muted); font-size: 13px; }
.plato { display: flex; flex-direction: column; gap: 14px; }
.previa { position: relative; border-radius: 24px; overflow: hidden; background: #e9dccb; min-height: 120px; }
.previa img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.leyendo { position: absolute; inset: auto 12px 12px 12px; border-radius: 999px; padding: 8px 14px; font-size: 14px; text-align: center; background: var(--glass); backdrop-filter: blur(12px); animation: late 1.6s ease-in-out infinite; }
@keyframes late { 50% { opacity: .55; } }
.resultado { display: flex; flex-direction: column; gap: 12px; }
.resultado .items { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-it { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 6px 6px 6px 12px; font-size: 13px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); }
.chip-it button { width: 24px; height: 24px; border-radius: 50%; color: var(--muted); font-size: 16px; line-height: 1; }
.agregar { display: flex; gap: 8px; }
.agregar input { flex: 1; min-width: 0; border-radius: 999px; border: 0; padding: 10px 14px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.btn.chico { width: auto; padding: 10px 16px; font-size: 14px; }
.kcal { border-radius: 22px; padding: 14px 16px; background: rgba(255,255,255,0.8); box-shadow: inset 0 0 0 1px var(--line); }
.kcal .lbl { font-size: 12px; color: var(--muted); }
.kcal .val { font-size: 17px; margin: 3px 0 12px; letter-spacing: -0.2px; }
.kcal .val em { font-size: 26px; }
.scale { position: relative; height: 7px; border-radius: 7px; background: rgba(42,33,26,0.09); }
.scale i { position: absolute; top: 0; bottom: 0; left: 40%; width: 24%; border-radius: 7px; background: linear-gradient(90deg, var(--accent), var(--peach)); transition: left .4s, width .4s; }
.scale-l { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.acciones { display: flex; gap: 8px; }
.acciones .btn { flex: 1; }
.btn:disabled { opacity: .5; cursor: default; }
.dia { display: flex; flex-direction: column; gap: 10px; }
.comida { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,0.8); box-shadow: inset 0 0 0 1px var(--line); }
.borrar { color: var(--muted); font-size: 13px; padding: 4px 6px; }

/* Acceso rápido en el inicio */
.atajos { display: grid; grid-template-columns: 1fr; gap: 8px; }
.atajo { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 20px; padding: 14px 16px; text-decoration: none; }
.atajo b { font-weight: 500; font-size: 16px; }
.atajo small { color: var(--muted); }

/* ---------- Ejercicios ---------- */
.campo textarea, .campo select { border-radius: 14px; border: 0; padding: 13px 14px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; width: 100%; resize: vertical; }
.buscar input { width: 100%; border-radius: 999px; border: 0; padding: 12px 16px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; }
.filtros { display: flex; flex-wrap: wrap; gap: 6px; }
.filtro { text-decoration: none; border-radius: 999px; padding: 8px 14px; font-size: 14px; background: rgba(255,255,255,0.8); box-shadow: inset 0 0 0 1px var(--line); }
.filtro.on { background: var(--ink); color: #fff3e4; }
.ej-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ej-card { display: flex; gap: 12px; align-items: center; text-decoration: none; border-radius: 18px; padding: 8px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); }
.ej-mini { flex: none; width: 96px; height: 72px; border-radius: 12px; overflow: hidden; background: #e9dccb; }
.ej-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ej-info { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.ej-info small { color: var(--muted); font-size: 12px; }
.ej-info .sello { color: var(--accent); font-weight: 500; }
.video { position: relative; display: block; border-radius: 22px; overflow: hidden; text-decoration: none; background: #e9dccb; box-shadow: 0 18px 30px -18px rgba(70,40,15,0.6); }
.video img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play { position: absolute; left: 50%; top: calc(50% - 22px); width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--glass); backdrop-filter: blur(10px); }
.play::after { content: ''; position: absolute; left: 22px; top: 17px; border-left: 16px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video-pie { display: block; padding: 10px 14px; font-size: 13px; color: var(--ink); background: rgba(255,255,255,0.9); }
.bloque { display: flex; flex-direction: column; gap: 8px; }
.lista { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.ctx { display: flex; flex-direction: column; gap: 6px; }
.variacion { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); }
.variacion a { font-size: 13px; }
.var-fila { border: 0; margin: 0; padding: 12px; border-radius: 18px; background: rgba(255,255,255,0.55); display: flex; flex-direction: column; gap: 10px; }
.var-fila legend { padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; }
.check small { color: var(--muted); }

/* ---------- Semana ---------- */
.semana { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dia-card { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; text-decoration: none; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); }
.dia-card.hoy { background: var(--ink); color: #fff3e4; }
.dia-card.hoy .muted { color: rgba(255,243,228,0.7); }
.dia-nombre { font-weight: 500; display: flex; flex-direction: column; }
.dia-nombre small { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .7; }
.dia-titulo { min-width: 0; }
.dia-n { font-size: 13px; white-space: nowrap; }
.plan-item { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); }
.plan-nombre { text-decoration: none; }
.plan-campos { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.plan-item label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.plan-item input { border-radius: 12px; border: 0; padding: 10px 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; color: var(--ink); min-width: 0; width: 100%; }
.plan-botones { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-botones .btn { width: auto; flex: 1; padding: 10px 12px; }
@media (max-width: 380px) { .dia-card { grid-template-columns: 1fr; } }

/* ---------- Seguimiento y mover días ---------- */
.resumen { margin: 0; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); }
.rearmar { padding: 4px 0; }
.rearmar summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.rearmar .form { margin-top: 10px; }
.mover { margin-top: 6px; }

/* ---------- Etiquetas, momento y plan nutricional ---------- */
.momentos { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
.pregunta-momento { display: flex; flex-direction: column; gap: 8px; }
.plan-momento { padding: 12px 14px; border-radius: 16px; background: rgba(111,143,132,0.16); }
.plan-momento .lista { margin-top: 6px; font-size: 14px; }
.etiqueta-box { padding: 14px 16px; border-radius: 22px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 6px; }
.porciones { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 4px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; background: var(--ink); color: #fff3e4; }
.stepper output { min-width: 44px; text-align: center; font-weight: 500; font-size: 18px; }
.macros { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.plan-campos3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.leyendo-plan { margin: 0; text-align: center; animation: late 1.6s ease-in-out infinite; }

/* ---------- Mi cuerpo ---------- */
.cuerpo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.dato { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dato b { font-weight: 500; font-size: 18px; letter-spacing: -0.3px; }
.dato small { font-size: 12px; }
.foco { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1px var(--line); }
.foco h3 { margin: 0; font-weight: 500; font-size: 18px; }
.foco-ej { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.foco-ej a { min-width: 0; }
.foco-ej select { border-radius: 12px; border: 0; padding: 8px 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink); }
.fila-medida { display: grid; grid-template-columns: 1fr 84px 70px; gap: 8px; align-items: center; }
.fila-medida label { font-size: 14px; }
.fila-medida input { border-radius: 12px; border: 0; padding: 10px 12px; background: rgba(255,255,255,0.9); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; color: var(--ink); min-width: 0; width: 100%; }
.fila-medida input:only-of-type { grid-column: 2 / 4; }
.fila-informe { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
.fila-informe .acc { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.borrar-informe { color: var(--muted); font-size: 14px; padding: 4px 0; }
