/* ============================================================
   Sobre mí — rediseño editorial de marca personal
   Blanco, negro, lima y sombras sólidas como lenguaje común.
   ============================================================ */

:root {
  --about-ink: #111111;
  --about-paper: #ffffff;
  --about-lime: var(--personal-lime, #d9ef67);
  --about-lime-soft: var(--personal-soft, #f3ffb2);
  --about-muted: #62625d;
  --about-line: rgba(17, 17, 17, .22);
  --about-shadow: 8px 8px 0 var(--about-ink);
  --about-shadow-small: 5px 5px 0 var(--about-ink);
  --about-radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body.sobre-page {
  background: var(--about-paper);
  color: var(--about-ink);
  overflow-x: hidden;
}

.sobre-page *,
.sobre-page *::before,
.sobre-page *::after {
  box-sizing: border-box;
}

.sobre-main {
  width: 100%;
  background: var(--about-paper);
  overflow: clip;
}

.sobre-main a:focus-visible {
  outline: 3px solid var(--about-ink);
  outline-offset: 4px;
}

.about-section {
  position: relative;
  padding: clamp(76px, 9vw, 132px) 0;
  scroll-margin-top: 76px;
}

.sobre-main .section-kicker {
  margin: 0 0 14px;
  color: var(--about-muted);
}

.sobre-main h1,
.sobre-main h2,
.sobre-main h3,
.sobre-main p {
  overflow-wrap: break-word;
}

.sobre-main h2 {
  margin: 0;
  color: var(--about-ink);
  font-family: var(--font-heading);
  font-size: var(--section-title-size);
  font-weight: 800;
  line-height: var(--section-title-line);
  letter-spacing: var(--section-title-tracking);
  text-wrap: balance;
}

.sobre-main h3 {
  font-family: var(--font-heading);
  text-wrap: balance;
}

.sobre-main p {
  line-height: 1.62;
}

/* ---------- Botones ---------- */
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-button,
.about-button:visited {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid var(--about-ink);
  border-radius: 10px;
  color: var(--about-ink);
  font-family: var(--font-heading);
  font-size: .96rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(.2, .75, .25, 1), box-shadow 180ms ease, background 180ms ease;
}

.about-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--about-shadow-small);
}

.about-button:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.about-button-primary {
  background: var(--about-lime);
}

.about-button-secondary {
  background: var(--about-paper);
}

.about-button-dark {
  margin-top: 8px;
  background: var(--about-ink);
  color: var(--about-paper) !important;
  border-color: var(--about-ink);
}

.about-button-dark:hover {
  box-shadow: 5px 5px 0 rgba(17, 17, 17, .28);
}

.about-button-on-dark {
  background: transparent;
  color: var(--about-paper) !important;
  border-color: rgba(255, 255, 255, .72);
}

.about-button-on-dark:hover {
  background: var(--about-paper);
  color: var(--about-ink) !important;
  box-shadow: 5px 5px 0 var(--about-lime);
}

/* ---------- Hero ---------- */
.about-hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 64px);
  align-items: center;
  padding: clamp(38px, 6vh, 72px) 0;
  background: var(--about-paper);
  isolation: isolate;
}

.about-hero::before {
  content: none;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .82fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.about-hero-copy {
  position: relative;
  z-index: 2;
}

.about-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--about-ink);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.3vw, 5.7rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .92;
  text-wrap: balance;
}

.about-hero-intro {
  max-width: 57ch;
  margin: clamp(22px, 3vw, 32px) 0 0;
  color: var(--about-muted);
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
}

.about-expertise-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  max-width: 720px;
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  padding: 0;
  list-style: none;
}

.about-expertise-tags li {
  position: relative;
  z-index: 1;
  padding: 8px 13px;
  border: 1.5px solid var(--about-ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--about-ink);
  color: var(--about-ink);
  font-family: var(--font-action);
  font-size: clamp(.76rem, 1vw, .88rem);
  font-weight: 650;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--sr, 0deg));
  animation: floatBubble calc(4s * var(--motion-scale, 1)) ease-in-out infinite alternate;
  will-change: transform;
}

.about-expertise-tags li.dragging {
  z-index: 10;
  animation: none !important;
  cursor: grabbing;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, .32);
}

