/* Cuatro fichas editoriales sobre el mismo carbón que la portada. */
#estudio.studio-editorial {
  position: relative;
  isolation: isolate;
  padding-block: clamp(58px, 6.7vw, 96px) clamp(56px, 6vw, 88px);
  background: #121212;
  color: #F5F6FC;
}

.studio-editorial .study-sky-shower {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.studio-editorial .study-meteor {
  position: absolute;
  top: var(--meteor-top);
  left: var(--meteor-left);
  width: clamp(30px, 6vw, 83px);
  height: 1px;
  border-radius: 999px;
  background: #AF8CC0;
  opacity: 0;
  animation: study-meteor-path var(--meteor-period) linear var(--meteor-delay) infinite paused;
}

.studio-editorial .study-meteor::after {
  position: absolute;
  top: -1px;
  right: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #EFDAF6;
  box-shadow: 0 0 9px #C99BDE8A;
  content: '';
}

.studio-editorial .study-meteor:nth-child(1) {
  --meteor-top: 8%;
  --meteor-left: 12%;
  --meteor-period: 16s;
  --meteor-delay: -12s;
}

.studio-editorial .study-meteor:nth-child(2) {
  --meteor-top: 21%;
  --meteor-left: 79%;
  --meteor-period: 19s;
  --meteor-delay: -7s;
}

.studio-editorial .study-meteor:nth-child(3) {
  --meteor-top: 45%;
  --meteor-left: -2%;
  --meteor-period: 17s;
  --meteor-delay: -9s;
}

.studio-editorial .study-meteor:nth-child(4) {
  --meteor-top: 80%;
  --meteor-left: 91%;
  --meteor-period: 21s;
  --meteor-delay: -16s;
}

.studio-editorial .study-scene {
  max-width: 1140px;
}

.studio-editorial .study-head {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.studio-editorial .study-head .eyebrow {
  margin-bottom: 22px;
  color: #CDB5E7;
}

.studio-editorial .study-head h2 {
  font-size: clamp(32px, 8.75vw, 96px);
  font-weight: 650;
  line-height: .99;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.studio-editorial .study-head h2 > span {
  display: block;
}

.studio-editorial .study-head h2 > span:last-child {
  color: #DECAE9;
}

#estudio .study-head .eyebrow,
#studio-title > span:last-child {
  animation-name: study-tone;
}

@keyframes study-tone {
  0%, 100% { color: #DECAE9; }
  50% { color: var(--hero-tone-violet); }
}

.studio-editorial .study-head .section-description {
  max-width: 49ch;
  margin: clamp(22px, 3vw, 34px) auto 0;
  color: #D9D0E0;
  font-size: clamp(15px, 1.65vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

.studio-editorial .study-spark {
  position: absolute;
  top: 2%;
  right: 5%;
  width: clamp(20px, 3vw, 41px);
  aspect-ratio: 1;
  background: #DABDF1;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: study-spark 11s linear infinite paused;
}

.studio-editorial .study-spark-small {
  inset: auto auto 24% 6%;
  width: clamp(12px, 1.8vw, 24px);
  background: #E8D9F2;
  animation-duration: 15s;
  animation-delay: -6s;
  animation-direction: reverse;
}

.studio-editorial .study-process {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 19px);
  margin: clamp(36px, 4vw, 58px) auto 0;
}

.studio-editorial .study-card {
  display: grid;
  grid-column: span 5;
  grid-template-rows: auto minmax(216px, 1fr);
  gap: clamp(10px, 1.35vw, 19px);
  min-width: 0;
  min-height: 335px;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 31px) clamp(18px, 2.4vw, 31px) 0;
  border: 1px solid var(--study-card-line);
  border-radius: 18px;
  background: var(--study-card-base);
}

.studio-editorial .study-card-design,
.studio-editorial .study-card-screens {
  grid-column: span 7;
}

.studio-editorial .study-card-idea {
  --study-card-base: #E0CDF3;
  --study-card-line: #CDB3E7;
}

.studio-editorial .study-card-design {
  --study-card-base: #EDDEF5;
  --study-card-line: #DDC4ED;
}

.studio-editorial .study-card-screens {
  --study-card-base: #D8BFED;
  --study-card-line: #C2A1E0;
}

.studio-editorial .study-card-review {
  --study-card-base: #E8D3F1;
  --study-card-line: #D9BCE8;
}

.studio-editorial .study-card h3 {
  margin: 0 0 7px;
  color: #281D37;
  font-size: clamp(21px, 2.24vw, 29px);
  line-height: 1.1;
  text-wrap: balance;
}

.studio-editorial .study-card p {
  max-width: 51ch;
  margin: 0;
  color: #402F4C;
  font-size: clamp(13px, 1.24vw, 15px);
  line-height: 1.52;
  text-wrap: pretty;
}

.studio-editorial .study-stage {
  --study-figure-drift: 7px;
  position: relative;
  min-width: 0;
  min-height: 216px;
}

.studio-editorial :is(.study-idea-preview, .study-layout-preview, .study-device-desktop, .study-review-document) {
  position: absolute;
  overflow: hidden;
  border: 1px solid #BEA6D4;
  border-radius: 12px;
  background: #FEFCFF;
  box-shadow: 0 5px #C3ABD7;
}

.studio-editorial .study-browser-bar {
  display: flex;
  min-height: 23px;
  align-items: center;
  padding-inline: 11px;
  border-bottom: 1px solid #DCCCE8;
  background: #F4ECFA;
}

.studio-editorial .study-browser-bar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #A276C3;
  box-shadow: 8px 0 #B495D0, 16px 0 #CDB6E4;
}

/* La órbita central y sus satélites se mueven en fases independientes. */
.studio-editorial .study-idea-preview {
  inset: 12px 5% -55px 4%;
}

.studio-editorial .study-diagram {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 7 / 4;
  margin: 14px auto 0;
  background: #F7F0FC;
}

.studio-editorial .study-orbit-art {
  position: absolute;
  inset: 0;
  animation: study-planet-orbit 11s ease-in-out infinite paused;
}

.studio-editorial :is(.study-planet, .study-ring, .study-moon, .study-satellite) {
  position: absolute;
  border-radius: 50%;
}

.studio-editorial .study-planet {
  top: 49%;
  left: 50%;
  width: 37%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid #9671BC;
  background: #CEB4E8;
  box-shadow: inset -9px -8px #B497D2;
}

.studio-editorial .study-ring {
  top: 49%;
  left: 50%;
  border: 1px solid #8D64B1;
  border-top-color: #C8B2DC;
  transform: translate(-50%, -50%) rotate(-20deg);
}

.studio-editorial .study-ring-outer {
  width: 85%;
  height: 38%;
}

.studio-editorial .study-ring-inner {
  width: 71%;
  height: 29%;
  border-color: #A589C5;
}

.studio-editorial .study-moon {
  top: 64%;
  left: 10%;
  width: 5%;
  aspect-ratio: 1;
  background: #9C74BE;
}

.studio-editorial .study-satellite {
  aspect-ratio: 1;
  border: 1px solid #A485C4;
}

.studio-editorial :is(.study-moon, .study-satellite) {
  --satellite-x: clamp(11px, 2.5vw, 26px);
  --satellite-y: clamp(7px, 1.6vw, 17px);
  animation: study-satellite-orbit var(--satellite-speed, 9s) linear var(--satellite-delay, -3s) infinite paused;
}

.studio-editorial .study-satellite-small {
  --satellite-speed: 8s;
  --satellite-delay: -5s;
  top: 12%;
  left: 17%;
  width: 9%;
  background: #DECDED;
}

.studio-editorial .study-satellite-medium {
  --satellite-x: clamp(9px, 1.5vw, 18px);
  --satellite-speed: 10s;
  --satellite-delay: -2s;
  top: 15%;
  left: 76%;
  width: 12%;
  background: #AE8BCB;
  animation-direction: reverse;
}

.studio-editorial .study-satellite-ice {
  --satellite-x: clamp(8px, 1.2vw, 14px);
  --satellite-speed: 7s;
  --satellite-delay: -4s;
  top: 76%;
  left: 84%;
  width: 6%;
  background: #EADCF2;
}

.studio-editorial .study-satellite-far {
  --satellite-speed: 11s;
  --satellite-delay: -8s;
  top: 79%;
  left: 31%;
  width: 7%;
  background: #D2BFDC;
  animation-direction: reverse;
}

/* Una composición web de dos columnas con piezas blancas y lavanda. */
.studio-editorial .study-layout-preview {
  top: 9px;
  left: 7%;
  right: 3%;
  min-height: 270px;
}

.studio-editorial .study-layout-content {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(9px, 2vw, 22px);
  padding: clamp(11px, 2vw, 23px);
}

.studio-editorial .study-layout-lines {
  display: grid;
  align-content: center;
  gap: 8px;
}

.studio-editorial :is(.study-layout-lines span, .study-review-line) {
  display: block;
  height: 6px;
  border-radius: 9px;
  background: #B8A4CB;
}

.studio-editorial .study-layout-lines span:first-child {
  width: 94%;
  height: 12px;
  background: #594071;
}

.studio-editorial .study-layout-lines span:nth-child(2) { width: 72%; }

.studio-editorial .study-layout-lines span:last-child {
  width: 43%;
  height: 13px;
  margin-top: 4px;
  background: #BE9DDF;
}

.studio-editorial .study-layout-art {
  position: relative;
  min-height: clamp(110px, 12vw, 150px);
  overflow: hidden;
  border-radius: 7px;
  background: #DCC7ED;
}

.studio-editorial .study-layout-art::before {
  content: '';
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  top: 24%;
  right: -18%;
  border-radius: 50%;
  background: #B191D0;
}

.studio-editorial .study-layout-art span {
  position: absolute;
  top: 13%;
  left: 15%;
  width: 49%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #F1E5FA;
  box-shadow: 9px 9px #BE9FD7;
}

.studio-editorial .study-layout-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 0 clamp(11px, 2vw, 23px) 18px;
}

.studio-editorial .study-layout-shelf span {
  height: 39px;
  border: 1px solid #E4D7EF;
  border-radius: 5px;
  background: #F5EDF9;
}

/* El mismo contenido geométrico cambia de columnas a una sola pila. */
.studio-editorial .study-device-desktop {
  top: 14px;
  left: 1%;
  width: 80%;
}

.studio-editorial .study-device-phone {
  position: absolute;
  top: 30px;
  right: 2%;
  width: 25%;
  overflow: hidden;
  border: 4px solid #FBF6FD;
  border-radius: 13px;
  background: #FEFCFF;
  box-shadow: 0 0 0 1px #BEA6D4, -5px 5px #BFA2DA;
}

.studio-editorial .study-device-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(8px, 1.8vw, 20px);
  aspect-ratio: 7 / 4;
  padding: clamp(10px, 1.8vw, 24px);
  background: #FEFCFF;
}

