/* CRIATORS HABITS - sistema de diseño */
:root {
  /* oscuro: carbón cálido */
  --bg: #141311; --bg2: #1b1a17; --card: #1e1d1a; --card-solid: #1e1d1a; --card2: #292824;
  --line: rgba(238,238,234,.12); --text: #eeeeea; --mute: #a5a49b; --faint: #77766e;
  --ink: #eeeeea; --ink-text: #161616;
  --acc: #76862f; --acc-ink: #ffffff; --acc2: #8fb7c7; --violet: #a59bd6; --coral: #e48a7c; --amber: #e3b45e; --ok: #7bc08f; --bad: #e46b61;
  --r: 24px; --shadow: none;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  /* claro: papel cálido (estilo noon) */
  --bg: #f8f8f5; --bg2: #efefea; --card: #fdfdfb; --card-solid: #fdfdfb; --card2: #f0f0ec; --line: rgba(22,22,22,.10);
  --text: #161616; --mute: #6d6c66; --faint: #9c9b94; --ink: #161616; --ink-text: #f8f8f5; --shadow: none;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f8f8f5; --bg2: #efefea; --card: #fdfdfb; --card-solid: #fdfdfb; --card2: #f0f0ec; --line: rgba(22,22,22,.10);
    --text: #161616; --mute: #6d6c66; --faint: #9c9b94; --ink: #161616; --ink-text: #f8f8f5; --shadow: none; color-scheme: light;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--bg); min-height: 100vh;
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.005em;
  background-image: radial-gradient(900px 500px at 8% -10%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 60%),
                    radial-gradient(800px 500px at 100% 110%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 60%);
  background-attachment: fixed;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--mute); }
.mute { color: var(--mute); } .faint { color: var(--faint); } .small { font-size: .85rem; } .xs { font-size: .75rem; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .acc { color: var(--acc); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.big { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hide { display: none !important; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.side { display: none; }
.main { flex: 1; min-width: 0; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.wrap { max-width: 860px; margin: 0 auto; padding: 18px 16px 24px; }
.wrap.anim { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nw { flex-wrap: nowrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; } .center { justify-content: center; text-align: center; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.page-head p { color: var(--mute); margin-top: 4px; }

/* tarjetas */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; backdrop-filter: blur(10px); box-shadow: var(--shadow); position: relative; }
.card.flat { box-shadow: none; }
.card.hero { background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 16%, var(--card-solid)), color-mix(in srgb, var(--violet) 14%, var(--card-solid))); overflow: hidden; }
.card.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 28%, transparent), transparent); pointer-events: none; }
.card h3 { margin-bottom: 10px; }
.tile { background: var(--card2); border-radius: 14px; padding: 12px; text-align: center; }
.tile b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.tile span { font-size: .74rem; color: var(--mute); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--card2); color: var(--mute); border: 1px solid var(--line); white-space: nowrap; }
.pill.acc { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.pill.warn { color: var(--amber); } .pill.good { color: var(--ok); }
.ic { flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* formularios */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
input[type=range] { padding: 0; min-height: 30px; accent-color: var(--acc); background: transparent; border: 0; }
label { display: block; font-size: .78rem; font-weight: 600; color: var(--mute); margin-bottom: 5px; }
.field { margin-bottom: 12px; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--card2); border-radius: 12px; padding: 10px 15px; min-height: 44px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: transform .1s, background .15s, border-color .15s; }
button:hover { border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); }
button:active { transform: scale(.97); }
button.primary { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); font-weight: 800; }
button.primary:hover { filter: brightness(1.07); }
button.danger { color: var(--bad); } button.ghost { background: transparent; }
button.sm { min-height: 34px; padding: 5px 11px; font-size: .85rem; border-radius: 10px; }
button.icon { width: 40px; min-height: 40px; padding: 0; border-radius: 12px; }
button.block { width: 100%; }
button:disabled { opacity: .5; cursor: default; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 99px; font-size: .86rem; background: var(--card); }
.chip.on { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); font-weight: 800; }

/* navegación */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tabs button { flex: 1; max-width: 92px; flex-direction: column; gap: 3px; font-size: .68rem; padding: 7px 2px; min-height: 52px; border: 0; background: transparent; color: var(--mute); border-radius: 14px; }
.tabs button.on { color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; max-width: 860px; margin: 0 auto; }
.brand { font-weight: 900; letter-spacing: .2em; font-size: .95rem; background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--acc-ink); }
@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; gap: 6px; width: 252px; flex: none; padding: 22px 16px; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px); }
  .side .brand { font-size: 1.1rem; padding: 4px 10px 18px; }
  .side button.nav { justify-content: flex-start; background: transparent; border: 0; color: var(--mute); padding: 11px 14px; border-radius: 13px; font-weight: 600; }
  .side button.nav:hover { background: var(--card); color: var(--text); }
  .side button.nav.on { background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); }
  .tabs, .top { display: none; }
  .main { padding-bottom: 40px; } .wrap { padding: 32px 28px; }
  .g4 { grid-template-columns: repeat(4, 1fr); }
}

