/* SUKIVA — tienda. Minimalismo de galería: muro neutro, negro puro, fotografía sin marco y tipografía a gran escala.
   Regla de forma: la fotografía nunca lleva radio; los controles sí (píldoras). */
@font-face { font-family: "Anybody"; src: url("anybody.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
:root {
  --wall: #e8e9e7; --paper: #f6f6f4; --ink: #000; --stone: #6c6e6a; --rule: #cfd1cd; --white: #fff; --alert: #b3261e;
  --display: "Anybody", "Arial Narrow", Impact, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --pad: clamp(14px, 3.4vw, 44px);
  --glass: rgba(246, 246, 244, .62);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--wall); color: var(--ink); font: 400 15px/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.muted { color: var(--stone); } .small { font-size: 12.5px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .86; letter-spacing: -.015em; }
h2 { font-size: clamp(54px, 15vw, 190px); font-stretch: 62%; text-transform: uppercase; }

/* ── controles */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink);
  background: transparent; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.pill.solid { background: var(--ink); color: var(--white); }
.pill.light { border-color: var(--white); color: var(--white); }
.pill.block { width: 100%; }
.pill:disabled { opacity: .35; cursor: not-allowed; }
@media (hover: hover) { .pill:not(:disabled):hover { background: var(--ink); color: var(--white); } .pill.solid:not(:disabled):hover { background: transparent; color: var(--ink); } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; font-weight: 600; white-space: nowrap; }
.chip[aria-selected="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip:disabled { color: var(--stone); text-decoration: line-through; cursor: not-allowed; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--white); }
textarea { min-height: 84px; resize: vertical; } input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }

/* ── barra flotante (vidrio) */
.bar { position: fixed; z-index: 40; top: max(10px, env(safe-area-inset-top)); left: var(--pad); right: var(--pad); display: flex; align-items: center; justify-content: space-between;
  min-height: 54px; padding: 6px 8px 6px 20px; border-radius: 999px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.brand { font: 800 19px/1 var(--display); font-stretch: 150%; letter-spacing: .02em; text-decoration: none; display: flex; align-items: center; }
.brand img { height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.bar-actions { display: flex; align-items: center; gap: 4px; }
.bar-link { min-height: 42px; padding: 0 14px; border-radius: 999px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.bar-link:last-child { background: var(--ink); color: var(--white); }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 12.5px; font-weight: 700; display: inline-grid; place-items: center; }
.count.bump { animation: bump .45s var(--ease); } @keyframes bump { 40% { transform: scale(1.45); } }
@media (max-width: 520px) { .bar-link:first-child { display: none; } }

/* ── portada: bucle de fotos cuadradas a sangre + nombre a escala de muro que invierte su color sobre la foto */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.hero-media { display: grid; grid-template-columns: 1fr; }
.hero-media .panel { aspect-ratio: 1; background: #d9dad7; }
.hero-media .panel + .panel { display: none; }
.hero-type { position: relative; padding: 0 var(--pad) max(22px, env(safe-area-inset-bottom)); margin-top: calc(var(--name, 120px) * -.4); display: grid; gap: 18px; }
.hero.plain .hero-type { margin-top: 0; padding-top: 110px; }
.hero h1 { font-size: clamp(60px, 23.5vw, 420px); font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: .78; margin-left: -.035em; white-space: nowrap;
  background: linear-gradient(to bottom, var(--ink) 0 51.3%, var(--white) 51.3%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero.plain h1 { background: none; color: var(--white); }
.hero h1 span, .foot-mark span { display: inline-block; }
.hero-foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hero-foot p { max-width: 34ch; font-size: clamp(15px, 1.5vw, 19px); }
.hero .pill.solid { background: var(--white); color: var(--ink); border-color: var(--white); }
@media (min-width: 860px) {
  .hero-media { grid-template-columns: 1fr 1fr; } .hero-media .panel + .panel { display: block; }
  .hero h1 { font-stretch: 112%; }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero h1 { animation: hero-word linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
    @keyframes hero-word { to { font-stretch: 50%; } }
  }
}
/* bucle: dos capas que se funden; solo corre cuando está a la vista */
.loop { position: relative; overflow: hidden; }
.loop img { position: absolute; inset: 0; }
.loop img.in { opacity: 0; transition: opacity .8s var(--ease); } .loop img.in.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .hero-media .loop img { animation: drift 4.2s linear both; } @keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } } }

/* ── bento: piezas cuadradas, la foto entra completa */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(14px, 2.2vw, 30px); text-align: left; text-decoration: none; }
.tile.photo { color: var(--white); background: var(--ink); }
.tile.photo img { position: absolute; inset: 0; transition: transform .9s var(--ease); }
.tile.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .58), transparent 50%); }
.tile.photo > * { position: relative; z-index: 1; } .tile.photo > img { z-index: 0; }
@media (hover: hover) { .tile.photo:hover img { transform: scale(1.04); } }
.tile.ink { background: var(--ink); color: var(--white); }
.tile strong { font: 800 clamp(22px, 6vw, 34px)/.9 var(--display); font-stretch: 62%; text-transform: uppercase; display: block; }
.tile.big strong { font-size: clamp(34px, 9vw, 110px); }
.tile span { display: block; margin-top: 8px; font-size: 14px; max-width: 30ch; }
.tile.big { grid-column: span 2; }
.tile.text { justify-content: space-between; gap: 18px; }
@media (max-width: 859px) { .bento .tile:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: auto; min-height: 40vw; } }
@media (min-width: 860px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 2; } .tile.big { grid-column: span 4; grid-row: span 2; }
  .tile strong { font-size: clamp(30px, 3.8vw, 72px); }
  .tile.w4 { grid-column: span 4; aspect-ratio: auto; } .tile.w6 { grid-column: span 6; aspect-ratio: auto; min-height: 16vw; }
}