.about-expertise-tags li.snap-back {
  transition:
    transform calc(600ms * var(--motion-scale, 1)) cubic-bezier(.34, 1.56, .64, 1),
    box-shadow calc(600ms * var(--motion-scale, 1)) ease;
}

@media (min-width: 761px) and (max-width: 1350px) {
  .about-expertise-tags {
    max-width: 540px;
  }
}

.about-hero .about-actions {
  margin-top: clamp(24px, 3vw, 34px);
}

.about-hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--about-line);
}

.about-hero-index a,
.about-hero-index a:visited {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--about-ink);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.about-hero-index a span {
  color: var(--about-muted);
  font-size: .68rem;
}

.about-hero-index a:hover {
  color: #526400;
  transform: translateY(-2px);
}

.about-hero-visual {
  position: relative;
  width: min(100%, 470px);
  justify-self: end;
  padding: 0 16px 18px 0;
  transform: translate3d(0, calc(var(--about-hero-progress, 0) * -20px), 0);
}

.about-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--about-ink);
  border-radius: var(--about-radius);
  background: #eceee5;
  box-shadow: 12px 12px 0 var(--about-lime), 14px 14px 0 var(--about-ink);
  transform: perspective(900px) rotateX(var(--portrait-tilt-x, 0deg)) rotateY(var(--portrait-tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(.2, .75, .25, 1), box-shadow 220ms ease;
}

.about-portrait picture,
.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
}

.about-portrait img {
  object-fit: cover;
  object-position: 50% 30%;
}

.about-portrait-status {
  position: absolute;
  z-index: 3;
  right: -4px;
  bottom: 50px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 22px);
  padding: 11px 14px;
  border: 2px solid var(--about-ink);
  border-radius: 10px;
  background: var(--about-paper);
  box-shadow: var(--about-shadow-small);
  font-size: .8rem;
  font-weight: 800;
}

.about-portrait-status span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid var(--about-ink);
  border-radius: 2px;
  background: var(--about-lime);
}

.about-portrait-note {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: -44px;
  margin: 0;
  padding: 8px 12px;
  border: 2px solid var(--about-ink);
  border-radius: 8px;
  background: var(--about-lime-soft);
  box-shadow: 4px 4px 0 var(--about-ink);
  font-family: var(--font-kicker);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.2 !important;
  transform: rotate(-3deg);
}

/* ---------- Franja de principios ---------- */
.about-principles {
  padding: 0 0 clamp(72px, 8vw, 112px);
}

.about-principles ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--about-ink);
  border-radius: var(--about-radius);
  background: var(--about-paper);
  box-shadow: var(--about-shadow);
  list-style: none;
}

.about-principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-content: center;
  min-height: 132px;
  padding: 26px;
}

.about-principles li + li {
  border-left: 2px solid var(--about-ink);
}

.about-principles li > span {
  grid-row: 1 / 3;
  color: #657700;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 800;
}

.about-principles strong {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.about-principles small {
  color: var(--about-muted);
  font-size: .82rem;
  line-height: 1.45;
}

/* ---------- Cabeceras editoriales ---------- */
.about-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .72fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.about-section-heading h2 {
  max-width: 760px;
}

.about-section-lead {
  max-width: 52ch;
  margin: 0 0 4px;
  color: var(--about-muted);
  font-size: clamp(.98rem, 1.35vw, 1.12rem);
}

/* ---------- Recorrido ---------- */
.about-story {
  background: var(--about-lime-soft);
  border-block: 2px solid var(--about-ink);
}

.about-story::before {
  content: none;
}

.about-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .78fr);
  gap: clamp(42px, 8vw, 108px);
  align-items: center;
}

.about-story-content h2 {
  max-width: 700px;
}

.about-story-content .about-section-lead {
  max-width: 57ch;
  margin: 24px 0 0;
}

.about-story-visual {
  position: relative;
  width: min(100%, 480px);
  margin: 0 8px 8px 0;
  justify-self: end;
  overflow: hidden;
  border: 2px solid var(--about-ink);
  border-radius: 10px;
  background: var(--about-paper);
  box-shadow: var(--about-shadow);
}

.about-story-images {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.35;
  background: var(--about-paper);
  overflow: hidden;
}

.about-story-images img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms cubic-bezier(0.34, 1.45, 0.4, 1), filter 500ms ease;
  transform: translateY(100%);
  will-change: transform, filter;
}

