/* WIWU Perú · Página "Para mí" (B2C): portada con carrusel, elige tu color y el catálogo completo, todo en una sola página.
   Toma de cada referencia lo mejor: la energía y el titular grande de Skullcandy (portada), los campos de color enteros de Läderach
   (elige tu color) y la limpieza de Glossier (producto grande, nombre debajo, sin cajas). Solo modo claro, azul y blanco, sin precios. */
.b2c {
  --b2c-ink: #0d1424;
  --b2c-soft: #4c5568;
  --b2c-blue: #2a5ba8;
  --b2c-navy: #17345f;
  --b2c-line: rgba(13, 20, 36, .1);
  --b2c-tile: #e6edf8;
  --b2c-ease: cubic-bezier(.23, 1, .32, 1);
}
.hc *, .cc *, .b2c-cat *, .cl * { scrollbar-width: thin; scrollbar-color: rgba(23, 52, 95, .35) transparent; }

/* Un mismo documento, dos tiendas: la portada muestra los bloques del modo elegido en la bienvenida (audiencia.js) */
html[data-audiencia="personal"] [data-aud="business"],
html[data-audiencia="business"] [data-aud="personal"] { display: none !important; }

/* ================= Portada con carrusel curvo ================= */
.hc { --s: 1; position: relative; isolation: isolate; height: calc(920px * var(--s)); overflow: clip; background: #f7faff; color: var(--b2c-ink); }
/* Fondo vivo: se dibuja en un canvas pequeño (~480 px de ancho) y se escala, así la mezcla sale suave y cuesta poco */
.hc__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #edf2f9; }
.hc__bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hc__bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(to bottom, rgba(247, 250, 255, 0), #f7faff); }
.hc__grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hc__stage { position: absolute; z-index: 1; left: 50%; top: 0; width: 1440px; height: 920px; transform-origin: 0 0; transform: translateX(calc(-720px * var(--s))) scale(var(--s)); }
.hc__stage > * { position: absolute; }

.hc__title {
  left: 0; right: 0; top: 56px; margin: 0; text-align: center; white-space: nowrap;
  font: 700 96px/90px "Geist", system-ui, sans-serif; color: var(--b2c-ink);
}
.hc__title .mask { display: block; overflow: hidden; padding: .06em 0 .1em; margin-bottom: -.1em; }
.hc__title .line { display: block; letter-spacing: -.04em; }

/* Órbitas: la idea de "conexión" del sitio, con destellos que recorren dos elipses detrás del carrusel */
.hc__orbit { left: 0; top: 0; width: 1440px; height: 920px; pointer-events: none; overflow: visible; }
.hc__orbit path { fill: none; stroke: var(--b2c-blue); stroke-width: 1.4; stroke-opacity: .16; }
.hc__orbit .spark { stroke-width: 3.2; stroke-opacity: .85; stroke-linecap: round; stroke-dasharray: 1.1 98.9; animation: hc-orbit 13s linear infinite; }
.hc__orbit .spark--b { animation-duration: 19s; animation-direction: reverse; stroke-dasharray: .8 99.2; stroke-opacity: .6; }
@keyframes hc-orbit { to { stroke-dashoffset: -100; } }

/* Notas a mano y garabatos */
.hc__doodles { left: 0; top: 0; width: 1440px; height: 920px; pointer-events: none; overflow: visible; }
.hc__doodles path { fill: none; stroke: var(--b2c-blue); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hc__note { font: 600 36px/.95 Caveat, "Segoe Script", cursive; color: var(--b2c-blue); transform-origin: 0 0; pointer-events: none; white-space: nowrap; }
.hc__note--a { left: 1238px; top: 130px; transform: rotate(16deg); }
.hc__note--b { left: 440px; top: 828px; transform: rotate(14deg); font-size: 31px; }

/* Carrusel */
.hc__floor { left: 220px; top: 696px; width: 1000px; height: 56px; pointer-events: none; background: radial-gradient(closest-side, rgba(23, 52, 95, .15), rgba(23, 52, 95, 0)); filter: blur(5px); }
.hc__rail { left: 0; top: 0; width: 1440px; height: 920px; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hc__rail:not(.is-ready) .hc__card { visibility: hidden; }
.hc__hit { position: absolute; pointer-events: auto; left: 0; top: 250px; width: 1440px; height: 540px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hc__hit.is-over { cursor: pointer; }
.hc__hit.is-dragging { cursor: grabbing; }
.hc__hit:focus-visible { outline: 2px solid var(--b2c-blue); outline-offset: -6px; border-radius: 12px; }
.hc__card { position: absolute; left: 0; top: 0; overflow: hidden; background: var(--b2c-tile); contain: layout paint; }
.hc__card img.poster, .hc__card video {
  will-change: transform; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%; -webkit-user-drag: none; user-select: none;
}
/* Entrada: hasta que empieza la animación de entrada (con la bienvenida ya cerrada) el escenario no se ve; así la portada no
   aparece vacía, se borra y vuelve a entrar. El fondo vivo sí se ve desde el principio. Las fotos entran con un fundido al bajar. */
.js .hc:not(.is-in) .hc__stage { opacity: 0; }
.hc__card img.poster { opacity: 0; transition: opacity 420ms ease; }
.hc__card img.poster.is-loaded { opacity: 1; }
.hc__card video { opacity: 0; transition: opacity 400ms ease; }
.hc__card.is-playing video { opacity: 1; }
.hc__card.has-video img.poster, .hc__card.has-video video { filter: brightness(1.05) contrast(1.04); }
.hc__card.has-video::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #d6e6ff, #bcd3f7); mix-blend-mode: soft-light; opacity: .85; }
.hc__play { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.hc__play svg { width: 10px; height: 10px; fill: #0e2142; margin-left: 1px; }

/* Nombre del producto que va al centro */
.hc__cap { left: 440px; top: 772px; width: 560px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 11px; pointer-events: none; white-space: nowrap; }
.hc__cap-dot { flex: none; width: 13px; height: 13px; border-radius: 50%; background: var(--b2c-tile); box-shadow: inset 0 0 0 1px rgba(13, 20, 36, .2); }
.hc__cap-name { font: 700 23px/1 "Geist", system-ui, sans-serif; letter-spacing: -.012em; }
.hc__cap-kind { font-size: 17px; line-height: 1; color: #2f384a; }

/* Botón con anillo punteado */
.hc__cta { left: 626px; top: 822px; width: 190px; height: 74px; border: 1.8px dashed var(--b2c-blue); border-radius: 99px; }
.hc__btn {
  position: absolute; left: 9px; top: 7px; width: 172px; height: 58px; border-radius: 99px;
  background: var(--b2c-navy); color: #fff; text-decoration: none; display: grid; place-items: center;
  font: 500 20px "Geist", system-ui, sans-serif; touch-action: manipulation;
  transition: transform 160ms var(--b2c-ease), background-color 160ms var(--b2c-ease);
}
.hc__btn:active { transform: scale(.96); }
.hc__btn:focus-visible { outline: 2px solid var(--b2c-blue); outline-offset: 4px; }

/* ================= Elige tu color ================= */
.cc {
  --cc-field: #ffd9b8;
  position: relative; isolation: isolate; overflow: clip; background: var(--cc-field); color: var(--b2c-ink);
  padding: clamp(48px, 7vw, 104px) 0 clamp(48px, 6vw, 88px);
}
.cc__wipe { position: absolute; inset: 0; z-index: -1; background: var(--cc-next, transparent); clip-path: circle(0 at 50% 50%); pointer-events: none; }
.cc__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(26px, 4vw, 52px); }
.cc__title { margin: 0; font: 800 clamp(2.5rem, 7.4vw, 5.6rem)/.96 "Geist", system-ui, sans-serif; letter-spacing: -.04em; text-wrap: balance; }
.cc__pick { display: grid; justify-items: end; gap: 10px; padding-bottom: .6rem; }
@media (max-width: 760px) { .cc__pick { justify-items: start; } }
.cc__swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.cc__sw {
  position: relative; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 160ms var(--b2c-ease);
}
.cc__sw::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(13, 20, 36, .22); transition: transform 220ms var(--b2c-ease); }
.cc__sw::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--b2c-ink); opacity: 0; transform: scale(.82); transition: opacity 160ms ease, transform 260ms var(--b2c-ease); }
.cc__sw[aria-pressed="true"]::after { opacity: 1; transform: none; }
.cc__sw:active { transform: scale(.92); }
.cc__sw:focus-visible { outline: 2px solid var(--b2c-blue); outline-offset: 2px; }
.cc__now { margin: 0; font: 700 clamp(1.15rem, 2.2vw, 1.5rem)/1.1 "Geist", system-ui, sans-serif; letter-spacing: -.015em; }
.cc__now small { margin-left: 8px; font-size: .78em; font-weight: 500; color: var(--b2c-soft); }

/* Cinco productos en una fila; si el color tiene menos, la fila queda centrada con el mismo tamaño */
.cc__rail { --gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: var(--gap); }
.cc__rail > li { flex: 0 1 calc((100% - 4 * var(--gap)) / 5); min-width: 0; }
.cc__item { display: grid; justify-items: center; gap: 14px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cc__item:focus-visible { outline: 2px solid var(--b2c-blue); outline-offset: 6px; border-radius: 14px; }
.cc__photo { display: block; aspect-ratio: 1; width: 100%; }
.cc__photo img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 320ms var(--b2c-ease); }
/* Las fotos vienen sin fondo (assets/productos-sinfondo); solo la de respaldo, con fondo blanco, se funde con el color */
.cc__photo img.con-fondo { mix-blend-mode: multiply; }
.cc__item:active .cc__photo img { transform: scale(.97); }
.cc__info { display: grid; justify-items: center; gap: 3px; }
.cc__info strong { font: 700 1.08rem/1.2 "Geist", system-ui, sans-serif; letter-spacing: -.01em; }
.cc__info span { font-size: .95rem; color: #3a4357; }
.cc__foot { display: flex; justify-content: center; margin-top: clamp(26px, 3.4vw, 44px); }
.cc__more {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 30px; border: 0; border-radius: 99px;
  background: var(--b2c-navy); color: #fff; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  font: 700 1.08rem "Geist", system-ui, sans-serif; letter-spacing: -.01em;
  transition: transform 160ms var(--b2c-ease), background-color 200ms ease;
}
.cc__more svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 260ms var(--b2c-ease); }
.cc__more:active { transform: scale(.97); }
.cc__more:focus-visible { outline: 2px solid var(--b2c-blue); outline-offset: 4px; }

/* ================= Catálogo ================= */
.b2c-cat__head { padding-top: clamp(44px, 6vw, 72px); }
.b2c-cat__title { margin: 0 0 clamp(10px, 1.6vw, 20px); font: 800 clamp(2.5rem, 7.4vw, 5.6rem)/.96 "Geist", system-ui, sans-serif; letter-spacing: -.04em; color: var(--b2c-ink); }
.cl.b2c-cat { padding-top: 0; }

.b2c-switch button { min-height: 44px; padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; touch-action: manipulation; }
.b2c-switch button:focus-visible { outline: 2px solid var(--b2c-blue); outline-offset: 2px; border-radius: 4px; }

@media (hover: hover) and (pointer: fine) {
  .hc__btn:hover { background: #0f2547; }
  .cc__sw:hover::before { transform: scale(1.08); }
  .cc__item:hover .cc__photo img { transform: translateY(-8px) scale(1.03); }
  .cc__more:hover { background: #0f2547; }
  .cc__more:hover svg { transform: translateX(4px); }
}

/* ================= Tablet y teléfono ================= */
@media (max-width: 900px) {
  .cc__rail {
    gap: 14px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    margin-inline: calc(-1 * var(--gutter, 16px)); padding: 0 var(--gutter, 16px) 6px; scroll-padding-inline: var(--gutter, 16px);
    justify-content: flex-start; scrollbar-width: none;
  }
  .cc__rail::-webkit-scrollbar { display: none; }
  .cc__rail > li { flex: 0 0 min(62vw, 250px); scroll-snap-align: start; }
  /* Safari no mezcla ("multiply") lo que está dentro de un carril que se desliza: por eso las fotos van sin fondo (transparentes)
     y el producto queda directo sobre el color. Solo la foto de respaldo, con fondo blanco, va en una tarjeta blanca. */
  .cc__photo:has(img.con-fondo) { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 28px -20px rgba(13, 20, 36, .45); }
  .cc__photo img.con-fondo { mix-blend-mode: normal; padding: 6%; box-sizing: border-box; }
}
@media (max-width: 820px), (max-width: 1100px) and (orientation: portrait) {
  .hc { height: auto; overflow: hidden; padding-bottom: 26px; }
  .hc__stage { position: relative; left: auto; top: auto; width: auto; height: auto; transform: none; display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
  .hc__stage > * { position: static; }
  .hc__orbit, .hc__doodles, .hc__note--a, .hc__floor { display: none; }
  .hc__title { margin-top: 30px; font-size: clamp(38px, 11.2vw, 56px); line-height: 1.04; white-space: normal; text-wrap: balance; }
  .hc__title .mask { display: inline; overflow: visible; padding: 0; margin: 0; }
  .hc__title .line { display: inline; letter-spacing: -.035em; }
  .hc__rail { position: relative; width: calc(100% + 40px); margin: 18px -20px 0; height: max(310px, 48.4vw); overflow: hidden; pointer-events: none; -webkit-mask-image: none; mask-image: none; }
  .hc__hit { position: absolute; inset: 0; width: auto; height: auto; }
  .hc__cap { width: auto; height: auto; margin-top: 14px; gap: 9px; }
  .hc__cap-dot { width: 11px; height: 11px; }
  .hc__cap-name { font-size: 19px; }
  .hc__cap-kind { font-size: 15px; }
  .hc__cta { position: relative; left: auto; top: auto; margin-top: 20px; }
  .hc__note--b { margin-top: 14px; left: auto; top: auto; transform: none; font-size: 26px; }
  .hc__note--b br { display: none; }
}
@media (max-width: 480px) {
  .cc__sw { width: 44px; height: 44px; }
  .cc__swatches { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hc__card video { display: none; }
  .hc__orbit .spark { stroke-opacity: 0; }
  .hc__grain { opacity: .05; }
}

/* Catálogo por filas: las tarjetas que aún no toca mostrar se ocultan; «Ver más» va al centro, debajo de la última fila */
.cl-extra { display: none !important; }
.cl-more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 52px); }
.cl-more[hidden] { display: none; }
.cl-more__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 32px; border: 0; border-radius: 99px;
  background: var(--b2c-navy); color: #fff; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  font: 700 1.08rem "Geist", system-ui, sans-serif; letter-spacing: -.01em;
  transition: transform 160ms var(--b2c-ease), background-color 200ms ease;
}
.cl-more__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-more__btn:active { transform: scale(.97); }
.cl-more__btn:focus-visible { outline: 2px solid var(--b2c-blue); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .cl-more__btn:hover { background: var(--b2c-blue); } }