/* progreso */
.bar { height: 9px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--acc); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar.w > i { background: linear-gradient(90deg, #4aa8ff, var(--acc2)); }
.bar.v > i { background: linear-gradient(90deg, var(--violet), #d19bff); }
.ringbox { position: relative; display: inline-grid; place-items: center; }
.ringbox .mid { position: absolute; text-align: center; line-height: 1.1; }
.ringbox .mid b { display: block; font-weight: 800; letter-spacing: -.03em; }
.ring-arc { transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1); }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
.axis { fill: var(--faint); font-size: 10px; }

/* listas */
.check { display: flex; gap: 12px; align-items: center; padding: 12px 13px; background: var(--card2); border-radius: 14px; cursor: pointer; transition: opacity .2s, transform .1s; border: 1px solid transparent; }
.check:active { transform: scale(.985); }
.check .box { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--faint); display: grid; place-items: center; flex: none; transition: all .2s; color: transparent; }
.check.done .box { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.check.done .t { text-decoration: line-through; opacity: .55; }
.list > * + * { margin-top: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; background: var(--card2); }
.item .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex: none; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--mute); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

/* entreno */
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.days button { flex: 1; min-width: 46px; flex-direction: column; gap: 1px; padding: 7px 4px; font-size: .78rem; }
.days button small { font-weight: 500; opacity: .7; font-size: .65rem; }
.days button.on { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.days button.today:not(.on) { border-color: var(--acc); }
.ex { padding: 14px 0; border-top: 1px solid var(--line); } .ex:first-child { border-top: 0; padding-top: 4px; }
.setrow { display: grid; grid-template-columns: 26px 1fr 1fr 42px 34px; gap: 8px; align-items: center; margin-top: 8px; }
.setrow .n { text-align: center; color: var(--mute); font-weight: 700; }
.setrow input { text-align: center; padding: 8px 4px; font-weight: 700; }
.setrow button.okset { width: 42px; padding: 0; }
.setrow.done input { background: color-mix(in srgb, var(--acc) 20%, transparent); }
.setrow.done button.okset { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }

/* heatmap */
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.heat i { width: 100%; aspect-ratio: 1; border-radius: 4px; background: var(--card2); display: block; min-width: 10px; }

/* hábitos, mente */
.hab { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 16px; background: var(--card2); border: 1px solid transparent; transition: border-color .2s; }
.hab.done { border-color: color-mix(in srgb, var(--hc) 55%, transparent); background: color-mix(in srgb, var(--hc) 12%, var(--card2)); }
.hab .em { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--hc) 20%, transparent); flex: none; }
.dots { display: flex; gap: 4px; margin-top: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 3px; background: var(--card); border: 1px solid var(--line); }
.dots i.on { background: var(--hc); border-color: var(--hc); }
.hab .tg { width: 44px; height: 44px; border-radius: 50%; padding: 0; flex: none; font-size: 1.1rem; }
.hab.done .tg { background: var(--hc); border-color: var(--hc); color: #0a0f05; }
.moods { display: flex; gap: 8px; justify-content: space-between; }
.moods button { flex: 1; font-size: 1.7rem; padding: 8px 0; min-height: 56px; filter: grayscale(.8); opacity: .65; }
.moods button.on { filter: none; opacity: 1; background: color-mix(in srgb, var(--acc) 22%, transparent); border-color: var(--acc); transform: scale(1.06); }
.scale { display: flex; gap: 6px; } .scale button { flex: 1; min-height: 40px; padding: 0; }
.scale button.on { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(4,6,10,.62); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fadeo .2s ease both; }
@keyframes fadeo { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--card-solid); border: 1px solid var(--line); border-radius: 24px 24px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 24px; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: -8px auto 14px; }
.full { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; animation: fadeo .3s ease both;
  background-image: radial-gradient(600px 400px at 50% 40%, color-mix(in srgb, var(--acc2) 16%, transparent), transparent 70%); }
.orb { width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--acc2) 80%, #fff), color-mix(in srgb, var(--violet) 70%, #000)); box-shadow: 0 0 80px color-mix(in srgb, var(--acc2) 40%, transparent); transform: scale(.55); transition: transform linear; }
.resting .main { padding-bottom: calc(176px + env(safe-area-inset-bottom)); }
.rest { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 30; max-width: 520px; margin: 0 auto; background: var(--card-solid); border: 1px solid var(--acc); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; animation: up .25s both; }
@media (min-width: 900px) { .rest { bottom: 24px; left: 276px; } }
#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 99px; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; font-weight: 700; max-width: 90vw; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.err { background: var(--bad); color: #fff; }
canvas#fx { position: fixed; inset: 0; pointer-events: none; z-index: 90; width: 100%; height: 100%; }
.banner { background: color-mix(in srgb, var(--amber) 14%, var(--card-solid)); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); color: var(--amber); border-radius: 14px; padding: 11px 14px; font-size: .9rem; display: flex; gap: 10px; align-items: center; }
.banner.good { background: color-mix(in srgb, var(--ok) 12%, var(--card-solid)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.photo { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--card2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo span { position: absolute; left: 6px; bottom: 6px; font-size: .68rem; background: rgba(0,0,0,.6); color: #fff; padding: 2px 7px; border-radius: 99px; }
.badge { text-align: center; padding: 14px 8px; border-radius: 16px; background: var(--card2); }
.badge .em { font-size: 1.9rem; display: block; } .badge.lock { opacity: .4; filter: grayscale(1); }
.badge b { display: block; font-size: .8rem; margin-top: 4px; } .badge small { color: var(--mute); font-size: .68rem; }
.auth { max-width: 400px; margin: 9vh auto 0; padding: 18px; }
.auth h1 { text-align: center; font-size: 2rem; letter-spacing: .18em; margin-bottom: 6px; background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skeleton { height: 90px; border-radius: var(--r); background: linear-gradient(90deg, var(--card), var(--card2), var(--card)); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* barra de acciones fija sobre las pestañas inferiores */
.stickbar { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 5; padding: 8px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); }
@media (min-width: 900px) { .stickbar { bottom: 16px; } }

.chips.w { flex-wrap: wrap; overflow: visible; }

/* ================= CAPA NOON: papel cálido, tipografía fina, botones negros ================= */
body { font-family: var(--sans); letter-spacing: -.012em; background-image: none; -webkit-font-smoothing: antialiased; }
h1 { font-size: clamp(2rem, 7vw, 3rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.04em; }
h3 { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .07em; color: var(--mute); }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.big { font-weight: 500; letter-spacing: -.05em; } .tile b, .ringbox .mid b { font-weight: 500; letter-spacing: -.045em; }
.page-head h1 { margin-bottom: 2px; } .page-head p { font-size: .98rem; }

/* superficies planas, esquinas amplias */
.card { border-radius: var(--r); padding: 20px; backdrop-filter: none; box-shadow: none; }
.tile, .item, .check, .hab, .badge { border-radius: 18px; }
.tile { background: var(--card2); }

/* botones: tinta negra, como noon */
button { border-radius: 16px; font-weight: 600; letter-spacing: -.015em; border-color: transparent; background: var(--card2); }
button:hover { border-color: transparent; background: color-mix(in srgb, var(--text) 9%, var(--card2)); }
button.primary { background: var(--ink); color: var(--ink-text); border-color: var(--ink); font-weight: 600; min-height: 50px; }
button.primary:hover { filter: none; opacity: .86; background: var(--ink); }
button.sm { border-radius: 12px; }
.chip { border-radius: 99px; background: var(--card2); border-color: transparent; font-size: .85rem; }
.chip.on { background: var(--ink); color: var(--ink-text); border-color: var(--ink); font-weight: 600; }
.pill { font-family: var(--mono); text-transform: uppercase; font-size: .64rem; letter-spacing: .05em; font-weight: 500; background: var(--card2); border-color: transparent; }
.pill.acc { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.days button.on, .scale button.on { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.days button.today:not(.on) { border-color: var(--ink); }
input, select, textarea { border-radius: 14px; background: var(--card2); border-color: transparent; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
label { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.bar { height: 8px; } .bar > i { background: var(--ink); } .bar.w > i, .bar.v > i { background: var(--acc); }
.check.done .box { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.setrow.done button.okset { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }

/* banda superior en movimiento */
.ticker { background: #2b2a26; color: #f2f2ee; overflow: hidden; white-space: nowrap; padding: 9px 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.ticker-track { display: inline-flex; animation: tick 46s linear infinite; }
.ticker-track span { white-space: pre; }
@keyframes tick { to { transform: translateX(-50%); } }

/* cabecera */
.hd { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); }
.logo { display: inline-flex; align-items: baseline; gap: 7px; line-height: 1; background: transparent !important; border: 0; padding: 0; min-height: 0; color: var(--text); font-family: var(--sans); }
.logo b { font-weight: 900; font-size: 1.2rem; letter-spacing: -.045em; }
.logo i { font-style: normal; font-family: "Doto", var(--mono); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; }
.logo.lg b, .logo.lg i { font-size: 1.7rem; }
.pillnav { display: none; gap: 2px; padding: 4px; margin-left: 8px; background: var(--card2); border-radius: 18px; }
.pillnav button { min-height: 34px; padding: 5px 13px; font-size: .86rem; background: transparent; border-radius: 14px; color: var(--text); }
.pillnav button:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.pillnav button.on { background: var(--ink); color: var(--ink-text); }
.hd-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.hdbtn { min-height: 38px; padding: 3px 12px 3px 3px; border-radius: 99px; background: var(--card2); gap: 8px; font-size: .85rem; }
.hdbtn.on { background: var(--ink); color: var(--ink-text); }
.hdbtn .avatar { width: 32px; height: 32px; font-size: .85rem; }
.hdname { display: none; }
.avatar { background: var(--acc); color: var(--acc-ink); font-weight: 700; }
.shell { display: block; }
.top, .side { display: none !important; }

/* pestañas inferiores: píldora flotante */
.tabs { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 540px; margin: 0 auto; padding: 6px; border-radius: 24px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card-solid) 90%, transparent); backdrop-filter: blur(18px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.tabs button { font-family: var(--mono); text-transform: uppercase; letter-spacing: .03em; font-size: .56rem; min-height: 50px; border-radius: 18px; max-width: none; }
.tabs button.on { background: var(--ink); color: var(--ink-text); }
.main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.stickbar { bottom: calc(96px + env(safe-area-inset-bottom)); }
#toast { bottom: calc(108px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--ink-text); }
.rest { bottom: calc(100px + env(safe-area-inset-bottom)); }
.resting .main { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .pillnav { display: flex; } .tabs { display: none; } .hdname { display: inline; }
  .hd { padding: 14px 32px; } .main { padding-bottom: 48px; } .stickbar { bottom: 16px; } .rest { left: 24px; bottom: 24px; } #toast { bottom: 32px; }
  .wrap { max-width: 980px; padding: 36px 32px; }
}

/* tarjeta destacada: oscura con luz olivo, como el hero de noon */
.card.hero { --text: #f2f2ee; --mute: rgba(242,242,238,.68); --faint: rgba(242,242,238,.45); --card2: rgba(255,255,255,.09); --line: rgba(255,255,255,.14); --ink: #f2f2ee; --ink-text: #161616;
  color: #f2f2ee; border: 0; background: radial-gradient(120% 140% at 90% -10%, #6b7a2c 0%, transparent 58%), linear-gradient(165deg, #35342c, #1a1915); }
.card.hero::after { display: none; }
.card.hero .pill.acc { background: #f2f2ee; color: #161616; }
.card.hero .bar > i { background: #f2f2ee; }

/* hojas y avisos */
.overlay { background: rgba(22,22,22,.45); }
.sheet { background: var(--bg); border-radius: 28px 28px 0 0; } @media (min-width: 700px) { .sheet { border-radius: 28px; } }
.banner { color: var(--text); background: color-mix(in srgb, var(--amber) 16%, var(--card-solid)); }
.banner.good { color: var(--text); background: color-mix(in srgb, var(--ok) 14%, var(--card-solid)); }
.full { background: var(--bg); background-image: radial-gradient(600px 400px at 50% 40%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%); }

/* acceso: tarjeta partida como la ventana de noon */
.auth { max-width: 460px; margin: 5vh auto 0; padding: 16px; }
.auth.wide { max-width: 980px; }
.auth h1 { text-align: left; letter-spacing: -.055em; font-size: clamp(2rem, 7vw, 2.7rem); margin: 22px 0 0; background: none; color: var(--text); -webkit-text-fill-color: currentColor; }
.auth-card { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 32px; overflow: hidden; }
.auth-form { padding: 32px 26px; }
.auth-art { position: relative; min-height: 260px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; color: #f2f2ee;
  background: radial-gradient(90% 80% at 80% 15%, #7d8d34 0%, transparent 60%), radial-gradient(70% 70% at 10% 100%, #a0733a 0%, transparent 60%), linear-gradient(160deg, #3a392f, #1a1915); }
.auth-art p { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.08; }
.auth-art .mono { opacity: .75; }
@media (min-width: 820px) { .auth-card { grid-template-columns: 1.05fr 1fr; } .auth-form { padding: 52px 48px; } .auth-art { min-height: 560px; } }
.auth .field input { background: var(--card2); }

button.linkbtn { min-height: 0; padding: 0; background: none; border: 0; text-decoration: underline; font-weight: 700; color: var(--text); display: inline; }
button.linkbtn:hover { background: none; }

/* guía de ejercicios, objetivos y movilidad */
.exanim { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.exanim img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.exanim img.b { animation: exflip 2.4s ease-in-out infinite; }
@keyframes exflip { 0%, 40% { opacity: 0; } 55%, 90% { opacity: 1; } 100% { opacity: 0; } }
.exanim.none { display: grid; place-items: center; padding: 20px; text-align: center; color: var(--mute); background: var(--card2); font-size: .9rem; aspect-ratio: 5 / 2; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.thumbs img { height: 62px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex: none; }
.item .th { width: 54px; height: 42px; object-fit: cover; border-radius: 10px; background: #fff; flex: none; border: 1px solid var(--line); }
.vid { position: relative; margin-top: 12px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; } .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
button.exbtn { width: 30px; min-height: 30px; padding: 0; border-radius: 99px; vertical-align: middle; margin-left: 4px; }
.goalopt { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; border: 2px solid transparent; border-radius: 18px; background: var(--card2); }
.goalopt.on { border-color: var(--ink); }
.goalopt .em { font-size: 1.7rem; } .goalopt small { display: block; font-weight: 400; color: var(--mute); font-size: .78rem; margin-top: 2px; }
.list > .goalopt + .goalopt { margin-top: 8px; }
.moods { display: flex; gap: 8px; } .moods button { flex: 1; font-size: 1.6rem; min-height: 56px; filter: grayscale(.7); opacity: .7; } .moods button.on { filter: none; opacity: 1; background: var(--ink); }
button.chk { width: 38px; min-height: 38px; padding: 0; border-radius: 50%; flex: none; color: transparent; border: 2px solid var(--faint); background: transparent; }
button.chk.on { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.full.routine { gap: 2px; } .full.routine .exanim { max-width: 420px; }

a > button { color: var(--text); } a { color: inherit; }

/* ================= PORTADA (landing) ================= */
.land { overflow-x: hidden; }
.land .hd { max-width: 1180px; margin: 0 auto; }
.hdbtn.dark { background: var(--ink); color: var(--ink-text); padding: 0 20px; min-height: 40px; font-weight: 600; }
.lhero { max-width: 1180px; margin: 0 auto; padding: 28px 20px 56px; display: grid; gap: 36px; align-items: center; }
.lhero h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); font-weight: 500; letter-spacing: -.06em; line-height: .98; margin: 14px 0 18px; }
.lead { font-size: 1.08rem; line-height: 1.55; color: var(--mute); max-width: 520px; }
.lhero-art { position: relative; min-height: 440px; border-radius: 32px; overflow: hidden; display: grid; place-items: center; padding: 28px 12px 0;
  background: radial-gradient(90% 70% at 85% 10%, #7d8d34 0%, transparent 60%), radial-gradient(70% 60% at 5% 100%, #a0733a 0%, transparent 60%), linear-gradient(160deg, #3a392f, #1a1915); }
.phone { width: 210px; flex: none; border-radius: 30px; overflow: hidden; border: 6px solid #111; background: #111; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.phone img { display: block; width: 100%; height: auto; }
.lhero-art .p1 { position: relative; z-index: 2; transform: translate(-46px, 18px) rotate(-4deg); }
.lhero-art .p2 { position: absolute; z-index: 1; right: 6%; top: 70px; transform: rotate(5deg); width: 190px; }
.band { background: var(--ink); color: var(--ink-text); text-align: center; padding: 16px 12px; }
.lsec { max-width: 1180px; margin: 0 auto; padding: 72px 20px 8px; } .lsec.narrow { max-width: 780px; }
.lhead { margin-bottom: 26px; } .lhead h2, .lshow h2, .lcta h2 { font-size: clamp(1.9rem, 6vw, 3.1rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; margin-top: 10px; }
.lgrid { display: grid; gap: 14px; } .lgrid.two { gap: 14px; }
.lcard { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 24px; }
.lcard h3 { font-family: var(--sans); font-size: 1.25rem; text-transform: none; letter-spacing: -.035em; font-weight: 600; color: var(--text); margin: 10px 0 8px; }
.lcard p { color: var(--mute); line-height: 1.55; } .lcard small { display: block; margin-top: 12px; font-family: var(--mono); font-size: .64rem; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; }
.lcard ul { margin: 12px 0 0; padding-left: 1.1rem; color: var(--mute); font-size: .9rem; line-height: 1.55; } .lem { font-size: 1.8rem; }
.steps { display: grid; gap: 10px; margin-top: 22px; } .steps div { display: flex; gap: 14px; align-items: center; padding: 16px 20px; background: var(--card2); border-radius: 22px; }
.steps b { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--ink-text); display: grid; place-items: center; flex: none; font-weight: 600; } .steps p { margin: 0; font-weight: 500; }
.lshow { margin: 72px 0 0; padding: 56px 20px; background: var(--bg2); } .lshow.alt { background: transparent; margin-top: 56px; }
.lshow-in { max-width: 1180px; margin: 0 auto; display: grid; gap: 32px; align-items: center; }
.lshow-art { display: grid; place-items: center; } .lshow-art .phone { width: 230px; } .ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; } .ticks li::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; background: var(--ink); color: var(--ink-text); font-size: .8rem; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 4px 20px; margin-top: 10px; } summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; } summary::-webkit-details-marker { display: none; } summary::after { content: "+"; float: right; font-size: 1.3rem; } details[open] summary::after { content: "–"; } details p { color: var(--mute); padding-bottom: 16px; line-height: 1.55; }
.lcta { max-width: 1180px; margin: 72px auto 0; text-align: center; padding: 64px 20px; border-radius: 36px; color: #f2f2ee; background: radial-gradient(90% 80% at 80% 10%, #7d8d34 0%, transparent 60%), linear-gradient(160deg, #3a392f, #1a1915); width: calc(100% - 24px); }
.lcta .inv { background: #f2f2ee; color: #161616; border-color: #f2f2ee; padding: 0 34px; }
.lfoot { max-width: 1180px; margin: 0 auto; padding: 40px 20px 60px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--mute); }
@media (min-width: 900px) { .lhero { grid-template-columns: 1.05fr 1fr; padding-top: 56px; } .lgrid { grid-template-columns: repeat(4, 1fr); } .lgrid.two { grid-template-columns: repeat(3, 1fr); } .steps { grid-template-columns: repeat(3, 1fr); } .lshow-in { grid-template-columns: 1fr 1fr; } .lhero-art { min-height: 560px; } .phone { width: 250px; } .lhero-art .p2 { width: 220px; right: 8%; } .lshow-art .phone { width: 270px; } }
@media (min-width: 900px) { #objetivos .lgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) { .land .pillnav { display: none; } }

.land .hd { max-width: none; padding-left: max(20px, calc((100% - 1180px) / 2 + 20px)); padding-right: max(20px, calc((100% - 1180px) / 2 + 20px)); }

.lverse { max-width: 820px; margin: 0 auto; text-align: center; padding: 64px 22px 0; }
.lverse blockquote { margin: 0; font-size: clamp(1.4rem, 4.6vw, 2.2rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.18; }
.lverse cite { display: block; margin-top: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--mute); }
.lverse p { margin: 18px auto 0; max-width: 560px; color: var(--mute); line-height: 1.6; }
.lverse-s { margin-top: 14px; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

/* ================= PORTADA v2: pantalla completa con fotografías ================= */
.land.n { --gut: 14px; }
@media (min-width: 900px) { .land.n { --gut: 30px; } }
.land.n .hd { max-width: none; padding-left: var(--gut); padding-right: var(--gut); }
/* huecos de imagen: si el .jpg no existe se ve el degradado de reserva */
.n-img { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #3a392f; border-radius: 28px; overflow: hidden; position: relative; }
.n-img.tall { aspect-ratio: 4 / 5; } .n-img.sq { aspect-ratio: 1 / 1; }
.g-hero { background-image: linear-gradient(180deg, rgba(10,10,8,0) 35%, rgba(10,10,8,.62) 100%), url('img/hero.jpg'), linear-gradient(150deg, #5b6430 0%, #2b2a24 55%, #161512 100%); }
@media (max-width: 700px) { .g-hero { background-image: linear-gradient(180deg, rgba(10,10,8,0) 30%, rgba(10,10,8,.7) 100%), url('img/hero-m.jpg'), url('img/hero.jpg'), linear-gradient(150deg, #5b6430 0%, #2b2a24 55%, #161512 100%); } }
.g-card-cuerpo { background-image: url('img/card-cuerpo.jpg'), linear-gradient(170deg, #8b8c84, #3c3b36); }
.g-card-comida { background-image: url('img/card-comida.jpg'), linear-gradient(170deg, #9aa07a, #3f4426); }
.g-card-movilidad { background-image: url('img/card-movilidad.jpg'), linear-gradient(170deg, #b9a58a, #5a4a38); }
.g-card-oracion { background-image: url('img/card-oracion.jpg'), linear-gradient(170deg, #a99a86, #4a3d30); }
.g-statement { background-image: url('img/statement.jpg'), radial-gradient(90% 70% at 50% 100%, #d8b99c 0%, #a3a199 45%, #75756f 100%); }
.g-galeria-1 { background-image: url('img/galeria-1.jpg'), linear-gradient(160deg, #c9a24a, #5b6430); }
.g-galeria-2 { background-image: url('img/galeria-2.jpg'), linear-gradient(160deg, #d6cfc2, #8a7e6c); }
.g-familia { background-image: linear-gradient(90deg, rgba(10,10,8,.72) 0%, rgba(10,10,8,.1) 70%), url('img/familia.jpg'), linear-gradient(150deg, #6a7a34, #2a2924); }
.g-cta { background-image: linear-gradient(90deg, rgba(10,10,8,.6) 0%, rgba(10,10,8,.05) 70%), url('img/cta.jpg'), linear-gradient(150deg, #5b6430, #1a1915); }
.g-goal-grasa { background-image: url('img/goal-grasa.jpg'), linear-gradient(160deg, #c4553f, #4a2a22); }
.g-goal-musculo { background-image: url('img/goal-musculo.jpg'), linear-gradient(160deg, #6f6f68, #1e1d1a); }
.g-goal-mantener { background-image: url('img/goal-mantener.jpg'), linear-gradient(160deg, #9aa07a, #3f4426); }
.g-goal-mayores { background-image: url('img/goal-mayores.jpg'), linear-gradient(160deg, #d8b99c, #7a5f45); }
.n-hero { margin: 0 var(--gut); min-height: min(82vh, 780px); display: flex; align-items: flex-end; color: #f2f2ee; padding: 0; }
.n-hero-in { padding: clamp(22px, 4vw, 56px); max-width: 780px; }
.n-hero h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); font-weight: 500; letter-spacing: -.06em; line-height: .96; margin: 12px 0 16px; color: #f2f2ee; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.n-hero p { max-width: 560px; font-size: 1.08rem; line-height: 1.5; opacity: .92; }
.wbtn { background: #f2f2ee; color: #161616; border-color: #f2f2ee; min-height: 50px; padding: 0 26px; }
.wbtn:hover { background: #fff; }
.obtn { background: transparent; border: 1.5px solid currentColor; color: inherit; min-height: 50px; padding: 0 24px; } .obtn:hover { background: rgba(255,255,255,.14); } .obtn.dark { color: var(--text); } .obtn.dark:hover { background: var(--card2); }
.n-marq { overflow: hidden; white-space: nowrap; padding: 18px 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.n-marq-track { display: inline-flex; gap: 46px; animation: tick 40s linear infinite; padding-left: 46px; } .n-marq-track span { flex: none; }
.n-verse { max-width: 860px; margin: 0 auto; text-align: center; padding: 56px 22px 8px; }
.n-verse blockquote { margin: 0; font-size: clamp(1.5rem, 4.8vw, 2.5rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.12; }
.n-verse cite { display: block; margin-top: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--mute); }
.n-verse p { margin: 18px auto 0; max-width: 560px; color: var(--mute); line-height: 1.6; }
.n-sec { padding: 76px var(--gut) 0; } .n-sec.narrow { max-width: 820px; margin: 0 auto; }
.n-head { margin-bottom: 28px; } .n-head h2, .n-phones h2, .n-photo h2, .n-cta h2, .n-statement h2 { font-size: clamp(2rem, 6.4vw, 3.6rem); font-weight: 500; letter-spacing: -.058em; line-height: 1; margin-top: 10px; }
.n-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.n-card h3, .n-goal h3 { font-family: var(--sans); text-transform: none; letter-spacing: -.04em; font-size: 1.3rem; font-weight: 600; color: var(--text); margin: 14px 0 6px; } .n-card p, .n-goal p { color: var(--mute); line-height: 1.5; }
.n-goal ul { margin: 10px 0 0; padding-left: 1.1rem; color: var(--mute); font-size: .88rem; line-height: 1.5; }
.n-goals { display: grid; gap: 22px; grid-template-columns: 1fr; }
.n-statement { display: grid; gap: 22px; margin: 76px var(--gut) 0; align-items: center; }
.n-statement-txt p { color: var(--mute); line-height: 1.55; margin: 18px 0 22px; max-width: 480px; }
.n-gallery { display: grid; gap: 14px; margin: 14px var(--gut) 0; grid-template-columns: 1fr; }
.n-phones { margin: 76px 0 0; padding: 56px var(--gut); background: var(--bg2); display: grid; gap: 28px; align-items: center; }
.n-phones-art { display: flex; gap: 14px; justify-content: center; overflow: hidden; } .n-phones-art .phone { width: 31%; max-width: 250px; min-width: 120px; border-width: 5px; border-radius: 26px; }
.n-phones-art .phone:nth-child(2) { transform: translateY(26px); }
.n-photo { margin: 76px var(--gut) 0; min-height: min(78vh, 700px); display: flex; align-items: center; color: #f2f2ee; }
.n-photo-in { padding: clamp(22px, 4vw, 56px); max-width: 640px; } .n-photo p { line-height: 1.55; opacity: .93; margin-top: 14px; } .n-photo .ticks li::before { background: #f2f2ee; color: #161616; }
.n-cta { margin: 76px var(--gut) 0; min-height: min(70vh, 620px); display: flex; align-items: flex-end; color: #f2f2ee; }
.n-cta-in { padding: clamp(22px, 4vw, 56px); } .n-cta .mono { margin: 14px 0 20px; opacity: .85; }
.n-foot { padding: 40px var(--gut) 0; overflow: hidden; } .n-foot-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--mute); }
.n-wordmark { display: flex; justify-content: space-between; align-items: baseline; line-height: .85; margin-top: 24px; user-select: none; }
.n-wordmark b { font-weight: 900; font-size: 11.4vw; letter-spacing: -.06em; } .n-wordmark i { font-style: normal; font-family: "Doto", var(--mono); font-weight: 800; font-size: 11.4vw; }
.n-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; background: #4a4234; color: #f2f2ee; border: 0; border-radius: 18px; padding: 0 20px; min-height: 48px; font-family: var(--mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
@media (min-width: 900px) {
  .n-cards { grid-template-columns: repeat(4, 1fr); } .n-goals { grid-template-columns: repeat(4, 1fr); }
  .n-statement { grid-template-columns: 1fr 1fr; gap: 56px; } .n-gallery { grid-template-columns: 1fr 1fr; }
  .n-statement-txt { align-self: center; }
  .n-statement .n-img { aspect-ratio: 2 / 1; max-height: none; }
  .n-phones { grid-template-columns: .8fr 1.2fr; padding-top: 80px; padding-bottom: 80px; }
}

.n-statement .n-img { max-height: 86vh; width: 100%; }
.n-gallery .n-img { max-height: 80vh; }
.auth-art { background-image: linear-gradient(180deg, rgba(10,10,8,.05), rgba(10,10,8,.55)), url('img/auth.jpg'), radial-gradient(90% 80% at 80% 15%, #7d8d34 0%, transparent 60%), radial-gradient(70% 70% at 10% 100%, #a0733a 0%, transparent 60%), linear-gradient(160deg, #3a392f, #1a1915); background-size: cover; background-position: center; }

label.check { text-transform: none; font-family: var(--sans); letter-spacing: 0; font-size: .92rem; color: var(--text); font-weight: 500; }

/* ===== Portada: ajustes para tablet y pantallas anchas ===== */
.n-gallery .n-img { max-height: none; }
.g-hero, .g-familia, .g-cta { background-position: center 22%; }
@media (min-width: 600px) {
  .n-cards, .n-goals { grid-template-columns: repeat(2, 1fr); }
  .n-gallery { grid-template-columns: 1fr 1fr; }
  .n-statement .n-img { aspect-ratio: 3 / 2; }
}
@media (min-width: 900px) { .n-cards, .n-goals { grid-template-columns: repeat(4, 1fr); } .n-statement .n-img { aspect-ratio: 2 / 1; } }
@media (min-width: 1500px) {
  .n-gallery .n-img { aspect-ratio: 4 / 3; }
  .n-hero { min-height: 0; aspect-ratio: 2.2 / 1; max-height: 88vh; }
  .n-photo, .n-cta { min-height: 0; aspect-ratio: 2.6 / 1; max-height: 80vh; }
}
@media (min-width: 2100px) { .n-gallery .n-img { aspect-ratio: 3 / 2; } }
@media (min-width: 1500px) { .n-hero { aspect-ratio: auto; max-height: none; height: min(88vh, calc((100vw - 2 * var(--gut)) / 2.2)); } }
@media (min-width: 900px) { .n-statement { gap: 14px; } .n-statement-txt { padding-right: 56px; } }

/* ===== Portada: cabecera fija y transparente (como noon.world) ===== */
.land { overflow-x: clip; }
.land .hd { position: sticky; top: 0; z-index: 40; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 12px; padding-bottom: 12px; }
.land .hd .logo { color: #fff; mix-blend-mode: difference; }
.land .hd .pillnav { background: rgba(248, 248, 245, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.land .hd .hdbtn.dark { background: rgba(22, 22, 22, .92); color: #f8f8f5; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* cada elemento de la cabecera es una píldora sólida; la barra en sí es transparente */
.land .hd .logo { mix-blend-mode: normal; color: var(--text); background: rgba(248, 248, 245, .94) !important; padding: 9px 16px; border-radius: 16px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.land .hd .pillnav { background: rgba(240, 240, 236, .96); }
.land .hd .hdbtn.dark { background: #161616; }

/* asistente IA */
.chatbox { min-height: 46vh; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; } .msg.user { justify-content: flex-end; }
.bub { max-width: 86%; padding: 11px 15px; border-radius: 20px; line-height: 1.5; font-size: .95rem; background: var(--card2); }
.msg.user .bub { background: var(--ink); color: var(--ink-text); border-bottom-right-radius: 6px; } .msg.assistant .bub { border-bottom-left-radius: 6px; }
.chatin textarea { min-height: 52px; resize: none; } .chatin button { align-self: stretch; min-height: 52px; }