/* Current active item */
.about-story-visual[data-story-visual="01"] .story-img-01,
.about-story-visual[data-story-visual="02"] .story-img-02,
.about-story-visual[data-story-visual="03"] .story-img-03 {
  transform: translateY(0) scale(1) skewY(0);
  filter: blur(0);
  z-index: 2;
}

/* Items before the active one go UP */
.about-story-visual[data-story-visual="02"] .story-img-01,
.about-story-visual[data-story-visual="03"] .story-img-01,
.about-story-visual[data-story-visual="03"] .story-img-02 {
  transform: translateY(-110%) scale(0.9) skewY(6deg);
  filter: blur(8px);
  z-index: 1;
}

/* Items after the active one go DOWN */
.about-story-visual[data-story-visual="01"] .story-img-02,
.about-story-visual[data-story-visual="01"] .story-img-03,
.about-story-visual[data-story-visual="02"] .story-img-03 {
  transform: translateY(110%) scale(0.9) skewY(-6deg);
  filter: blur(8px);
  z-index: 1;
}

.about-story-visual figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-top: 2px solid var(--about-ink);
  background: var(--about-paper);
  font-size: .82rem;
  line-height: 1.45;
}

.about-story-visual figcaption > span {
  color: #657700;
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 800;
}

.about-story-visual figcaption strong {
  font-weight: 700;
}

.about-story-grid {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.about-story-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 15px 16px;
  border: 2px solid var(--about-ink);
  border-radius: 8px;
  background: var(--about-paper);
  color: var(--about-ink);
  cursor: pointer;
  font: inherit;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.about-story-card:hover,
.about-story-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: var(--about-shadow-small);
  outline: none;
}

.about-story-card.is-active {
  background: var(--about-lime);
  box-shadow: var(--about-shadow-small);
  transform: translate(-2px, -2px);
}

.about-story-card > span:first-child,
.about-method-step > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--about-ink);
  border-radius: 5px;
  background: var(--about-paper);
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 800;
}

.about-story-card > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.about-story-card strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
}

.about-story-card small {
  color: var(--about-muted);
  font-size: .78rem;
}

.about-story-card > span:last-child {
  font-size: 1.15rem;
  transition: transform 180ms ease;
}

.about-story-card.is-active > span:last-child,
.about-story-card:hover > span:last-child {
  transform: translateX(4px);
}

.about-interaction-hint {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 18px 0 0;
  color: var(--about-muted);
  font-size: .76rem;
  font-weight: 650;
}

/* ---------- Caso real ---------- */
.about-proof {
  background: var(--about-paper);
}

.about-proof-header {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(380px, 1.15fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: center;
  margin-bottom: clamp(54px, 7vw, 88px);
}

.about-proof-copy > p:not(.section-kicker) {
  max-width: 59ch;
  margin: 20px 0 0;
  color: var(--about-muted);
}

.about-proof-copy a:not(.about-button) {
  color: var(--about-ink);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-decoration-color: #9fb800;
  text-underline-offset: 3px;
}

.about-proof-copy .about-button {
  margin-top: 28px;
}

.about-proof-list {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--about-ink);
  border-radius: var(--about-radius);
  background: var(--about-paper);
  box-shadow: var(--about-shadow);
}

.about-proof-list > div {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(0, 1fr);
  gap: 20px;
  padding: 20px 22px;
}

.about-proof-list > div + div {
  border-top: 1.5px solid var(--about-ink);
}

.about-proof-list > div:last-child {
  background: var(--about-lime-soft);
}

.about-proof-list dt {
  font-family: var(--font-heading);
  font-weight: 800;
}

.about-proof-list dd {
  margin: 0;
  color: var(--about-muted);
  line-height: 1.45;
}

/* Vídeo-demo enmarcado en la cabecera del caso (ocupa el lugar de la antigua
   lista de datos). Reutiliza el mismo marco de tarjeta del About para conservar
   el lenguaje visual, sin estilos nuevos ajenos. */
.about-proof-feature {
  overflow: hidden;
  border: 2px solid var(--about-ink);
  border-radius: var(--about-radius);
  background: var(--about-paper);
  box-shadow: var(--about-shadow);
}

.about-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.about-proof-card {
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--about-ink);
  border-radius: var(--about-radius);
  background: var(--about-paper);
  box-shadow: var(--about-shadow);
}

.about-proof-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr);
  align-items: stretch;
}

