/* Each example presents a different piece of work and a different interface. */
#posibilidades .v4-examples-heading {
  margin-bottom: clamp(1.6rem, 3.5vw, 3rem);
}

.v8-examples-lead {
  margin-top: .65rem;
  color: #dce3f6;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.45;
}

#posibilidades .v4-example-switch:not([hidden]) {
  display: flex;
  gap: .25rem clamp(.75rem, 2.25vw, 2rem);
  margin-top: 1.5rem;
  border-bottom: 1px solid #ffffff38;
}

#posibilidades .v4-example-switch button {
  min-height: 44px;
  padding: .55rem .15rem .7rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #dce3f6;
  font-size: clamp(.9rem, 1.3vw, 1.03rem);
}

#posibilidades .v4-example-switch button[aria-pressed="true"] {
  border-bottom-color: var(--lime);
  color: var(--lime);
}

#posibilidades .v4-example-switch button:hover {
  color: white;
}

.v8-example-panel {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 5rem);
  --example-accent: #dded95;
}

.v8-example-panel[hidden],
.v8-crm-actions button[hidden] {
  display: none;
}

.v8-example-panel + .v8-example-panel:not([hidden]) {
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

#posibilidades[data-active-example] .v8-example-panel {
  margin-top: 0;
}

.v8-example-panel[data-case="oferta"] { --example-accent: #b2e0ca; }
.v8-example-panel[data-case="digital"] { --example-accent: #c6c6ff; }

.v8-example-copy h3 {
  max-width: 19ch;
  font-size: clamp(1.8rem, 3.2vw, 3.05rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.v8-example-story {
  max-width: 35ch;
  margin: 1.35rem 0 0;
}

.v8-example-story dt {
  color: var(--example-accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.v8-example-story dd + dt {
  margin-top: 1.05rem;
}

.v8-example-story dd {
  margin: .2rem 0 0;
  font-size: clamp(.98rem, 1.3vw, 1.12rem);
  line-height: 1.5;
}

#posibilidades .v6-examples-next {
  margin-top: clamp(1.6rem, 3.5vw, 3rem);
}

.v8-example-panel summary,
.v8-crm-actions button {
  min-height: 44px;
  cursor: pointer;
}

.v8-example-panel summary:focus-visible,
.v8-crm-actions button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Academy identity and class workspace sit side by side on one editorial spread. */
.v8-course {
  --course-ink: #232e43;
  --course-paper: #f8f2e6;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  min-width: 0;
  align-items: stretch;
  border: 1px solid #a9a9a0;
  background: var(--course-paper);
  color: var(--course-ink);
}

.v8-course-brand {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .85rem;
  padding: clamp(.95rem, 2vw, 1.65rem);
  background: #f3ae83;
}

.v8-course-edition {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.v8-course-brand > strong {
  display: block;
  font-size: clamp(1.42rem, 2.9vw, 2.8rem);
  font-weight: 700;
  line-height: .93;
  letter-spacing: -.06em;
}

.v8-course-clock {
  position: relative;
  width: clamp(3.65rem, 8vw, 6rem);
  aspect-ratio: 1;
  margin: .2rem 0 .3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.v8-course-clock::before,
.v8-course-clock::after {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 1px;
  background: currentColor;
  transform-origin: left center;
  content: "";
}

.v8-course-clock::before {
  width: 35%;
  height: 2px;
  transform: rotate(5deg);
}

.v8-course-clock::after {
  width: 27%;
  height: 3px;
  transform: rotate(112deg);
}

.v8-course-clock span {
  position: absolute;
  right: 0;
  bottom: .18rem;
  left: 0;
  text-align: center;
  font-size: .65rem;
  font-variant-numeric: tabular-nums;
}

.v8-course-lesson {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(.85rem, 2vw, 1.5rem);
}

.v8-course-appbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem .65rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid #232e4340;
  font-size: .7rem;
  line-height: 1.4;
}

.v8-course-appbar span:first-child { font-weight: 700; }

.v8-course-screen {
  display: grid;
  gap: .38rem;
  align-content: center;
  min-height: 6.75rem;
  margin-top: .75rem;
  padding: .75rem .85rem;
  border-left: .2rem solid #e67750;
  background: #e2e8e9;
}

.v8-course-screen strong {
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.v8-course-screen p {
  font-size: .7rem;
  line-height: 1.4;
}

.v8-course-details summary {
  display: list-item;
  align-content: center;
  padding: .35rem 0;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.35;
}

.v8-course-details div {
  padding: .1rem 0 .7rem;
  font-size: .78rem;
  line-height: 1.45;
}

.v8-course-social {
  display: grid;
  gap: .18rem;
  margin-top: auto;
  padding-top: .65rem;
  border-top: 1px solid #232e4340;
  line-height: 1.3;
}

.v8-course-social span {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.v8-course-social strong {
  font-family: Georgia, serif;
  font-size: 1.06rem;
  font-weight: 400;
}

/* The clinic is presented as an editorial sales page. */
.v8-clinic {
  min-width: 0;
  color: #123e33;
}

.v8-clinic-site {
  overflow: hidden;
  border: 1px solid #b8cfb2;
  background: #fcf9ec;
  box-shadow: .45rem .45rem 0 #748d7c55;
}

.v8-clinic-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem 1rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid #123e3335;
  font-size: .72rem;
}

.v8-clinic-cover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  min-height: 10rem;
  padding: clamp(.9rem, 2vw, 1.45rem);
  background: #dee8d2;
}

.v8-clinic-cover p {
  margin: 0 0 .4rem;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.v8-clinic-cover strong {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .95;
}

.v8-clinic-mark {
  flex: 0 0 auto;
  display: grid;
  width: clamp(2.3rem, 9vw, 6.6rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #123e3370;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 8px, #123e3320 8px 9px);
}

.v8-clinic-mark span {
  display: grid;
  width: 58%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #123e33;
  color: #fffef7;
  font-size: clamp(.8rem, 2vw, 1.5rem);
}

.v8-clinic-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: .75rem .9rem;
  font-size: .8rem;
  line-height: 1.4;
}

.v8-clinic-body > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .3rem .5rem;
  padding: .25rem .6rem .25rem .1rem;
}

.v8-clinic-body > div + div {
  padding-left: .6rem;
  border-left: 1px solid #123e3335;
}

.v8-clinic-body > div > span {
  color: #476f61;
  font-size: .68rem;
  line-height: 1.65;
}

/* The distributor has a working pipeline card in a desktop CRM workspace. */
.v8-crm {
  display: grid;
  grid-template-columns: minmax(0, .25fr) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bfc5fe;
  border-radius: .95rem;
  background: #e9eafe;
  color: #1e2554;
}

.v8-crm-rail {
  display: grid;
  align-content: start;
  gap: .85rem;
  padding: clamp(.5rem, 1.45vw, 1rem);
  background: #353b96;
  color: #fcfcff;
}

.v8-crm-rail strong {
  font-size: clamp(1rem, 2vw, 1.65rem);
  letter-spacing: -.06em;
  line-height: 1;
}

.v8-crm-rail strong span { color: #e0f47b; }

.v8-crm-rail > span {
  font-size: clamp(.6rem, .95vw, .8rem);
  line-height: 1.2;
}

.v8-crm-main {
  min-width: 0;
  padding: clamp(.7rem, 2vw, 1.3rem);
}

.v8-crm-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .3rem .6rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid #353b9635;
}

.v8-crm-heading strong {
  font-size: clamp(.94rem, 1.8vw, 1.35rem);
  line-height: 1.14;
  letter-spacing: -.035em;
}

.v8-crm-heading span {
  padding: .2rem .4rem;
  border-radius: .2rem;
  background: #d5d8fc;
  color: #2a3479;
  font-size: .65rem;
  font-weight: 700;
}

.v8-crm-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding: .65rem 0;
}

.v8-crm-board > div {
  min-width: 0;
  min-height: 5rem;
  padding: .45rem;
  border: 1px dashed #7279b1;
  border-radius: .35rem;
  font-size: .7rem;
  line-height: 1.3;
}

.v8-crm-board > div > strong {
  display: block;
  margin-bottom: .32rem;
}

.v8-crm-order {
  display: grid;
  gap: .15rem;
  padding: .35rem .38rem;
  border-left: 3px solid #5962cb;
  border-radius: .2rem;
  background: white;
}

.v8-crm-order span { font-size: .67rem; }

.v8-crm-empty { color: #515987; }
.v8-crm-board.is-dispatched .v8-crm-empty { display: none; }
.v8-crm-board.is-dispatched .v8-crm-order { border-left-color: #518627; }

.v8-crm-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem .75rem;
}

.v8-crm-actions button {
  padding: .5rem .7rem;
  border: 0;
  border-radius: .3rem;
  background: #343b94;
  color: white;
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  text-align: left;
}

.v8-crm-actions p {
  flex: 1 1 6rem;
  font-size: .7rem;
  line-height: 1.35;
}

.v8-crm-catalog {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .65rem;
  padding: .5rem;
  border-radius: .35rem;
  background: #fafaff;
  font-size: .72rem;
  line-height: 1.35;
}

.v8-crm-catalog > span {
  display: grid;
  width: 1.7rem;
  aspect-ratio: 1;
  place-items: center;
  flex: 0 0 auto;
  border-radius: .2rem;
  background: #e3efad;
  color: #242b60;
  font-size: 1rem;
}

@media (max-width: 920px) {
  .v8-example-panel {
    grid-template-columns: minmax(0, 1fr);
    max-width: 43rem;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .v8-course {
    grid-template-columns: minmax(0, 1fr);
  }

  .v8-course-brand {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: .3rem .6rem;
  }

  .v8-course-brand > strong {
    grid-row: 2;
    font-size: clamp(1.6rem, 7.5vw, 2.2rem);
  }

  .v8-course-clock {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
  }

  .v8-crm { grid-template-columns: minmax(0, 1fr); }

  .v8-crm-rail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem .65rem;
    padding: .55rem .65rem;
  }
}

@media print {
  #posibilidades .v4-example-switch:not([hidden]) { display: none; }
  .v8-example-panel[hidden] { display: grid; }
  .v8-example-panel + .v8-example-panel[hidden] { margin-top: 2rem; }
  .v8-examples-lead, .v8-example-story dt { color: var(--navy); }
}
