/* Nory Fit — todo va dentro de .ndf para no chocar con Elementor ni con el tema. */
.ndf {
  --bg: #fff9fa; --surface: #ffffff; --soft: #f8e1e7; --fg: #1c1316; --muted: #7b6a70; --line: #ecdadf;
  --accent: #6b1a33; --accent-text: #6b1a33; --on-accent: #ffffff; --ok: #2f7a50;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.45;
  letter-spacing: .01em; width: 100%; min-height: 100vh; min-height: 100dvh; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; text-align: left;
}
@media (prefers-color-scheme: dark) {
  .ndf[data-ndf-theme="auto"] {
    --bg: #130e10; --surface: #1e1518; --soft: #2d1d24; --fg: #f7eceF; --muted: #aa989e; --line: #36262c;
    --accent: #7a1c36; --accent-text: #efaabd; --on-accent: #ffffff; --ok: #6fcf97; color-scheme: dark;
  }
}
.ndf[data-ndf-theme="dark"] {
  --bg: #130e10; --surface: #1e1518; --soft: #2d1d24; --fg: #f7eceF; --muted: #aa989e; --line: #36262c;
  --accent: #7a1c36; --accent-text: #efaabd; --on-accent: #ffffff; --ok: #6fcf97; color-scheme: dark;
}
.ndf *, .ndf *::before, .ndf *::after { box-sizing: border-box; }
.ndf h1, .ndf h2, .ndf h3, .ndf p { margin: 0; padding: 0; font-family: var(--font); letter-spacing: .005em; text-transform: none; }
.ndf h1, .ndf h2, .ndf h3 { font-weight: 600; color: inherit; text-wrap: balance; line-height: 1.1; }
.ndf button { all: unset; box-sizing: border-box; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.ndf button:focus-visible, .ndf input:focus-visible, .ndf summary:focus-visible, .ndf a:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.ndf a { text-decoration: none; }
.ndf .shell { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 16px; }

/* encabezado */
.ndf .top { position: sticky; top: 0; z-index: 20; background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 10px; }
.ndf .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ndf .logo { width: 42px; height: 42px; border-radius: 13px; background: #fff9fa; padding: 7px; object-fit: contain; flex: none; border: 1px solid var(--line); }
.ndf .brandtxt { font-weight: 600; font-size: 19px; color: var(--accent-text); letter-spacing: .01em; line-height: 1.1; }
.ndf .brandtxt span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.ndf .tools { display: flex; gap: 8px; flex: none; }
.ndf .pill { background: var(--soft); color: var(--accent-text); border-radius: 999px; padding: 0 14px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; letter-spacing: .05em; }
.ndf .pill.icon { width: 40px; padding: 0; }
.ndf .body { flex: 1; display: grid; gap: 16px; align-content: start; padding-bottom: 20px; }
.ndf .label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ndf .hi { font-size: 26px; font-weight: 600; letter-spacing: 0; }
.ndf .card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.ndf .btn { background: var(--accent); color: var(--on-accent); border-radius: 16px; padding: 0 20px; font-weight: 600; width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.ndf .btn.light { background: var(--soft); color: var(--accent-text); }
.ndf .btn.ghost { background: transparent; color: var(--accent-text); border: 1.5px solid var(--line); }
.ndf .btn[disabled] { opacity: .45; cursor: default; }
.ndf a.btn { color: var(--on-accent); }
.ndf a.btn.ghost { color: var(--accent-text); }

/* tarjeta principal */
.ndf .hero { background: var(--accent); color: var(--on-accent); border-radius: 26px; padding: 22px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.ndf .hero .label { color: rgba(255,255,255,.75); }
.ndf .hero h2 { font-size: 32px; }
.ndf .hero p { color: rgba(255,255,255,.85); font-size: 14px; }
.ndf .hero .btn { background: #fff; color: #6b1a33; }
.ndf .hero::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(248,225,231,.14); pointer-events: none; }
.ndf .hero > * { position: relative; z-index: 1; }

/* semana */
.ndf .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ndf .day { display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ndf .dot { width: 100%; max-width: 44px; aspect-ratio: 1; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 14px; color: var(--accent-text); }
.ndf .dot.sched { box-shadow: inset 0 0 0 2px var(--accent-text); background: transparent; }
.ndf .dot.done { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.ndf .dot.today { outline: 2px solid var(--fg); outline-offset: 2px; }
.ndf .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ndf .stat b { font-size: 36px; font-weight: 600; display: block; line-height: 1.1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.ndf .stat span { color: var(--muted); font-size: 13px; }
.ndf .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ndf .list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ndf .list > .label { grid-column: 1 / -1; }
.ndf .wk { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.ndf .wk strong { display: block; font-size: 18px; font-weight: 600; }
.ndf .wk small { color: var(--muted); font-size: 13px; }
.ndf .go { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.ndf .note { font-size: 13px; color: var(--muted); }
.ndf .linkbtn { color: var(--accent-text); font-weight: 600; font-size: 14px; }

/* menú inferior */
.ndf .tabs { position: sticky; bottom: 0; z-index: 25; background: var(--bg); border-top: 1px solid var(--line); margin: 0 -16px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ndf .tab { display: grid; justify-items: center; gap: 2px; padding: 8px; border-radius: 14px; font-size: 12px; font-weight: 600; color: var(--muted); min-height: 52px; }
.ndf .tab[aria-current="page"] { background: var(--soft); color: var(--accent-text); }
.ndf .tab svg { width: 22px; height: 22px; }

/* ajustes */
.ndf .seg { display: inline-grid; grid-auto-flow: column; background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; }
.ndf .seg button { padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--accent-text); min-height: 40px; display: inline-flex; align-items: center; }
.ndf .seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.ndf .title1 { font-size: 32px; }

/* workout */
.ndf .player { display: grid; gap: 14px; padding: 10px 0 0; align-content: start; flex: 1; }
.ndf .bar { display: flex; gap: 5px; }
.ndf .bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--soft); display: block; }
.ndf .bar i.on { background: var(--accent); }
.ndf .bar i.cur { background: var(--accent-text); }
.ndf .video { position: relative; background: #000; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 52vh; width: 100%; }
.ndf .video video { width: 100%; height: 100%; object-fit: contain; display: block; margin: 0; max-width: none; }
.ndf .ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; background: linear-gradient(160deg, var(--accent), #3a0e1c); color: #fff; }
.ndf .ph[hidden] { display: none; }
.ndf .ph .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.ndf .ph p { font-size: 14px; color: rgba(255,255,255,.85); max-width: 26ch; }
.ndf .ph label { background: #fff; color: #6b1a33; border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer; position: relative; }
.ndf .ph input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ndf .ex-title h2 { font-size: 28px; }
.ndf .target { color: var(--accent-text); font-weight: 600; margin-top: 4px; }
.ndf .cue { color: var(--muted); font-size: 14px; margin-top: 4px; }
.ndf .sets { display: grid; gap: 8px; }
.ndf .set { display: grid; grid-template-columns: 44px 1fr 1fr 52px; gap: 8px; align-items: center; }
.ndf .set.head { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ndf .set .n { font-weight: 600; color: var(--accent-text); }
.ndf .set input { width: 100%; min-width: 0; max-width: none; height: 52px; margin: 0; padding: 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 18px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; box-shadow: none; -webkit-appearance: none; appearance: none; }
.ndf .set.done input { background: var(--soft); border-color: transparent; }
.ndf .chk { width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; background: var(--surface); }
.ndf .set.done .chk { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ndf .alt { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--surface); }
.ndf .alt summary { cursor: pointer; font-weight: 600; color: var(--accent-text); list-style: none; min-height: 28px; display: flex; align-items: center; }
.ndf .alt summary::-webkit-details-marker { display: none; }
.ndf .alt p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.ndf .nav { display: grid; grid-template-columns: 56px 1fr; gap: 10px; position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); }
.ndf .nav .btn.ghost { padding: 0; }
.ndf .leave { text-align: center; color: var(--muted); font-size: 14px; min-height: 40px; display: flex; align-items: center; justify-content: center; }

/* descanso */
.ndf .sheet { position: fixed; inset: 0; z-index: 99999; background: rgba(20,8,12,.72); display: grid; align-items: end; padding: 0 12px; }
.ndf .sheet .in { max-width: 480px; width: 100%; margin: 0 auto; background: var(--surface); border-radius: 28px 28px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; justify-items: center; text-align: center; }
.ndf .ring { position: relative; width: 190px; height: 190px; }
.ndf .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ndf .ring .t { position: absolute; inset: 0; display: grid; place-content: center; font-size: 56px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-text); line-height: 1; }
.ndf .ring .t small { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.ndf .ctrl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.ndf .upnext { background: var(--soft); border-radius: 16px; padding: 12px 14px; width: 100%; text-align: left; display: grid; gap: 2px; }
.ndf .upnext b { font-size: 19px; font-weight: 600; }

/* resumen */
.ndf .sum { display: grid; gap: 16px; padding-top: 10px; }
.ndf .sum h1 { font-size: 40px; color: var(--accent-text); }
.ndf .big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ndf .pts { background: var(--accent); color: var(--on-accent); border-radius: 22px; padding: 20px; display: grid; gap: 4px; }
.ndf .pts b { font-size: 52px; font-weight: 600; line-height: 1; display: block; }

/* portada, materiales, certificado */
.ndf .thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; display: block; }
.ndf .wkl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ndf .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ndf .chip { background: var(--soft); color: var(--accent-text); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.ndf .cert { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.ndf .cert img { display: block; width: 100%; height: auto; }
.ndf .cert span { position: absolute; left: 0; right: 0; text-align: center; transform: translateY(-50%); font-size: clamp(18px, 6vw, 34px); font-weight: 600; color: #3a0e1c; }

/* banner de inicio */
.ndf .banner { display: block; position: relative; border-radius: 22px; overflow: hidden; background: var(--soft); line-height: 0; }
.ndf .banner img, .ndf .banner video { width: 100%; height: auto; display: block; margin: 0; max-width: none; }
.ndf .snd { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 18px; line-height: 1; }

/* carrito en el encabezado */
.ndf .cartbtn { position: relative; }
.ndf .cartbtn svg { width: 20px; height: 20px; }
.ndf .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; line-height: 1; }

/* recetas, hábitos, progreso, comunidad, mensajes, estrellas */
.ndf .tab { position: relative; }
.ndf .badge2 { background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; border-radius: 9px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; line-height: 1; }
.ndf .tabbadge { position: absolute; top: 4px; right: 22%; }
.ndf .chips .fch { cursor: pointer; border: 1.5px solid transparent; }
.ndf .chips .fch.on { background: var(--accent); color: var(--on-accent); }
.ndf .rgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.ndf .rcard { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px; width: 100%; }
.ndf .rcard img, .ndf .rcard .rph { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; object-fit: cover; background: var(--soft); display: block; }
.ndf .rcard strong { font-weight: 600; font-size: 16px; line-height: 1.2; }
.ndf .rcard small { color: var(--muted); font-size: 13px; }
.ndf ul.plain, .ndf ol.plain { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ndf .hab { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 17px; }
.ndf .hab:last-child { border-bottom: 0; }
.ndf .hab.on .chk { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ndf .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.ndf .chkl { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.ndf .chkl input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); margin: 2px 0 0; }
.ndf .avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.ndf .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ndf .thumbs img { height: 120px; width: auto; border-radius: 12px; border: 1px solid var(--line); }
.ndf .cmpg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ndf .cmp { width: 100%; height: auto; border-radius: 14px; display: block; }
.ndf .post.pin { border-color: var(--accent-text); }
.ndf .rep { margin-top: 10px; padding: 10px 12px; background: var(--soft); border-radius: 14px; }
.ndf .rep p { margin-top: 2px; }
.ndf .thread { display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.ndf .bub { background: var(--soft); border-radius: 16px 16px 16px 4px; padding: 10px 14px; max-width: 86%; justify-self: end; }
.ndf .bub.staff { background: var(--accent); color: var(--on-accent); border-radius: 16px 16px 4px 16px; justify-self: start; }
.ndf .bub small { opacity: .75; }
.ndf .stars { display: inline-flex; gap: 2px; }
.ndf .star { font-size: 26px; line-height: 1; color: var(--line); padding: 2px; }
.ndf .star.on { color: #e0a82e; }
.ndf .shell.app .rep .stars .star { font-size: 14px; }

/* formularios y progreso */
.ndf .lbl { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ndf .fld { width: 100%; height: 48px; margin: 0; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 16px; box-shadow: none; -webkit-appearance: none; appearance: none; }
.ndf .pbar { height: 10px; border-radius: 6px; background: var(--soft); overflow: hidden; margin-top: 10px; }
.ndf .pbar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }

/* formulario de inicio de sesión */
.ndf .ndf-gate form { display: grid; gap: 12px; width: 100%; text-align: left; margin: 0; }
.ndf .ndf-gate form p { margin: 0; display: grid; gap: 4px; }
.ndf .ndf-gate form label { font-size: 13px; font-weight: 600; color: var(--muted); }
.ndf .ndf-gate form input[type="text"], .ndf .ndf-gate form input[type="password"] { width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 16px; box-shadow: none; }
.ndf .ndf-gate form .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ndf .ndf-gate form input[type="submit"] { width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer; }
.ndf .ndf-links { font-size: 14px; color: var(--muted); }
.ndf .ndf-links a { color: var(--accent-text); font-weight: 600; }

/* diseño según el ancho disponible (teléfono, tableta, computador) */
.ndf .fit { container-type: inline-size; container-name: ndf; width: 100%; }
.ndf .cols, .ndf .colA, .ndf .colB { display: contents; }

@container ndf (min-width: 640px) {
  .ndf .shell.app { max-width: 860px; padding: 0 24px; }
  .ndf .shell:not(.app) { max-width: 760px; }
  .ndf .cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .ndf .colA, .ndf .colB { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .ndf .shell.app .banner { max-height: 300px; }
  .ndf .shell.app .banner img, .ndf .shell.app .banner video { max-height: 300px; object-fit: cover; }
  .ndf .video { max-height: 56vh; }
  .ndf .v-plan, .ndf .v-day, .ndf .v-summary { max-width: 720px; width: 100%; margin: 0 auto; }
}
@container ndf (min-width: 900px) {
  .ndf .shell.app { max-width: 1180px; display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "top top" "nav main"; column-gap: 32px; align-content: start; padding: 0 32px; }
  .ndf .shell.app > .top { grid-area: top; padding: 20px 0 14px; }
  .ndf .shell.app > .tabs { grid-area: nav; position: sticky; top: 92px; bottom: auto; align-self: start; grid-template-columns: 1fr; gap: 6px; border-top: 0; background: transparent; margin: 0; padding: 0; }
  .ndf .shell.app > .tabs .tab { grid-auto-flow: column; justify-content: start; justify-items: start; align-items: center; gap: 12px; padding: 0 14px; min-height: 48px; font-size: 15px; }
  .ndf .shell.app > .body { grid-area: main; gap: 20px; padding-bottom: 48px; }
  .ndf .cols { gap: 22px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .ndf .colA, .ndf .colB { gap: 22px; }
  .ndf .v-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ndf .v-settings > h1, .ndf .v-settings > .note, .ndf .v-settings > .btn { grid-column: 1 / -1; }
  .ndf .sheet .in { border-radius: 28px; margin-bottom: 8vh; }
}
@container ndf (min-width: 1300px) {
  .ndf .shell.app { max-width: 1360px; }
  .ndf .cols { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
}

/* pantalla de acceso */
.ndf .ndf-gate { min-height: 70vh; display: grid; place-items: center; padding: 24px 16px; }
.ndf .ndf-gate-card { max-width: 420px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 28px 24px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.ndf .ndf-gate-logo { width: 72px; height: 72px; object-fit: contain; background: #fff9fa; border-radius: 20px; padding: 10px; border: 1px solid var(--line); }
.ndf .ndf-gate h2 { font-size: 28px; }
.ndf .ndf-gate p { color: var(--muted); }
.ndf .ndf-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.ndf .ndf-btn.ndf-ghost { background: transparent; color: var(--accent-text); border: 1.5px solid var(--line); }

@media (prefers-reduced-motion: reduce) { .ndf * { transition: none !important; animation: none !important; } }

/* ======================================================================
   v0.9 · tipografías de Nory (Catchye para títulos, Aileron Light para texto, Instrument Sans para botones)
   ====================================================================== */
.ndf {
  --font: "NDF Aileron", "Aileron", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Instrument Sans", "NDF Aileron", "Aileron", system-ui, sans-serif;
  --font-title: "NDF Catchye", "Catchye", Georgia, "Times New Roman", serif;
  font-family: var(--font); font-weight: 300; font-size: 17px; line-height: 1.55; letter-spacing: .005em; font-synthesis: none;
}
.ndf h1, .ndf h2, .ndf h3, .ndf .title1, .ndf .hi, .ndf .brandtxt, .ndf .ttl, .ndf .h3, .ndf .stat b, .ndf .goals b, .ndf .pts b, .ndf .ring .t, .ndf .ex-title h2, .ndf .hero h2, .ndf .upnext b, .ndf .pbody strong, .ndf .fybody strong, .ndf .tile strong, .ndf .wk strong, .ndf .rcard strong {
  font-family: var(--font-title); font-weight: 400; letter-spacing: .01em;
}
.ndf .btn, .ndf .pill, .ndf .tab, .ndf .label, .ndf .chip, .ndf .seg button, .ndf .linkbtn, .ndf .badge2, .ndf .lbl, .ndf .fld, .ndf .eyebrow, .ndf .tagsale, .ndf .tstat, .ndf .stt, .ndf .kind, .ndf .hchip, .ndf .target, .ndf .set.head, .ndf .set input {
  font-family: var(--font-ui); font-weight: 500;
}
.ndf .title1 { font-size: 40px; line-height: 1.05; }
.ndf .h3 { font-size: 22px; }
.ndf .ttl { font-size: 22px; line-height: 1.15; }
.ndf .note, .ndf .cue { font-size: 15px; }
.ndf .label { font-size: 11px; letter-spacing: .16em; }
.ndf .brandtxt { font-size: 22px; letter-spacing: .02em; }
.ndf .brandtxt span { font-family: var(--font-ui); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; }

/* inicio */
.ndf .homehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 6px 0 2px; }
.ndf .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ndf .hi { font-size: 46px; line-height: 1.0; margin: 8px 0 6px; color: var(--accent-text); }
.ndf .greet { color: var(--muted); font-size: 16px; }
.ndf .avbtn { border-radius: 50%; flex: none; }
.ndf .av { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--accent-text); font-family: var(--font-title); font-size: 18px; object-fit: cover; flex: none; border: 1.5px solid var(--line); }
.ndf .av.lg { width: 68px; height: 68px; font-size: 26px; }
.ndf .av.xl { width: 92px; height: 92px; font-size: 34px; }
.ndf .hero { border-radius: 28px; padding: 26px 24px; gap: 12px; }
.ndf .hero::after { display: none; }
.ndf .hero h2 { font-size: 38px; line-height: 1.02; }
.ndf .hero p { font-size: 16px; }
.ndf .hero .label { letter-spacing: .18em; }
.ndf .bigcta { background: var(--accent); color: var(--on-accent); border-radius: 28px; padding: 26px 24px; display: grid; gap: 10px; }
.ndf .bigcta h3 { font-size: 30px; line-height: 1.05; color: inherit; }
.ndf .bigcta p { color: rgba(255,255,255,.86); font-size: 16px; }
.ndf .bigcta .btn { background: #fff; color: #6b1a33; margin-top: 4px; }
.ndf .card { border-radius: 24px; padding: 20px; }
.ndf .card.photodue { border-color: var(--accent-text); }
.ndf .stat b { font-size: 46px; line-height: 1; font-weight: 400; }
.ndf .goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.ndf .goals b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 32px; line-height: 1; color: var(--accent-text); }
.ndf .goals span { font-size: 13px; color: var(--muted); }
.ndf .hchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ndf .hchip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px 0 12px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--fg); font-size: 14px; }
.ndf .hchip svg { flex: none; color: var(--accent-text); }
.ndf .hchip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ndf .hchip.on svg { color: var(--on-accent); }
.ndf .dotic { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; margin: 0 7px; }

/* menú inferior solo con texto */
.ndf .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; letter-spacing: .02em; min-height: 50px; border-radius: 12px; color: var(--muted); }
.ndf .tab[aria-current="page"] { background: transparent; color: var(--accent-text); }
.ndf .tab[aria-current="page"] span { border-bottom: 2px solid var(--accent-text); padding-bottom: 3px; }
.ndf .tabbadge { right: 14%; top: 2px; }

/* secciones y tarjetas con portada */
.ndf .sechead { display: grid; gap: 4px; }
.ndf .sechead h2 { font-size: 30px; line-height: 1.05; }
.ndf .sechead p { color: var(--muted); font-size: 15px; }
.ndf .sl { margin: 8px 0 12px; }
.ndf .hrow { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -2px; }
.ndf .fy { flex: 0 0 min(72%, 250px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; text-align: left; color: var(--fg); }
.ndf .coverwrap { position: relative; display: block; }
.ndf .cover { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; background-size: cover; background-position: center; background-color: var(--soft); }
.ndf .cover.ph2, .ndf .exth.ph2 { display: grid; place-items: center; background: var(--soft); }
.ndf .cover.ph2 i, .ndf .exth.ph2 i { font-style: normal; font-family: var(--font-title); font-size: 64px; line-height: 1; color: var(--accent-text); opacity: .85; }
.ndf .exth.ph2 i { font-size: 24px; }
.ndf .tagsale { position: absolute; left: 12px; top: 12px; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 5px 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.ndf .tagsale.lockt { background: rgba(20, 8, 12, .72); }
.ndf .fybody, .ndf .pbody { display: grid; gap: 3px; }
.ndf .fybody strong, .ndf .pbody strong { font-size: 21px; line-height: 1.1; }
.ndf .kind, .ndf .pbody small, .ndf .fybody small { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.ndf .fyprice { font-family: var(--font-ui); font-weight: 500; font-size: 15px; color: var(--accent-text); }
.ndf .fyprice b { font-weight: 600; }
.ndf .pgrid { display: grid; gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.ndf .pcard { display: flex; flex-direction: column; gap: 10px; text-align: left; color: var(--fg); width: 100%; }
.ndf .pcard.locked { opacity: .96; }
.ndf .stt { color: var(--accent-text); font-size: 12px; letter-spacing: .04em; }
.ndf .lk { display: inline-flex; align-items: center; gap: 5px; }
.ndf .lkic { vertical-align: -2px; margin-right: 4px; }
.ndf .rate { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.ndf .rate b { color: var(--fg); font-weight: 600; }
.ndf .rate em { font-style: normal; }
.ndf .mini i { font-style: normal; font-size: 13px; color: var(--line); letter-spacing: 1px; }
.ndf .mini i.on { color: #c9962a; }

/* pantalla Yo */
.ndf .mehead { display: flex; align-items: center; gap: 16px; padding: 4px 0 6px; }
.ndf .tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ndf .tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; min-height: 132px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; color: var(--fg); text-decoration: none; position: relative; }
.ndf .tile strong { font-size: 22px; line-height: 1.08; }
.ndf .tile small { font-size: 14px; color: var(--muted); line-height: 1.35; }
.ndf .tile .tstat { margin-top: auto; color: var(--accent-text); font-size: 13px; }
.ndf .tile .badge2 { position: absolute; top: 14px; right: 14px; }

/* lista de ejercicios del workout */
.ndf .exlist { list-style: none; margin: 0; padding: 0; display: grid; }
.ndf .exlist li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ndf .exlist li:last-child { border-bottom: 0; }
.ndf .exlist strong { display: block; font-size: 19px; line-height: 1.1; }
.ndf .exlist small { color: var(--muted); font-size: 13px; }
.ndf .exth { width: 68px; height: 68px; border-radius: 16px; overflow: hidden; background: var(--soft) center / cover; flex: none; display: block; }
.ndf .exth video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* hábitos con icono */
.ndf .hab { gap: 14px; padding: 14px 0; font-size: 18px; }
.ndf .hab .hico { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.ndf .hab .hlab { flex: 1; text-align: left; }
.ndf .hab.on .hico { background: var(--accent); color: var(--on-accent); }

/* botones y campos */
.ndf .btn { border-radius: 18px; min-height: 56px; font-size: 16px; letter-spacing: .02em; }
.ndf .pill { font-size: 13px; letter-spacing: .06em; }
.ndf .fld { font-size: 16px; font-weight: 400; }
.ndf .banner { border-radius: 26px; }
.ndf .snd svg { display: block; }
@container ndf (min-width: 640px) {
  .ndf .hi { font-size: 56px; }
  .ndf .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ndf .fy { flex-basis: 260px; }
  .ndf .pgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* evita que filas con desplazamiento ensanchen la página */
.ndf .body { grid-template-columns: minmax(0, 1fr); }
.ndf .body > *, .ndf .colA > *, .ndf .colB > *, .ndf .shell > * { min-width: 0; }
.ndf .hrow { max-width: 100%; }
@container ndf (min-width: 900px) { .ndf .v-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* títulos un poco más gruesos (Catchye es muy delgada) */
.ndf h1, .ndf h2, .ndf h3, .ndf .title1, .ndf .hi, .ndf .brandtxt, .ndf .ttl, .ndf .h3, .ndf .stat b, .ndf .goals b, .ndf .pts b, .ndf .ring .t, .ndf .ex-title h2, .ndf .hero h2, .ndf .upnext b,
.ndf .pbody strong, .ndf .fybody strong, .ndf .tile strong, .ndf .wk strong, .ndf .rcard strong, .ndf .exlist strong, .ndf .av, .ndf .cover.ph2 i, .ndf .exth.ph2 i, .ndf .bigcta h3, .ndf .sechead h2 {
  -webkit-text-stroke: .024em currentColor; paint-order: stroke fill;
}
.ndf .aboutl { font-family: var(--font-ui); font-size: 13px; font-weight: 500; }

/* ======================================================================
   v0.10 · encabezado en vino tinto, más contraste, menú con iconos, puntos y niveles
   ====================================================================== */
.ndf { --bg: #f3e8eb; --surface: #ffffff; --line: #e0cbd1; --shadow: 0 1px 2px rgba(80, 25, 40, .07), 0 14px 30px -14px rgba(80, 25, 40, .30); }
@media (prefers-color-scheme: dark) { .ndf[data-ndf-theme="auto"] { --bg: #0c0708; --surface: #261c21; --line: #44323c; --shadow: 0 0 0 transparent; } }
.ndf[data-ndf-theme="dark"] { --bg: #0c0708; --surface: #261c21; --line: #44323c; --shadow: 0 0 0 transparent; }
.ndf .card, .ndf .tile, .ndf .rcard, .ndf .slimcta, .ndf .post, .ndf .lvrow { box-shadow: var(--shadow); }
.ndf .shell { --pad: 16px; }
@container ndf (min-width: 640px) { .ndf .shell.app { --pad: 24px; } }
@container ndf (min-width: 900px) { .ndf .shell.app { --pad: 32px; } .ndf .shell.app > .top { padding: 20px var(--pad); } }

/* encabezado */
.ndf .top { background: var(--accent); color: #fff; margin: 0 calc(var(--pad) * -1); padding: 14px var(--pad) 16px; border-radius: 0 0 26px 26px; box-shadow: 0 12px 26px -16px rgba(60, 10, 25, .75); }
.ndf .top .brandtxt { color: #fff; }
.ndf .top .brandtxt span { color: rgba(255, 255, 255, .78); }
.ndf .top .pill { background: rgba(255, 255, 255, .17); color: #fff; }
.ndf .top .badge { background: #fff; color: var(--accent); }
.ndf .body { padding-top: 18px; }

/* menú inferior con iconos */
.ndf .tabs { grid-template-columns: repeat(6, 1fr); background: var(--surface); border-top: 0; box-shadow: 0 -10px 26px -14px rgba(60, 20, 30, .40); gap: 2px; }
.ndf .tab { gap: 3px; font-size: 11px; letter-spacing: .01em; min-height: 54px; padding: 6px 2px; }
.ndf .tab svg { width: 22px; height: 22px; stroke-width: 1.6; }
.ndf .tab[aria-current="page"] span { border-bottom: 0; padding-bottom: 0; }
.ndf .tab[aria-current="page"] { color: var(--accent-text); }
.ndf .tab[aria-current="page"]::after { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent-text); margin-top: 1px; }
.ndf .tabbadge { right: 12%; }
@container ndf (min-width: 900px) { .ndf .shell.app > .tabs { grid-template-columns: 1fr; box-shadow: none; background: transparent; } .ndf .tab { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; padding: 0 14px; } .ndf .tab[aria-current="page"]::after { display: none; } .ndf .tab[aria-current="page"] { background: var(--soft); } }

/* inicio */
.ndf .meblock { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.ndf .ptspill { display: inline-flex; flex-direction: column; align-items: center; background: var(--surface); color: var(--accent-text); border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px 7px; font-family: var(--font-ui); font-weight: 500; font-size: 12px; box-shadow: var(--shadow); line-height: 1.1; }
.ndf .ptspill b { font-family: var(--font-title); font-weight: 400; font-size: 22px; letter-spacing: .01em; }
.ndf .ptspill small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.ndf .calcard { padding-top: 16px; }
.ndf .btn.sm { min-height: 40px; padding: 0 18px; border-radius: 14px; font-size: 14px; width: auto; display: inline-flex; flex: none; }
.ndf .slimcta { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 20px; padding: 14px 14px 14px 16px; }
.ndf .slimcta .ttl { font-size: 19px; }
.ndf .slimcta small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; margin-top: 2px; }
.ndf .hchips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ndf .hchip { width: 100%; justify-content: flex-start; text-align: left; padding: 10px 12px; min-height: 52px; line-height: 1.15; border-radius: 18px; }
.ndf .progrow { display: grid; grid-template-columns: 64px 1fr; gap: 6px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.ndf .progrow:first-of-type { border-top: 0; padding-top: 10px; }
.ndf .progrow .pgi small { display: block; color: var(--muted); font-size: 13px; }
.ndf .pbtns { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.ndf .cover.sm { width: 64px; height: 64px; aspect-ratio: 1; border-radius: 16px; }
.ndf .cover.ph2.sm i { font-size: 26px; }
.ndf .grows { display: grid; gap: 14px; margin-top: 14px; }
.ndf .grow { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.ndf .gl strong { display: block; font-size: 19px; line-height: 1.1; }
.ndf .gl small { color: var(--muted); font-size: 13px; }
.ndf .gi { display: flex; align-items: center; gap: 6px; }
.ndf .gi input { width: 92px; height: 44px; margin: 0; padding: 0 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); text-align: center; font-family: var(--font-ui); font-size: 16px; font-weight: 500; box-shadow: none; }
.ndf .gi span { font-size: 12px; color: var(--muted); width: 28px; }
.ndf .gbar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.ndf .gbar i { display: block; height: 100%; background: var(--accent-text); opacity: .55; border-radius: 4px; }
.ndf .grow.ok .gbar i { background: var(--ok); opacity: 1; }
.ndf .grow.ok .gl strong { color: var(--ok); }
.ndf .streakrow { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.ndf .streakrow b { font-family: var(--font-title); font-weight: 400; font-size: 36px; line-height: 1; color: var(--accent-text); }
.ndf .streakrow span { color: var(--muted); font-size: 14px; }

/* pantalla de puntos y niveles */
.ndf .bigcta.lvl { text-align: left; }
.ndf .bigpts { font-family: var(--font-title); font-size: 68px; line-height: 1; letter-spacing: .01em; }
.ndf .pbar.light { background: rgba(255, 255, 255, .25); }
.ndf .pbar.light i { background: #fff; }
.ndf .ladder { display: grid; gap: 10px; }
.ndf .lvrow { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.ndf .lvdot { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-family: var(--font-ui); font-size: 14px; color: var(--accent-text); flex: none; }
.ndf .lvrow.done .lvdot { background: var(--accent); color: #fff; }
.ndf .lvrow.now { border-color: var(--accent-text); }
.ndf .lvrow:not(.done):not(.now) { opacity: .78; }
.ndf .lvrow strong { display: block; font-size: 20px; line-height: 1.1; }
.ndf .lvrow small { color: var(--muted); font-size: 13px; }
.ndf .rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ndf .rules li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; font-size: 15px; }
.ndf .rules li:last-child { border-bottom: 0; padding-bottom: 0; }
.ndf .rules b { font-family: var(--font-ui); font-weight: 500; color: var(--ok); white-space: nowrap; }
.ndf .rules b.neg { color: #b3261e; }

/* v0.11 */
.ndf .giftcard{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--soft);border-color:var(--accent)}
.ndf .giftcard .btn{width:auto;white-space:nowrap}
.ndf .evcard{border-left:4px solid var(--accent)}
.ndf .gift{display:grid;gap:10px}
.ndf .gift .gmsg{margin:0;font-size:16px;line-height:1.5}
.ndf .codebox{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--soft);border:1px dashed var(--accent);border-radius:14px;padding:10px 12px}
.ndf .codebox small{flex-basis:100%;color:var(--muted)}
.ndf .codebox b{font-family:"Instrument Sans",system-ui,sans-serif;letter-spacing:.06em;font-size:18px;overflow-wrap:anywhere}
.ndf .mvl{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:13px;color:var(--muted)}
.ndf .mvsel{height:34px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;font-size:14px;padding:0 8px}
.ndf .shopbtn{margin-top:14px;text-align:center;text-decoration:none}
.ndf .gdgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.ndf .gd{display:grid;gap:6px;align-content:start;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:10px}
.ndf .gd img,.ndf .gd .rph{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;background:var(--soft)}
.ndf .gd small{color:var(--muted)}
.ndf .gd .pill{justify-self:start;text-decoration:none}
.ndf .eqc input{margin-right:4px}
.ndf .legal{display:grid;gap:6px;margin-top:18px;font-size:13px}
.ndf .legal a{color:var(--muted)}
/* acceso: pestañas Entrar / Crear cuenta */
.ndf .ndf-tabs{display:flex;gap:6px;background:var(--soft);padding:4px;border-radius:14px;width:100%}
.ndf .ndf-tabs button{flex:1;border:0;background:transparent;border-radius:11px;min-height:40px;font:inherit;font-weight:600;color:var(--muted);cursor:pointer}
.ndf .ndf-tabs button[aria-selected="true"]{background:var(--accent);color:var(--on-accent)}
.ndf .ndf-gate [data-panel]{width:100%}
.ndf .ndf-gate [hidden]{display:none!important}
.ndf .ndf-regform{display:grid;gap:12px;width:100%;text-align:left;margin:0}
.ndf .ndf-regform p{margin:0;display:grid;gap:4px}
.ndf .ndf-regform label{font-size:13px;font-weight:600;color:var(--muted)}
.ndf .ndf-regform input[type=text],.ndf .ndf-regform input[type=email],.ndf .ndf-regform input[type=password]{width:100%;height:50px;padding:0 14px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;font-size:16px;box-shadow:none}
.ndf .ndf-regform .ndf-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ndf .ndf-regform .ndf-terms label{display:flex;gap:10px;align-items:flex-start;font-weight:500;line-height:1.4}
.ndf .ndf-regform .ndf-terms a{color:var(--accent-text)}
.ndf .ndf-regform .ndf-btn{width:100%;min-height:54px;border:0;border-radius:16px;background:var(--accent);color:var(--on-accent);font:inherit;font-weight:600;cursor:pointer}
.ndf .ndf-regform .ndf-msg{color:var(--muted);font-size:14px;min-height:1em}

/* v0.12: estilo del mockup */
.ndf .top .logobox{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#fff;flex:none;box-shadow:0 4px 12px -6px rgba(0,0,0,.4)}
.ndf .top .logobox .logo{width:42px;height:42px;object-fit:contain;border-radius:0}
.ndf .top .brand{display:flex;align-items:center;gap:12px;min-width:0}
.ndf .top .tools{display:flex;align-items:center;gap:8px}
.ndf .tseg,.ndf .lseg{display:inline-flex;background:rgba(255,255,255,.16);border-radius:999px;padding:3px;gap:2px}
.ndf .tseg button,.ndf .lseg button{border:0;background:transparent;color:#fff;border-radius:999px;min-height:34px;min-width:34px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-ui);font-weight:600;font-size:13px;cursor:pointer}
.ndf .tseg button svg{width:18px;height:18px}
.ndf .tseg button[aria-pressed="true"],.ndf .lseg button[aria-pressed="true"]{background:#fff;color:var(--accent)}
.ndf .lseg .lf{display:none}
.ndf .cartc{position:relative;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1.5px solid rgba(255,255,255,.7);color:#fff;text-decoration:none}
.ndf .cartc svg{width:22px;height:22px}
.ndf .cartc .badge{position:absolute;top:-4px;right:-4px}
@media (max-width:420px){.ndf .top .logobox{width:46px;height:46px;border-radius:13px}.ndf .top .logobox .logo{width:34px;height:34px}.ndf .top .brand{gap:8px}.ndf .top .brandtxt{font-size:17px}.ndf .top .brandtxt span{font-size:9px}.ndf .top .tools{gap:5px}.ndf .tseg button,.ndf .lseg button{min-width:28px;min-height:30px;padding:0 6px;font-size:12px}.ndf .tseg button svg{width:16px;height:16px}.ndf .cartc{width:36px;height:36px}.ndf .cartc svg{width:18px}}
@container ndf (min-width:640px){.ndf .lseg .lf{display:inline}.ndf .lseg .ls{display:none}}
/* inicio */
.ndf .homehead{display:grid;gap:14px;align-items:center;padding:4px 0 0}
.ndf .hwho{display:flex;align-items:center;gap:16px;min-width:0}
.ndf .avring .av{width:92px;height:92px;box-shadow:0 0 0 4px var(--soft),0 0 0 5px var(--line)}
.ndf .avring .av img,.ndf img.av{object-fit:cover}
.ndf .hwho .hi{font-size:34px;margin:4px 0 0}
@container ndf (min-width:640px){.ndf .hwho .hi{font-size:44px}}
@container ndf (min-width:900px){.ndf .homehead{grid-template-columns:auto minmax(0,1fr);gap:28px}.ndf .avring .av{width:104px;height:104px}}
.ndf .lvltop{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:0;align-items:center;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:14px 16px;box-shadow:0 8px 22px -16px rgba(80,20,40,.5);cursor:pointer;width:100%;font:inherit;color:inherit}
.ndf .lvl1{display:grid;gap:10px;padding-right:14px}
.ndf .lvlname{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.ndf .lvlname .ttl{font-size:22px;color:var(--accent-text);line-height:1.05}
.ndf .lvlname small{color:var(--muted);font-size:12px;font-family:var(--font-ui)}
.ndf .lvltop .pbar{height:10px}
.ndf .lnext{margin:0;border-left:1px solid var(--line);padding-left:14px;font-size:14px;line-height:1.35;color:var(--muted)}
.ndf .lnext b{color:var(--fg);font-weight:700}
/* semana en tarjetas */
.ndf .week{gap:6px}
.ndf .day{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 0 8px;gap:2px;box-shadow:0 4px 12px -10px rgba(80,20,40,.5)}
.ndf .day .dot{width:auto;max-width:none;aspect-ratio:auto;background:none;box-shadow:none;outline:0;font-family:var(--font-title);font-size:24px;color:var(--fg);border-radius:0}
.ndf .day.sched{background:var(--soft)}
.ndf .day.sched .dot{color:var(--accent-text)}
.ndf .day.done{background:var(--soft)}
.ndf .day.done .dck{position:absolute;top:3px;right:5px;font-style:normal;font-size:11px;color:var(--ok);font-weight:700}
.ndf .day.today{background:var(--accent);border-color:var(--accent);color:#fff}
.ndf .day.today span{color:#fff}
.ndf .day.today::after{content:"";width:20px;height:3px;border-radius:2px;background:#fff;margin:2px auto 0}
/* en progreso */
.ndf .pgbar{display:flex;align-items:center;gap:10px;margin-top:6px}
.ndf .pgbar .pbar{flex:1;height:8px}
.ndf .pgbar b{font-size:13px;color:var(--accent-text);font-weight:600}
.ndf .pbtns{display:grid;justify-items:center;gap:4px}
.ndf .playc{width:48px;height:48px;border-radius:50%;border:2px solid var(--accent-text);background:transparent;color:var(--accent-text);display:grid;place-items:center;cursor:pointer}
.ndf .playc svg{width:18px;height:18px}
/* hábitos con círculo */
.ndf .hchip{justify-content:flex-start}
.ndf .hchip .hck{margin-left:auto;width:24px;height:24px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;font-style:normal;font-size:13px;color:#fff;flex:none}
.ndf .hchip.on .hck{background:var(--accent);border-color:var(--accent)}
/* héroe */
.ndf .hero .btn{width:100%}
@container ndf (min-width:640px){.ndf .hero{min-height:230px;align-content:end}.ndf .hero .btn{width:auto;justify-self:start;padding:0 26px}}
/* burbuja de comunidad */
.ndf .fab{position:fixed;left:14px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:40;width:66px;height:66px;border-radius:50%;border:0;background:var(--accent);color:#fff;display:grid;place-items:center;align-content:center;gap:1px;padding:0;box-shadow:0 10px 24px -8px rgba(60,10,25,.7);cursor:pointer}
.ndf .fab svg{width:24px;height:24px}
.ndf .fab span{font-family:var(--font-ui);font-size:9.5px;font-weight:600;letter-spacing:.02em}
@media (min-width:900px){.ndf .fab{left:28px;bottom:28px;width:72px;height:72px}}
/* menú: 5 pestañas y panel claro en pantalla grande */
.ndf .tabs{grid-template-columns:repeat(5,1fr)}
@container ndf (min-width:900px){
  .ndf .shell.app > .tabs{grid-template-columns:1fr}
  .ndf .shell.app > .tabs .tab{border-radius:16px}
  .ndf .shell.app > .body{background:var(--surface);border:1px solid var(--line);border-radius:30px;padding:26px 28px 40px;box-shadow:0 20px 40px -30px rgba(80,20,40,.45)}
  .ndf .shell.app > .body .card,.ndf .shell.app > .body .hchip{background:var(--bg)}
}
.ndf .gl strong{display:block}.ndf .gl strong::first-letter{text-transform:uppercase}
.ndf .day.today .dot,.ndf .day.today.sched .dot,.ndf .day.today.done .dot{color:#fff}
@container ndf (min-width:900px){.ndf .cols{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}
@container ndf (min-width:1300px){.ndf .cols{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}}

/* v0.12.1 */
.ndf .logo.plain{background:none;border:0;padding:0;width:auto;height:46px;border-radius:0;max-width:150px}
.ndf .top{background:var(--grad,var(--accent))}
.ndf .btn:not(.light):not(.ghost):not(.sm){background-image:var(--grad,none)}
.ndf .hero .btn.btn,.ndf .giftcard .btn.btn{background-image:none}
.ndf .fab,.ndf .day.today,.ndf .playc.x{background-image:var(--grad,none)}
.ndf .bigpillw{display:flex;justify-content:center}
.ndf .bigpill{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:560px;min-height:58px;border:0;border-radius:999px;background:var(--accent);background-image:var(--grad,none);color:#fff;font-family:var(--font-ui);font-weight:600;font-size:17px;cursor:pointer;box-shadow:0 12px 24px -14px rgba(60,10,25,.8)}
.ndf .bigpill svg{width:24px;height:24px}
/* chat en la burbuja */
.ndf .chatpanel{position:fixed;z-index:60;left:0;right:0;bottom:0;top:9%;display:flex;flex-direction:column;background:var(--bg);border-radius:26px 26px 0 0;box-shadow:0 -18px 40px -16px rgba(40,8,20,.55);overflow:hidden}
.ndf .chathead{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:var(--grad,var(--accent));color:#fff}
.ndf .chathead .ttl{font-size:22px;color:#fff}
.ndf .chatx{width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.2);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.ndf .chatbody{overflow-y:auto;padding:14px 16px 24px;display:grid;gap:12px;align-content:start}
@media (min-width:700px){.ndf .chatpanel{left:24px;right:auto;bottom:24px;top:auto;width:400px;height:min(620px,80vh);border-radius:24px}}
.ndf .hero .btn.btn,.ndf .giftcard .btn.btn{background-image:none!important}