.about-proof-card figure {
  margin: 0;
  overflow: hidden;
  background: #f7f7f0;
}

.about-proof-card:not(.about-proof-card-featured) figure {
  border-bottom: 2px solid var(--about-ink);
}

.about-proof-card-featured figure {
  border-right: 2px solid var(--about-ink);
}

.about-proof-video {
  margin: 0;
  isolation: isolate;
  padding: 0;
  background: var(--about-paper);
  height: 100%;
}

.about-proof-video-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-proof-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-proof-video-label,
.about-proof-video-toggle {
  position: absolute;
  z-index: 2;
  border: 2px solid var(--about-ink);
  background: var(--about-paper);
  color: var(--about-ink);
  box-shadow: 4px 4px 0 var(--about-ink);
  font-family: var(--font-heading);
  font-size: .76rem;
  font-weight: 800;
}

.about-proof-video-label {
  top: 20px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 11px;
  border-radius: 7px;
}

.about-proof-video-label span {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--about-ink);
  border-radius: 50%;
  background: var(--about-lime);
}

.about-proof-video-toggle {
  left: 0;
  right: 0;
  margin-inline: auto;
  width: max-content;
  bottom: -20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.about-proof-video-toggle:hover {
  background: var(--about-lime);
}

.about-proof-video-toggle:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--about-ink);
}

.about-proof-video-toggle:focus-visible {
  outline: 3px solid var(--about-lime);
  outline-offset: 4px;
}

.about-proof-video-icon {
  position: relative;
  display: block;
  width: 11px;
  height: 13px;
}

.about-proof-video-icon::before,
.about-proof-video-icon::after {
  content: '';
  position: absolute;
  top: 1px;
  width: 3px;
  height: 11px;
  border-radius: 1px;
  background: currentColor;
}

.about-proof-video-icon::before {
  left: 1px;
}

.about-proof-video-icon::after {
  right: 1px;
}

.about-proof-video-toggle.is-paused .about-proof-video-icon::before {
  top: 0;
  left: 1px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.about-proof-video-toggle.is-paused .about-proof-video-icon::after {
  display: none;
}

.about-proof-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.about-proof-card-featured img {
  min-height: 370px;
}

.about-proof-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.5vw, 42px);
}

.about-card-kicker {
  margin: 0 0 7px;
  color: var(--about-muted);
  font-family: var(--font-kicker);
  font-size: .86rem;
  font-style: italic;
  font-weight: 650;
}

.about-proof-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.about-proof-card > div > p:last-child {
  max-width: 34ch;
  margin: 16px 0 0;
  color: var(--about-muted);
}

/* ---------- Método ---------- */
.about-method {
  background: var(--about-lime);
  border-block: 2px solid var(--about-ink);
}

.about-method .section-kicker,
.about-method-intro > div > p:last-child {
  color: #414424;
}

.about-method-intro {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(360px, .82fr);
  gap: clamp(44px, 8vw, 112px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 76px);
}

.about-method-intro > div > p:last-child {
  max-width: 58ch;
  margin: 24px 0 0;
}

.about-method-intro a {
  color: var(--about-ink);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.about-method-visual {
  position: relative;
  margin: 0 10px 10px 0;
  overflow: hidden;
  border: 2px solid var(--about-ink);
  border-radius: var(--about-radius);
  background: var(--about-paper);
  box-shadow: 10px 10px 0 var(--about-ink);
}

.about-method-visual picture,
.about-method-visual img {
  display: block;
  width: 100%;
}

.about-method-visual img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.about-method-visual figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 9px 12px;
  border: 2px solid var(--about-ink);
  border-radius: 8px;
  background: var(--about-paper);
  font-size: .78rem;
  line-height: 1.35;
}

.about-method-visual figcaption > span {
  color: #657700;
  font-family: var(--font-heading);
  font-size: .68rem;
  font-weight: 800;
}

.about-method-visual figcaption strong {
  font-weight: 750;
}

.about-method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.about-method-steps li {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.about-method-step {
  width: 100%;
  min-height: 310px;
  padding: clamp(24px, 3vw, 34px);
  border: 2px solid var(--about-ink);
  border-radius: 8px;
  background: var(--about-paper);
  color: var(--about-ink);
  box-shadow: var(--about-shadow-small);
  cursor: pointer;
  font: inherit;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.about-method-step:hover,
.about-method-step:focus-visible {
  outline: none;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--about-ink);
}

.about-method-step.is-active {
  background: var(--about-lime-soft);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--about-ink);
}

