:root {
  --sbs-ca-orange: hsl(var(--primary, 30 93% 54%));
  --sbs-ca-black: hsl(var(--sbs-black, 0 0% 4%));
  --sbs-ca-graphite: hsl(var(--sbs-graphite, 0 0% 10%));
  --sbs-ca-light: hsl(var(--sbs-light, 0 0% 95%));
  --sbs-ca-white: hsl(var(--secondary-foreground, 0 0% 96%));
  --sbs-ca-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sbs-ca-display: 'Bebas Neue', Impact, sans-serif;
}

.sbs-ca-fallback-page {
  min-height: 75vh;
  padding: 8.5rem 1.25rem 5rem;
  background: var(--sbs-ca-light);
  color: var(--sbs-ca-black);
}

.sbs-ca-panel,
.sbs-ca-courses {
  width: min(100%, 72rem);
  margin-inline: auto;
  color: var(--sbs-ca-black);
  font-family: var(--sbs-ca-body);
}

.sbs-ca-panel {
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border: 1px solid rgb(0 0 0 / .09);
  background: #fff;
  box-shadow: 0 18px 55px rgb(0 0 0 / .08);
}

.sbs-ca-panel--centered {
  max-width: 42rem;
  text-align: center;
}

.sbs-ca-panel h1,
.sbs-ca-courses h1,
.sbs-ca-course-card h2,
.sbs-ca-empty h2,
.sbs-ca-downloads h2,
.sbs-ca-fallback-course h1 {
  margin: 0;
  color: var(--sbs-ca-black);
  font-family: var(--sbs-ca-display);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .98;
  text-transform: uppercase;
}

.sbs-ca-panel h1,
.sbs-ca-courses h1,
.sbs-ca-fallback-course h1 {
  font-size: clamp(2.9rem, 8vw, 5rem);
}

.sbs-ca-panel > p:not(.sbs-ca-eyebrow),
.sbs-ca-intro {
  color: rgb(10 10 10 / .66);
  line-height: 1.65;
}

.sbs-ca-eyebrow {
  margin: 0 0 .65rem;
  color: var(--sbs-ca-orange);
  font: 700 .72rem/1.2 var(--sbs-ca-body);
  letter-spacing: .32em;
  text-transform: uppercase;
}

.sbs-ca-form {
  margin-top: 1.6rem;
  display: grid;
  gap: .75rem;
  text-align: left;
}

.sbs-ca-form label,
.sbs-ca-password-fields legend {
  color: rgb(10 10 10 / .82);
  font: 700 .78rem/1.3 var(--sbs-ca-body);
}

