/* Shared scene for chapters 01/02, with a common left editorial guide. */
.internal-page #descripcion.service-v2-description {
  width: calc(100% - (2 * var(--service-editorial-guide))) !important;
  margin-inline: var(--service-editorial-guide) !important;
  padding-inline: 0 !important;
}
.internal-page #descripcion.service-v2-description .service-v2-description__content {
  grid-column: 1 !important;
  justify-items: start !important;
  text-align: left;
}
.internal-page #descripcion.service-v2-description h2,
.internal-page #descripcion.service-v2-description .ip-copy {
  justify-self: start !important;
  margin-inline: 0 !important;
  text-align: left !important;
}
.internal-page #descripcion.service-v2-description .ip-copy p {
  text-align: left;
  text-wrap: pretty;
}
.internal-page #inicio.service-v2-hero {
  box-sizing: border-box;
  height: 100vh !important;
  min-height: 100vh !important;
}
@supports (height: 100dvh) {
  .internal-page #inicio.service-v2-hero {
    height: 100dvh !important;
    min-height: 100dvh !important;
  }
}
#main-content.revolt-chapters {
  position: relative;
  isolation: isolate;
  background: #0d0b11;
}
#main-content.revolt-chapters > .revolt-candy-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #120812;
  background-size: cover;
  background-position: center;
  opacity: calc(1 - var(--revolt-chapter-exit, 0));
  visibility: var(--revolt-scene-visibility, visible);
}
.revolt-candy-stage > .revolt-candy-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  filter: blur(calc(var(--revolt-chapter-exit, 0) * 24px));
  transform: scale(calc(1 + var(--revolt-chapter-exit, 0) * .05));
}
.revolt-candy-stage.revolt-candy-ready > .revolt-candy-frame { opacity: 1; }
.revolt-candy-stage::before,
.revolt-candy-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* The original legibility gradients now travel with the shared scene. */
.revolt-candy-stage.revolt-candy-ready::before {
  z-index: 1;
  background:
    linear-gradient(90deg,rgba(12,5,12,.92) 0%,rgba(12,5,12,.77) 25%,rgba(12,5,12,.30) 47%,rgba(12,5,12,.04) 70%,rgba(12,5,12,.13) 100%),
    linear-gradient(180deg,rgba(8,4,9,.10) 0%,rgba(8,4,9,0) 58%,rgba(8,4,9,.32) 100%);
}
.revolt-candy-stage::after {
  z-index: 2;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size: 64px 64px;
  opacity: .76;
}
.revolt-chapters #inicio.service-v2-hero {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
.revolt-chapters #inicio.service-v2-hero::before,
.revolt-chapters #inicio.service-v2-hero::after,
.revolt-chapters #inicio.service-v2-hero .hero-liquid__lens { display: none !important; }
/* Disable the old chapter-01 blur: text scrolls normally above the fixed scene. */
.internal-page .revolt-chapters #inicio.service-v2-hero.has-scroll-exit .ip-hero__content {
  opacity: 1 !important;
  filter: none !important;
  will-change: auto;
}
.internal-page .revolt-chapters > .service-continuous-canvas {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
.revolt-chapters .revolt-chapter-base {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--revolt-original-canvas-background, #0d0b11);
  opacity: var(--revolt-chapter-exit, 0);
}
.internal-page .revolt-chapters > .service-continuous-canvas::before {
  opacity: calc(.55 * var(--revolt-chapter-exit, 0));
}
@media (max-width: 900px) {
  #main-content.revolt-chapters > .revolt-candy-stage { background-position: 58% center; }
  .revolt-candy-stage.revolt-candy-ready::before {
    background:
      linear-gradient(180deg,rgba(8,4,9,.18) 0%,rgba(8,4,9,.05) 38%,rgba(8,4,9,.82) 100%),
      linear-gradient(90deg,rgba(12,5,12,.70) 0%,rgba(12,5,12,.12) 75%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .revolt-candy-stage > .revolt-candy-frame { filter: none; transform: none; }
}

/* Clean scene: no grid or dark overlay between the reader and the material. */
.revolt-candy-stage::before,
.revolt-candy-stage::after,
.internal-page .revolt-chapters > .service-continuous-canvas::before,
.internal-page .revolt-chapters > .service-continuous-canvas::after,
.internal-page .revolt-chapters > .service-continuous-canvas > section::before,
.internal-page .revolt-chapters > .service-continuous-canvas > section::after {
  display: none !important;
  background: none !important;
}
.revolt-chapters .revolt-chapter-base { background: #110710; }
.internal-page .revolt-chapters #inicio.service-v2-hero h1 {
  width: min(52vw, 900px) !important;
  max-width: min(52vw, 900px) !important;
}
.internal-page .revolt-chapters #inicio.service-v2-hero .ip-hero__lead {
  width: min(43vw, 570px) !important;
}
.internal-page .revolt-chapters #descripcion.service-v2-description h2,
.internal-page .revolt-chapters #descripcion.service-v2-description .ip-copy {
  width: min(48vw, 760px) !important;
  max-width: min(48vw, 760px) !important;
}
.revolt-chapters .skill-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
  padding: 0;
  margin: 12px 0 0;
  max-width: min(48vw, 760px);
  list-style: none;
}
.revolt-chapters .skill-outcomes li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff0f7;
  font: 500 1rem/1.45 Inter, sans-serif;
}
.revolt-chapters .skill-outcomes .skill-arrow {
  color: #ff67af;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}
@media(max-width:900px) {
  .internal-page .revolt-chapters #inicio.service-v2-hero h1,
  .internal-page .revolt-chapters #inicio.service-v2-hero .ip-hero__lead,
  .internal-page .revolt-chapters #descripcion.service-v2-description h2,
  .internal-page .revolt-chapters #descripcion.service-v2-description .ip-copy {
    width: 100% !important;
    max-width: 100% !important;
  }
  .internal-page .revolt-chapters #inicio.service-v2-hero .ip-hero__content {
    top: auto !important;
    bottom: clamp(28px, 5vh, 52px) !important;
    transform: none !important;
  }
  .revolt-chapters .skill-outcomes { max-width: 100%; gap: 18px 24px; }
}
