:root {
  color-scheme: dark;
  font-family: Satoshi, "Helvetica Neue", Arial, sans-serif;
  background: #101110;
  color: #f5f5ef;
  --ink: #101110;
  --paper: #f5f5ef;
  --muted: #acada8;
  --line: #383a36;
  --accent: #d9dbd1;
  --gutter: clamp(1.25rem, 6vw, 6.5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.top, footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; }
.brand strong { font-size: 2.3rem; line-height: .92; letter-spacing: -.105em; }
.brand strong span { margin-left: .05em; color: var(--muted); }
.brand small { margin-top: .42rem; font-size: .52rem; letter-spacing: .20em; font-weight: 700; }
nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3.5rem); font-size: .87rem; }
.outline, .button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 44px; padding: .7rem 1rem; font-weight: 700; font-size: .86rem;
}
.outline { border: 1px solid #6d6f67; }
.button { border: 1px solid var(--paper); background: var(--paper); color: var(--ink); }
.button:hover { background: #d7d8d1; border-color: #d7d8d1; }
.outline:hover { background: #292b27; }
.button:disabled { opacity: .42; cursor: default; }
.hero {
  position: relative; display: grid; align-items: center; isolation: isolate;
  min-height: clamp(560px, 76svh, 830px); overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #0c0d0cea 0%, #0c0d0c8c 42%, #0c0d0c05 80%),
    linear-gradient(0deg, #101110b0, transparent 25%),
    url("./hero.webp") 65% 49% / cover no-repeat, #252724;
}
.hero-content { padding: 4.75rem var(--gutter) 6.5rem; }
.kicker {
  display: flex; align-items: center; gap: .65rem; margin: 0 0 1.55rem;
  color: var(--accent); font: 700 .72rem/1.45 monospace; text-transform: uppercase; letter-spacing: .13em;
}
.kicker span { width: 1.25rem; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .portal h1, .method h2 { font-weight: 800; letter-spacing: -.075em; line-height: .94; }
.hero h1 { font-size: clamp(3.25rem, 9.3vw, 9rem); margin: 0 0 1.65rem; }
.hero h1 span, .portal h1 span { color: #bbbdaf; }
.intro { font-size: clamp(1rem, 1.6vw, 1.23rem); line-height: 1.55; max-width: 31ch; color: #e5e5df; margin-bottom: 1.9rem; }
.hero-caption {
  position: absolute; inset: auto var(--gutter) 1.25rem; display: flex; justify-content: space-between;
  padding-top: .85rem; border-top: 1px solid #e0e1d96b; color: #e6e6de;
  font: .65rem/1.25 monospace; letter-spacing: .11em;
}
.method { display: grid; grid-template-columns: 1fr 1.18fr; gap: 3rem; background: #eaeae3; color: var(--ink); padding: clamp(3.5rem, 8vw, 8rem) var(--gutter); }
.method .kicker { color: #52564a; }
.method h2 { font-size: clamp(3rem, 6.5vw, 6.5rem); margin-bottom: 0; }
.method h2 span { color: #64685d; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.pillars article { border-top: 1px solid #a9ab9e; padding: 1rem 0 .35rem; }
.pillars h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.pillars p { color: #484b44; font-size: .95rem; line-height: 1.5; margin-bottom: 0; }
footer { border: 0; color: var(--muted); font-size: .85rem; }
footer .brand { color: var(--paper); }
.portal { max-width: 870px; margin: 0 auto; padding: 3.2rem 1.25rem; }
.portal h1 { font-size: clamp(3.5rem, 10vw, 6.5rem); margin-bottom: 1rem; }
.demo-note, .muted { color: var(--muted); line-height: 1.55; }
.card { border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); margin-bottom: .8rem; background: #171916; }
.card h2 { font-size: 1.55rem; letter-spacing: -.035em; margin-bottom: .8rem; }
.payment-data { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; border-block: 1px solid var(--line); padding: .85rem 0; }
.payment-data dt { color: var(--muted); font-size: .78rem; margin-bottom: .3rem; }
.payment-data dd { margin: 0; font-weight: 700; }
form { display: grid; gap: .65rem; }
form .button { justify-self: start; }
label { display: block; font-size: .88rem; }
input, textarea { display: block; border: 1px solid #676960; background: #101110; color: var(--paper); padding: .65rem; width: 100%; min-width: 0; min-height: 44px; border-radius: 0; }
label input { margin-top: .32rem; }
.exercise-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }
.exercises { padding: 0; list-style: none; }
.exercises li { border-bottom: 1px solid var(--line); padding: .7rem 0; overflow-wrap: anywhere; }
#receipt-preview { display: block; max-width: 100%; max-height: 280px; margin-bottom: 1rem; object-fit: contain; }
#feedback { min-height: 1.25rem; color: var(--accent); }
@media (max-width: 650px) {
  .nav-method { display: none; }
  .hero { min-height: min(690px, 84svh); align-items: end; }
  .hero-media { background-position: center, center, 61% center; }
  .hero-content { padding-bottom: 5rem; }
  .method { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 355px) { .hero h1 { font-size: 2.7rem; } .pillars { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.member-nav { flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 .8rem; }
.member-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .3rem; }
.fitness-form { grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 1fr)); }
.fitness-form input, .fitness-form select { margin-top: .35rem; }
select { display: block; width: 100%; min-height: 44px; padding: .55rem; background: var(--ink); color: var(--paper); border: 1px solid #676960; font: inherit; }
.session { border-top: 1px solid var(--line); margin-top: 1.2rem; padding: .9rem 0 0; }
.session summary { cursor: pointer; min-height: 34px; }
.session-fieldset { border: 0; border-top: 1px solid var(--line); padding: .65rem 0; margin: 0; min-width: 0; }
.session-fieldset legend { max-width: 100%; font-weight: bold; padding-right: .35rem; }
.session-fieldset p { margin: 0 0 .4rem; color: var(--muted); font-size: .84rem; }
.session-fieldset .fitness-form, .trend-filters { display: grid; gap: .6rem; }
.trend-filters { margin: 1.2rem 0 .7rem; }
.trend { display: block; width: 100%; max-height: 160px; margin: .6rem 0 1rem; color: var(--paper); background: #101110; border: 1px solid var(--line); }
#progress-chart { margin-bottom: 1.5rem; overflow-wrap: anywhere; }
#routine-status, #progress-status, #nutrition-status { margin: .65rem 0 0; }
#routine-status:empty, #progress-status:empty, #nutrition-status:empty { display: none; }
.exercises details summary { cursor: pointer; }
.exercises details ul { margin: .45rem 0; padding-left: 1.3rem; }
.exercises details li { border: 0; padding: .2rem 0; }

/* ALFA portal and interactive accents */
:root { --signal: #c8ff48; --signal-ink: #182407; --button-radius: 6px; }
.button, .outline { border-radius: var(--button-radius); }
.button { color: var(--signal-ink); background: var(--signal); border-color: var(--signal); }
.button:hover { background: #dbff8e; border-color: #dbff8e; }
.outline:hover { border-color: var(--signal); }
.hero h1 span, .portal h1 span, .brand strong span { color: var(--signal); }
:focus-visible { outline-color: var(--signal); }
.portal-body { background: #101110; }
.portal-body .top { min-height: 66px; }
.portal { max-width: 1080px; padding-top: 1.6rem; }
.portal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.portal-toolbar .demo-note { font-size: .8rem; margin: 0; }
.member-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; padding: .35rem; margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: 10px; background: #151713; }
.member-nav a { display: flex; justify-content: center; gap: .5rem; text-decoration: none; border-radius: 6px; color: #bbbdaf; font-weight: 700; }
.member-nav svg, .quick-actions svg { width: 1.25rem; height: 1.25rem; flex: none; }
.member-nav a[aria-current="page"] { background: #273118; color: var(--signal); }
.member-nav a:hover { color: var(--signal); }
.portal h1 { font-size: clamp(2.55rem, 6vw, 4.8rem); line-height: 1; margin: 0 0 1.05rem; }
.dashboard { display: grid; grid-template-columns: 1.3fr 1fr; gap: .8rem; }
.dashboard h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.025em; }
.today-card { grid-column: 1 / -1; display: grid; align-items: end; min-height: 265px; border: 1px solid #4b5841; border-radius: 13px; overflow: hidden; background: linear-gradient(90deg,#161d13 1%,#151a13e6 37%,#151a1338 80%), url("./alfa-entrenador.jpg") 68% 43% / cover #151a13; }
.today-content { padding: clamp(1rem, 4vw, 2.4rem); max-width: 38rem; }
.dashboard-label { color: var(--signal); font-size: .72rem; font-weight: 750; margin: 0 0 .55rem; }
.today-card h2 { font-size: clamp(1.85rem, 5vw, 3.55rem); letter-spacing: -.055em; line-height: .98; }
#overview-session-meta { color: #e1e3d8; max-width: 37ch; margin: .75rem 0 1rem; font-size: .9rem; line-height: 1.45; }
.dashboard-card, .screen-card { border: 1px solid #30342c; border-radius: 12px; background: #191b17; padding: clamp(1rem, 2.6vw, 1.5rem); }
.weekly-stat { display: flex; align-items: baseline; gap: .5rem; margin: .5rem 0 0; color: var(--muted); font-size: .79rem; }
.weekly-stat strong { color: var(--paper); font-size: 2rem; line-height: 1; }
.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: .32rem; margin-top: .6rem; }
.week-day { display: grid; gap: .32rem; text-align: center; font-size: .7rem; color: var(--muted); }
.week-track { height: 41px; display: grid; align-items: end; justify-items: center; }
.week-fill { display: block; width: min(100%, 19px); border-radius: 4px; height: var(--bar, 5px); background: #414639; }
.week-fill.filled { background: var(--signal); }
.quick-actions { display: grid; gap: .4rem; margin-top: .65rem; }
.quick-actions a { min-height: 44px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .55rem; padding: .45rem .6rem; background: #23271e; border-radius: 6px; font-size: .84rem; }
.quick-actions svg, .quick-actions a:hover { color: var(--signal); }
.membership-card { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.membership-status { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; font-size: .86rem; }
.membership-status strong { background: #272b22; color: #d9dece; border-radius: 6px; padding: .4rem .5rem; }
.membership-status a { color: var(--signal); padding: .65rem 0; }
.screen-card > h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.screen-card input, .screen-card select, .screen-card textarea { border-radius: 6px; }
.panel-title { font-size: 1.6rem; margin-bottom: 1rem; }
.exercise-tools, .coach-note { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: .9rem; }
.exercise-tools summary { cursor: pointer; margin-bottom: .75rem; }
.trend { color: var(--signal); }
#feedback:empty { display: none; }
@media (max-width: 640px) {
  .portal { padding: .95rem .85rem calc(5.65rem + env(safe-area-inset-bottom)); }
  .portal-body .top { padding-inline: .85rem; }
  .portal-toolbar { margin-bottom: .55rem; }
  .member-nav { position: fixed; z-index: 2; inset: auto 0 0; margin: 0; padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom)); border-radius: 0; border-inline: 0; border-bottom: 0; gap: .12rem; }
  .member-nav a { flex-direction: column; min-width: 0; gap: .2rem; min-height: 50px; font-size: .65rem; }
  .dashboard { gap: .6rem; grid-template-columns: 1fr 1fr; }
  .today-card { min-height: 218px; background-position: center, 59% 51%; }
  .dashboard-card { padding: .8rem .62rem; min-width: 0; }
  .quick-actions a { font-size: .76rem; padding-inline: .4rem; grid-template-columns: auto 1fr; }
  .quick-actions a > span:last-child { display: none; }
  .quick-actions svg { width: 1rem; height: 1rem; }
  .weekly-stat { gap: .3rem; line-height: 1.17; }
}
@media (max-width: 340px) {
  .dashboard { grid-template-columns: 1fr; }
}
.action-arrow { position: relative; display: inline-block; width: .65rem; height: .65rem; flex: none; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; vertical-align: middle; }
.action-arrow::after { position: absolute; content: ""; width: .82rem; top: -.5px; right: -.5px; border-top: 1.5px solid currentColor; transform: rotate(-45deg); transform-origin: right top; }
.action-arrow.down { transform: rotate(90deg); }
[data-screen] > h1:focus, [data-screen] > h2:focus { outline: none; }

.sign-in { max-width: 465px; padding-top: clamp(2rem, 9vw, 5rem); }
.sign-in > h1 { font-size: clamp(2.5rem, 9vw, 4rem); }
.sign-in input { border-radius: var(--button-radius); }
.sign-in form { gap: .9rem; }
.sign-in #access-status { margin: 0; }
.sign-in #access-status:empty, .install-status:empty { display: none; }
.account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
button.outline { color: var(--paper); background: transparent; }
button.outline:hover { background: #252921; }
.install-status { font-size: .82rem; margin-top: .75rem; }

.public-plans { padding: clamp(3rem, 7vw, 6.5rem) var(--gutter); }
.public-plans h2 { font-size: clamp(2.25rem, 6vw, 5rem); line-height: 1; letter-spacing: -.065em; }
.public-plans h2 span { color: var(--signal); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: .7rem; }
.plan-grid article { background: #191b17; border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; }
.plan-grid h3 { margin-bottom: .65rem; }
.plan-grid p { color: var(--muted); margin: 0; line-height: 1.55; }
#admin-member, #admin-member-form { margin-top: .65rem; }
.payment-review { padding-block: 1rem; border-top: 1px solid var(--line); }
.payment-review form { margin-top: .75rem; }
.payment-review img { display: block; max-width: 100%; max-height: 55vh; margin-top: .65rem; }
.review-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
#payment-feedback:empty, #admin-feedback:empty, .payment-review [role=status]:empty { display: none; }

.alfa-public-hero .hero-media { z-index: -1; background: linear-gradient(90deg, #101110 33%, #101110aa 53%, transparent 83%), linear-gradient(0deg, #101110d6, transparent 30%); }
.hero-photo { position: absolute; z-index: -2; inset: 0 0 0 auto; width: min(57%, 900px); height: 100%; object-fit: cover; object-position: center 39%; filter: saturate(.65); }
.alfa-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 2vw, 1.5rem); padding: 0 var(--gutter) clamp(3rem, 7vw, 6.5rem); }
.alfa-gallery h2 { grid-column: 1 / -1; margin: 0 0 .25rem; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.045em; }
.alfa-gallery h2 span { color: var(--signal); }
.alfa-gallery figure { min-width: 0; margin: 0; }
.alfa-gallery img { display: block; width: 100%; height: clamp(185px, 38vw, 460px); border: 1px solid var(--line); border-radius: 10px; object-fit: cover; object-position: center 52%; filter: saturate(.7); }
.alfa-gallery figcaption { margin-top: .6rem; color: var(--muted); font-size: .85rem; }
[data-suggestion] { white-space: pre-line; }
@media (max-width: 650px) {
  .hero-photo { width: 100%; object-position: center 25%; }
  .alfa-public-hero .hero-media { background: linear-gradient(0deg, #101110 4%, #101110d9 39%, transparent 82%); }
}