.about-method-step h3 {
  margin: 44px 0 12px;
  font-size: clamp(1.32rem, 2vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.about-method-step p {
  margin: 0;
  color: var(--about-muted);
  font-size: .94rem;
}

/* ---------- Cierre ---------- */
.about-final {
  padding: clamp(76px, 10vw, 140px) 0;
  background: var(--about-paper);
}

.about-final-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 7vw, 82px);
  border: 2px solid var(--about-ink);
  border-radius: 8px;
  background: var(--about-paper);
  box-shadow: 10px 10px 0 var(--about-ink);
  color: var(--about-ink);
}

.about-final-panel::after {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(34px, 7vw, 96px);
  height: 100%;
  border-left: 2px solid var(--about-ink);
  background: var(--about-lime);
  content: "";
}

.about-final-panel > * {
  position: relative;
  z-index: 1;
}

.about-final-panel .section-kicker {
  color: var(--about-muted);
}

.about-final-panel h2 {
  max-width: 790px;
  color: var(--about-ink);
}

.about-final-panel > p:not(.section-kicker) {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--about-muted);
}

.about-final-panel .about-actions {
  margin-top: 30px;
}

/* ---------- Movimiento ---------- */
.has-about-motion [data-about-hero] {
  opacity: 0;
  transition: opacity 760ms ease, transform 820ms cubic-bezier(.2, .75, .2, 1);
}

.has-about-motion [data-about-hero="copy"] {
  transform: translate3d(-28px, 20px, 0);
}

.has-about-motion [data-about-hero="visual"] {
  transform: translate3d(28px, 24px, 0) rotate(1deg);
}

.has-about-motion .about-ready [data-about-hero] {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
}

.has-about-motion .about-ready [data-about-hero="visual"] {
  transform: translate3d(0, calc(var(--about-hero-progress, 0) * -20px), 0);
}

.has-about-motion [data-about-hero="visual"] {
  transition-delay: 120ms;
}

.has-about-motion [data-about-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 620ms ease var(--reveal-delay, 0ms), transform 720ms cubic-bezier(.2, .72, .2, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.has-about-motion [data-about-reveal="left"] {
  transform: translate3d(-42px, 0, 0);
}

.has-about-motion [data-about-reveal="right"] {
  transform: translate3d(42px, 0, 0);
}

.has-about-motion [data-about-reveal="scale"] {
  transform: translate3d(0, 24px, 0) scale(.965);
}

.has-about-motion [data-about-reveal][data-reveal-state="above"] {
  transform: translate3d(0, -26px, 0);
}

.has-about-motion [data-about-reveal="left"][data-reveal-state="above"] {
  transform: translate3d(-34px, -10px, 0);
}

.has-about-motion [data-about-reveal="right"][data-reveal-state="above"] {
  transform: translate3d(34px, -10px, 0);
}

.has-about-motion [data-about-reveal="scale"][data-reveal-state="above"] {
  transform: translate3d(0, -18px, 0) scale(.975);
}

.has-about-motion [data-about-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .about-hero {
    min-height: auto;
    padding: 42px 0 90px;
  }

  .about-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(290px, .78fr);
    gap: 48px;
  }

  .about-hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.6rem);
  }

  .about-portrait-note {
    left: -20px;
  }

  .about-principles li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px;
  }

  .about-principles li > span {
    grid-row: auto;
  }

  .about-section-heading,
  .about-proof-header,
  .about-method-intro {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .about-story-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
    gap: 34px;
  }

  .about-method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-method-steps li:last-child {
    grid-column: 1 / -1;
  }

  .about-method-step {
    min-height: 280px;
  }

  .about-proof-card-featured {
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, .8fr);
  }
}