.studio-editorial .study-device-art {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1.3;
  border-radius: 6px;
  background: #E5D0EF;
}

.studio-editorial .study-device-art::after {
  content: '';
  width: 45%;
  aspect-ratio: 1;
  border: 1px solid #AE8BCB;
  border-radius: 50%;
  background: #FCF5FF;
  box-shadow: 4px 4px #C4A5DD;
}

.studio-editorial .study-device-phone .study-device-layout {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: clamp(4px, .7vw, 10px);
  aspect-ratio: 4 / 7;
  padding: clamp(6px, 1vw, 13px);
}

.studio-editorial .study-device-phone .study-layout-lines {
  gap: clamp(3px, .6vw, 6px);
}

.studio-editorial .study-device-phone .study-layout-lines span {
  height: clamp(3px, .55vw, 6px);
  margin-top: 0;
}

/* Una ficha de revisión con nota y confirmación. */
.studio-editorial .study-review-preview {
  position: absolute;
  inset: 0;
  animation: study-orbit-drift 10s -3.7s ease-in-out infinite paused;
}

.studio-editorial .study-review-document {
  inset: 17px 16% -48px 4%;
}

.studio-editorial .study-review-lines {
  display: grid;
  gap: 13px;
  margin: 27px 19% 18px 8%;
  padding: 18px 10%;
  border: 1px solid #E2D2ED;
  border-radius: 9px;
  background: #F6EEF9;
}