/* ── tienda */
.shop { padding: clamp(46px, 9vw, 130px) 0 clamp(40px, 7vw, 100px); }
.shop-head { padding: 0 var(--pad); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filters { position: sticky; top: calc(max(10px, env(safe-area-inset-top)) + 62px); z-index: 30; margin: 22px var(--pad) 14px; padding: 8px; border-radius: 26px; display: grid; gap: 8px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.filters input { border-radius: 999px; background: rgba(255, 255, 255, .8); min-height: 40px; padding: 8px 16px; }
@media (min-width: 860px) { .filters { grid-template-columns: 1fr 260px; align-items: center; border-radius: 999px; } }
.look { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.card { position: relative; background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.card.lg { grid-column: span 2; }
.card-top { position: relative; display: flex; flex-direction: column; }
.card.lg .card-top { flex: 1; min-height: 0; }
.card-media { position: relative; aspect-ratio: 1; overflow: hidden; background: #d9dad7; display: block; width: 100%; }
.card-media .ph { width: 100%; height: 100%; display: grid; place-items: center; font: 800 clamp(30px, 8vw, 90px)/1 var(--display); font-stretch: 50%; color: #b9bbb6; text-transform: uppercase; }
.flag { position: absolute; top: 10px; left: 10px; padding: 5px 11px; border-radius: 999px; background: var(--white); font-size: 12px; font-weight: 700; }
.flag.out { background: var(--ink); color: var(--white); }
.card-info { padding: 12px 12px 16px; display: grid; gap: 3px; }
.card-name { font: 700 clamp(15px, 1.25vw, 19px)/1.1 var(--display); font-stretch: 88%; text-align: left; text-decoration: none; }
.card.lg .card-name { font-size: clamp(22px, 3.4vw, 44px); font-stretch: 62%; text-transform: uppercase; font-weight: 800; }
.card-price { font-weight: 600; } .card-colors { color: var(--stone); font-size: 13px; }
.qa-open { position: absolute; right: 10px; bottom: 10px; z-index: 2; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.qa { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; padding: 12px; border-radius: 20px; display: grid; gap: 10px;
  background: rgba(246, 246, 244, .78); border: 1px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  animation: rise .28s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.qa-row { display: flex; gap: 6px; flex-wrap: wrap; } .qa .chip { min-height: 36px; padding: 0 12px; font-size: 13px; background: rgba(255, 255, 255, .7); } .qa .chip.on { background: var(--ink); }
.qa-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; }
.empty { padding: 60px var(--pad); font: 700 clamp(22px, 4vw, 44px)/1 var(--display); font-stretch: 75%; }
@media (min-width: 720px) { .look { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .look { grid-auto-flow: dense; } .card.lg { grid-row: span 2; } .card.lg .card-media { aspect-ratio: auto; flex: 1; min-height: 420px; } }
@media (min-width: 1100px) { .look { grid-template-columns: repeat(4, 1fr); } .card.lg.r { grid-column: 3 / span 2; } }

/* ── condiciones */
.terms { padding: 0 var(--pad) clamp(50px, 8vw, 110px); display: grid; gap: 26px; }
.terms details { border-top: 1px solid var(--ink); padding: 18px 0; max-width: 860px; }
.terms summary { font: 700 clamp(19px, 2.2vw, 28px)/1.1 var(--display); font-stretch: 80%; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.terms summary::-webkit-details-marker { display: none; } .terms summary::after { content: "+"; } .terms details[open] summary::after { content: "–"; }
.terms .body { white-space: pre-wrap; margin-top: 14px; max-width: 68ch; }

/* ── pie */
.foot { background: var(--ink); color: var(--white); padding: clamp(40px, 7vw, 90px) var(--pad) 26px; overflow: hidden; }
.foot-grid { display: grid; gap: 28px; } @media (min-width: 720px) { .foot-grid { grid-template-columns: 1fr auto; } }
.foot-links { display: grid; gap: 10px; justify-items: start; } .foot-links a, .foot-links button { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
#contact { display: grid; gap: 6px; font-size: 16px; } #contact a { text-underline-offset: 4px; }
.foot-mark { font: 900 clamp(70px, 26vw, 480px)/.74 var(--display); font-stretch: 62%; text-transform: uppercase; margin: 40px 0 18px -.03em; white-space: nowrap; }
.foot-mark span { display: inline-block; }
@media (min-width: 860px) { .foot-mark { font-stretch: 112%; } }
.foot .muted { color: #9a9c98; }

/* ── capa y bolsa deslizable */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .25s; } @keyframes fade { from { opacity: 0; } }
.bag { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--paper); display: flex; flex-direction: column; animation: slide .36s var(--ease); }
@keyframes slide { from { transform: translateX(100%); } }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.bag-head h3 { font-size: 30px; font-stretch: 62%; text-transform: uppercase; }
.bag-body { flex: 1; overflow-y: auto; padding: 6px 20px 24px; display: grid; gap: 18px; align-content: start; }
.bag-foot { padding: 16px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); display: grid; gap: 12px; background: var(--paper); }
.line { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.line .thumb { width: 74px; aspect-ratio: 1; background: #d9dad7; overflow: hidden; }
.line b { font: 700 16px/1.1 var(--display); font-stretch: 85%; display: block; }
.step { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; }
.step button { width: 34px; height: 34px; border-radius: 50%; font-size: 18px; } .step button:disabled { opacity: .3; } .step span { min-width: 20px; text-align: center; font-weight: 700; }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; } .sum b { font: 800 30px/1 var(--display); font-stretch: 70%; }
.meter { height: 3px; background: var(--rule); } .meter i { display: block; height: 100%; background: var(--ink); transition: width .5s var(--ease); }
.note { padding: 12px 14px; background: var(--white); border-radius: 12px; font-size: 13.5px; }
.form { display: grid; gap: 12px; } .two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done strong { font: 900 clamp(48px, 16vw, 86px)/.9 var(--display); font-stretch: 55%; display: block; margin: 8px 0 14px; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); font-size: 20px; line-height: 1; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ── ficha de producto inmersiva */
.pdp { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: var(--wall); animation: fade .3s; }
.pdp .x { position: fixed; z-index: 3; top: max(12px, env(safe-area-inset-top)); right: var(--pad); }
.pdp-body { display: grid; padding-bottom: 250px; }
.pdp-gallery { display: grid; gap: 2px; order: 1; }
.pdp-gallery > * { aspect-ratio: 1; background: #d9dad7; } .pdp-gallery .ph { display: grid; place-items: center; font: 900 30vw/1 var(--display); font-stretch: 50%; color: #b9bbb6; }
.pdp-side { display: contents; }
.pdp-head { order: 2; padding: 22px var(--pad) 0; display: grid; gap: 10px; }
.pdp-head h3 { font-size: clamp(44px, 13vw, 96px); font-stretch: 55%; text-transform: uppercase; }
.pdp-price { font: 700 24px/1 var(--display); font-stretch: 90%; }
.pdp-info { order: 3; padding: 20px var(--pad) 0; display: grid; gap: 0; }
.pdp-info details { border-top: 1px solid var(--rule); padding: 14px 0; } .pdp-info summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pdp-info summary::-webkit-details-marker { display: none; } .pdp-info summary::after { content: "+"; } .pdp-info details[open] summary::after { content: "–"; }
.pdp-info .body { margin-top: 10px; white-space: pre-wrap; color: #2b2c2a; max-width: 60ch; }
.guide-wrap { overflow-x: auto; margin-top: 10px; } .guide { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.guide th, .guide td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; } .guide th { font-weight: 700; } .guide tr.mine > * { font-weight: 700; background: var(--white); } .guide tr > :first-child { padding-left: 10px; }
.pdp-info ul { margin: 12px 0 0 18px; display: grid; gap: 6px; max-width: 60ch; }
.buy { position: fixed; z-index: 2; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); padding: 14px; border-radius: 26px; display: grid; gap: 10px;
  background: rgba(246, 246, 244, .8); border: 1px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
.buy-label { font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; }
.buy .chip { background: rgba(255, 255, 255, .75); } .buy .chip.on { background: var(--ink); }
@media (min-width: 900px) {
  .pdp-body { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); padding-bottom: 0; align-items: start; }
  .pdp-gallery { order: 0; grid-template-columns: 1fr 1fr; } .pdp-gallery > *:first-child { grid-column: span 2; }
  .pdp-side { display: grid; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 96px var(--pad) 30px; align-content: start; }
  .pdp-head { order: 0; } .buy { order: 1; } .pdp-info { order: 2; }
  .pdp-head, .pdp-info { padding: 0; } .pdp-head h3 { font-size: clamp(48px, 5.4vw, 104px); }
  .buy { position: static; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
  .buy .chip { background: transparent; }
}

#toasts { position: fixed; z-index: 90; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 64px); transform: translateX(-50%); display: grid; gap: 8px; width: min(380px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-align: center; animation: rise .3s var(--ease); }
.toast.bad { background: var(--alert); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
/* ── prendas: cuadrícula pareja con miniaturas de color arriba de cada modelo */
.look { gap: 22px 8px; padding: 0 8px; }
.card { background: transparent; }
.card-media, .card.lg .card-media { aspect-ratio: 4 / 5; border-radius: 6px; flex: none; min-height: 0; }
.card-info { padding: 10px 2px 4px; }
.swatches { display: flex; gap: 6px; min-height: 64px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; } .swatches::-webkit-scrollbar { display: none; }
.sw { position: relative; flex: 0 0 44px; height: 55px; border-radius: 4px; overflow: hidden; background: #d9dad7; box-shadow: inset 0 0 0 1px var(--rule); }
.sw img { position: absolute; inset: 0; } .sw span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--stone); }
.sw::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); opacity: 0; transition: opacity .2s var(--ease); }
.sw.on::after { opacity: 1; }
@media (min-width: 720px) { .look { gap: 30px 10px; padding: 0 10px; } .sw { flex-basis: 52px; height: 65px; } .swatches { min-height: 76px; } }
@media (min-width: 1500px) { .look { grid-template-columns: repeat(5, 1fr); } }
/* La foto llena su marco sin depender de alturas en porcentaje */
.card-media .main { position: absolute; inset: 0; display: block; }
.pdp-gallery figure, .line .thumb { position: relative; overflow: hidden; }
.pdp-gallery figure img, .line .thumb img { position: absolute; inset: 0; }
/* La tienda no se imprime ni se guarda como PDF: al imprimir, la hoja sale en blanco. */
@media print { body { display: none !important; } }