@media (max-width: 900px) {
  .about-proof-card-featured {
    grid-column: 1 / -1;
    display: block;
  }

  .about-proof-card-featured figure {
    border-right: 0;
    border-bottom: 2px solid var(--about-ink);
  }

  .about-proof-video {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Móvil y tablet vertical ---------- */
@media (max-width: 760px) {
  .about-section {
    padding: 72px 0;
    scroll-margin-top: 20px;
  }

  .about-hero {
    padding: 36px 0 76px;
  }

  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-hero-copy {
    max-width: 650px;
  }

  .about-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.75rem, 13.5vw, 4.8rem);
    line-height: .94;
  }

  .about-hero-visual {
    width: min(100%, 520px);
    justify-self: center;
  }

  .about-portrait-note {
    top: 16px;
    left: -8px;
  }

  .about-principles {
    padding-bottom: 76px;
  }

  .about-principles ul {
    grid-template-columns: 1fr;
  }

  .about-principles li {
    grid-template-columns: auto 1fr;
    min-height: 108px;
  }

  .about-principles li > span {
    grid-row: 1 / 3;
  }

  .about-principles li + li {
    border-top: 2px solid var(--about-ink);
    border-left: 0;
  }

  .about-section-heading,
  .about-proof-header,
  .about-method-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-story-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-section-heading {
    margin-bottom: 38px;
  }

  .about-story-images {
    aspect-ratio: 4 / 3;
  }

  .about-story-visual figcaption {
    position: static;
    max-width: none;
    border: 0;
    border-top: 2px solid var(--about-ink);
    border-radius: 0;
  }

  .about-story-grid,
  .about-proof-grid,
  .about-method-steps {
    grid-template-columns: 1fr;
  }

  .about-method-steps li:last-child {
    grid-column: auto;
  }

  .about-proof-header {
    margin-bottom: 48px;
  }

  .about-proof-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .about-proof-card-featured {
    grid-column: auto;
    display: block;
  }

  .about-proof-card-featured figure {
    border-right: 0;
    border-bottom: 2px solid var(--about-ink);
  }

  .about-proof-video {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .about-proof-video video {
    object-position: center;
  }

  .about-proof-card-featured img {
    min-height: 0;
  }

  .about-proof-card img,
  .about-proof-card-featured img {
    aspect-ratio: 16 / 10;
  }

  .about-proof-video-label {
    top: 12px;
    left: 12px;
  }

  .about-proof-video-toggle {
    right: 12px;
    bottom: -20px;
  }

  .about-method-intro {
    margin-bottom: 44px;
  }

  .about-method-step {
    min-height: 0;
  }

  .about-final-panel::after {
    right: 0;
    bottom: auto;
    opacity: 1;
  }
}

@media (max-width: 520px) {
  .about-hero {
    padding-top: 28px;
  }

  .about-hero h1 {
    font-size: clamp(2.52rem, 13.2vw, 3.7rem);
  }

  .about-expertise-tags {
    gap: 7px;
    margin-top: 20px;
  }

  .about-expertise-tags li {
    padding: 7px 10px;
    font-size: .75rem;
    box-shadow: 2px 2px 0 var(--about-ink);
  }

  .about-hero-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .about-hero-index a {
    display: grid;
    gap: 2px;
  }

  .about-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .about-button {
    width: 100%;
  }

  .about-hero-visual {
    padding-right: 10px;
  }

  .about-portrait {
    box-shadow: 8px 8px 0 var(--about-lime), 10px 10px 0 var(--about-ink);
  }

  .about-portrait-status {
    right: -2px;
    bottom: 38px;
    font-size: .72rem;
  }

  .about-portrait-note {
    max-width: 190px;
    font-size: .7rem;
  }

  .about-principles ul,
  .about-story-visual,
  .about-proof-list,
  .about-proof-card {
    box-shadow: 5px 5px 0 var(--about-ink);
  }

  .about-story-card,
  .about-method-step {
    box-shadow: 4px 4px 0 var(--about-ink);
  }

  .about-final {
    padding: 72px 0 86px;
  }

  .about-final-panel {
    padding: 34px 58px 34px 24px;
    box-shadow: 7px 7px 0 var(--about-ink);
  }
}

/* ---------- Escenas de scroll ---------- */
.about-evidence-heading,
.about-process-heading {
  max-width: 820px;
  margin-bottom: clamp(30px, 5vw, 58px);
}

.about-method-process {
  border-top: 0;
}

.about-scene-nav {
  display: none;
}

.has-about-stage .sobre-main {
  overflow: visible;
}

.has-about-stage body.sobre-page {
  overflow-x: clip;
  overflow-y: visible;
}

/* El escenario se activa desde JS únicamente cuando hay espacio suficiente.
   Sin JS, en tablet o móvil todo conserva el flujo normal y ningún contenido
   queda oculto. Con movimiento reducido cambia de escena sin transiciones. */
@media (min-width: 1024px) and (min-height: 700px) {
  .about-stage.is-enhanced {
    position: relative;
    height: calc(var(--about-scene-count, 8) * 100svh);
    background: var(--about-paper);
  }

  .about-stage.is-enhanced .about-stage-track {
    position: sticky;
    top: 0;
    display: grid;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: var(--about-paper);
  }

  .about-stage.is-enhanced .about-scene {
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    align-items: center;
    margin: 0;
    padding: clamp(28px, 4.5vh, 52px) 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    filter: blur(10px);
    transform: translate3d(0, 11vh, 0) scale(.965);
    transform-origin: center;
    transition:
      opacity 560ms ease,
      filter 700ms ease,
      transform 760ms cubic-bezier(.22, .8, .2, 1),
      visibility 0s linear 760ms;
    will-change: opacity, filter, transform;
  }

  .about-stage.is-enhanced .about-scene.is-before {
    transform: translate3d(0, -11vh, 0) scale(.94);
  }

  .about-stage.is-enhanced .about-scene.is-active {
    z-index: 3;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0s;
  }

  .about-stage.is-enhanced .about-scene > .personal-shell {
    max-height: calc(100svh - clamp(56px, 9vh, 104px));
  }

  .about-stage.is-enhanced .about-hero-grid {
    min-height: 0;
  }

  .about-stage.is-enhanced .about-hero-visual {
    width: min(100%, 430px, 58vh);
    padding-bottom: 12px;
  }

  .about-stage.is-enhanced .about-hero h1 {
    font-size: clamp(3rem, 5.6vw, 5.35rem);
  }

  .about-stage.is-enhanced .about-hero-index {
    margin-top: clamp(22px, 3.2vh, 36px);
  }

  .about-stage.is-enhanced .about-principles {
    border-block: 2px solid var(--about-ink);
    background: var(--about-lime-soft);
  }

  .about-stage.is-enhanced .about-story-content .about-section-lead,
  .about-stage.is-enhanced .about-proof-copy > p:not(.section-kicker),
  .about-stage.is-enhanced .about-method-intro > div > p:last-child {
    margin-top: 16px;
  }

  .about-stage.is-enhanced .about-story-grid {
    gap: 9px;
    margin-top: 20px;
  }

  .about-stage.is-enhanced .about-story-card {
    padding-block: 11px;
  }

  .about-stage.is-enhanced .about-interaction-hint {
    margin-top: 12px;
  }

  .about-stage.is-enhanced .about-proof-header,
  .about-stage.is-enhanced .about-method-intro {
    margin-bottom: 0;
  }

  .about-stage.is-enhanced .about-proof-video {
    min-height: 0;
  }

  .about-stage.is-enhanced .about-evidence-heading,
  .about-stage.is-enhanced .about-process-heading {
    margin-bottom: clamp(24px, 4vh, 40px);
  }

  .about-stage.is-enhanced .about-proof-card > div {
    padding: clamp(18px, 2vw, 28px);
  }

  .about-stage.is-enhanced .about-method-step {
    min-height: min(310px, 41vh);
    padding: clamp(22px, 2.6vw, 32px);
  }

  .about-stage.is-enhanced .about-method-step h3 {
    margin-top: clamp(26px, 4vh, 44px);
  }

  /* Cada escena tiene una coreografía propia de entrada y salida. */
  .has-about-motion .about-stage.is-enhanced .about-scene [data-about-reveal],
  .has-about-motion .about-stage.is-enhanced .about-scene [data-about-hero] {
    opacity: 0;
    transition:
      opacity 520ms ease var(--scene-delay, 80ms),
      transform 700ms cubic-bezier(.22, .8, .2, 1) var(--scene-delay, 80ms);
  }

  .has-about-motion .about-stage.is-enhanced .about-scene.is-active [data-about-reveal],
  .has-about-motion .about-stage.is-enhanced .about-scene.is-active [data-about-hero] {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }

  .about-stage.is-enhanced .about-hero-copy {
    transform: translate3d(-64px, 20px, 0);
  }

  .about-stage.is-enhanced .about-hero-visual {
    --scene-delay: 150ms;
    transform: translate3d(70px, 0, 0) rotate(3deg);
  }

  .about-stage.is-enhanced .about-principles li {
    opacity: 0;
    transform: translate3d(0, 54px, 0) rotate(var(--card-tilt, -2deg));
    transition: opacity 480ms ease, transform 680ms cubic-bezier(.2, .85, .2, 1);
  }

  .about-stage.is-enhanced .about-principles li:nth-child(2) {
    --card-tilt: 2deg;
  }

  .about-stage.is-enhanced .about-principles li:nth-child(3) {
    --card-tilt: -1deg;
  }

  .about-stage.is-enhanced .about-principles.is-active li {
    opacity: 1;
    transform: none;
  }

  .about-stage.is-enhanced .about-principles.is-active li:nth-child(2) {
    transition-delay: 90ms;
  }

  .about-stage.is-enhanced .about-principles.is-active li:nth-child(3) {
    transition-delay: 180ms;
  }

  .about-stage.is-enhanced .about-story-content,
  .about-stage.is-enhanced .about-proof-copy,
  .about-stage.is-enhanced .about-method-intro > div {
    transform: translate3d(-68px, 0, 0);
  }

  .about-stage.is-enhanced .about-story-visual,
  .about-stage.is-enhanced .about-proof-feature-wrapper,
  .about-stage.is-enhanced .about-method-visual {
    --scene-delay: 130ms;
    transform: translate3d(68px, 0, 0) rotate(2deg);
  }

  .about-stage.is-enhanced .about-proof-evidence .about-proof-card {
    opacity: 0;
    transform: translate3d(0, 64px, 0) rotate(-3deg) scale(.96);
    transition: opacity 500ms ease 90ms, transform 720ms cubic-bezier(.2, .85, .2, 1) 90ms;
  }

  .about-stage.is-enhanced .about-proof-evidence .about-proof-card:nth-child(2) {
    transform: translate3d(0, 64px, 0) rotate(3deg) scale(.96);
    transition-delay: 180ms;
  }

  .about-stage.is-enhanced .about-proof-evidence.is-active .about-proof-card {
    opacity: 1;
    transform: none;
  }

  .about-stage.is-enhanced .about-method-process .about-method-steps li {
    opacity: 0;
    transform: translate3d(0, 70px, 0) rotate(-2deg);
    transition: opacity 480ms ease 100ms, transform 700ms cubic-bezier(.2, .85, .2, 1) 100ms;
  }

  .about-stage.is-enhanced .about-method-process .about-method-steps li:nth-child(2) {
    transform: translate3d(0, 70px, 0) rotate(2deg);
    transition-delay: 190ms;
  }

  .about-stage.is-enhanced .about-method-process .about-method-steps li:nth-child(3) {
    transition-delay: 280ms;
  }

  .about-stage.is-enhanced .about-method-process.is-active .about-method-steps li {
    opacity: 1;
    transform: none;
  }

  .about-stage.is-enhanced .about-final-panel {
    transform: translate3d(0, 42px, 0) rotate(-1.5deg) scale(.91);
  }

  .about-stage.is-enhanced .about-scene-nav {
    position: absolute;
    z-index: 8;
    top: 50%;
    right: clamp(14px, 2vw, 30px);
    display: grid;
    gap: 9px;
    transform: translateY(-50%);
  }

  .about-scene-nav a {
    display: block;
    width: 11px;
    height: 11px;
    overflow: hidden;
    border: 1.5px solid var(--about-ink);
    border-radius: 50%;
    background: var(--about-paper);
    color: transparent;
    text-indent: 20px;
    transition: height 180ms ease, border-radius 180ms ease, background 180ms ease;
  }

  .about-scene-nav a:hover,
  .about-scene-nav a:focus-visible,
  .about-scene-nav a.is-active {
    height: 28px;
    border-radius: 8px;
    background: var(--about-lime);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .has-about-motion [data-about-hero],
  .has-about-motion [data-about-reveal],
  .about-button,
  .about-story-card,
  .about-method-step,
  .about-hero-visual,
  .about-portrait {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .about-stage.is-enhanced .about-scene,
  .about-stage.is-enhanced .about-principles li,
  .about-stage.is-enhanced .about-proof-evidence .about-proof-card,
  .about-stage.is-enhanced .about-method-process .about-method-steps li,
  .about-stage.is-enhanced .about-scene-nav a {
    transition: none !important;
  }
}
