/* ==========================================================================
   Soma · estilo editorial: fotografía cálida, tipografía fina, vidrio suave.
   ========================================================================== */
:root {
  --bg: #F6EEEC;
  --bg-2: #EDE1DE;
  --card: rgba(255, 252, 250, .82);
  --card-solid: #FFFCFA;
  --ink: #161213;
  --ink-2: #5F5552;
  --ink-3: #9C918B;
  --line: rgba(22, 18, 19, .09);
  --line-strong: rgba(22, 18, 19, .14);
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);

  --fuerza: #E5799A;
  --carrera: #F07B4F;
  --movilidad: #9C8CE8;
  --andar: #EBDCD3;
  --correr: #F07B4F;
  --mint: #7CC6A4;
  --butter: #F2C46B;
  --grad-warm: linear-gradient(135deg, #FF9A8B 0%, #F56A97 55%, #B78CF0 100%);
  --grad-soft: linear-gradient(135deg, #FFE3D8 0%, #FBD3E3 50%, #E3DBFF 100%);

  /* Fases del ciclo */
  --c-menstrual: #E0476B;
  --c-folicular: #6FBF8E;
  --c-ovulatoria: #F29A4A;
  --c-lutea: #A48BE0;
  --c-premenstrual: #E58BB5;

  --r-xl: 34px; --r-lg: 26px; --r-md: 20px; --r-sm: 14px;
  --gutter: 20px;
  --col: 520px;
  --tab-h: 64px;
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-ui: "Geist", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink);
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(255, 186, 170, .45), transparent 70%),
    radial-gradient(55% 35% at 0% 45%, rgba(214, 196, 255, .42), transparent 70%),
    radial-gradient(60% 40% at 100% 90%, rgba(255, 196, 222, .4), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  font-family: var(--f-ui); font-size: 15px; line-height: 1.45; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; text-align: inherit; }
button:disabled { opacity: .3; cursor: default; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fatal { padding: 40px var(--gutter); }

.app { max-width: var(--col); margin: 0 auto; min-height: 100dvh; outline: none; }
body.has-tabs .app { padding-bottom: calc(var(--tab-h) + 34px + env(safe-area-inset-bottom)); }

/* ---------- Tipografía ---------- */
.kicker { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; line-height: .92; }
.display em, .page-title em { font-style: italic; }
.num { font-weight: 200; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 99px; font-weight: 500; font-size: 15px; transition: transform .15s var(--ease); text-align: center;
}
.btn:active { transform: scale(.98); }
.btn.wide { width: 100%; }
.btn.primary { background: var(--ink); color: #F7F2EE; }
.btn.grad { background: var(--grad-warm); color: #fff; box-shadow: 0 14px 30px -16px rgba(230, 80, 120, .8); }
.btn.light { background: #FBF8F5; color: var(--ink); }
.btn.ghost { box-shadow: inset 0 0 0 1px var(--line); }
.btn.cta { justify-content: space-between; padding: 0 6px 0 24px; min-height: 60px; font-size: 16px; }
.btn.cta .go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.btn.primary.cta .go { background: #FBF8F5; color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.icon-btn.sm { width: 36px; height: 36px; box-shadow: inset 0 0 0 1px var(--line); }
.icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink);
  background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) + 12px) var(--gutter) 0; max-width: var(--col); margin: 0 auto; }

/* ---------- Barra de pestañas flotante ---------- */
.tabbar {
  position: fixed; z-index: 20; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px); height: var(--tab-h); display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px; border-radius: 99px; background: rgba(250, 247, 244, .74);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(22, 18, 19, .06), 0 18px 40px -18px rgba(40, 20, 15, .35);
}
body:not(.has-tabs) .tabbar { display: none; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 99px; color: var(--ink-3); font-size: 10px; font-weight: 500; letter-spacing: .01em; min-width: 0; }
.tabbar .i svg { width: 21px; height: 21px; }
.tabbar a[aria-current="page"] { background: var(--ink); color: #F7F2EE; }

/* ---------- HOY ---------- */
.hero {
  position: relative; min-height: 74dvh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) 22px; color: #FFF8F3; border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; isolation: isolate;
}
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 10, 9, .3) 0%, rgba(15, 10, 9, 0) 24%, rgba(15, 10, 9, 0) 40%, rgba(15, 10, 9, .66) 100%); }
.hero .kicker { color: rgba(255, 248, 243, .85); }
.hero-title { font-size: clamp(64px, 19vw, 86px); margin-top: 10px; }
.hero-sub { margin-top: 10px; font-size: 15px; color: rgba(255, 248, 243, .86); max-width: 32ch; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 16px; }
.fact {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 13px; border-radius: 99px;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-size: 12.5px; color: #FFF8F3;
}
.hero .btn.cta { width: 100%; }
.hero-links { display: flex; justify-content: center; margin-top: 14px; }
.hero-links .link { color: rgba(255, 248, 243, .92); }
.hero-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) 0; }
.wordmark { font-family: var(--f-display); font-size: 28px; color: #FFF8F3; line-height: 1; }
.wordmark i { font-style: italic; }
.done-badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 500; }
.done-badge svg { width: 14px; height: 14px; }

