#metodo {
  --crece-entry: 140px;
  --crece-entry-space: calc(max(0px, var(--crece-entry) - 3cm) + .5cm);
  padding-block-start: var(--crece-entry-space);
  scroll-margin-top: calc(-1 * var(--crece-entry-space));
}
.method-chapter { position: relative; isolation: isolate; }
.method-background {
  position: absolute;
  z-index: -1;
  inset: 0 0 calc(-1 * min(15svh, 125px));
  overflow: clip;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 min(20svh, 155px), #000 calc(100% - min(23svh, 185px)), transparent);
}
.method-background-track { height: calc(100% + 100svh); }
.method-background-frame {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  container-type: size;
}
.method-background-camera {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: max(100cqw, 177.68cqh);
  height: max(100cqh, 56.28cqw);
  transform: perspective(max(1550px, 100vw)) translate3d(var(--method-pan, 3.5%), 0, 0)
    rotateY(var(--method-turn, -1.4deg)) scale(var(--method-scale, 1.13));
}
.method-background-camera img,
.method-background-camera canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.method-background-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, #eff3f7e8 10%, #eff3f770 52%, transparent 78%),
    linear-gradient(180deg, #eff3f750 15%, transparent 70%, #eff3f743);
}
@media (prefers-reduced-motion: reduce) {
  .method-background-camera { transform: none; }
  .method-background-camera canvas { display: none; }
}
.crece-header { text-align: center; margin-block-end: 34px; }
.crece-header .eyebrow { justify-content: center; }
.crece-header h2 {
  margin: 0;
  font-size: clamp(35px, 4.4vw, 67px);
  line-height: 1.1;
  text-wrap: balance;
}
.crece-header > p:last-child {
  margin: 18px auto 0;
  color: #40566c;
  font-size: clamp(17px, 1.45vw, 23px);
  text-wrap: pretty;
}