.sbs-ca-form input[type='text'],
.sbs-ca-form input[type='email'],
.sbs-ca-form input[type='password'] {
  width: 100%;
  min-height: 3rem;
  padding: .72rem .85rem;
  border: 1px solid rgb(10 10 10 / .18);
  border-radius: 0;
  background: #fff;
  color: var(--sbs-ca-black);
  font: 400 1rem/1.2 var(--sbs-ca-body);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.sbs-ca-form input:focus {
  border-color: var(--sbs-ca-orange);
  box-shadow: 0 0 0 3px hsl(30 93% 54% / .18);
}

.sbs-ca-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sbs-ca-checkbox {
  margin-block: .3rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}

.sbs-ca-checkbox input {
  accent-color: var(--sbs-ca-orange);
}

.sbs-ca-button {
  min-height: 2.85rem;
  padding: .8rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sbs-ca-orange);
  border-radius: 0;
  background: var(--sbs-ca-orange);
  color: #fff;
  font: 700 .84rem/1.2 var(--sbs-ca-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.sbs-ca-button:hover,
.sbs-ca-button:focus-visible {
  background: hsl(30 93% 48%);
  color: #fff;
  transform: translateY(-1px);
}

.sbs-ca-button:focus-visible,
.sbs-ca-text-link:focus-visible,
.sbs-ca-course-card a:focus-visible,
.sbs-ca-course-video button:focus-visible,
.sbs-ca-downloads a:focus-visible {
  outline: 3px solid hsl(30 93% 54% / .3);
  outline-offset: 2px;
}

.sbs-ca-button--secondary {
  border-color: rgb(10 10 10 / .25);
  background: transparent;
  color: var(--sbs-ca-black);
}

.sbs-ca-button--secondary:hover,
.sbs-ca-button--secondary:focus-visible {
  border-color: var(--sbs-ca-black);
  background: var(--sbs-ca-black);
  color: #fff;
}

.sbs-ca-button--full {
  width: 100%;
  margin-top: .45rem;
}

.sbs-ca-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
}

.sbs-ca-actions--footer {
  padding-top: 1.25rem;
  justify-content: space-between;
  border-top: 1px solid rgb(10 10 10 / .1);
}

.sbs-ca-text-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: rgb(10 10 10 / .68);
  font: 600 .8rem/1.3 var(--sbs-ca-body);
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.sbs-ca-text-link--danger {
  color: #a42121;
}

.sbs-ca-notice {
  margin: 1.25rem 0;
  padding: .8rem 1rem;
  border-left: .25rem solid;
  font: 600 .82rem/1.5 var(--sbs-ca-body);
  text-align: left;
}

.sbs-ca-notice--error {
  border-color: #b42318;
  background: #fff1f0;
  color: #8d1c13;
}

.sbs-ca-notice--success {
  border-color: #17803d;
  background: #ecfdf3;
  color: #126a33;
}

.sbs-ca-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
}

.sbs-ca-form-grid > div {
  display: grid;
  gap: .75rem;
}

.sbs-ca-password-fields {
  margin: 1.2rem 0 .4rem;
  padding: 1.1rem;
  display: grid;
  gap: .7rem;
  border: 1px solid rgb(10 10 10 / .12);
}

.sbs-ca-password-fields p {
  margin: 0 0 .45rem;
  color: rgb(10 10 10 / .56);
  font-size: .8rem;
}

.sbs-ca-section-header {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.sbs-ca-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}

.sbs-ca-course-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(10 10 10 / .09);
  background: #fff;
  box-shadow: 0 12px 35px rgb(0 0 0 / .06);
}

.sbs-ca-course-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--sbs-ca-graphite);
  color: var(--sbs-ca-orange);
  font: 400 3.5rem/1 var(--sbs-ca-display);
  text-decoration: none;
}

.sbs-ca-course-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.sbs-ca-course-card:hover .sbs-ca-course-card__image img {
  transform: scale(1.025);
}

