:root {
  --sand: #d8c4a8;
  --earth: #665246;
  --taupe: #9b8773;
  --ivory: #f5f0e8;
  --white: #fcfaf7;
  --ink: #2f2b28;
  --line: #dfd5c8;
  --green: #78927f;
  --display: Didot, "Bodoni MT", "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
.alma21-body {
  margin: 0 !important;
  background: var(--white);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}
.alma21-body h1,
.alma21-body h2,
.alma21-body h3,
.alma21-body p {
  margin-top: 0;
}
.alma21-body a {
  color: inherit;
}
.alma21-body button,
.alma21-body input,
.alma21-body textarea,
.alma21-body select {
  font: inherit;
}
.eyebrow {
  margin-bottom: 18px;
  color: var(--taupe);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.alma-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.alma-brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.alma-brand span {
  display: flex;
  flex-direction: column;
}
.alma-brand b {
  font: 400 27px var(--display);
  letter-spacing: 0.24em;
}
.alma-brand small {
  margin-top: 5px;
  color: var(--taupe);
  font-size: 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.alma-btn {
  min-height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--earth);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.alma-btn:hover {
  background: var(--ink);
}
.alma-main-nav,
.tool-nav {
  height: 96px;
  padding: 0 clamp(22px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid #6652461f;
}
.alma-main-nav > div,
.tool-nav > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.alma-main-nav > div a,
.tool-nav > a:last-child,
.tool-nav > div a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}
.alma-main-nav .outline {
  padding: 12px 17px;
  border: 1px solid var(--earth);
}
.alma-hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--ivory);
}
.alma-hero .copy {
  padding: clamp(60px, 8vw, 120px);
  align-self: center;
}
.alma-hero h1 {
  margin-bottom: 25px;
  font: 400 clamp(48px, 6vw, 88px)/1 var(--display);
  letter-spacing: -0.045em;
}
.alma-hero h1 em {
  color: var(--earth);
  font-weight: 400;
}
.lead {
  max-width: 650px;
  color: #514840;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
}
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}
.actions > a:last-child {
  text-underline-offset: 5px;
}
.note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--taupe);
}
.note b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sand);
  border-radius: 50%;
  font: 400 17px var(--display);
}
.visual {
  position: relative;
  min-height: 600px;
  background: var(--sand);
}
.visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual aside {
  position: absolute;
  left: -48px;
  bottom: 12%;
  width: 240px;
  padding: 24px;
  background: #fcfaf7f2;
  box-shadow: 0 20px 60px #392b2229;
}
.visual aside small {
  display: block;
  margin-bottom: 8px;
  color: var(--taupe);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.visual aside strong {
  font: 400 22px/1.2 var(--display);
}
.alma-section {
  padding: clamp(80px, 9vw, 135px) clamp(24px, 7vw, 110px);
}
.alma-section > header {
  max-width: 820px;
  margin: 0 auto 54px;
  text-align: center;
}
.alma-section > header h2 {
  font: 400 clamp(38px, 4.5vw, 62px)/1.07 var(--display);
  letter-spacing: -0.03em;
}
.alma-section > header > p:last-child {
  color: #655b54;
  font-size: 17px;
  line-height: 1.65;
}
.pain-grid,
.feature-grid,
.premium-grid,
.phase-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  gap: 14px;
}
.pain-grid {
  grid-template-columns: repeat(3, 1fr);
}
.pain-grid article,
.feature-grid article,
.phase-grid article,
.premium-grid article {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
}
.pain-grid span,
.feature-grid span,
.phase-grid span {
  color: var(--taupe);
  font: 400 18px var(--display);
}
.pain-grid p {
  margin: 28px 0 0;
  line-height: 1.55;
}
.method,
.premium-section {
  background: var(--ivory);
}
.phase-grid {
  grid-template-columns: repeat(3, 1fr);
}
.phase-grid h3,
.feature-grid h3,
.premium-grid h3 {
  margin: 25px 0 10px;
  font: 400 27px var(--display);
}
.phase-grid p,
.feature-grid p {
  color: #71665e;
  line-height: 1.55;
}
.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}
.feature-grid a {
  margin-top: 20px;
  display: inline-block;
  color: var(--earth);
  font-size: 12px;
  font-weight: 700;
}
.premium-grid {
  grid-template-columns: repeat(3, 1fr);
}
.premium-grid small {
  color: var(--taupe);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.center {
  margin-top: 40px;
  text-align: center;
}
.center p {
  margin-top: 12px;
  color: var(--taupe);
  font-size: 12px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(460px, 1.15fr);
  background: var(--ivory);
}
.auth-brand-panel {
  padding: clamp(34px, 5vw, 74px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(155deg, #5b493f, #756054);
  color: var(--white);
}
.alma-brand.light {
  color: #fff;
}
.alma-brand.light img {
  filter: brightness(0) invert(1);
  mix-blend-mode: screen;
}
.alma-brand.light small {
  color: #eadfd6;
}
.auth-brand-panel > div {
  max-width: 520px;
}
.auth-brand-panel h2 {
  font: 400 clamp(42px, 5vw, 72px)/1.03 var(--display);
}
.auth-brand-panel > div > p:last-child {
  color: #eee7df;
  font-size: 17px;
  line-height: 1.65;
}
.auth-brand-panel > small {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.auth-form-panel {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.auth-card {
  width: min(100%, 470px);
  padding: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px #66524617;
}
.auth-card h1 {
  font: 400 clamp(40px, 4vw, 56px)/1.03 var(--display);
}
.auth-card > p:not(.eyebrow) {
  margin-bottom: 26px;
  color: #74685f;
  line-height: 1.6;
}
.alma-form {
  display: grid;
  gap: 18px;
}
.alma-form label {
  display: grid;
  gap: 8px;
  color: #4d443e;
  font-size: 13px;
  font-weight: 700;
}
.alma-form input:not([type="checkbox"]),
.alma-form textarea,
.alma-form select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d8cbbd;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.alma-form textarea {
  min-height: 120px;
  resize: vertical;
}
.alma-form input:focus,
.alma-form textarea:focus,
.alma-form select:focus {
  border-color: var(--earth);
  box-shadow: 0 0 0 3px #d8c4a84d;
}
.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
}
.form-meta label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  font-weight: 400;
}
.form-meta input {
  accent-color: var(--earth);
}
.alma-form .alma-btn {
  width: 100%;
}
.auth-footer {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.auth-footer a,
.form-meta a {
  color: var(--earth);
  text-underline-offset: 4px;
}
.alert {
  margin-bottom: 20px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.5;
}
.alert.error {
  background: #f7e8e5;
  border-left: 3px solid #a85e50;
  color: #703b32;
}
.alert.success {
  background: #e8f0e8;
  border-left: 3px solid var(--green);
  color: #3f654a;
}
.dashboard-page,
.tool-page {
  min-height: 100vh;
  background: var(--ivory);
}
.tool-nav {
  position: sticky;
  top: 0;
  z-index: 50;
}
.tool-nav > div a {
  padding: 10px;
  color: var(--earth);
}
.dashboard-hero,
.tool-hero {
  padding: clamp(60px, 8vw, 105px) clamp(24px, 8vw, 125px);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 8vw;
  align-items: end;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.dashboard-hero h1,
.tool-hero h1 {
  margin: 6px 0 18px;
  font: 400 clamp(47px, 6vw, 76px)/1 var(--display);
}
.dashboard-hero h1 em {
  color: var(--earth);
  font-weight: 400;
}
.dashboard-hero > div > p:last-child,
.tool-hero > p:not(.eyebrow) {
  max-width: 700px;
  color: #655b54;
  font-size: 17px;
  line-height: 1.65;
}
.dashboard-hero aside,
.tool-hero aside {
  padding: 24px;
  background: #efe4d5;
  border-left: 3px solid var(--taupe);
}
.dashboard-hero aside b,
.tool-hero aside b {
  display: block;
  margin-bottom: 8px;
  color: var(--earth);
  font: 400 27px var(--display);
}
.dashboard-hero aside p,
.tool-hero aside span {
  color: #74685f;
  font-size: 14px;
  line-height: 1.55;
}
.dashboard-content,
.tool-workspace {
  max-width: 1220px;
  margin: auto;
  padding: 58px 24px 105px;
}
.dashboard-content > header {
  max-width: none;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 35px;
  align-items: end;
  text-align: left;
}
.dashboard-content header h2 {
  margin: 5px 0 0;
  font: 400 clamp(38px, 4vw, 54px)/1.04 var(--display);
}
.dashboard-content header > p {
  margin: 0;
  color: #74685f;
  line-height: 1.6;
}
.resource-library-heading { margin-bottom: 28px !important; }
.resource-library-grid { margin-bottom: 72px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.resource-card { min-height: 390px; display: grid; grid-template-columns: 42% 58%; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.resource-cover,.mai-portrait { min-height: 390px; background: #e8ddd0; }
.resource-cover img,.mai-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mai-portrait img { object-position: 52% center; filter: saturate(.82) sepia(.08); }
.resource-copy { padding: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.resource-copy h3 { margin: 8px 0 14px; font: 400 31px/1.08 var(--display); }
.resource-copy > p:not(.eyebrow):not(.resource-price) { color: #74685f; font-size: 14px; line-height: 1.65; }
.resource-copy .alma-btn { margin-top: auto; }
.mai-resource { grid-template-columns: 38% 62%; background: #f1e6d8; }
.mai-workshop-mark { width: 150px; height: 70px; margin: -8px 0 12px; object-fit: contain; object-position: left center; filter: sepia(.65) saturate(.45) hue-rotate(342deg); opacity: .75; }
.resource-price { margin: 9px 0 18px; display: flex; align-items: center; gap: 12px; }
.resource-price s { color: #8b7f76; font-size: 13px; }
.resource-price strong { padding: 7px 10px; background: #dbc4b3; color: var(--earth); font-size: 12px; letter-spacing: .04em; }
.resource-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.resource-actions .alma-btn { margin-top: 0; }
.resource-access { color: var(--earth); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--taupe); padding-bottom: 4px; }
.resource-copy > small { margin-top: 15px; color: #84776e; font-size: 11px; }
.resource-card-premium { grid-column: 1/-1; min-height: 250px; grid-template-columns: 1fr 340px; background: var(--earth); color: var(--white); }
.resource-card-premium .resource-copy > p:not(.eyebrow) { color: #eee7df; }
.resource-mini-mockups { position: relative; min-height: 250px; }
.resource-mini-mockups img { position: absolute; width: 180px; top: 22px; filter: drop-shadow(0 20px 22px #2d221d55); }
.resource-mini-mockups img:first-child { left: 12px; transform: rotate(-6deg); }
.resource-mini-mockups img:last-child { right: 20px; top: 42px; transform: rotate(7deg); }
#herramientas-programa { scroll-margin-top: 110px; }
.dashboard-grid,
.pack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.dashboard-grid article,
.pack-grid article {
  min-height: 275px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}
.dashboard-grid span,
.pack-grid > article > span {
  color: var(--taupe);
  font: 400 18px var(--display);
}
.dashboard-grid h3,
.pack-grid h2 {
  margin: 34px 0 11px;
  font: 400 27px/1.1 var(--display);
}
.dashboard-grid p,
.pack-grid p {
  color: #74685f;
  font-size: 14px;
  line-height: 1.55;
}
.dashboard-grid a {
  margin-top: auto;
  color: var(--earth);
  font-size: 12px;
  font-weight: 700;
}
.premium-banner {
  margin-top: 28px;
  padding: 38px 44px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 42px;
  align-items: center;
  overflow: hidden;
  background: var(--earth);
  color: var(--white);
}
.premium-banner h2 {
  font: 400 clamp(34px, 4vw, 48px)/1.06 var(--display);
}
.premium-banner p:not(.eyebrow) {
  color: #eee7df;
  line-height: 1.6;
}
.light-btn {
  background: var(--white);
  color: var(--earth) !important;
}
.mockups {
  position: relative;
  min-height: 240px;
}
.mockups img {
  position: absolute;
  width: 220px;
  filter: drop-shadow(0 24px 24px #2d221d55);
}
.mockups img:first-child {
  right: 115px;
  transform: rotate(-6deg);
}
.mockups img:last-child {
  right: 0;
  top: 24px;
  transform: rotate(7deg);
}
.tool-hero {
  grid-template-columns: 1.2fr 0.8fr;
}
.tool-hero > .eyebrow {
  grid-column: 1/-1;
  margin: 0;
}
.pack-grid {
  grid-template-columns: repeat(3, 1fr);
}
.pack-grid article {
  min-height: 300px;
}
.pack-grid .alma-btn {
  margin-top: auto;
}
.tool-footer {
  padding: 28px clamp(24px, 7vw, 100px);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  background: var(--earth);
  color: #fff;
  font-size: 12px;
}
.loading {
  padding: 50px;
  text-align: center;
  color: var(--taupe);
}
.workspace-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}
.panel {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}
.panel h2 {
  font: 400 30px var(--display);
}
.panel h3 {
  font: 400 23px var(--display);
}
.muted {
  color: #786d64;
  font-size: 14px;
  line-height: 1.55;
}
.progress-line {
  height: 7px;
  margin: 15px 0;
  background: #e7ded3;
}
.progress-line span {
  display: block;
  height: 100%;
  background: var(--taupe);
}
.day-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 18px;
}
.day-nav button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--earth);
  cursor: pointer;
}
.day-nav button.active {
  background: var(--earth);
  color: #fff;
}
.day-nav button.done:after {
  content: "✓";
  display: block;
  font-size: 8px;
}
.prompt-box {
  padding: 20px;
  background: #efe4d5;
  border-left: 3px solid var(--taupe);
}
.tool-form {
  display: grid;
  gap: 20px;
}
.tool-form label {
  display: grid;
  gap: 8px;
  color: #4d443e;
  font-size: 13px;
  font-weight: 700;
}
.tool-form input[type="text"],
.tool-form input[type="date"],
.tool-form input[type="email"],
.tool-form textarea,
.tool-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d8cbbd;
  background: #fff;
}
.tool-form textarea {
  min-height: 115px;
  resize: vertical;
}
.check-list {
  display: grid;
  gap: 8px;
}
.check-item {
  display: flex !important;
  flex-direction: row;
  gap: 10px !important;
  padding: 12px;
  background: #f8f4ee;
  border: 1px solid #e5dbce;
  font-weight: 400 !important;
}
.check-item input {
  accent-color: var(--earth);
}
.save-bar {
  position: sticky;
  bottom: 10px;
  margin-top: 25px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px #66524620;
}
.save-status {
  color: #786d64;
  font-size: 13px;
}
.save-status.success {
  color: #3f654a;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-grid article {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.stat-grid b {
  display: block;
  margin-top: 8px;
  font: 400 30px var(--display);
}
.history-list,
.community-feed {
  display: grid;
  gap: 12px;
}
.history-item,
.community-post {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.community-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
}
.community-post header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.community-post small {
  color: var(--taupe);
}
.community-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}
.community-actions button {
  border: 0;
  background: none;
  color: var(--earth);
  text-decoration: underline;
  cursor: pointer;
}
.comments {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.comment {
  padding: 10px;
  background: var(--ivory);
  font-size: 13px;
}
.media-grid,
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.media-card,
.protocol-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.alma-audio {
  display: block;
  width: 100%;
  margin: 16px 0 18px;
  accent-color: var(--earth);
}
.road-steps {
  display: grid;
  gap: 10px;
}
.road-step {
  padding: 16px;
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
}
.road-step > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9ddd0;
  font: 400 20px var(--display);
}
.road-step.done > span {
  background: var(--green);
  color: #fff;
}
.affirmation {
  padding: 35px;
  background: linear-gradient(145deg, #f7f0e7, #e4d4c3);
  text-align: center;
}
.affirmation blockquote {
  font: italic 29px/1.35 var(--display);
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.practice-grid button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #fff;
}
.practice-grid button.done {
  background: var(--green);
  color: #fff;
}
.crisis-box {
  padding: 20px;
  background: #f7e8e5;
  border-left: 3px solid #a85e50;
}
.hidden {
  display: none !important;
}
@media (max-width: 950px) {
  .alma-hero {
    grid-template-columns: 1fr;
  }
  .visual {
    min-height: 520px;
  }
  .visual aside {
    left: 24px;
  }
  .pain-grid,
  .feature-grid,
  .phase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-brand-panel {
    min-height: auto;
    padding: 26px;
  }
  .auth-brand-panel > div,
  .auth-brand-panel > small {
    display: none;
  }
  .dashboard-hero,
  .tool-hero,
  .dashboard-content > header {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .resource-library-grid {
    grid-template-columns: 1fr;
  }
  .pack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .premium-banner {
    grid-template-columns: 1fr;
  }
  .tool-nav {
    height: auto;
    padding: 14px 20px;
    display: block;
  }
  .tool-nav > div {
    margin-top: 12px;
    overflow-x: auto;
  }
  .tool-nav > div a {
    white-space: nowrap;
  }
  .workspace-grid,
  .community-layout {
    grid-template-columns: 1fr;
  }
  .community-layout > .panel:first-child {
    position: static;
  }
}
@media (max-width: 620px) {
  .checkout-lead {
    padding: 24px 18px;
    grid-template-columns: 1fr;
  }
  .checkout-lead > div,
  .checkout-lead > small,
  .checkout-lead .alma-btn {
    grid-column: 1;
  }
  .admin-leads .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .alma-main-nav {
    height: auto;
    padding: 14px 16px;
  }
  .alma-main-nav > div a:first-child {
    display: none;
  }
  .alma-brand img {
    width: 48px;
    height: 48px;
  }
  .alma-brand b {
    font-size: 22px;
  }
  .alma-hero .copy {
    padding: 55px 22px;
  }
  .alma-hero h1 {
    font-size: 48px;
  }
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .alma-section {
    padding: 65px 18px;
  }
  .pain-grid,
  .feature-grid,
  .premium-grid,
  .phase-grid,
  .dashboard-grid,
  .pack-grid,
  .media-grid,
  .protocol-grid {
    grid-template-columns: 1fr;
  }
  .resource-card,
  .mai-resource,
  .resource-card-premium {
    grid-template-columns: 1fr;
  }
  .resource-cover,
  .mai-portrait {
    min-height: 310px;
    max-height: 390px;
  }
  .resource-copy {
    padding: 27px 22px 31px;
  }
  .resource-mini-mockups {
    display: none;
  }
  .auth-form-panel {
    padding: 22px 15px 50px;
  }
  .auth-card {
    padding: 28px 22px;
  }
  .dashboard-hero,
  .tool-hero {
    padding: 48px 22px;
  }
  .dashboard-content,
  .tool-workspace {
    padding: 36px 15px 75px;
  }
  .premium-banner {
    padding: 28px 22px;
  }
  .mockups {
    min-height: 185px;
  }
  .mockups img {
    width: 175px;
  }
  .mockups img:first-child {
    right: 78px;
  }
  .save-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .save-bar .alma-btn {
    width: 100%;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-footer {
    flex-direction: column;
  }
  .day-nav {
    grid-template-columns: repeat(5, 1fr);
  }
  .practice-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.pack-mockup {
  height: 180px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eee4d8;
}
.pack-mockup img {
  max-width: 88%;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 15px 15px #392b2230);
}
.pack-mockup span {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  font-size: 10px !important;
}
.checkout-lead {
  max-width: 780px;
  margin: 44px auto 0;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: left;
}
.checkout-lead > div,
.checkout-lead > small {
  grid-column: 1/-1;
}
.checkout-lead h3 {
  margin: 0 0 8px;
  font: 400 31px var(--display);
}
.checkout-lead p {
  margin: 0;
  color: #74685f;
  line-height: 1.5;
}
.checkout-lead label {
  display: grid;
  gap: 7px;
  color: var(--earth);
  font-size: 12px;
  font-weight: 700;
}
.checkout-lead input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d8cbbd;
  background: #fff;
}
.checkout-lead .alma-btn {
  grid-column: 1/-1;
}
.checkout-lead small {
  color: var(--taupe);
  text-align: center;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.leads-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.leads-table th,
.leads-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}
.leads-table th {
  color: var(--taupe);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lead-status {
  padding: 5px 9px;
  border-radius: 20px;
  background: #efe4d5;
}
.lead-status.purchased {
  background: #e3eee5;
  color: #3f654a;
}
.delete-lead {
  border: 0;
  background: none;
  color: #9c4f43;
  text-decoration: underline;
  cursor: pointer;
}

/* v1.0.2: revisión de logo, navegación y legibilidad móvil */
html,
.alma21-body {
  max-width: 100%;
  overflow-x: hidden;
}
.alma21-body * {
  min-width: 0;
}
.alma-brand img {
  width: 56px;
  height: 56px;
  aspect-ratio: 1;
  padding: 3px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f8f1e7;
}
.alma-brand.light img {
  filter: none;
  mix-blend-mode: normal;
  border-radius: 50%;
  background: #f8f1e7;
}
.alma-brand b,
.alma-brand small {
  white-space: nowrap;
}
.account-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.account-links a {
  padding: 10px;
  color: var(--earth);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
@media (max-width: 620px) {
  .alma-main-nav {
    min-height: 88px;
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .alma-main-nav .alma-brand {
    gap: 8px;
  }
  .alma-main-nav > div {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }
  .alma-main-nav > div a {
    font-size: 9px !important;
    letter-spacing: 0.07em !important;
    white-space: nowrap;
  }
  .alma-main-nav > div a:first-child {
    display: inline-flex;
  }
  .alma-main-nav > div a:nth-child(2) {
    display: none;
  }
  .alma-main-nav .outline {
    padding: 9px 11px;
  }
  .alma-brand img {
    width: 44px;
    height: 44px;
  }
  .alma-brand b {
    font-size: 20px;
    letter-spacing: 0.18em;
  }
  .alma-brand small {
    display: none;
  }
  .alma-hero h1 {
    font-size: clamp(40px, 12vw, 48px);
    line-height: 1.03;
    overflow-wrap: break-word;
  }
  .eyebrow {
    letter-spacing: 0.12em;
    line-height: 1.5;
  }
  .tool-nav {
    padding: 12px 14px;
  }
  .tool-nav .alma-brand {
    gap: 8px;
  }
  .tool-nav > div {
    width: 100%;
    display: flex;
    gap: 4px;
    padding-bottom: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .tool-nav > div::-webkit-scrollbar {
    display: none;
  }
  .tool-nav > div a {
    flex: 0 0 auto;
    padding: 9px 10px;
    font-size: 10px;
    white-space: nowrap;
  }
  .tool-nav > .account-links {
    margin-top: 0;
    width: auto;
    overflow: visible;
  }
  .account-links a {
    padding: 7px 5px !important;
    font-size: 9px !important;
    letter-spacing: 0.06em !important;
  }
  .dashboard-hero h1,
  .tool-hero h1 {
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.06;
    overflow-wrap: break-word;
  }
  .auth-card h1 {
    font-size: clamp(35px, 10vw, 44px);
    line-height: 1.06;
    overflow-wrap: break-word;
  }
  .community-post header {
    align-items: flex-start;
    flex-direction: column;
  }
  .premium-banner {
    max-width: 100%;
  }
  .mockups {
    max-width: 100%;
    overflow: hidden;
  }
  .feature-grid article {
    padding: 24px 20px;
  }
  .panel {
    padding: 20px;
  }
  .road-step {
    grid-template-columns: 45px 1fr;
  }
  .road-step .alma-btn {
    grid-column: 2;
  }
  .form-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  /* v1.3.1: biblioteca visible y ordenada en celulares */
  .dashboard-content .resource-library-heading {
    display: block;
    margin-bottom: 22px !important;
  }
  .dashboard-content .resource-library-heading > p {
    margin-top: 14px;
  }
  .dashboard-content .resource-library-grid {
    width: 100%;
    margin: 0 0 52px;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 18px;
    visibility: visible;
    opacity: 1;
  }
  .resource-library-grid > .resource-card,
  .resource-library-grid > .mai-resource,
  .resource-library-grid > .resource-card-premium {
    width: 100%;
    min-height: 0;
    display: flex !important;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
  }
  .resource-library-grid .resource-cover,
  .resource-library-grid .mai-portrait {
    width: 100%;
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: 4/3;
    flex: 0 0 auto;
  }
  .resource-library-grid .resource-cover img,
  .resource-library-grid .mai-portrait img {
    width: 100%;
    height: 100%;
    display: block !important;
    object-fit: cover;
  }
  .resource-library-grid .mai-resource .mai-portrait {
    height: 235px;
    min-height: 235px;
    aspect-ratio: auto;
    padding: 8px 18px 0;
    background: #eaded0;
  }
  .resource-library-grid .mai-resource .mai-portrait img {
    object-fit: contain;
    object-position: center bottom;
  }
  .resource-library-grid .resource-copy {
    width: 100%;
    min-height: 0;
    padding: 26px 21px 30px;
  }
  .resource-library-grid .resource-copy .alma-btn {
    margin-top: 12px;
  }
  .resource-library-grid .resource-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .resource-library-grid .resource-actions .alma-btn,
  .resource-library-grid .resource-access {
    width: 100%;
    text-align: center;
  }
  .resource-library-grid .resource-access {
    padding: 12px 6px;
  }
}