.studio-editorial .study-review-line:first-child {
  width: 94%;
  height: 9px;
  background: #60477A;
}

.studio-editorial .study-review-line:nth-child(2) { width: 77%; }
.studio-editorial .study-review-line:last-child { width: 57%; }

.studio-editorial .study-review-comment {
  position: absolute;
  top: 43px;
  right: 2%;
  width: 39%;
  height: 54px;
  border: 1px solid #BC9CD4;
  border-radius: 9px 9px 9px 3px;
  background: #E5D0EF;
  box-shadow: 0 4px #C9B1DA;
}

.studio-editorial .study-review-comment::before,
.studio-editorial .study-review-comment::after {
  position: absolute;
  left: 15%;
  height: 4px;
  border-radius: 8px;
  background: #7C6096;
  content: '';
}

.studio-editorial .study-review-comment::before { top: 35%; width: 69%; }
.studio-editorial .study-review-comment::after { top: 58%; width: 46%; }

.studio-editorial .study-review-check {
  position: absolute;
  right: 11%;
  top: 116px;
  width: clamp(37px, 13%, 52px);
  aspect-ratio: 1;
  border: 1px solid #BEA4CF;
  border-radius: 50%;
  background: #E9D8F0;
}

.studio-editorial .study-review-check::before {
  position: absolute;
  top: 26%;
  left: 37%;
  width: 24%;
  height: 41%;
  content: '';
  border: solid #674D80;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* Los marcos quedan fijos. Solo se mueven sus figuras interiores. */
.studio-editorial :is(.study-layout-lines span, .study-review-line),
.studio-editorial .study-review-comment::before,
.studio-editorial .study-review-comment::after {
  transform-origin: left;
  animation: study-line-sweep 6s ease-in-out infinite paused;
}

.studio-editorial :is(.study-layout-lines span, .study-review-line):nth-child(2),
.studio-editorial .study-review-comment::before {
  animation-delay: -1.7s;
}

.studio-editorial :is(.study-layout-lines span, .study-review-line):last-child,
.studio-editorial .study-review-comment::after {
  animation-delay: -3.1s;
}

.studio-editorial :is(.study-layout-art span, .study-layout-shelf span, .study-review-check),
.studio-editorial .study-layout-art::before,
.studio-editorial .study-device-art::after {
  animation: study-figure-float 7.2s ease-in-out infinite paused;
}

.studio-editorial .study-layout-art::before,
.studio-editorial .study-layout-shelf span:nth-child(2),
.studio-editorial .study-device-phone .study-device-art::after {
  animation-delay: -2.3s;
}

.studio-editorial .study-layout-shelf span:last-child,
.studio-editorial .study-review-check {
  animation-delay: -4.1s;
}

.studio-editorial.is-running .study-head .study-spark,
.studio-editorial.is-running .study-sky-shower .study-meteor,
.studio-editorial.is-running .study-stage :is(
  .study-orbit-art, .study-moon, .study-satellite, .study-review-preview,
  .study-layout-lines span, .study-review-line, .study-layout-art span,
  .study-layout-shelf span, .study-review-check
),
.studio-editorial.is-running .study-stage .study-layout-art::before,
.studio-editorial.is-running .study-stage .study-device-art::after,
.studio-editorial.is-running .study-stage .study-review-comment::before,
.studio-editorial.is-running .study-stage .study-review-comment::after {
  animation-play-state: running;
}

@keyframes study-line-sweep {
  0%, 100% { opacity: .86; transform: scaleX(.84); }
  46% { opacity: 1; transform: scaleX(1); }
}

@keyframes study-figure-float {
  0%, 100% { transform: translateY(0) scale(.97); }
  45% { transform: translateY(calc(-1 * var(--study-figure-drift))) scale(1.04); }
}

@keyframes study-meteor-path {
  0%, 65% { opacity: 0; transform: translate(-35px, -25px) rotate(31deg) scaleX(.7); }
  69% { opacity: .74; }
  79%, 100% { opacity: 0; transform: translate(115px, 65px) rotate(31deg) scaleX(1); }
}

@keyframes study-planet-orbit {
  0%, 100% { transform: translateY(2px) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes study-satellite-orbit {
  0%, 100% { opacity: 1; transform: translate(var(--satellite-x), 0); }
  12.5% { transform: translate(calc(.707 * var(--satellite-x)), calc(-.707 * var(--satellite-y))); }
  25% { opacity: .86; transform: translate(0, calc(-1 * var(--satellite-y))); }
  37.5% { transform: translate(calc(-.707 * var(--satellite-x)), calc(-.707 * var(--satellite-y))); }
  50% { opacity: .8; transform: translate(calc(-1 * var(--satellite-x)), 0); }
  62.5% { transform: translate(calc(-.707 * var(--satellite-x)), calc(.707 * var(--satellite-y))); }
  75% { opacity: 1; transform: translate(0, var(--satellite-y)); }
  87.5% { transform: translate(calc(.707 * var(--satellite-x)), calc(.707 * var(--satellite-y))); }
}

@keyframes study-orbit-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes study-spark {
  0% { opacity: .72; transform: rotate(0) scale(.84); }
  32% { opacity: .83; transform: rotate(115deg) scale(.96); }
  53% { opacity: 1; transform: rotate(191deg) scale(1.11); }
  72% { opacity: .8; transform: rotate(259deg) scale(.93); }
  100% { opacity: .72; transform: rotate(360deg) scale(.84); }
}

@media (max-width: 700px) {
  .studio-editorial .study-head .eyebrow { margin-bottom: 18px; }
  .studio-editorial .study-spark { top: -18px; right: 3%; }
  .studio-editorial .study-spark-small { inset: auto auto -16px 5%; }

  .studio-editorial .study-process {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 26px;
  }

  .studio-editorial .study-card {
    grid-column: 1;
    grid-template-rows: auto minmax(178px, 1fr);
    min-height: 284px;
  }

  .studio-editorial .study-stage { --study-figure-drift: 5px; min-height: 178px; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-editorial .study-spark,
  .studio-editorial .study-meteor,
  .studio-editorial .study-orbit-art,
  .studio-editorial .study-moon,
  .studio-editorial .study-satellite,
  .studio-editorial .study-review-preview,
  .studio-editorial :is(.study-layout-lines span, .study-review-line, .study-layout-art span, .study-layout-shelf span, .study-review-check),
  .studio-editorial .study-layout-art::before,
  .studio-editorial .study-device-art::after,
  .studio-editorial .study-review-comment::before,
  .studio-editorial .study-review-comment::after { animation: none; }
}

