/* KC EPÍSTOLA · figurín en lino, línea grabada y color sobre el vestido. */
#vestimenta { overflow-x: clip; }
#vestimenta .kc-container { max-width: 42rem; }
#vestimenta .kc-title { margin-bottom: .8rem; }
#vestimenta .ep-dress__figurin {
  position: relative;
  isolation: isolate;
  width: min(100%, 30rem);
  aspect-ratio: 1122 / 1402;
  margin: 1.2rem auto 1.8rem;
  overflow: hidden;
  background:
    radial-gradient(100% 70% at 28% 12%, rgba(255, 253, 249, .76), transparent 70%),
    repeating-linear-gradient(0deg, rgba(82, 32, 54, .018) 0 1px, transparent 1px 3px),
    var(--ep-grain) 0 0 / 96px 96px,
    #E8DFD2;
  filter: drop-shadow(0 12px 18px rgba(49, 19, 32, .16));
}
#vestimenta .ep-dress__figurin::after {
  content: "";
  position: absolute;
  z-index: 0; /* el marco va detrás de los maniquíes */
  inset: 1.4% 2.2% 1.5%;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M1 124V57C1 34 32 8 50 1C68 8 99 34 99 57V124Z' fill='none' stroke='%23A7AAB3' stroke-width='.55' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
#vestimenta .pc-figure { position: absolute; bottom: 2%; }
#vestimenta .pc-figure--h { left: 19%; width: 30.8%; aspect-ratio: 368 / 1402; z-index: 1; }
#vestimenta .pc-figure--m { left: 46%; width: 40.6%; aspect-ratio: 485 / 1390; z-index: 2; }
#vestimenta .pc-figure__shade,
#vestimenta .pc-figure__line,
#vestimenta .pc-figure__dress,
#vestimenta .pc-figure__deep { position: absolute; inset: 0; width: 100%; height: 100%; }
#vestimenta .pc-figure__shade { object-fit: fill; }
#vestimenta .pc-figure__line { overflow: visible; }
#vestimenta .pc-figure__line path {
  fill: none;
  stroke: #4B4140;
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
#vestimenta .pc-figure--h .pc-figure__line path { stroke: #302B2E; stroke-width: 1.1; }
#vestimenta .pc-figure--m .pc-figure__line path { stroke: #625253; stroke-opacity: .82; stroke-width: .9; }
#vestimenta .pc-figure__dress,
#vestimenta .pc-figure__deep { background-color: var(--pc-dress, #1B1A1F); -webkit-mask: url('../../../assets/page/dress-m-mask.webp') center / 100% 100% no-repeat; mask: url('../../../assets/page/dress-m-mask.webp') center / 100% 100% no-repeat; }
/* R4: el caballero ya no viste gris oscuro (lo que se pide evitar); azul marino fijo, llega con el color de ella. */
#vestimenta .pc-figure--h { --pc-dress: #22304D; --pc-deep: .4; }
#vestimenta .pc-figure--h .pc-figure__dress,
#vestimenta .pc-figure--h .pc-figure__deep { -webkit-mask-image: url('../../../assets/page/dress-h-mask.webp'); mask-image: url('../../../assets/page/dress-h-mask.webp'); }
#vestimenta .pc-figure__dress { mix-blend-mode: color; opacity: var(--pc-fade, 1); }
#vestimenta .pc-figure__deep { mix-blend-mode: multiply; opacity: calc(var(--pc-fade, 1) * var(--pc-deep, 0)); }
#vestimenta [data-ep-phase='idle'] .pc-figure__line path { stroke-dashoffset: var(--pc-from, 1); }
#vestimenta [data-ep-phase='idle'] .pc-figure__shade,
#vestimenta [data-ep-phase='line'] .pc-figure__shade { opacity: 0; }
#vestimenta .pc-figure__shade { transition: opacity 400ms ease; }
#vestimenta [data-ep-phase='line'] .pc-figure__line path { transition: stroke-dashoffset var(--pc-dur, 520ms) linear var(--pc-delay, 0ms); }
#vestimenta .ep-dress__names {
  /* R4: ocho colores en celdas iguales, 3·3·2 en móvil y 4·4 en escritorio; la última fila se centra. */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0;
  background: none;
  box-shadow: none;
}
#vestimenta .ep-dress__names .kc-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 33.333%;
  gap: 0;
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: .4rem .48rem;
  border: 0;
  color: var(--ep-ink-small);
  background: transparent;
  cursor: pointer;
  font-family: var(--ep-font-caps);
  font-size: .74rem;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
@media (min-width: 480px) { #vestimenta .ep-dress__names .kc-swatch { flex-basis: 25%; } }
#vestimenta .ep-dress__names .kc-swatch__drop { display: none; }
#vestimenta .ep-dress__names .kc-swatch[aria-pressed='true'] { color: var(--ep-burgundy-ink); text-decoration: underline; text-decoration-color: #A7AAB3; text-underline-offset: .35em; }
#vestimenta .ep-dress__names .kc-swatch:focus-visible { outline: 1px solid #A7AAB3; outline-offset: 1px; }
/* Lo importante: los colores a evitar, grandes, en una placa con doble filete burdeos. */
#vestimenta .ep-avoid {
  position: relative;
  max-width: 30rem;
  margin: 1.4rem auto 0;
  padding: 1.25rem 1.4rem 1.35rem;
  text-align: center;
  border: 1px solid rgba(103, 37, 67, .55);
  outline: 1px solid rgba(103, 37, 67, .22);
  outline-offset: 4px;
  background: radial-gradient(90% 80% at 22% 10%, rgba(255, 253, 249, .7), transparent 70%), var(--ep-grain) 0 0 / 96px 96px, #F1EADF;
}
#vestimenta .ep-avoid__title {
  margin: 0 0 .45rem;
  font-family: var(--kc-font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ep-burgundy-ink, #522036);
}
/* R4 (clienta): una línea para ellas y otra para ellos. */
#vestimenta .ep-avoid__who {
  margin: .7rem 0 .1rem;
  font-family: var(--ep-font-caps);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ep-burgundy-ribbon, #672543);
}
#vestimenta .ep-avoid__list {
  margin: 0;
  font-family: var(--kc-font-display);
  font-size: clamp(1.08rem, .95rem + .7vw, 1.3rem);
  line-height: 1.45;
  color: #3D2B32;
  text-wrap: balance;
}
#vestimenta #vestimenta-swatches { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) {
  #vestimenta .pc-figure__shade { transition: none; }
}
