body:has(#testimonios.active) main {
  width: 100%;
  max-width: none;
  padding: 0;
}
#testimonios { padding: 0; scroll-margin-top: 200px; }
.testimonio-mural {
  --testimonio-escena: url("./testimonios-mural-espacio.jpg");
  position: relative;
  isolation: isolate;
  max-width: 1800px;
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  container-type: inline-size;
  background: #18100b var(--testimonio-escena) center / cover no-repeat;
}
.testimonio-marca {
  position: absolute;
  inset: 2.2% auto auto 6.3%;
  display: flex;
  align-items: center;
  gap: .5cqw;
  color: #ffe2a2;
  font: italic 600 clamp(7px, 1.65cqw, 29px)/1 Georgia, serif;
  text-shadow: 0 2px 3px #000;
}
.testimonio-marca img { width: 3.8cqw; height: 3.8cqw; object-fit: contain; }
.testimonio-marca small { display: block; margin-top: .18em; color: #fff5de; font-size: .55em; }
.testimonio-relato {
  position: absolute;
  inset: 39% 22% 34% 22%;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  overflow: auto;
  padding: 0 1cqw;
  text-align: center;
  color: #fff5e5;
  font: 400 clamp(11px, 1.88cqw, 33px)/1.28 "Permanent Marker", Kalam, "Segoe Print", "Chalkboard SE", cursive;
  text-shadow: 0 2px 3px #000, 0 0 8px #000;
  scrollbar-width: thin;
  scrollbar-color: #c28126 transparent;
}
.testimonio-relato h3 { margin: 0; font: inherit; color: #ffcc6f; overflow-wrap: anywhere; }
.testimonio-relato p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.testimonio-detalles {
  display: flex;
  align-items: baseline;
  gap: .45em;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  margin-bottom: .55em;
  text-align: left;
  font-size: max(11px, .7em);
  color: #ffda9b;
}
.testimonio-detalles:not(:has(p:not([hidden]), h3:not([hidden]))) { display: none; }
.testimonio-detalles > :not([hidden]) { flex: none; white-space: nowrap; }
.testimonio-detalles > :not([hidden]) ~ :not([hidden])::before {
  content: "·" / "";
  margin-right: .45em;
}
#testimony-meta { align-self: end; margin-top: .35em; font-size: .62em; }
@supports (background-clip: text) {
  #testimony-title, #testimony-body, #testimony-meta {
    --paint: #fff4df;
    --paint-grain: #d8c7a5;
    color: transparent;
    background: repeating-linear-gradient(171deg, var(--paint) 0 2.8px, var(--paint-grain) 3.3px, var(--paint) 4px);
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 2px #000);
  }
  #testimony-title, #testimony-meta { --paint: #ffd179; --paint-grain: #be862c; }
}
.testimonio-carrusel {
  position: absolute;
  inset: 67% 11.4% auto;
  display: grid;
  grid-template-columns: 4.3% minmax(0, 1fr) 4.3%;
  gap: 1.3cqw;
  align-items: center;
  justify-items: stretch;
}
.testimonio-temas { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1.2cqw; }
.testimonio-temas button {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: max(33px, 7.1cqw);
  padding: .3em .1em .2em;
  border: 1.5px solid var(--neon);
  border-radius: 48% 52% 48% 52% / 51% 47% 53% 49%;
  color: var(--bubble-text, #fff9ee);
  background: radial-gradient(ellipse at 43% 10%, var(--shine), var(--fill) 74%);
  box-shadow: 0 0 .75cqw var(--neon), inset 0 0 .95cqw var(--shine);
  font: 400 clamp(8px, 1.55cqw, 25px)/1.08 Kalam, "Segoe Print", "Chalkboard SE", cursive;
  text-shadow: 0 1px 3px var(--shadow, #000);
  cursor: pointer;
}
.testimonio-temas button::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: -12%;
  z-index: -1;
  width: 20%;
  height: 28%;
  background: linear-gradient(135deg, var(--fill) 51%, var(--neon) 58%);
  clip-path: polygon(0 0, 78% 5%, 100% 100%);
  transform: rotate(8deg);
}
.testimonio-temas button:nth-child(even)::after { right: auto; left: 14%; transform: scaleX(-1) rotate(8deg); }
.testimonio-temas button:nth-child(1) { --neon:#ffd26c; --shine:#ffcf68; --fill:#ab550b; --bubble-text:#261305; --shadow:#ffcc5f; }
.testimonio-temas button:nth-child(2) { --neon:#56c9ff; --shine:#166fb9; --fill:#062f61; }
.testimonio-temas button:nth-child(3) { --neon:#ff667a; --shine:#bd314a; --fill:#650e19; }
.testimonio-temas button:nth-child(4) { --neon:#54e8ab; --shine:#18795a; --fill:#073a2a; }
.testimonio-temas button:nth-child(5) { --neon:#c271ff; --shine:#7932af; --fill:#3c165a; }
.testimonio-temas button:nth-child(6) { --neon:#ffa557; --shine:#af541c; --fill:#6e290b; }
.testimonio-temas button:is(:hover,[aria-pressed="true"]) {
  filter: brightness(1.25);
  box-shadow: 0 0 1.2cqw var(--neon), inset 0 0 1.2cqw var(--shine);
}
.testimonio-flecha {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #fff5e0;
  border-radius: 50%;
  background: #100b08;
  color: #fff5e0;
  font: 700 clamp(10px, 2.6cqw, 38px)/.8 Georgia, serif;
  cursor: pointer;
}
.testimonio-flecha:disabled { opacity: .68; cursor: default; }
.testimonio-carrusel button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.testimonio-puntos {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: .75cqw;
  margin-top: .6cqw;
  padding: .65cqw 1.35cqw;
  border-radius: 20px;
  background: #140d0ae6;
}
.testimonio-puntos span { width: .9cqw; aspect-ratio: 1; border-radius: 50%; background: #b8b2a3; opacity: .55; }
.testimonio-puntos .activo { background: #ffe0a0; opacity: 1; box-shadow: 0 0 8px 2px #ffae29; }
.testimonio-personas:not([hidden]) {
  grid-column: 2;
  display: flex;
  margin-top: max(9px, 1cqw);
  gap: max(8px, 1cqw);
  max-width: 100%;
  padding: 5px 5px 8px;
  overflow-x: auto;
  justify-content: safe center;
  scrollbar-width: thin;
}
.testimonio-personas button {
  flex: none;
  min-width: 6.8em;
  padding: .35em .8em;
  border: 1px solid #dda75f;
  border-radius: 50%;
  background: radial-gradient(ellipse at top, #4f3451, #180f16 80%);
  color: #fff0d7;
  font: 400 clamp(11px,1.3cqw,22px)/1.05 Kalam, "Segoe Print", cursive;
  cursor: pointer;
}
.testimonio-personas button span { display: block; color: #ffd993; }
.testimonio-personas button:is(:hover,[aria-pressed="true"]) {
  border-color: #fff0b3;
  background: radial-gradient(ellipse at top,#774c7d,#28182c 80%);
  box-shadow: 0 0 7px #efbb7d;
}
.testimonio-mural[data-people] .testimonio-puntos { display: none; }
@media (max-width: 600px) {
  .testimonio-mural {
    aspect-ratio: auto;
    padding-top: 26%;
    padding-bottom: 14%;
    background: repeating-linear-gradient(to bottom, transparent 0 11px, #9b654132 11px 12px), radial-gradient(ellipse at center, #261712, #130e0c);
  }
  .testimonio-mural::before, .testimonio-mural::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    z-index: -1;
    background: #18100b var(--testimonio-escena) center top / 100% auto no-repeat;
    pointer-events: none;
  }
  .testimonio-mural::before { top: 0; height: 32cqw; mask-image: linear-gradient(#000 82%, transparent); }
  .testimonio-mural::after { bottom: 0; height: 20cqw; background-position: center bottom; mask-image: linear-gradient(transparent, #000 30%); }
  .testimonio-relato {
    position: relative;
    inset: auto;
    padding: .75rem 0;
    margin: 0 9%;
    font-size: clamp(13px, 3.3cqw, 17px);
  }
  .testimonio-carrusel { position: relative; inset: auto; margin: 7px 5% 0; gap: 1.4cqw; }
  .testimonio-temas { gap: 1.05cqw; }
  .testimonio-marca { inset-block-start: 1.3cqw; }
}