.sbs-ca-course-card__body {
  padding: 1.25rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.sbs-ca-course-card__status {
  margin: 0 0 .55rem;
  color: #17803d;
  font: 700 .67rem/1.2 var(--sbs-ca-body);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sbs-ca-course-card h2 {
  font-size: 2rem;
}

.sbs-ca-course-card h2 a {
  color: inherit;
  text-decoration: none;
}

.sbs-ca-course-card__body > p:not(.sbs-ca-course-card__status) {
  margin: .75rem 0;
  color: rgb(10 10 10 / .62);
  font-size: .86rem;
  line-height: 1.55;
}

.sbs-ca-course-card small {
  margin: auto 0 1rem;
  color: rgb(10 10 10 / .46);
  font: 500 .72rem/1.4 var(--sbs-ca-body);
}

.sbs-ca-empty {
  padding: clamp(2rem, 8vw, 4.5rem);
  border: 1px dashed rgb(10 10 10 / .22);
  background: rgb(255 255 255 / .55);
  text-align: center;
}

.sbs-ca-empty h2 {
  font-size: 2.5rem;
}

.sbs-ca-empty p {
  max-width: 36rem;
  margin: .75rem auto 0;
  color: rgb(10 10 10 / .6);
  line-height: 1.6;
}

.sbs-ca-downloads {
  margin-top: 3rem;
  padding: 1.4rem;
  border: 1px solid rgb(10 10 10 / .1);
  background: #fff;
  color: var(--sbs-ca-black);
  font-family: var(--sbs-ca-body);
}

.sbs-ca-downloads h2 {
  font-size: 2rem;
}

.sbs-ca-downloads ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.sbs-ca-downloads li {
  padding: .8rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgb(10 10 10 / .1);
}

.sbs-ca-downloads li span {
  min-width: 0;
  display: grid;
}

.sbs-ca-downloads strong {
  overflow-wrap: anywhere;
}

.sbs-ca-downloads small {
  color: rgb(10 10 10 / .5);
}

.sbs-ca-downloads a {
  flex: 0 0 auto;
  padding: .55rem .75rem;
  background: var(--sbs-ca-black);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.sbs-ca-course-video {
  position: relative;
  margin: 0 0 2.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sbs-ca-black);
}

.sbs-ca-course-video__frame,
.sbs-ca-course-video__frame iframe {
  width: 100%;
  height: 100%;
}

.sbs-ca-course-video__frame iframe {
  display: block;
  border: 0;
}

.sbs-ca-course-video__placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  background: linear-gradient(135deg, #171717, #050505);
  color: rgb(255 255 255 / .72);
  text-align: center;
}

.sbs-ca-course-video__placeholder p {
  max-width: 35rem;
  margin: 0;
  font: 400 .86rem/1.55 var(--sbs-ca-body);
}

.sbs-ca-course-video__placeholder button {
  padding: .7rem .9rem;
  border: 0;
  background: var(--sbs-ca-orange);
  color: #fff;
  font: 700 .8rem/1.2 var(--sbs-ca-body);
  cursor: pointer;
}

.sbs-ca-course-video.is-consented .sbs-ca-course-video__placeholder,
.sbs-ca-course-video:has(iframe[src]) .sbs-ca-course-video__placeholder {
  display: none;
}

.sbs-ca-fallback-course__inner {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.sbs-ca-fallback-course__image {
  margin: 2rem 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.sbs-ca-fallback-course__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sbs-ca-fallback-course__content {
  font-family: var(--sbs-ca-body);
  line-height: 1.7;
}

@media (min-width: 680px) {
  .sbs-ca-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .sbs-ca-section-header {
    align-items: stretch;
  }

  .sbs-ca-section-header .sbs-ca-button {
    width: 100%;
  }

  .sbs-ca-downloads li {
    align-items: stretch;
    flex-direction: column;
  }

  .sbs-ca-downloads a {
    text-align: center;
  }
}

/* -------------------------------------------------------------------------
 * Planes especializados: alimentación, recetas y entrenamientos
 * ---------------------------------------------------------------------- */
.sbs-ca-plan,
.sbs-ca-content-detail {
  width: min(100%, 78rem);
  margin-inline: auto;
  color: var(--sbs-ca-black);
  font-family: var(--sbs-ca-body);
}

.sbs-ca-plan * {
  box-sizing: border-box;
}

.sbs-ca-plan-hero {
  position: relative;
  min-height: 31rem;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, .82fr);
  overflow: hidden;
  background: var(--sbs-ca-black);
  color: var(--sbs-ca-white);
  box-shadow: 0 28px 75px rgb(0 0 0 / .18);
}

.sbs-ca-plan-hero::after {
  position: absolute;
  right: 42%;
  bottom: -8rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid hsl(30 93% 54% / .34);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.sbs-ca-plan-hero__copy {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sbs-ca-back-link {
  width: fit-content;
  margin-bottom: 1.75rem;
  color: currentColor;
  font: 700 .75rem/1.2 var(--sbs-ca-body);
  letter-spacing: .04em;
  text-decoration: none;
  opacity: .64;
  transition: opacity .2s ease, color .2s ease;
}

.sbs-ca-back-link:hover,
.sbs-ca-back-link:focus-visible {
  color: var(--sbs-ca-orange);
  opacity: 1;
}

.sbs-ca-plan-hero h1,
.sbs-ca-plan-section h2,
.sbs-ca-meal-day h3,
.sbs-ca-content-detail h1,
.sbs-ca-content-card h3,
.sbs-ca-type-card span {
  margin: 0;
  font-family: var(--sbs-ca-display);
  font-weight: 400;
  letter-spacing: .018em;
  line-height: .94;
  text-transform: uppercase;
}

.sbs-ca-plan-hero h1 {
  max-width: 16ch;
  color: #fff;
  font-size: clamp(3.7rem, 8vw, 7.4rem);
}

.sbs-ca-plan-hero__intro {
  max-width: 46rem;
  margin: 1.35rem 0 0;
  color: rgb(255 255 255 / .76);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.sbs-ca-plan-hero__dates {
  width: fit-content;
  margin: 1.35rem 0 0;
  padding: .55rem .75rem;
  border: 1px solid rgb(255 255 255 / .2);
  color: rgb(255 255 255 / .72);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sbs-ca-plan-hero__objective {
  max-width: 47rem;
  margin-top: 1.5rem;
  color: rgb(255 255 255 / .66);
  line-height: 1.7;
}

.sbs-ca-plan-hero__objective > :first-child,
.sbs-ca-rich-text > :first-child {
  margin-top: 0;
}

.sbs-ca-plan-hero__objective > :last-child,
.sbs-ca-rich-text > :last-child {
  margin-bottom: 0;
}

.sbs-ca-plan-hero__image,
.sbs-ca-plan-hero__visual {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #2c2c2c, #090909);
}

.sbs-ca-plan-hero__image img {
  width: 100%;
  height: 100%;
  min-height: 31rem;
  display: block;
  object-fit: cover;
  filter: saturate(.82) contrast(1.04);
}

.sbs-ca-plan-hero__visual {
  display: grid;
  place-items: center;
}

.sbs-ca-plan-hero__visual span {
  color: var(--sbs-ca-orange);
  font: 400 clamp(6rem, 12vw, 11rem)/1 var(--sbs-ca-display);
  letter-spacing: -.04em;
  transform: rotate(-7deg);
}

.sbs-ca-plan-nav {
  position: sticky;
  top: 4.75rem;
  z-index: 8;
  padding: .85rem 1rem;
  display: flex;
  justify-content: center;
  gap: .5rem;
  border-bottom: 1px solid rgb(0 0 0 / .08);
  background: rgb(245 245 245 / .93);
  backdrop-filter: blur(14px);
}

.sbs-ca-plan-nav a {
  padding: .68rem .9rem;
  color: rgb(10 10 10 / .68);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .18s ease, color .18s ease;
}

.sbs-ca-plan-nav a:hover,
.sbs-ca-plan-nav a:focus-visible,
.sbs-ca-plan-nav a.is-active,
.sbs-ca-plan-nav a[aria-current="location"] {
  background: var(--sbs-ca-black);
  color: #fff;
}

.sbs-ca-plan-section {
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 4vw, 3.5rem);
  scroll-margin-top: 7rem;
}

.sbs-ca-plan-section--contrast {
  border-top: 1px solid rgb(0 0 0 / .08);
  background: #fff;
}

.sbs-ca-section-heading {
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .65fr);
  align-items: end;
  gap: 2rem;
}

.sbs-ca-section-heading h2 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.sbs-ca-section-heading > p {
  margin: 0;
  color: rgb(10 10 10 / .58);
  line-height: 1.65;
}

/* Calendario */
.sbs-ca-calendar {
  border: 1px solid rgb(0 0 0 / .1);
  background: #fff;
  box-shadow: 0 18px 55px rgb(0 0 0 / .07);
}

.sbs-ca-calendar__toolbar {
  min-height: 5rem;
  padding: .75rem 1rem;
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  border-bottom: 1px solid rgb(0 0 0 / .09);
  background: var(--sbs-ca-black);
  color: #fff;
}

.sbs-ca-calendar__toolbar h3 {
  margin: 0;
  font: 400 clamp(2rem, 5vw, 3rem)/1 var(--sbs-ca-display);
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
}

.sbs-ca-calendar__toolbar a {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .2);
  color: #fff;
  font-size: 1.35rem;
  text-decoration: none;
}

.sbs-ca-calendar__toolbar a:last-child {
  justify-self: end;
}

.sbs-ca-calendar__weekdays,
.sbs-ca-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.sbs-ca-calendar__weekdays {
  border-bottom: 1px solid rgb(0 0 0 / .08);
  background: #f4f4f4;
}

.sbs-ca-calendar__weekdays span {
  padding: .72rem .35rem;
  color: rgb(10 10 10 / .48);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.sbs-ca-calendar-day,
.sbs-ca-calendar__blank {
  min-height: 8.25rem;
  padding: .72rem;
  border-right: 1px solid rgb(0 0 0 / .07);
  border-bottom: 1px solid rgb(0 0 0 / .07);
}

.sbs-ca-calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  background: #fff;
}

.sbs-ca-calendar-day:nth-child(7n),
.sbs-ca-calendar__blank:nth-child(7n) {
  border-right: 0;
}

.sbs-ca-calendar-day__number {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgb(10 10 10 / .68);
  font-size: .8rem;
  font-weight: 800;
}

.sbs-ca-calendar-day.is-today {
  background: hsl(30 93% 54% / .07);
  box-shadow: inset 0 0 0 2px var(--sbs-ca-orange);
}

.sbs-ca-calendar-day.is-today .sbs-ca-calendar-day__number {
  background: var(--sbs-ca-orange);
  color: #fff;
}

.sbs-ca-calendar-day.is-selected {
  box-shadow: inset 0 0 0 3px var(--sbs-ca-black);
}

.sbs-ca-calendar-day.is-outside {
  background: #f8f8f8;
  opacity: .45;
}

.sbs-ca-calendar-day.is-locked:not(.is-today) {
  background: #fafafa;
}

.sbs-ca-calendar-day a {
  margin-top: auto;
  color: var(--sbs-ca-black);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: var(--sbs-ca-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: .2rem;
}

.sbs-ca-calendar-day.is-today a {
  color: hsl(30 88% 38%);
}

.sbs-ca-calendar-day__status {
  margin-top: auto;
  color: rgb(10 10 10 / .32);
  font-size: .66rem;
  line-height: 1.35;
}

.sbs-ca-calendar__legend {
  margin: 0;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  color: rgb(10 10 10 / .48);
  font-size: .7rem;
}

.sbs-ca-calendar__legend span {
  width: .8rem;
  height: .8rem;
  margin-left: .5rem;
  display: inline-block;
}

.sbs-ca-calendar__legend span.is-today {
  background: var(--sbs-ca-orange);
}

.sbs-ca-calendar__legend span.is-available {
  border: 2px solid var(--sbs-ca-black);
}

/* Propuesta del día */
.sbs-ca-meal-day {
  margin-top: 2.25rem;
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border: 1px solid rgb(0 0 0 / .1);
  background: var(--sbs-ca-black);
  color: #fff;
  scroll-margin-top: 7rem;
  outline: none;
}

.sbs-ca-meal-day > header {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.sbs-ca-meal-day h3 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.sbs-ca-meal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
}

.sbs-ca-meal-card {
  min-height: 14rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(255 255 255 / .14);
  background: rgb(255 255 255 / .055);
}

.sbs-ca-meal-card > span {
  color: var(--sbs-ca-orange);
  font: 400 2.2rem/1 var(--sbs-ca-display);
}

.sbs-ca-meal-card h4 {
  margin: .55rem 0 1rem;
  color: #fff;
  font: 400 1.7rem/1 var(--sbs-ca-display);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.sbs-ca-meal-card div {
  color: rgb(255 255 255 / .72);
  font-size: .82rem;
  line-height: 1.6;
}

.sbs-ca-meal-card p {
  margin: 0 0 .65rem;
}

/* Carruseles de contenido */
.sbs-ca-content-carousel,
.sbs-ca-type-carousel {
  position: relative;
}

.sbs-ca-content-track,
.sbs-ca-type-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.sbs-ca-content-track::-webkit-scrollbar,
.sbs-ca-type-track::-webkit-scrollbar {
  display: none;
}

.sbs-ca-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 3.15rem;
  height: 3.15rem;
  display: none;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: var(--sbs-ca-black);
  color: #fff;
  box-shadow: 0 10px 30px rgb(0 0 0 / .2);
  font-size: 1.8rem;
  cursor: pointer;
}

.is-scrollable > .sbs-ca-carousel-arrow {
  display: grid;
}

.sbs-ca-carousel-arrow--prev {
  left: -1.55rem;
}

.sbs-ca-carousel-arrow--next {
  right: -1.55rem;
}

.sbs-ca-carousel-arrow:disabled {
  opacity: .18;
  cursor: default;
}

.sbs-ca-content-card {
  width: min(22rem, 82vw);
  min-width: min(22rem, 82vw);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid rgb(0 0 0 / .09);
  background: #fff;
  box-shadow: 0 12px 35px rgb(0 0 0 / .07);
}

.sbs-ca-content-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--sbs-ca-black);
  color: var(--sbs-ca-orange);
  font: 400 3rem/1 var(--sbs-ca-display);
  text-decoration: none;
}

.sbs-ca-content-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.sbs-ca-content-card:hover .sbs-ca-content-card__image img {
  transform: scale(1.035);
}

.sbs-ca-content-card__body {
  min-height: 15.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.sbs-ca-content-card__type {
  margin: 0 0 .55rem;
  color: var(--sbs-ca-orange);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sbs-ca-content-card h3 {
  font-size: 2.25rem;
}

.sbs-ca-content-card h3 a {
  color: inherit;
  text-decoration: none;
}

.sbs-ca-content-card__body > p:not(.sbs-ca-content-card__type) {
  margin: .75rem 0 1.15rem;
  color: rgb(10 10 10 / .58);
  font-size: .84rem;
  line-height: 1.6;
}

.sbs-ca-content-card .sbs-ca-button {
  margin-top: auto;
}

.sbs-ca-type-track {
  gap: .75rem;
}

.sbs-ca-type-card {
  width: 13rem;
  min-width: 13rem;
  min-height: 9rem;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  border: 1px solid rgb(0 0 0 / .1);
  background: #fff;
  color: var(--sbs-ca-black);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.sbs-ca-type-card span {
  font-size: 2rem;
}

.sbs-ca-type-card strong {
  color: var(--sbs-ca-orange);
  font-size: .75rem;
}

.sbs-ca-type-card:hover,
.sbs-ca-type-card:focus-visible,
.sbs-ca-type-card.is-active {
  background: var(--sbs-ca-black);
  color: #fff;
  transform: translateY(-2px);
}

.sbs-ca-empty--compact {
  padding: 2.5rem;
}

.sbs-ca-empty--compact h3 {
  margin: 0;
  font: 400 2.5rem/1 var(--sbs-ca-display);
  text-transform: uppercase;
}

/* Fichas de receta y entrenamiento */
.sbs-ca-content-detail {
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgb(0 0 0 / .08);
  background: #fff;
  box-shadow: 0 18px 55px rgb(0 0 0 / .08);
}

.sbs-ca-content-detail__header {
  max-width: 58rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.sbs-ca-content-detail__header .sbs-ca-back-link {
  color: var(--sbs-ca-black);
}

.sbs-ca-content-detail h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
}

.sbs-ca-content-detail__type {
  width: fit-content;
  margin: 0 auto .8rem;
  padding: .42rem .65rem;
  background: var(--sbs-ca-black);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sbs-ca-content-detail__intro {
  max-width: 48rem;
  margin: 1.2rem auto 0;
  color: rgb(10 10 10 / .62);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.sbs-ca-content-detail__cover {
  margin: 0 0 2rem;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #eee;
}

.sbs-ca-content-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sbs-ca-content-detail > .sbs-ca-back-link {
  color: var(--sbs-ca-black);
}

.sbs-ca-rich-text {
  max-width: 52rem;
  margin: 2rem auto 0;
  color: rgb(10 10 10 / .76);
  font-size: 1rem;
  line-height: 1.8;
}

.sbs-ca-rich-text h2,
.sbs-ca-rich-text h3 {
  color: var(--sbs-ca-black);
  font-family: var(--sbs-ca-display);
  font-weight: 400;
  text-transform: uppercase;
}

.sbs-ca-rich-text h2 {
  font-size: 2.6rem;
}

.sbs-ca-rich-text h3 {
  font-size: 2rem;
}

.sbs-ca-fallback-content {
  padding-inline: 1rem;
}

@media (max-width: 960px) {
  .sbs-ca-plan-hero {
    grid-template-columns: 1fr;
  }

  .sbs-ca-plan-hero__image,
  .sbs-ca-plan-hero__visual,
  .sbs-ca-plan-hero__image img {
    min-height: 20rem;
  }

  .sbs-ca-section-heading {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .sbs-ca-meal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sbs-ca-meal-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .sbs-ca-plan-nav {
    top: 4.4rem;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .sbs-ca-calendar__weekdays {
    display: none;
  }

  .sbs-ca-calendar__grid {
    padding: .75rem;
    display: flex;
    gap: .65rem;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
  }

  .sbs-ca-calendar__blank {
    display: none;
  }

  .sbs-ca-calendar-day {
    width: 9.5rem;
    min-width: 9.5rem;
    min-height: 8.5rem;
    scroll-snap-align: start;
    border: 1px solid rgb(0 0 0 / .09);
  }

  .sbs-ca-calendar-day.is-outside {
    display: none;
  }

  .sbs-ca-calendar__legend {
    justify-content: flex-start;
  }

  .sbs-ca-carousel-arrow {
    display: none !important;
  }

  .sbs-ca-content-track,
  .sbs-ca-type-track {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  .sbs-ca-content-detail {
    padding: 1.1rem;
  }
}

@media (max-width: 560px) {
  .sbs-ca-plan-hero__copy {
    padding: 2rem 1.25rem 2.5rem;
  }

  .sbs-ca-plan-hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .sbs-ca-plan-section {
    padding-inline: 1rem;
  }

  .sbs-ca-section-heading {
    padding-inline: 0;
  }

  .sbs-ca-meal-day {
    margin-inline: 0;
  }

  .sbs-ca-meal-day > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .sbs-ca-meal-grid {
    grid-template-columns: 1fr;
  }

  .sbs-ca-meal-card:last-child {
    grid-column: auto;
  }

  .sbs-ca-meal-card {
    min-height: 0;
  }

  .sbs-ca-content-detail__cover {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sbs-ca-content-track,
  .sbs-ca-type-track {
    scroll-behavior: auto;
  }

  .sbs-ca-content-card__image img,
  .sbs-ca-type-card {
    transition-duration: .01ms !important;
  }
}

/* Acciones de cabecera de Mis planes. */
.sbs-ca-section-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
}

@media (max-width: 520px) {
  .sbs-ca-section-header__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
}
