.catalog-dialog {
  width: min(920px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  color: #f5f5f7;
}
.catalog-dialog::backdrop {
  background:
    linear-gradient(#ffffff0d 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, #ffffff0d 1px, transparent 1px) 0 0 / 120px 120px,
    radial-gradient(120% 90% at 30% 20%, #46484e8c, #000d);
  backdrop-filter: blur(14px) saturate(140%);
}
.catalog-dialog .dialog-body {
  position: relative;
  isolation: isolate;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #ffffff29;
  border-radius: 34px;
  background: radial-gradient(ellipse at 14% 0%, #ffffff24, transparent 60%), linear-gradient(154deg, #29292fed, #0d0d0f 85%);
  box-shadow: inset 0 1px 0 #ffffff45, inset 0 -30px 60px #0005, 0 50px 100px -30px #000e;
}
.catalog-dialog .dialog-body::after {
  content: "";
  position: sticky;
  display: block;
  bottom: 0;
  width: 58%;
  height: 2px;
  margin: -2px auto 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #ffd6a08f 24%, #b8f0d0a8 44%, #b9c8ffd1 67%, #f2b8ff9e 82%, transparent);
}
.catalog-dialog[open] .dialog-body { animation: repair-chooser-in .55s cubic-bezier(.18,.8,.25,1) both; }
.catalog-dialog .close {
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  border-color: #ffffff2e;
  background: #ffffff1f;
  box-shadow: inset 0 1px 0 #ffffff40;
}
.catalog-dialog .close:hover { background: #ffffff38; }
.repair-chooser-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 40px 40px 26px;
  perspective: 900px;
}
.repair-chooser-heading h2 {
  width: fit-content;
  padding: 0;
  color: #f5f5f7;
  font-size: clamp(42px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -.03em;
}
.repair-chooser-heading p { margin: 14px 0 0; color: #a1a1a6; font-size: 19px; line-height: 1.4; max-width: 30em; }
.repair-chooser-heading img {
  width: auto;
  height: 240px;
  margin: -14px 30px -20px 0;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 20px 24px #0009);
}
.catalog-dialog[open] .repair-chooser-heading img { animation: repair-hover 6s ease-in-out infinite; }
.repair-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0 28px 8px;
}
.repair-choices li { display: flex; }
.repair-choices a, .repair-choices .repair-support {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 13px 16px;
  border: 1px solid #ffffff20;
  border-radius: 18px;
  background: linear-gradient(150deg, #ffffff1a, #ffffff07);
  box-shadow: inset 0 1px 0 #ffffff26, 0 8px 20px -12px #000c;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  transition: background-color .2s, translate .25s;
}
.repair-choices a:hover { background-color: #ffffff13; translate: 0 -2px; }
.repair-choices a:focus-visible { outline-offset: 2px; }
.catalog-dialog[open] .repair-choices li { animation: repair-choice-in .4s ease both; animation-delay: calc(.08s + var(--repair-order) * 30ms); }
.repair-chevron { margin-left: auto; color: #b9b9bf; font-size: 22px; line-height: 1; }
.repair-choice-icon { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.repair-symbol-support {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #161619;
  font-size: 15px;
  font-weight: 750;
}
.repair-chooser-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 32px 30px;
}
.repair-chooser-bottom p { color: #a1a1a6; font-size: 15px; }

.viewing-repair { background: #000; }
.viewing-repair .header { background: #141414; }
.viewing-repair .header .progress { opacity: 0; }
.repair-page[hidden] { display: none; }
.repair-hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 24px;
  width: min(100%, 1080px);
  margin-inline: auto;
  padding: 72px 24px 40px;
  overflow: hidden;
}
.repair-hero-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.repair-hero-copy { display: grid; justify-items: start; gap: 14px; }
.repair-hero h1 {
  color: #f5f5f7;
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: initial;
}
.repair-hero h1:focus { outline: none; }
.repair-hero p, .repair-end p {
  max-width: 24em;
  color: #a1a1a6;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.18;
}
.repair-back { color: #2997ff; font-size: 15px; }
.repair-back:hover { text-decoration: underline; }
.repair-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  padding: 8px 20px;
  border-radius: 100px;
  background: #0071e3;
  color: #fff;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.2;
  transition: background-color .2s;
}
.repair-button:hover { background: #1677d7; }
.repair-hero .repair-button, .repair-end .repair-button { min-height: 45px; margin-top: 10px; padding-inline: 23px; font-size: 16px; font-weight: 450; }
.repair-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.repair-facts > div {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-height: 145px;
  padding: 22px 20px;
  border: 1px solid #ffffff20;
  border-radius: 22px;
  background: linear-gradient(155deg, #ffffff17, #ffffff05);
  box-shadow: inset 0 1px 0 #ffffff26;
}
.repair-facts dt { color: #f5f5f7; font-size: 19px; font-weight: 600; line-height: 1.25; }
.repair-facts dd { margin: 0; color: #a1a1a6; font-size: 15px; line-height: 1.45; }
.repair-notice {
  width: min(calc(100% - 48px), 1032px);
  margin: 14px auto 0;
}
.repair-notice p {
  padding: 17px 21px;
  border: 1px solid #ffd60a47;
  border-radius: 18px;
  background: #ffd60a12;
  color: #d2d2d7;
  font-size: 15px;
  line-height: 1.5;
}
.repair-notice strong { color: #ffd60a; }
.repair-notice figure { width: min(100%, 640px); margin: 24px auto 0; text-align: center; }
.repair-notice img { width: 100%; height: auto; border: 1px solid #ffffff1f; border-radius: 16px; }
.repair-notice figcaption { margin-top: 10px; color: #a1a1a6; font-size: 14px; }
.repair-gallery, .repair-explainer, .repair-end { text-align: center; }
.repair-gallery h2, .repair-explainer h2, .repair-end h2 {
  color: #f5f5f7;
  font-size: 44px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.07;
}
.repair-explainer { max-width: 1080px; margin-inline: auto; padding: 96px 24px 8px; }
.repair-explainer > p, .repair-end p {
  max-width: 40em;
  margin: 16px auto 0;
  color: #a1a1a6;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.45;
}
.repair-explainer img { width: 100%; height: auto; margin: 40px auto 0; border: 1px solid #ffffff1a; border-radius: 28px; }
.repair-explainer h3 { margin: 48px 0 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.01em; }
.repair-explainer h3 + p { margin-top: 8px; font-size: 16px; }
.repair-explainer-list { display: grid; gap: 10px; max-width: 760px; margin: 32px auto 0; padding: 0; text-align: left; list-style: none; }
.repair-explainer h3 + .repair-explainer-list, .repair-explainer h3 + p + .repair-explainer-list { margin-top: 20px; }
.repair-explainer-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 22px;
  border: 1px solid #ffffff1a;
  border-radius: 16px;
  background: linear-gradient(#ffffff0f, #ffffff05);
}
.repair-explainer-list strong { color: #f5f5f7; font-size: 16px; font-weight: 600; }
.repair-explainer-list span { color: #a1a1a6; font-size: 15px; text-align: right; }
.repair-gallery { max-width: 1180px; margin-inline: auto; padding: 88px 24px 24px; }
.repair-gallery-grid { display: grid; justify-content: center; gap: 16px; margin-top: 36px; grid-template-columns: repeat(2, minmax(0, 340px)); }
.repair-gallery-grid[data-videos="1"] { grid-template-columns: minmax(0, 380px); }
.repair-video { display: grid; gap: 10px; margin: 0; }
.repair-video video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid #ffffff1f; border-radius: 22px; background: #1c1c1e; }
.repair-video figcaption { color: #f5f5f7; font-size: 15px; font-weight: 600; }
.repair-end { display: grid; justify-items: center; padding: 88px 24px 110px; }
.repair-media-credit { padding: 0 16px 20px; color: #a1a1a6; font-size: 12px; text-align: center; }
.repair-media-credit a:hover { text-decoration: underline; }
@media (min-width: 734px) {
  .repair-gallery h2, .repair-explainer h2, .repair-end h2 { font-size: 56px; letter-spacing: -.005em; }
}

.repair-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(310px, 38vw, 470px);
  isolation: isolate;
  perspective: 1100px;
}
.repair-art-equipment img, .repair-art-wide img, .repair-art-portrait img, .repair-art-compact img {
  width: 100%;
  height: 100%;
  max-height: 425px;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 24px 24px #000a);
  animation: repair-hover 6s ease-in-out infinite;
}
.repair-art-wide { height: auto; }
.repair-art-wide img { width: 100%; height: auto; max-width: 560px; max-height: none; mix-blend-mode: normal; }
.repair-art-portrait img, .repair-art-compact img { width: auto; max-width: 100%; max-height: none; mix-blend-mode: normal; }
.repair-art-compact { height: clamp(280px, 36vw, 440px); }
.battery-scene, .repair-display {
  position: relative;
  height: 100%;
  aspect-ratio: 300 / 620;
  transform-style: preserve-3d;
  animation: repair-battery-float 6s ease-in-out infinite;
}
.battery-case, .battery-screen-front, .battery-screen-back, .display-front, .display-back {
  position: absolute;
  inset: 0;
  border: 5px solid #55565b;
  border-radius: 17% / 8%;
  box-shadow: inset 0 0 0 6px #111114, 0 30px 46px #000b;
}
.battery-case {
  padding: 5.6%;
  background: #121316;
}
.battery-case > span {
  display: grid;
  grid-template-columns: 1.4fr .8fr .65fr;
  align-items: start;
  gap: 6%;
  height: 31.3%;
  padding: 8%;
  border: 1px solid #2c5668;
  border-radius: 12px;
  background: repeating-linear-gradient(30deg, transparent 0 18px, #cda45431 19px 20px, transparent 21px 30px), linear-gradient(145deg, #325e6c, #132830);
}
.battery-case i { height: 61%; border: 1px solid #72767c; border-radius: 5px; background: linear-gradient(145deg, #d9dadd, #71767f); }
.battery-case i:nth-child(2) { height: 50%; background: #17191d; border-color: #3e4048; }
.battery-case i:nth-child(3) { height: 32%; }
.battery-glass {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: center left;
  animation: repair-battery-open 12s cubic-bezier(.45,0,.25,1) infinite;
}
.battery-screen-front {
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  background: linear-gradient(132deg, #ffffff1e, transparent 43%), #070707;
  animation: repair-screen-power 12s linear infinite;
}
.battery-screen-front::before {
  content: "";
  position: absolute;
  top: 4%;
  left: 50%;
  width: 28%;
  height: 4%;
  translate: -50% 0;
  border-radius: 200px;
  background: #030305;
  box-shadow: 0 0 0 1px #ffffff14;
}
.battery-screen-back {
  border-color: #4a4b50;
  background: linear-gradient(162deg, #404147, #252629 55%, #34353a);
  backface-visibility: hidden;
  transform: rotateY(180deg);
}
.battery-screen-back::after { content: ""; position: absolute; inset: 13% 28% 73%; border: 1px solid #53545a; border-radius: 8px; background: #28292d; }
.battery-cell {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 36.4% 14.6% 7.1%;
  border: 1px solid #4b5054;
  border-radius: 11px;
  box-shadow: inset 0 1px #ffffff38;
  color: #ad9a81;
  background: linear-gradient(140deg, #484036, #332f28);
  animation: repair-battery-out 12s ease-in-out infinite;
}
.battery-new {
  opacity: 0;
  color: #e5e5e9;
  border-color: #737478;
  background: linear-gradient(140deg, #53555c, #1e1f22);
  animation-name: repair-battery-in;
}
.battery-cell::before { content: ""; position: absolute; right: 9%; top: -8%; width: 19%; height: 7%; border-radius: 3px; background: #b68c49; }
.battery-new::before { background: #c5c8cf; box-shadow: 0 5px 0 -1px #bb8e50; }
.battery-cell span { font-size: clamp(10px, 1.3vw, 17px); font-weight: 700; text-align: center; }
.battery-cell small { display: block; margin-top: 3px; font-size: .62em; }
.battery-old small { color: #ff4d40; }
.battery-new small:first-child { color: #bfc1c4; }
.battery-new small:last-child { color: #35ce60; }
.battery-charge { position: absolute; top: 49%; left: 50%; translate: -50% -50%; display: block; width: 29%; height: 6.8%; padding: 3px; border: 2px solid #ccc; border-radius: 7px; }
.battery-charge::after { content: ""; position: absolute; left: calc(100% + 3px); top: 35%; bottom: 35%; width: 3px; border-radius: 1px; background: #aaa; }
.battery-charge i { display: block; width: 100%; height: 100%; border-radius: 3px; transform-origin: left; }
.battery-charge small { position: absolute; inset: calc(100% + 9px) -24px auto; color: #f35e5e; font-size: clamp(9px, 1vw, 13px); font-weight: 650; text-align: center; }
.battery-charge-low { animation: repair-low-charge 12s linear infinite; }
.battery-charge-low i { background: #ed4d50; transform: scaleX(.15); }
.battery-charge-full { width: 42%; height: 9%; animation: repair-high-charge 12s linear infinite; }
.battery-charge-full i { background: #46df89; animation: repair-charge 12s ease-in-out infinite; }
.battery-charge-full small { color: #f5f5f7; }
.battery-charge-full small::after { content: "Batería nueva"; display: block; color: #46df89; font-size: .8em; }
.battery-charge-full::before { content: ""; position: absolute; z-index: 1; top: 11%; left: 42%; width: 18%; height: 77%; background: #fff; clip-path: polygon(52% 0, 11% 57%, 43% 57%, 33% 100%, 94% 41%, 58% 41%); }
.repair-display { animation: repair-display-turn 9s cubic-bezier(.45,0,.55,1) infinite; }
.display-front, .display-back { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; backface-visibility: hidden; }
.display-back { transform: rotateY(180deg); }

@keyframes repair-chooser-in { from { opacity: 0; transform: translateY(25px) scale(.974); } }
@keyframes repair-chooser-sheet { from { transform: translateY(100%); } }
@keyframes repair-choice-in { from { opacity: 0; transform: translateY(9px); } }
@keyframes repair-hover { 0%, 100% { transform: translateY(0) rotateY(-12deg) rotate(-3deg); } 50% { transform: translateY(-10px) rotateY(12deg) rotate(2deg); } }
@keyframes repair-battery-float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes repair-battery-open {
  0%, 11%, 61%, 100% { transform: none; opacity: 1; }
  19%, 52% { transform: rotateY(-108deg); opacity: 1; }
  25%, 46% { transform: translateX(-52%) rotateY(-108deg); opacity: 0; }
}
@keyframes repair-battery-out { 0%, 27% { transform: none; opacity: 1; } 35%, 100% { transform: translateX(67%) rotate(9deg); opacity: 0; } }
@keyframes repair-battery-in { 0%, 35% { transform: translateX(74%) rotate(-8deg); opacity: 0; } 46%, 99.5% { transform: none; opacity: 1; } }
@keyframes repair-charge { 0%, 66% { transform: scaleX(.08); } 93%, 100% { transform: scaleX(.95); } }
@keyframes repair-low-charge { 0%, 15%, 100% { opacity: 0; } 3%, 12% { opacity: 1; } }
@keyframes repair-high-charge { 0%, 63%, 100% { opacity: 0; } 68%, 96% { opacity: 1; } }
@keyframes repair-screen-power { 67%, 96% { background-color: #0d1a12; } }
@keyframes repair-display-turn { 0%, 21% { transform: rotateY(-12deg) rotate(-3deg); } 49%, 69% { transform: rotateY(-195deg) rotate(-3deg); } 100% { transform: rotateY(-372deg) rotate(-3deg); } }

@media (max-width: 900px) {
  .repair-hero-wide { grid-template-columns: 1fr; }
  .repair-art-wide img { max-width: 440px; }
  .repair-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .repair-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .repair-hero { grid-template-columns: 1fr; gap: 14px; padding: 40px 16px 28px; text-align: center; }
  .repair-hero-copy { justify-items: center; }
  .repair-art { grid-row: 1; height: 270px; max-width: 340px; width: 100%; margin-inline: auto; }
  .repair-art-equipment img { max-width: 250px; }
  .repair-art-wide { height: auto; }
  .repair-art-compact { height: 250px; }
  .repair-facts { gap: 10px; padding: 0 16px; }
  .repair-facts > div { padding: 16px 14px; min-height: 0; align-content: start; }
  .repair-notice { width: calc(100% - 32px); }
  .repair-explainer { padding: 72px 16px 0; }
  .repair-explainer img { margin-top: 28px; border-radius: 18px; }
  .repair-explainer-list li { flex-direction: column; gap: 4px; padding: 14px 16px; }
  .repair-explainer-list span { text-align: left; }
  .repair-gallery { padding: 64px 16px 16px; }
  .repair-gallery-grid { gap: 10px; }
  .repair-end { padding-inline: 16px; }
}
@media (max-width: 600px) {
  .catalog-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; }
  .catalog-dialog .dialog-body { max-height: 92dvh; border-radius: 30px 30px 0 0; border-bottom: 0; }
  .catalog-dialog[open] .dialog-body { animation-name: repair-chooser-sheet; }
  .repair-chooser-heading { grid-template-columns: 1fr; gap: 20px; padding: 30px 20px 18px; }
  .repair-chooser-heading h2 { font-size: 42px; }
  .repair-chooser-heading p { font-size: 17px; }
  .repair-chooser-heading img { grid-row: 1; justify-self: center; width: auto; height: 190px; margin: 0; }
  .repair-choices { grid-template-columns: 1fr; gap: 8px; padding: 0 14px 6px; }
  .repair-choices a, .repair-choices .repair-support { min-height: 48px; font-size: 16px; }
  .repair-chooser-bottom { padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); }
  .repair-chooser-bottom .repair-button { width: 100%; }
}
@media (max-width: 370px) {
  .repair-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-dialog[open] .dialog-body, .catalog-dialog[open] .repair-choices li, .catalog-dialog[open] .repair-chooser-heading img,
  .repair-art img, .battery-scene, .battery-glass, .battery-screen-front, .battery-cell, .battery-charge, .battery-charge i,
  .repair-display { animation: none; }
  .battery-screen-front { background-color: #0d1a12; }
  .battery-old { display: none; }
  .battery-charge-low { display: none; }
  .battery-charge-full i { transform: none; }
}