.crece-roadmap { position: relative; isolation: isolate; }
.crece-roadmap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% 0 -12%;
  background:
    radial-gradient(ellipse at 75% 57%, #e0e8f5 0%, transparent 54%),
    radial-gradient(ellipse at 29% 72%, #d7e2ef 0%, transparent 49%),
    radial-gradient(ellipse at 46% 55%, #fff 0%, transparent 66%);
  mask-image: radial-gradient(ellipse closest-side, #000 42%, transparent 100%);
  pointer-events: none;
}
.crece-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.crece-tabs button {
  min-width: 0;
  min-height: 76px;
  padding: 12px clamp(12px, 1.4vw, 24px);
  border: 0;
  border-radius: 22px;
  color: #172b43;
  background: linear-gradient(146deg, #ffffffab, #f3f5f75c);
  box-shadow: inset 0 1px 2px #fff, inset 0 -2px 5px #ffffff85, 0 8px 16px #24364c14;
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-align: start;
  transition: color .45s ease, transform .45s ease, box-shadow .45s ease, background-color .45s ease;
}
.crece-tabs button:hover { transform: translateY(-3px); }
.crece-tabs button[aria-expanded="true"] {
  background: linear-gradient(150deg, #4e6075ed, #142237f0);
  color: #fff;
  box-shadow: inset 0 1px 4px #ffffffa0, inset 0 -4px 11px #e7effc50, 0 10px 24px #172c4d32;
}
.crece-tabs small { display: block; margin-block-end: 5px; font-size: clamp(12px, .9vw, 15px); color: #465d74; }
.crece-tabs [aria-expanded="true"] small { color: #e3eaf3; }
.crece-tabs strong { display: block; font-size: clamp(17px, 1.65vw, 27px); font-weight: 600; line-height: 1.15; }
.crece-tabs button:focus-visible, .crece-trigger:focus-visible { outline: 2px solid #94601a; outline-offset: 4px; }



.crece-scene {
  position: relative;
  margin: 1.5cm auto 0;
  --crece-glide: cubic-bezier(.33, 0, .30, 1);
}
.crece-plane { position: relative; min-width: 0; }
.crece-trigger {
  display: grid;
  width: 100%;
  border: 0;
  background: transparent;
  color: #20324a;
  cursor: pointer;
}
.crece-number { font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .16em; color: #46596f; }
.crece-letter { font-size: clamp(32px, 3.2vw, 47px); font-weight: 600; line-height: 1; }
.crece-name {
  font-size: clamp(24px, 2.65vw, 38px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.04em;
  /* Extend the shine's paint area below the baseline for descenders. */
  padding-block-end: .18em;
}
.crece-details { padding: 0 clamp(19px, 3vw, 40px) 24px; }
.crece-details h3 { margin: 0 0 8px; color: #182d44; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.18; }
.crece-details p { margin: 0; color: #40566c; font-size: clamp(16px, 1.22vw, 19px); line-height: 1.43; }
.crece-details h3 + p { text-wrap: balance; }
.crece-details .crece-output {
  margin-top: 16px;
  padding-top: 13px;
  background: linear-gradient(90deg, #7587a05c, transparent 94%) no-repeat left top / 100% 1px;
}
.crece-output strong { display: block; margin-bottom: 3px; color: #192e46; font-size: .84em; }

@property --crece-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 90deg;
}
@media (min-width: 901px) {
  .crece-scene {
    container-type: inline-size;
    display: flex;
    justify-content: center;
    gap: clamp(14px, 2.1vw, 36px);
    --crece-gap: clamp(14px, 2.1vw, 36px);
    --crece-height: 382px;
  }
  .crece-plane {
    --crece-base-depth: clamp(77px, 8.2cqw, 126px);
    --crece-depth: max(var(--crece-base-depth), min(calc(var(--crece-base-depth) + 1cm), calc((100cqw - 440px) / 4 - var(--crece-gap))));
    --crece-width: min(530px, calc(100cqw - 4 * (var(--crece-depth) + var(--crece-gap)) - 30px));
    --crece-angle: 90deg;
    /* Reserve the rotating solid's projected width; its geometry never resizes. */
    flex: 0 0 calc(var(--crece-width) * cos(var(--crece-angle)) + var(--crece-depth) * sin(var(--crece-angle)));
    height: var(--crece-height);
    transition: --crece-angle 1.3s var(--crece-glide);
  }
  .crece-plane:has(.crece-trigger[aria-expanded="true"]) {
    --crece-angle: 0deg;
    transition-duration: 1.85s;
  }
  .crece-object {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: calc(var(--crece-width) / -2);
    width: var(--crece-width);
    height: 100%;
    pointer-events: none;
    transform-style: preserve-3d;
    /* Keep the top of the slab level as its visible face changes depth. */
    transform-origin: 50% 0;
    transform: perspective(1900px) rotateY(calc(-1 * var(--crece-angle)));
  }
  .crece-face, .crece-edge {
    position: absolute;
    backface-visibility: hidden;
    box-sizing: border-box;
  }
  .crece-face {
    inset: 0;
    transform: translateZ(calc(var(--crece-depth) / 2));
    border-radius: 19px 19px 0 0;
    background:
      radial-gradient(ellipse at 80% 46%, #91a7bd62, transparent 70%),
      linear-gradient(148deg, #ffffffac, #dce7f05c 48%, #b3c4d38c 82%, #e6edf46e);
    backdrop-filter: blur(17px) saturate(108%);
    box-shadow: inset 0 3px 12px #ffffff78, inset 2px 0 6px #ffffff90, inset -3px 0 9px #657d9830;
    mask-image: linear-gradient(#000 0 83%, #000b 93%, transparent);
  }
  .crece-face-heading { display: grid; gap: 8px; padding: 23px clamp(19px, 3vw, 40px) 15px; }
  .crece-face-heading .crece-name { justify-self: start; }
  /* The content is printed on the front throughout the turn, including the return. */
  .crece-details[hidden] { display: block !important; }
  .crece-edge {
    background: linear-gradient(92deg, #e9eff6bf, #fff9 5%, #d0dce886 18%, #a4b7ca88 81%, #f8fbffd6 98%);
    box-shadow: inset 0 1px 3px #fff, inset 2px 0 4px #fffd, inset -2px 0 4px #f5f9ffdb;
  }
  .crece-edge-right, .crece-edge-left {
    top: 0;
    bottom: 0;
    width: var(--crece-depth);
    border-radius: 16px 16px 0 0;
    mask-image: linear-gradient(#000 0 50%, #000d 68%, #0006 85%, transparent);
  }
  .crece-edge-right {
    left: 100%;
    transform-origin: left center;
    transform: translateZ(calc(var(--crece-depth) / 2)) rotateY(90deg);
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 43px;
    padding-top: 23px;
    color: #20324a;
    text-shadow: 0 1px #fff;
  }
  .crece-edge-left {
    right: 100%;
    transform-origin: right center;
    transform: translateZ(calc(var(--crece-depth) / 2)) rotateY(-90deg);
  }
  .crece-trigger { position: absolute; inset: 0; z-index: 2; padding: 0; border-radius: 17px; }
  .crece-trigger > span { display: none; }
}
@media (max-width: 950px) {
  #metodo { --crece-entry: 102px; }
}
@media (max-width: 900px) {
  .crece-scene { display: grid; gap: 10px; }
  .crece-plane {
    border-radius: 19px;
    background: linear-gradient(148deg, #ffffffb0, #dfe8f186 68%, #edf3faab);
    box-shadow: inset 0 1px 3px #fff, 0 8px 18px #243c5816;
  }
  .crece-edge, .crece-face-heading { display: none; }
  .crece-trigger {
    min-height: 67px;
    grid-template-columns: 26px 43px minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    gap: 10px;
    padding: 11px 19px;
    text-align: start;
    border-radius: inherit;
  }
  .crece-letter { font-size: 34px; }
  .crece-name { font-size: 21px; }
  .crece-trigger::after { content: "+"; }
  .crece-trigger[aria-expanded="true"]::after { content: "−"; }
}
@media (max-width: 720px) {
  #metodo { --crece-entry: 68px; }
  .crece-header { margin-block-end: 24px; }
  .crece-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .crece-tabs button { min-height: 61px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .crece-tabs button, .crece-plane, .crece-plane:has(.crece-trigger[aria-expanded="true"]) { transition: none; }
}