.section { padding: 28px var(--gutter) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-family: var(--f-display); font-weight: 400; font-size: 32px; letter-spacing: -.01em; line-height: 1; }
.section-head .kicker { white-space: nowrap; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 0; border-radius: 18px; transition: background .2s; width: 100%; }
.day .dl { font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); font-weight: 500; }
.day .dn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.day .dt { font-size: 10px; color: var(--ink-2); white-space: nowrap; letter-spacing: .01em; }
.day.rest .dt, .day.rest .dn { color: var(--ink-3); }
.day .dot { width: 14px; height: 4px; border-radius: 99px; background: var(--c, transparent); }
.day.today .dn { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.day.done .dn { background: var(--c, var(--ink)); color: #fff; }
.day.done .dn svg { width: 16px; height: 16px; }
.day.sel { background: var(--card); box-shadow: 0 10px 24px -16px rgba(40, 20, 15, .45); }
.t-fuerza { --c: var(--fuerza); } .t-carrera { --c: var(--carrera); } .t-movilidad { --c: var(--movilidad); } .t-descanso { --c: transparent; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { position: relative; padding: 18px 16px 16px; border-radius: var(--r-lg); background: var(--card); overflow: hidden; min-height: 156px; display: flex; flex-direction: column; width: 100%; text-align: left; }
.stat.st-week { background: var(--grad-soft); }
.stat.st-hito { background: radial-gradient(120% 90% at 100% 0%, #5A2A44 0%, #1B1316 60%); }
.ladder { display: flex; align-items: flex-end; gap: 4px; margin-top: 12px; height: 44px; }
.ladder span { flex: 1; border-radius: 4px; background: rgba(255, 255, 255, .14); position: relative; }
.ladder span.on { background: linear-gradient(180deg, #FFB38A, #F56A97); }
.ladder.big { height: 82px; margin: 4px 0 22px; }
.ladder.big span { background: var(--bg-2); }
.ladder.big span.on { background: linear-gradient(180deg, #FFB38A, #F56A97); }
.ladder.big i { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 10px; color: var(--ink-3); }
.stat .kicker { margin-bottom: auto; }
.stat .big { font-size: 56px; margin-top: 16px; }
.stat .big small { font-size: 17px; color: var(--ink-3); letter-spacing: 0; margin-left: 3px; font-weight: 300; }
.stat p { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.35; }
.segbar { display: flex; gap: 4px; margin-top: 12px; }
.segbar span { flex: 1; height: 3px; border-radius: 99px; background: var(--bg-2); }
.segbar span.on { background: linear-gradient(90deg, #F07B4F, #F56A97); }
.st-week .segbar span:not(.on) { background: rgba(255, 255, 255, .7); }
.line { height: 3px; border-radius: 99px; background: var(--bg-2); margin-top: 12px; overflow: hidden; }
.line span { display: block; height: 100%; background: var(--carrera); border-radius: 99px; }
.stat.dark { background: var(--ink); color: #F7F2EE; }
.stat.dark .kicker { color: rgba(247, 242, 238, .55); }
.stat.dark p { color: rgba(247, 242, 238, .7); }
.stat.dark .big small { color: rgba(247, 242, 238, .5); }
.stat.dark .line { background: rgba(255, 255, 255, .14); }

/* Bloques de la sesión */
.blocks { list-style: none; margin: 0; padding: 0; border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.blocks li + li { border-top: 1px solid var(--line); }
.brow { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 16px 18px; }
.brow { grid-template-columns: 36px 1fr auto; }
.brow .n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; background: var(--ink-3); }
.b-calentamiento { background: linear-gradient(135deg, #FFB38A, #F07B4F) !important; }
.b-principal { background: linear-gradient(135deg, #F79BB5, #E0577F) !important; }
.b-abdominales { background: linear-gradient(135deg, #C1B2FF, #8C78E0) !important; }
.b-estiramientos { background: linear-gradient(135deg, #9FDDBF, #5DB28A) !important; }
.b-intervalos { background: linear-gradient(135deg, #FFC37A, #F07B4F) !important; }
.b-movilidad { background: linear-gradient(135deg, #C1B2FF, #9C8CE8) !important; }
.brow .t { font-weight: 500; }
.brow .t small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.brow .m { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 14px; }

/* ---------- Páginas con cabecera de imagen ---------- */
.page-hero { position: relative; height: 320px; color: #FFF8F3; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) 24px; overflow: hidden; isolation: isolate; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.page-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 10, 9, .28), rgba(15, 10, 9, 0) 35%, rgba(15, 10, 9, .6)); }
.page-hero .kicker { color: rgba(255, 248, 243, .82); }
.page-hero p.sub { margin-top: 8px; color: rgba(255, 248, 243, .85); font-size: 14px; max-width: 34ch; }
.page-title { font-family: var(--f-display); font-weight: 400; font-size: 54px; line-height: .95; letter-spacing: -.01em; margin-top: 6px; }

/* Plan */
.wk-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.wk-tabs::-webkit-scrollbar { display: none; }
.wk-tab { flex: none; height: 38px; padding: 0 16px; border-radius: 99px; font-size: 13.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.wk-tab[aria-pressed="true"] { background: var(--ink); color: #F7F2EE; box-shadow: none; }
.plan-days { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pday { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 8px 16px 8px 8px; border-radius: var(--r-md); background: var(--card); width: 100%; }
.pday .ph { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.pday .ph.none { background: var(--bg-2); }
.pday .t { font-weight: 500; }
.pday .t small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.pday .m { font-size: 13px; color: var(--ink-2); text-align: right; display: flex; align-items: center; gap: 8px; }
.pday.today { box-shadow: inset 0 0 0 1px var(--ink); }
.chk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; }
.chk svg { width: 13px; height: 13px; }
.rule { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg-2); font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.rule b { color: var(--ink); font-weight: 500; }

/* Detalle de sesión */
.vsw { display: inline-flex; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); margin-top: 16px; align-self: flex-start; }
.vsw button { height: 34px; padding: 0 16px; border-radius: 99px; font-size: 13px; font-weight: 500; color: rgba(255, 248, 243, .85); }
.vsw button[aria-pressed="true"] { background: #FBF8F5; color: var(--ink); }
.dblock { margin-top: 26px; }
.dblock-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dblock-head h3 { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1; }
.dblock-head span { font-size: 12px; color: var(--ink-3); text-align: right; }
.exlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.exrow { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 18px; background: var(--card); width: 100%; }
.exrow img { width: 78px; height: 58px; border-radius: 13px; object-fit: cover; filter: saturate(.92); background: var(--bg-2); }
.exrow .t { font-weight: 500; font-size: 14.5px; line-height: 1.25; }
.exrow .t small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-3); font-weight: 400; font-size: 12px; margin-top: 2px; }
.exrow .m { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sticky-cta { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); margin-top: 26px; z-index: 5; }
.sticky-cta .btn { width: 100%; box-shadow: 0 14px 30px -14px rgba(20, 10, 8, .5); }

/* Biblioteca */
.search { width: 100%; height: 50px; border: 0; border-radius: 99px; padding: 0 20px; background: var(--card); font-size: 15px; outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.search:focus { box-shadow: inset 0 0 0 1px var(--ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; }
.chips::-webkit-scrollbar { display: none; }
.lib-group { margin-top: 26px; }
.lib-group h3 { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin-bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; }
.lib-group h3 span { font-family: var(--f-ui); font-size: 12px; color: var(--ink-3); }
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-ex { border-radius: var(--r-md); background: var(--card); overflow: hidden; width: 100%; }
.card-ex img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.92); background: var(--bg-2); }
.card-ex .t { display: block; padding: 10px 12px 13px; font-weight: 500; font-size: 14px; line-height: 1.25; }
.card-ex .t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-3); font-weight: 400; font-size: 11.5px; margin-top: 3px; }
.empty { padding: 30px 0; text-align: center; color: var(--ink-3); }

/* Ficha de ejercicio */
.exdetail { padding: calc(env(safe-area-inset-top) + 68px) var(--gutter) 30px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #2A211E; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.exdetail h1 { font-family: var(--f-display); font-weight: 400; font-size: 46px; line-height: .98; margin-top: 22px; }
.exdetail .lead { font-size: 17px; margin-top: 12px; color: var(--ink-2); line-height: 1.5; }
.meta-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.meta-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta-list li span:first-child { color: var(--ink-3); flex: none; }
.meta-list li span:last-child { text-align: right; }

/* ---------- Check-in ---------- */
.checkin { position: relative; min-height: 100dvh; color: #FFF8F3; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom)); isolation: isolate; overflow: hidden; }
.checkin > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.checkin::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 10, 9, .25), rgba(15, 10, 9, .05) 30%, rgba(15, 10, 9, .75)); }
.checkin .kicker { color: rgba(255, 248, 243, .8); }
.big-q { font-family: var(--f-display); font-weight: 400; font-size: 56px; line-height: .94; margin: 8px 0 24px; }
.opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 78px; padding: 0 22px; border-radius: var(--r-md); color: #FFF8F3;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); transition: background .2s, transform .15s var(--ease);
}
.opt:active { transform: scale(.985); background: rgba(255, 255, 255, .28); }
.opt .t { font-family: var(--f-display); font-size: 32px; line-height: 1; }
.opt .d { display: block; font-family: var(--f-ui); font-size: 12.5px; opacity: .75; margin-top: 5px; }
.opt svg { opacity: .75; }
.hint { margin-top: 16px; font-size: 12.5px; text-align: center; color: rgba(255, 248, 243, .7); }

/* ---------- Sesión guiada (oscura, con color según el momento) ---------- */
body.is-dark { background: #120C0E; }
.session.guided { position: relative; min-height: 100dvh; color: #FFF6F2; isolation: isolate; }
.session-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.session-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); filter: blur(34px) saturate(1.3); opacity: .55; }
.session.guided::before { content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(90% 60% at 50% 100%, var(--glow), transparent 70%), linear-gradient(180deg, rgba(18, 12, 14, .35), rgba(18, 12, 14, .82) 55%, rgba(18, 12, 14, .94)); }
.session.guided { --glow: rgba(245, 106, 151, .45); }
.session.guided:has(.pl[data-kind="rest"]), .session.guided:has(.pl[data-kind="trans"]), .session.guided:has(.pl[data-kind="round"]) { --glow: rgba(124, 198, 164, .42); }
.session.guided:has(.pl[data-kind="prep"]), .session.guided:has(.pl[data-kind="ready"]) { --glow: rgba(242, 196, 107, .38); }
.session.guided:has(.pl[data-kind="side"]) { --glow: rgba(164, 139, 224, .5); }
.pl { min-height: 100dvh; display: flex; flex-direction: column; padding: 0 var(--gutter) calc(env(safe-area-inset-bottom) + 14px);
  --a1: #FFB38A; --a2: #F56A97; }
.pl[data-kind="rest"], .pl[data-kind="trans"], .pl[data-kind="round"] { --a1: #A8E6C8; --a2: #5DB28A; }
.pl[data-kind="side"] { --a1: #D3C6FF; --a2: #8C78E0; }
.pl[data-kind="prep"], .pl[data-kind="ready"] { --a1: #FFE09A; --a2: #F2A65A; }
.pl-media { position: relative; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 4 / 3.15; max-height: 44dvh;
  border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; background-color: #2A1E22; }
.pl-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 6, 8, .55) 0%, rgba(10, 6, 8, 0) 30%, rgba(10, 6, 8, 0) 62%, rgba(10, 6, 8, .55) 100%); }
.pl-media iframe, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity .5s; }
.pl-media iframe { top: 50%; left: 50%; width: auto; height: 100%; aspect-ratio: 16 / 9; transform: translate(-50%, -50%) scale(1.24); filter: saturate(.9) contrast(.98); }
.video iframe { transform: scale(1.16); }
.pl-media.playing iframe, .video.playing iframe { opacity: 1; }
.clip-play { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 99px; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: 12.5px; font-weight: 500; }
.clip-play svg { width: 14px; height: 14px; }
.pl-media .clip-play { bottom: 56px; }
.pl-top { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 96px 1fr 96px; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 8px) var(--gutter) 0; }
.pl-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 12, 14, .35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; }
.pl-icon svg { width: 18px; height: 18px; }
.pl-tools { display: flex; gap: 6px; justify-content: flex-end; }
.pl-crumb { text-align: center; line-height: 1.25; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.pl-crumb b { display: block; font-weight: 500; font-size: 14px; }
.pl-crumb span { font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
.pl-chip { position: absolute; z-index: 2; left: var(--gutter); bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 11px;
  border-radius: 99px; background: rgba(20, 12, 14, .42); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.pl-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 0 10px var(--a2); }
.pl-chip.side { left: auto; right: var(--gutter); background: linear-gradient(135deg, var(--a1), var(--a2)); color: #1B1316; }
.pl-chip.side::before { display: none; }
.pl-progress { display: flex; gap: 4px; margin: 14px 0 0; }
.pl-progress span { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pl-progress span i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a1), var(--a2)); }
.pl-body { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; text-align: center; padding: 6px 0 4px; gap: 6px; }
.pl-name { font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1; }
.pl-ins { margin: 6px auto 0; font-size: 13.5px; line-height: 1.45; opacity: .66; max-width: 34ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pl-ring { position: relative; width: min(56vw, 30dvh, 236px); aspect-ratio: 1; display: grid; place-items: center; }
.pl-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.pl-ring .track { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .1); stroke-width: 7; }
.pl-ring .arc { fill: none; stroke: url(#ringg); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 0 10px var(--a2)); }
.pl-ring .s1 { stop-color: var(--a1); } .pl-ring .s2 { stop-color: var(--a2); }
.pl-ring .digits { font-weight: 200; font-size: clamp(60px, 18vw, 92px); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin-top: -6px; }
.pl-ring .unit { position: absolute; bottom: 23%; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .55; }
.pl[data-paused="true"] .digits { opacity: .4; }
.pl-next { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); max-width: 100%; }
.pl-next:not(:has(img)) { padding: 6px 18px; }
.pl-next img { width: 56px; height: 40px; border-radius: 99px; object-fit: cover; flex: none; }
.nx-txt { font-size: 12.5px; color: rgba(255, 246, 242, .65); text-align: left; line-height: 1.25; }
.nx-txt b { display: block; font-weight: 500; color: #FFF6F2; font-size: 14px; }
.pl-next:not(:has(img)) .nx-txt b { display: inline; }
.pl-ctrl { display: grid; grid-template-columns: 58px 1fr 58px; align-items: center; gap: 12px; margin-top: 10px; }
.pl-side { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pl-main { justify-self: center; width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--a1), var(--a2)); color: #1B1316; font-weight: 500; font-size: 16px; box-shadow: 0 12px 34px -10px var(--a2); }
.pl-main svg { width: 26px; height: 26px; }
.pl-main.wide { width: 100%; height: 64px; border-radius: 99px; }
.pl-main.wide svg { width: 18px; height: 18px; }

/* Valoración (solo si ella la abre) */
.fb-grid { display: grid; gap: 6px; margin-top: 16px; }
.fb-opt { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 18px; border-radius: var(--r-sm); background: var(--bg); font-weight: 500; }
.fb-opt[aria-pressed="true"] { background: var(--ink); color: #F7F2EE; }

/* ---------- Carrera ---------- */
.session.run { padding-bottom: 30px; }
.run-body { padding: 22px var(--gutter) 0; }
.run-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.run-facts div { padding: 14px; border-radius: var(--r-md); background: var(--card); }
.run-facts b { display: block; font-weight: 200; font-size: 34px; letter-spacing: -.04em; line-height: 1; }
.run-facts span { font-size: 10.5px; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.timeline { display: flex; gap: 3px; height: 56px; margin-top: 22px; }
.tl { min-width: 5px; border-radius: 10px; display: flex; align-items: flex-end; padding: 0 0 7px 8px; font-size: 11px; font-weight: 500; overflow: hidden; }
.tl-andar { background: var(--andar); color: var(--ink-2); }
.tl-correr { background: var(--correr); color: #fff; }
.tl-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 8px; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 18px; height: 6px; border-radius: 99px; display: inline-block; }
.lg-andar { background: var(--andar); } .lg-correr { background: var(--correr); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps .k { font-family: var(--f-display); font-size: 28px; line-height: 1; color: var(--ink-3); }
.steps b { font-weight: 500; }
.steps p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.pill { display: inline-block; margin: 8px 4px 0 0; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 500; }
.p-andar { background: var(--andar); } .p-correr { background: var(--correr); color: #fff; }
.tips { margin-top: 24px; padding: 22px 20px; border-radius: var(--r-lg); background: radial-gradient(120% 90% at 100% 0%, #6B2E2A 0%, #1B1316 62%); color: #F7F2EE; }
.tips h2 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; }
.tips ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.tips li { padding-left: 18px; position: relative; font-size: 14.5px; color: rgba(247, 242, 238, .85); }
.tips li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--correr); }
.tip-note { margin-top: 14px; font-size: 12.5px; color: rgba(247, 242, 238, .55); }
.run-actions { display: grid; gap: 8px; margin-top: 22px; }

/* ---------- Resumen ---------- */
.summary { position: relative; min-height: 100dvh; color: #FFF8F3; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom)); isolation: isolate; overflow: hidden; }
.summary > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.summary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 10, 9, .1), rgba(15, 10, 9, .12) 35%, rgba(15, 10, 9, .8)); }
.summary .kicker { color: rgba(255, 248, 243, .8); }
.summary h1 { font-family: var(--f-display); font-weight: 400; font-size: 66px; line-height: .92; margin-top: 8px; }
.sum-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 14px; }
.sum-facts div { padding: 14px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .14); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.sum-facts b { display: block; font-weight: 200; font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.sum-facts span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.sum-actions { display: grid; gap: 8px; }
.btn.glass-dark { color: #FFF8F3; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* Lista de valoración en hoja */
.rate-list { list-style: none; padding: 0; margin: 10px 0 0; max-height: 56dvh; overflow: auto; }
.rate-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rate-list .nm { font-size: 14px; font-weight: 500; }
.rate-list .nm span { color: var(--ink-3); font-weight: 400; font-size: 12px; }
.rate-seg { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.rate-seg button { height: 32px; padding: 0 11px; border-radius: 99px; font-size: 12px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.rate-seg button[aria-pressed="true"] { background: var(--ink); color: #F7F2EE; box-shadow: none; }

/* ---------- Progreso / datos ---------- */
.list { list-style: none; margin: 0; padding: 0; border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; }
.list li + li { border-top: 1px solid var(--line); }
.list .t { font-weight: 500; }
.list .t small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.list .m { font-size: 13px; color: var(--ink-2); text-align: right; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 99px; background: var(--bg-2); }
.seg button { height: 38px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: center; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(40, 20, 15, .3); }
.note { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.45; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.foot { margin: 28px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.foot a { border-bottom: 1px solid currentColor; }
.rev { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.rev img, .rev-v { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-sm); object-fit: cover; }
.rev-v { position: relative; overflow: hidden; }
.rev-v iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Hoja y aviso ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(15, 10, 9, .4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet-wrap.out { opacity: 0; transition: opacity .15s; }
.sheet { width: 100%; max-width: var(--col); background: var(--card-solid); color: var(--ink); border-radius: 30px 30px 0 0; padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom)); animation: up .28s var(--ease); }
.sheet-grip { display: block; width: 38px; height: 4px; border-radius: 99px; background: var(--bg-2); margin: 0 auto 16px; }
.sheet h2 { font-family: var(--f-display); font-weight: 400; font-size: 32px; line-height: 1; }
.sheet > p { margin-top: 8px; color: var(--ink-2); }
.sheet-actions { display: grid; gap: 8px; margin-top: 18px; }
.sheet-actions:empty { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: #F7F2EE; padding: 11px 18px; border-radius: 99px; font-size: 13.5px; transition: .2s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(60px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-height: 700px) {
  .hero { min-height: 80dvh; }
  .pl-name { font-size: 29px; }
  .pl-ins { -webkit-line-clamp: 2; }
  .pl-media { max-height: 36dvh; }
  .pl-side { width: 50px; height: 50px; } .pl-main { width: 64px; height: 64px; }
}

/* ---------- Hito en la carrera ---------- */
.hito-note { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); background: var(--grad-soft); }
.hito-note p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.hito-note b { color: var(--ink); font-weight: 600; }

/* ---------- Logros ---------- */
.medal { display: inline-block; width: 44px; height: 44px; border-radius: 50%; background: #EAD9D6 center / cover no-repeat; flex: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 6px 14px -8px rgba(60, 20, 30, .6); }
.medal.sm { width: 40px; height: 40px; }
.medal.lg { width: 120px; height: 120px; }
.medal.locked { filter: grayscale(1) contrast(.85); opacity: .32; }
.logro-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); }
.logro-row .medals { display: flex; flex: none; }
.logro-row .medals .medal { width: 38px; height: 38px; margin-left: -10px; }
.logro-row .medals .medal:first-child { margin-left: 0; }
.logro-row .t { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.logro-row .t small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.logro-row .t b { display: block; font-weight: 500; font-size: 15px; color: var(--ink); }
.logros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.logro { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; border-radius: var(--r-md); background: var(--card); text-align: center; }
.logro .medal { width: 58px; height: 58px; }
.logro b { font-weight: 500; font-size: 12px; line-height: 1.25; }
.logro.locked b { color: var(--ink-3); }
.lg-bar { width: 70%; height: 3px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.lg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #F07B4F, #F56A97); }
.logro-big { display: grid; justify-items: center; gap: 12px; margin-top: 14px; text-align: center; }
.sum-logros { display: grid; gap: 8px; margin-bottom: 12px; }
.sum-logro { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--r-md); background: rgba(255, 255, 255, .16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); font-size: 12.5px; animation: pop .6s var(--ease) both; }
.sum-logro small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.sum-logro b { display: block; font-size: 15px; font-weight: 500; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }

/* ---------- Ciclo en inicio y check-in ---------- */
.cyc-mini { display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 14px; padding: 8px 10px 8px 8px; border-radius: var(--r-lg); background: var(--card); }
.cyc-mini img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; }
.cyc-mini .t b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--ph, var(--ink)); }
.cyc-mini .t small { font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cyc-mini .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.cyc-mini .go svg { width: 16px; height: 16px; }
.cyc-hint { display: flex; gap: 10px; align-items: flex-start; margin: -10px 0 18px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .16); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); font-size: 13px; line-height: 1.4; }
.cyc-hint i { width: 9px; height: 9px; border-radius: 50%; background: var(--ph); flex: none; margin-top: 5px; box-shadow: 0 0 10px var(--ph); }

/* ---------- Ciclo ---------- */
.cyc-hero > img { object-position: center 40%; }
.cyc-card { position: relative; width: min(100%, 330px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.cyc-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.cyc-ring path { fill: none; stroke-width: 15; stroke-linecap: butt; }
.cyc-ring path.fut { opacity: .38; }
.cyc-ring path.on { stroke-width: 22; }
.cyc-ring .today { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.cyc-ring .ovm { fill: var(--c-ovulatoria); }
.cyc-center { display: grid; justify-items: center; gap: 4px; text-align: center; }
.cyc-day { font-size: 86px; }
.cyc-phase { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-display); font-size: 26px; line-height: 1; }
.cyc-phase i { width: 10px; height: 10px; border-radius: 50%; background: var(--ph); }
.cyc-next { text-align: center; margin-top: 14px; color: var(--ink-2); font-size: 14.5px; }
.cyc-next b { color: var(--ink); font-weight: 600; }
.cyc-next span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.cyc-actions { margin-top: 16px; }
.btn.cyc-start { background: linear-gradient(135deg, #F27A93, #D93B63); }
.phase-card { position: relative; display: flex; align-items: flex-end; min-height: 190px; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate; }
.phase-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.phase-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 10, 12, 0) 20%, rgba(20, 10, 12, .65)); }
.pc-body { padding: 18px; }
.pc-body .kicker { color: rgba(255, 255, 255, .85); }
.pc-lead { font-family: var(--f-display); font-size: 25px; line-height: 1.1; margin-top: 6px; }
.tips-grid { display: grid; gap: 6px; margin-top: 8px; }
.tip { border-radius: var(--r-md); background: var(--card); }
.tip summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; font-weight: 500; cursor: pointer; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary svg { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s; }
.tip[open] summary svg { transform: rotate(90deg); }
.tip p { padding: 0 18px 16px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.log-card { padding: 16px; border-radius: var(--r-lg); background: var(--card); }
.log-l { display: block; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 8px; }
.log-l:first-child { margin-top: 0; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin-top: 0; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 99px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); background: rgba(255, 255, 255, .4); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
[data-log="flujo"] .chip[aria-pressed="true"] { background: var(--c-menstrual); }
.field { width: 100%; height: 50px; border: 0; border-radius: var(--r-sm); padding: 0 14px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--c-menstrual); flex: none; margin: 0; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 99px; background: var(--bg-2); flex: none; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; background: var(--card-solid); font-size: 18px; text-align: center; line-height: 1; }
.stepper b { min-width: 30px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.stepper.big button { width: 44px; height: 44px; }
.stepper.big b { min-width: 60px; font-size: 26px; font-weight: 300; }
.switch { width: 50px; height: 30px; border-radius: 99px; background: var(--bg-2); position: relative; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--c-folicular); }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.cal-nav { display: flex; gap: 6px; }
.cal-m { font-family: var(--f-display); font-size: 24px; margin-bottom: 8px; }
.cal-m::first-letter { text-transform: uppercase; }
.cal-m span { color: var(--ink-3); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 12px; border-radius: var(--r-lg); background: var(--card); }
.cal-w { text-align: center; font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3); padding-bottom: 4px; }
.cal-d { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-variant-numeric: tabular-nums; text-align: center; }
.cal-d.reg { background: var(--c-menstrual); color: #fff; }
.cal-d.pre { box-shadow: inset 0 0 0 1.5px var(--c-menstrual); color: var(--c-menstrual); background: repeating-linear-gradient(135deg, rgba(224, 71, 107, .1) 0 4px, transparent 4px 8px); }
.cal-d.fer:not(.reg):not(.pre) { background: rgba(111, 191, 142, .24); }
.cal-d.today { font-weight: 700; box-shadow: inset 0 0 0 2px var(--ink); }
.cal-d.log::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 50%; }
.lg-reg { background: var(--c-menstrual); } .lg-pre { box-shadow: inset 0 0 0 1.5px var(--c-menstrual); } .lg-fer { background: rgba(111, 191, 142, .4); }
.cyc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cyc-stats div { padding: 14px; border-radius: var(--r-md); background: var(--card); }
.cyc-stats b { display: block; font-size: 34px; }
.cyc-stats span { font-size: 11px; color: var(--ink-3); line-height: 1.25; display: block; margin-top: 4px; }
.insights { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.insights li { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); background: var(--card); font-size: 14px; line-height: 1.45; }
.insights i { width: 9px; height: 9px; border-radius: 50%; background: var(--ph); flex: none; margin-top: 6px; }
.health { margin-top: 12px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(242, 154, 74, .14); font-size: 14px; }
.health b { font-weight: 600; display: block; margin-bottom: 6px; }
.how { display: grid; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.how b { color: var(--ink); font-weight: 600; }
.seg.two { grid-template-columns: 1fr 1fr; }

/* ==========================================================================
   1.3 · Más limpio y digital: tipografía sans fina, tarjetas de vidrio,
   degradados pastel de fondo y acentos con degradado. (Sobrescribe lo anterior.)
   ========================================================================== */
:root {
  --f-display: "Geist", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --f-accent: "Instrument Serif", "Times New Roman", serif;
  --glass-card: rgba(255, 255, 255, .56);
  --glass-line: rgba(255, 255, 255, .75);
  --shadow-soft: 0 18px 40px -26px rgba(120, 50, 80, .45);
  --r-lg: 28px; --r-md: 22px;
}
body {
  background:
    radial-gradient(70% 45% at 0% 0%, rgba(255, 176, 150, .55), transparent 70%),
    radial-gradient(60% 40% at 100% 8%, rgba(250, 160, 200, .5), transparent 70%),
    radial-gradient(70% 45% at 0% 55%, rgba(200, 186, 255, .5), transparent 70%),
    radial-gradient(60% 40% at 100% 75%, rgba(255, 200, 220, .45), transparent 70%),
    radial-gradient(60% 40% at 30% 100%, rgba(180, 230, 210, .4), transparent 70%),
    #F7F1F0;
  background-attachment: fixed;
}

/* Tipografía: titulares sans finos; la cursiva serif queda como acento */
.display, .page-title, .hero-title, .big-q, .summary h1, .exdetail h1, .pl-name, .cyc-phase, .pc-lead, .cyc-mini .t b, .opt .t {
  font-family: var(--f-display); font-weight: 300; letter-spacing: -.04em;
}
.section-head h2, .sheet h2, .dblock-head h3, .lib-group h3, .tips h2, .cal-m {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -.03em; font-size: 22px; line-height: 1.1;
}
h1 em, h2 em, .display em, .page-title em, .big-q em, .summary h1 em {
  font-family: var(--f-accent); font-style: italic; font-weight: 400; letter-spacing: -.01em;
}
.page-title { font-size: 46px; line-height: 1; }
.big-q { font-size: 44px; line-height: 1; }
.opt .t { font-size: 24px; font-weight: 400; letter-spacing: -.03em; }
.pl-name { font-size: 30px; font-weight: 400; letter-spacing: -.035em; }
.summary h1 { font-size: 56px; line-height: .95; }
.exdetail h1 { font-size: 38px; line-height: 1.02; }
.pc-lead { font-size: 22px; line-height: 1.2; font-weight: 400; letter-spacing: -.03em; }
.cyc-mini .t b { font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.cyc-phase { font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.kicker { letter-spacing: .14em; }
.num { font-weight: 200; }

/* Tarjetas de vidrio */
.blocks, .stat:not(.st-hito):not(.st-week), .list, .card-ex, .cal, .log-card, .tip, .cyc-stats div, .logro, .logro-row,
.cyc-mini, .pday, .exrow, .insights li, .run-facts div, .glass, .lib-link, .sleep-card, .wk-card, .habit, .search {
  background: var(--glass-card);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow-soft);
}
.blocks { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; display: grid; gap: 8px; }
.blocks li + li { border-top: 0; }

/* Páginas: cabecera con foto en tarjeta redondeada (no a sangre) */
.page-hero { margin: calc(env(safe-area-inset-top) + 10px) 10px 0; border-radius: 34px; height: 300px; box-shadow: var(--shadow-soft); }
.page-hero::before { background: linear-gradient(180deg, rgba(30, 12, 20, .18), rgba(30, 12, 20, 0) 35%, rgba(30, 12, 20, .62)); }

/* ---------- HOY ---------- */
.home-top { padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) 12px; }
.home-bar { display: flex; justify-content: space-between; align-items: center; }
.home .wordmark { color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.05em; }
.home .wordmark i { font-style: normal; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.date-chip { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 99px; font-size: 12.5px; font-weight: 500;
  background: var(--glass-card); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hello { margin-top: 18px; font-size: 30px; font-weight: 300; letter-spacing: -.04em; line-height: 1.05; }
.hero { margin: 0 10px; min-height: 0; height: min(62dvh, 560px); border-radius: 34px; padding: 0 18px 18px; box-shadow: 0 30px 60px -34px rgba(120, 40, 60, .7); }
.hero::before { background: linear-gradient(180deg, rgba(30, 10, 16, .25) 0%, rgba(30, 10, 16, 0) 26%, rgba(30, 10, 16, 0) 42%, rgba(40, 10, 20, .72) 100%); }
.hero-top { padding: 16px 16px 0; }
.hero-kicker { height: 30px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 99px; font-size: 12px; font-weight: 500; color: #fff;
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hero-title { font-size: clamp(44px, 13vw, 58px); line-height: .98; margin-top: 0; }
.hero-sub { font-size: 14px; margin-top: 8px; }
.facts { margin: 14px 0 14px; }
.hero .btn.cta .go { background: var(--grad-warm); }
.hero .btn.cta .go svg { width: 18px; height: 18px; }
.hero-note { margin-top: 10px; text-align: center; font-size: 12.5px; color: rgba(255, 248, 243, .8); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 4px 12px; border-radius: 24px; text-align: center;
  background: var(--glass-card); box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow-soft); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.qi { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 4px; box-shadow: 0 10px 20px -10px var(--qc, #F56A97); }
.qi svg { width: 20px; height: 20px; }
.qt b { font-weight: 500; font-size: 14px; letter-spacing: -.02em; }
.qt small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.q-ciclo .qi { background: linear-gradient(135deg, #FF9DB0, #E0476B); --qc: #E0476B; }
.q-habitos .qi { background: linear-gradient(135deg, #A8E6C8, #4FAE84); --qc: #4FAE84; }
.q-sueno .qi { background: linear-gradient(135deg, #C9BCFF, #7C68DC); --qc: #7C68DC; }
.q-logros .qi { background: linear-gradient(135deg, #FFD58A, #F2894A); --qc: #F2894A; }

.brow { padding: 12px 16px 12px 12px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow-soft); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.brow .n { width: 42px; height: 42px; border-radius: 14px; }
.brow { grid-template-columns: 42px 1fr auto; gap: 12px; }
.brow .m { font-weight: 300; font-size: 22px; letter-spacing: -.04em; color: var(--ink); }
.r-calentamiento { background: linear-gradient(100deg, rgba(255, 196, 168, .7), rgba(255, 255, 255, .5) 70%); }
.r-principal { background: linear-gradient(100deg, rgba(250, 178, 202, .7), rgba(255, 255, 255, .5) 70%); }
.r-abdominales { background: linear-gradient(100deg, rgba(206, 194, 255, .75), rgba(255, 255, 255, .5) 70%); }
.r-estiramientos { background: linear-gradient(100deg, rgba(178, 230, 205, .75), rgba(255, 255, 255, .5) 70%); }
.r-intervalos { background: linear-gradient(100deg, rgba(255, 206, 150, .75), rgba(255, 255, 255, .5) 70%); }
.r-movilidad { background: linear-gradient(100deg, rgba(206, 194, 255, .75), rgba(255, 255, 255, .5) 70%); }

.week.glass { padding: 10px 6px; border-radius: 26px; }
.day.sel { background: rgba(255, 255, 255, .8); }
.stat { border-radius: 28px; }
.stat.st-week { background: linear-gradient(150deg, #FFE1D2 0%, #FBCFE0 55%, #E2D8FF 100%); box-shadow: var(--shadow-soft); }
.stat.st-hito { background: linear-gradient(155deg, #3B1830 0%, #1A1216 70%); color: #F7F2EE; box-shadow: var(--shadow-soft); }
.stat.st-hito .kicker { color: rgba(247, 242, 238, .55); }
.stat.st-hito p { color: rgba(247, 242, 238, .7); }
.stat.st-hito .big small { color: rgba(247, 242, 238, .5); }

/* Tabbar: vidrio blanco */
.tabbar { background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 20px 40px -18px rgba(90, 30, 50, .35); }
.tabbar a[aria-current="page"] { background: var(--ink); }

/* Plan: acceso a la biblioteca */
.lib-link { display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 14px; margin-top: 14px; padding: 8px 10px 8px 8px; border-radius: var(--r-lg); }
.lib-link img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; }
.lib-link .t b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.lib-link .t small { display: block; font-size: 12.5px; color: var(--ink-2); }
.lib-link .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.lib-link .go svg { width: 16px; height: 16px; }

/* ---------- DIARIO ---------- */
.dstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dday { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 20px; }
.dday:disabled { opacity: .35; }
.dday .dl { font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); font-weight: 500; }
.dring { --p: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#4FAE84 calc(var(--p) * 360deg), rgba(22, 18, 19, .08) 0); }
.dring b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #FBF7F6; font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.dday.today .dring b { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dday.sel { background: var(--glass-card); box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow-soft); }
.habits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.habit { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 118px; padding: 14px; border-radius: 24px; text-align: left; transition: transform .15s var(--ease); }
.habit:active { transform: scale(.98); }
.habit .hc { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; }
.habit .hc svg { width: 16px; height: 16px; }
.habit .ht { font-size: 14px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.habit[aria-pressed="true"] { color: #fff; box-shadow: var(--shadow-soft); }
.habit[aria-pressed="true"] .hc { background: rgba(255, 255, 255, .28); box-shadow: none; color: #fff; }
.habit.g-comida[aria-pressed="true"] { background: linear-gradient(140deg, #FFB38A, #F07B4F); }
.habit.g-descanso[aria-pressed="true"] { background: linear-gradient(140deg, #C9BCFF, #7C68DC); }
.habit.g-movimiento[aria-pressed="true"] { background: linear-gradient(140deg, #A8E6C8, #4FAE84); }
.habit.g-propio[aria-pressed="true"] { background: linear-gradient(140deg, #FF9DB0, #E0577F); }
.chip.g-comida[aria-pressed="true"] { background: #F07B4F; }
.chip.g-descanso[aria-pressed="true"] { background: #7C68DC; }
.chip.g-movimiento[aria-pressed="true"] { background: #4FAE84; }
.chip.g-propio[aria-pressed="true"] { background: #E0577F; }
.link-btn { display: block; margin: 12px auto 0; font-size: 13px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.sleep-card { padding: 18px; border-radius: 28px; background: linear-gradient(150deg, rgba(226, 216, 255, .85), rgba(255, 255, 255, .55)); }
.sleep-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.sleep-h { display: block; font-size: 64px; line-height: .95; margin-top: 4px; }
.sleep-h small { font-size: 20px; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.stepper.big { gap: 6px; }
.seg.three { grid-template-columns: repeat(3, 1fr); background: rgba(255, 255, 255, .5); }
.seg.three button[aria-pressed="true"] { background: linear-gradient(135deg, #C9BCFF, #7C68DC); color: #fff; }
.wk-card { padding: 16px; border-radius: 28px; }
.sleep-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; padding-bottom: 4px; }
.sb { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.sb i { width: 100%; max-width: 26px; border-radius: 10px; background: linear-gradient(180deg, #C9BCFF, #7C68DC); }
.sb.empty i { background: rgba(22, 18, 19, .07); }
.sb.q-mal i { background: linear-gradient(180deg, #FFC4B0, #E0577F); }
.sb.q-regular i { background: linear-gradient(180deg, #FFE09A, #F2A65A); }
.sb em { position: absolute; top: -2px; font-style: normal; font-size: 10.5px; color: var(--ink-2); }
.sb small { margin-top: 6px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .1em; }
.sleep-bars { padding-top: 16px; height: 140px; }
.hweek { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.hweek li { display: grid; grid-template-columns: 1fr auto 34px; align-items: center; gap: 10px; font-size: 13px; }
.hweek .t { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hweek .dots { display: flex; gap: 4px; }
.hweek .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(22, 18, 19, .08); }
.hweek .dots i.on.g-comida { background: #F07B4F; } .hweek .dots i.on.g-descanso { background: #7C68DC; }
.hweek .dots i.on.g-movimiento { background: #4FAE84; } .hweek .dots i.on.g-propio { background: #E0577F; }
.hweek b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.picker .log-l:first-child { margin-top: 0; }
.picker .field { margin-top: 2px; }
.sb { padding-bottom: 20px; }
.sb small { position: absolute; bottom: 0; margin: 0; }

/* Logotipo: figura en «s» + «soma» en Instrument Serif */
.brand { display: inline-flex; align-items: center; gap: 4px; }
.brand img { width: 34px; height: 34px; margin-left: -6px; }
.home .wordmark { font-family: var(--f-accent); font-weight: 400; font-size: 32px; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.home .wordmark i { font-family: var(--f-accent); font-style: italic; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }

/* Hero a pantalla completa con el logotipo integrado en la foto (como en la 1.1) */
.home .hero { margin: 0; height: auto; min-height: 76dvh; border-radius: 0 0 34px 34px; padding: 0 var(--gutter) 22px; }
.home .hero::before { background: linear-gradient(180deg, rgba(20, 8, 14, .32) 0%, rgba(20, 8, 14, 0) 24%, rgba(20, 8, 14, 0) 40%, rgba(30, 8, 16, .72) 100%); }
.home .hero-top { position: absolute; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) 0; }
.home .hero .wordmark { font-family: var(--f-accent); font-weight: 400; font-size: 30px; color: #FFF8F3; letter-spacing: -.01em; line-height: 1; }
.home .hero .wordmark i { font-style: italic; color: #FFF8F3; background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.home .hero .kicker { color: rgba(255, 248, 243, .85); }
.home .hero-title { font-size: clamp(54px, 16vw, 72px); margin-top: 8px; }
.home .hero + .section { padding-top: 22px; }

/* Plan: fase de las semanas mostradas */
.phase-note { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--grad-soft); }
.phase-note b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.02em; margin-top: 2px; }
.phase-note p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* Avisos (instalar, copia) y resumen semanal */
.notices { display: grid; gap: 8px; }
.notice { padding: 16px; border-radius: var(--r-lg); background: linear-gradient(150deg, #FFE1D2, #FBCFE0); box-shadow: var(--shadow-soft); }
.notice.soft { background: var(--glass-card); box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow-soft); }
.notice b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.02em; margin-top: 4px; }
.notice p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.notice-actions { display: flex; gap: 8px; margin-top: 12px; }
.notice-actions .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
.steps-mini { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.steps-mini b { color: var(--ink); font-weight: 600; }
.recap { padding: 18px; border-radius: var(--r-lg); background: linear-gradient(155deg, #3B1830 0%, #1A1216 75%); color: #F7F2EE; box-shadow: var(--shadow-soft); }
.recap .kicker { color: rgba(247, 242, 238, .6); }
.recap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 12px 8px; margin-top: 14px; }
.recap-grid b { display: block; font-size: 32px; line-height: 1; }
.recap-grid span { font-size: 11px; color: rgba(247, 242, 238, .65); }
.recap-logros { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
.recap-logros .medal { width: 30px; height: 30px; }
.recap-note { margin-top: 12px; font-size: 13px; color: rgba(247, 242, 238, .75); }
.cal-link { display: grid; grid-template-columns: 46px 1fr 40px; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 10px 10px 10px 12px; border-radius: var(--r-lg); text-align: left;
  background: var(--glass-card); box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow-soft); }
.cal-link .qi { background: linear-gradient(135deg, #FFB38A, #F07B4F); margin: 0; }
.cal-link .t b { display: block; font-weight: 500; font-size: 16px; letter-spacing: -.02em; }
.cal-link .t small { display: block; font-size: 12.5px; color: var(--ink-2); }
.cal-link .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.cal-link .go svg { width: 16px; height: 16px; }

/* Gráficas de Progreso */
.chart-card { padding: 16px; border-radius: var(--r-lg); background: var(--glass-card); box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow-soft); }
.chart-card + .chart-card { margin-top: 8px; }
.cbars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 130px; margin-top: 12px; }
.cb { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 16px 0 18px; }
.cb i { width: 100%; max-width: 24px; border-radius: 8px; background: linear-gradient(180deg, #FBC4D6, #E5799A); }
.cb.now i { background: linear-gradient(180deg, #FFB38A, #F56A97); }
.cb em { position: absolute; top: 0; font-style: normal; font-size: 10.5px; color: var(--ink-2); }
.cb small { position: absolute; bottom: 0; font-size: 10px; color: var(--ink-3); }
.run-chart { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.run-chart .goal { stroke: var(--ink-3); stroke-dasharray: 4 4; stroke-width: 1; }
.run-chart .gl { font-size: 10px; fill: var(--ink-3); font-family: var(--f-ui); }
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.mw { text-align: center; font-size: 10px; letter-spacing: .1em; color: var(--ink-3); }
.md { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.md.on { color: #fff; background: var(--c, var(--ink)); font-weight: 500; }
.md.today { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Check-in: opción suave recomendada */
.opt.rec { background: rgba(255, 255, 255, .26); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.rec-badge { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 9px; border-radius: 99px; font-family: var(--f-ui); font-style: normal; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; background: #FFF8F3; color: #1B1316; }
.stat.dark { background: linear-gradient(155deg, #3B1830 0%, #1A1216 70%); box-shadow: var(--shadow-soft); backdrop-filter: none; -webkit-backdrop-filter: none; }
.view-host { display: contents; }

/* Calculadora de sueño */
.sc-link { margin-top: 10px; }
.sc-link .qi { background: linear-gradient(135deg, #C9BCFF, #7C68DC); }
.sc-row { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.sc-time { flex: 1; font-size: 28px; font-weight: 300; letter-spacing: -.03em; height: 60px; text-align: center; }
.sc-list { display: grid; gap: 8px; }
.sc-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 16px; border-radius: var(--r-md); text-align: left;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.sc-opt.rec { background: linear-gradient(135deg, rgba(201, 188, 255, .45), rgba(255, 255, 255, .6)); box-shadow: inset 0 0 0 1px rgba(124, 104, 220, .35); }
.sc-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #7C68DC; }
.sc-l b { display: block; font-weight: 600; font-size: 15px; }
.sc-l small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.sc-h { font-size: 34px; font-weight: 300; letter-spacing: -.04em; }
.sc-plan { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); background: linear-gradient(135deg, rgba(201, 188, 255, .5), rgba(255, 255, 255, .55)); }
.sc-plan .qi { width: 40px; height: 40px; margin: 0; background: linear-gradient(135deg, #C9BCFF, #7C68DC); flex: none; }
.sc-plan small { display: block; font-size: 11.5px; color: var(--ink-2); }
.sc-plan b { display: block; font-weight: 500; font-size: 15px; }
.sc-apply { margin-top: 12px; min-height: 46px; font-size: 14px; }
.sheet { max-height: 92dvh; overflow-y: auto; }

/* Cabeceras con foto a pantalla completa en todas las pantallas (como en Hoy):
   sin margen alrededor, de borde a borde y por debajo de la barra de estado del iPhone. */
.page-hero { margin: 0; border-radius: 0 0 34px 34px; height: calc(340px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
.page-hero::before { background: linear-gradient(180deg, rgba(30, 12, 20, .32), rgba(30, 12, 20, 0) 30%, rgba(30, 12, 20, 0) 45%, rgba(30, 12, 20, .66)); }

/* Todas las cabeceras miden lo mismo: el contenedor no puede encogerlas según el texto que haya debajo (15-11-2026) */
.page-hero, .hero, .checkin, .summary { flex-shrink: 0; }
