/* =========================================================
   FLY STUDIOS — ESTILOS
   Cambia la paleta en :root
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #e3e3e3;
  --text: #111111;
  --muted: #6f6f6f;
  --line: #d6d6d6;
  --accent: #1f3dff;      /* azul electrico (Custom) */
  --accent-rgb: 31,61,255;
  --wa: #25d366;
  --radius: 2px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 58px;
  --top-h: 98px;          /* alto de la isla superior + margen */
  --island: rgba(228,228,228,.8);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 14px; line-height: 1.5; letter-spacing: .01em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { max-width: 100%; display: block; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.page-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; margin: 0; }
.label { margin: 18px 0 8px; font-size: 13px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 28px; background: var(--text); color: #fff;
  text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 600;
  border: 1px solid var(--text); border-radius: var(--radius); transition: opacity .2s, background .2s;
}
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--text); color: #fff; opacity: 1; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #0b2b16; }
.link { text-decoration: underline; color: var(--muted); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; }
.close { font-size: 28px; line-height: 1; }

/* Barra superior */
/* Isla superior flotante: barra rotatoria + menu */
.topbar {
  position: fixed; top: 10px; left: 10px; right: 10px; z-index: 40;
  background: var(--island); border-radius: 14px; overflow: visible;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(0,0,0,.08), inset 0 0 0 1px rgba(255,255,255,.5);
}
#app { padding-top: calc(var(--top-h) + 10px); }
.announcement {
  color: var(--text); overflow: hidden; border-radius: 14px 14px 0 0;
  background: rgba(0,0,0,.045);
  font-size: 10.5px; letter-spacing: .1em; padding: 7px 0; font-weight: 700; white-space: nowrap;
}
.marquee { display: flex; width: max-content; animation: marquee 40s linear infinite; }
@media (hover: hover) { .announcement:hover .marquee { animation-play-state: paused; } }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group span { padding: 0 28px; position: relative; }
.marquee-group span::after { content: "✦"; position: absolute; right: -6px; opacity: .6; font-size: 9px; top: 1px; }
.marquee-group { align-items: center; }
.marquee-logo img { display: block; height: 15px; width: auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation-duration: 120s; } }

/* Header */
.header {
  position: relative; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(14px, 1.6vw, 24px);
}
/* Menu desplegable (tres rayitas) en forma de isla */
.nav {
  position: absolute; top: calc(100% + 10px); left: 0; width: min(340px, 100%);
  display: flex; flex-direction: column; gap: 0;
  background: rgba(228,228,228,.95); border-radius: 14px; padding: 10px 22px;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s;
}
.nav.open { transform: none; opacity: 1; pointer-events: auto; }
.nav a {
  text-transform: uppercase; font-size: 15px; letter-spacing: .08em; font-weight: 600;
  padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08);
  transition: padding-left .15s, opacity .15s;
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover { padding-left: 6px; }
.nav a.active { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.nav-custom { color: var(--accent); }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .2em; text-transform: uppercase; justify-self: center; white-space: nowrap; }
.logo img { height: 44px; width: auto; }
.cart-btn { justify-self: end; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; font-weight: 500; }
.menu-toggle { justify-self: start; display: grid; gap: 5px; width: 40px; height: 40px; place-content: center; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Hero */
.hero {
  margin-top: calc(-1 * (var(--top-h) + 10px));
  position: sticky; top: 0; z-index: 0;
  height: min(80vh, 760px); height: min(80svh, 760px); min-height: 460px; display: flex; align-items: flex-end;
  padding: var(--gutter); color: #fff; overflow: hidden;
  background: #fff url("img/portada.jpg") 62% center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 60%); }
/* Al bajar: el texto se difumina y la foto se oscurece (--p va de 0 a 1) */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: calc(var(--p, 0) * .55); pointer-events: none; }
.hero-inner { opacity: calc(1 - var(--p, 0) * 1.4); transform: translateY(calc(var(--p, 0) * -40px)); filter: blur(calc(var(--p, 0) * 6px)); will-change: opacity, transform; }
.hero-inner { position: relative; z-index: 2; max-width: 900px; padding-bottom: 12px; }
.hero-logo { display: block; width: clamp(240px, 34vw, 480px); height: auto; margin: 0 0 18px; filter: drop-shadow(0 2px 14px rgba(0,0,0,.25)); }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,.25); font-size: clamp(36px, 6.4vw, 84px); line-height: .95; margin: 0 0 8px; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
.hero h1 span { font-weight: 400; font-style: italic; text-transform: none; letter-spacing: -.01em; }
.hero-sub { font-size: 15px; max-width: 420px; margin: 0 0 24px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas.center { justify-content: center; }
.hero .btn { background: #fff; color: var(--text); border-color: #fff; }
.hero .btn-ghost { background: transparent; color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--text); }

/* Listado */
.listing { padding: 40px var(--gutter) 64px; position: relative; z-index: 1; background: var(--bg); }
/* En la portada, los productos suben y tapan el poster fijo */
.hero + .listing { border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.18); padding-top: 48px; }
.listing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; }
.card { cursor: pointer; display: block; outline: none; }
.card-media {
  position: relative; aspect-ratio: 3/4; background: var(--bg-soft); overflow: hidden;
  display: grid; place-items: center;
}
.card-media > div { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .35s; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.media-b { opacity: 0; }
.card:hover .media-b, .card:focus-visible .media-b { opacity: 1; }
.card:hover .media-a, .card:focus-visible .media-a { opacity: 0; }
.garment { width: 78%; height: auto; }
.tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: #fff;
  font-size: 10px; text-transform: uppercase; letter-spacing: .12em; padding: 4px 8px; font-weight: 600;
}
.quick-add {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; height: 40px;
  background: rgba(255,255,255,.95); text-transform: uppercase; font-size: 11px; letter-spacing: .12em; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: .25s;
}
.card:hover .quick-add { opacity: 1; transform: none; }
.card-info { padding-top: 12px; }
.card-name { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.card-price { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card-sizes { font-size: 12px; }
.card-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dots { display: flex; gap: 5px; flex-shrink: 0; padding-top: 3px; }
.dots span { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
/* Tarjeta CUSTOM: cuadrado pequeño que destaca al final del listado */
.custom-card {
  /* cuadrado al 80% del ancho de columna, centrado a la altura de las fotos (3:4) */
  width: 80%; aspect-ratio: 1; margin: 26.67% auto 0; align-self: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #111; color: #fff; text-align: center; padding: 16px;
  border-radius: 4px; transition: transform .25s, box-shadow .25s;
}
.custom-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.custom-plus {
  position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--accent);
  margin-bottom: 6px; transition: transform .35s;
}
.custom-plus::before, .custom-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: #fff; transform: translate(-50%, -50%);
}
.custom-plus::before { width: 20px; height: 2px; }
.custom-plus::after { width: 2px; height: 20px; }
.custom-card:hover .custom-plus { transform: rotate(90deg); }
.custom-title { font-weight: 800; font-size: 22px; letter-spacing: .25em; color: var(--accent); padding-left: .25em; }
.custom-sub { text-transform: uppercase; letter-spacing: .14em; font-size: 10px; opacity: .8; }
.custom-from { font-size: 11px; opacity: .75; margin-top: 4px; line-height: 1.6; }

/* Overlays */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.4);
  display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s;
}
.overlay.show { opacity: 1; }
.overlay-right { place-items: stretch end; padding: 0; }
.modal {
  position: relative; background: #fff; border-radius: 14px; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  transform: translateY(12px); transition: transform .25s;
}
.overlay.show .modal { transform: none; }
.modal-close { position: absolute; top: 8px; right: 8px; z-index: 2; }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; }
.pd-media { background: var(--bg-soft); aspect-ratio: 3/4; display: grid; place-items: center; }
.pd-gallery { position: relative; background: #d8d8d8; }  /* mismo gris que el fondo de las fotos: sin franja blanca bajo la foto */
.pd-thumbs { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }
.pd-thumb { width: 56px; aspect-ratio: 3/4; background: var(--bg-soft); outline: 1px solid rgba(0,0,0,.1); border-radius: 6px; overflow: hidden; }
.pd-thumb.on { outline: 1.5px solid var(--text); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 40px 32px; }
.pd-info h2 { margin: 0; font-size: 22px; text-transform: uppercase; font-weight: 800; }
.pd-price { font-size: 16px; margin: 6px 0 16px; }
.fit-badge { display: inline-block; margin: 0 0 14px; padding: 5px 10px; border: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pd-actions { display: flex; gap: 10px; margin-top: 24px; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); outline-offset: 3px;
}
.swatch.on { outline: 1.5px solid var(--text); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size {
  min-width: 48px; height: 40px; padding: 0 10px; border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; transition: border-color .15s;
}
.size:hover { border-color: var(--text); }
.size.on { background: var(--text); color: #fff; border-color: var(--text); }
.size.wide { padding: 0 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 48px; }
.qty button { width: 40px; height: 100%; font-size: 16px; }
.qty span { min-width: 24px; text-align: center; }
.small-qty { height: 32px; }
.small-qty button { width: 30px; }

/* Cesta */
.drawer {
  background: #fff; width: min(420px, calc(100vw - 20px)); height: calc(100% - 20px); margin: 10px; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  transform: translateX(110%); transition: transform .25s;
}
.overlay.show .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); }
.drawer-foot p { margin: 4px 0 14px; }
.empty { text-align: center; padding: 48px 0; }
.line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-thumb { position: relative; background: var(--bg-soft); aspect-ratio: 3/4; display: grid; place-items: center; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-thumb .garment { width: 90%; }
.line-info p { margin: 0 0 4px; }
.line-name { font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }
.line .row-between { margin-top: 8px; }
.line.compact { grid-template-columns: 56px 1fr auto; align-items: center; padding: 10px 0; }
.badge {
  position: absolute; top: -6px; right: -6px; background: var(--muted); color: #fff; font-size: 11px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
}

/* Custom */
.custom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; align-items: start; }
.custom-preview {
  position: sticky; top: calc(var(--top-h) + 10px); background: var(--bg-soft);
  min-height: calc(100vh - var(--top-h) - 10px); display: flex; flex-direction: column; justify-content: center; padding: 32px;
}
.preview-stage { display: grid; place-items: center; }
.preview-stage.two { grid-template-columns: 1fr; gap: 28px; }
.preview-item .gv-pair { max-width: 560px; }
.preview-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.preview-item .garment { width: min(100%, 440px); }
.custom-form { padding: 40px var(--gutter) 64px; max-width: 620px; }
.step { padding: 24px 0; border-bottom: 1px solid var(--line); }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 0 0 12px; }
.step-title span {
  width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: #fff;
  display: grid; place-items: center; font-size: 11px;
}
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  border: 1px solid var(--line); padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 2px;
  transition: border-color .15s;
}
.choice strong { text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.choice span { color: var(--muted); font-size: 12px; }
.choice.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.design { border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; text-align: center; }
.design.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.design small { display: block; color: var(--muted); }
.design-thumb { aspect-ratio: 1; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; }
.design-thumb svg { width: 50%; }
.design-thumb img { width: 100%; height: 100%; object-fit: cover; }
.design-own .plus { font-size: 32px; color: var(--accent); font-weight: 300; }
.upload {
  display: block; margin-top: 12px; border: 1px dashed #b9b8b2; padding: 18px; text-align: center; cursor: pointer;
  font-size: 13px; transition: border-color .15s;
}
.upload:hover { border-color: var(--text); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
textarea, input[type=text], input[type=email], input[type=tel], select {
  width: 100%; border: 1px solid var(--line); background: #fff; padding: 12px; border-radius: var(--radius);
  font-size: 16px; /* evita zoom en iOS */
}
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--text); }
.custom-total { padding-top: 24px; }
.custom-total .row-between { margin-bottom: 14px; font-size: 16px; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 70vh; }
.checkout-form { padding: 40px var(--gutter) 64px; max-width: 720px; width: 100%; justify-self: end; }
.checkout-form .page-title { margin-bottom: 8px; }
fieldset { border: 0; padding: 0; margin: 28px 0 0; }
legend { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-bottom: 12px; }
.fields { display: grid; gap: 12px; margin-bottom: 12px; }
.fields.two { grid-template-columns: 1fr 1fr; }
.fields.three { grid-template-columns: 1fr 1fr 1fr; }
.f { display: flex; flex-direction: column; gap: 4px; }
.f span { font-size: 12px; color: var(--muted); }
.f.invalid input, .f.invalid select { border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0 16px; font-size: 13px; }
.check.invalid { color: var(--accent); }
.check input { margin-top: 3px; accent-color: var(--text); }
.pay { display: flex; gap: 14px; align-items: center; border: 1px solid var(--text); padding: 14px; }
.pay p { margin: 2px 0 0; }
.pay-logo { flex: none; width: 72px; height: 40px; display: grid; place-items: center; font-weight: 800; border-radius: 4px; font-size: 14px; }
.pay-logo.bizum { background: #05c3dd; color: #fff; letter-spacing: -.02em; }
.pay-logo.paypal { background: #ffc439; color: #003087; font-style: italic; }
.summary { background: var(--bg-soft); padding: 40px var(--gutter); border-left: 1px solid var(--line); }
.summary > * { max-width: 440px; }
.summary h2 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.summary .line-thumb { background: #fff; }
.coupon { padding: 16px 0 4px; border-bottom: 1px solid var(--line); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; text-transform: uppercase; }
.coupon-row .btn { height: auto; padding: 0 18px; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px dashed var(--text); padding: 10px 12px; font-size: 13px; }
.old-price { text-decoration: line-through; color: var(--muted); font-weight: 400; margin-right: 4px; }
.totals { padding-top: 16px; display: grid; gap: 8px; }
.totals p { margin: 0; }
.totals .total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 16px; }

/* Gracias */
.thanks { max-width: 560px; margin: 0 auto; padding: 96px var(--gutter); text-align: center; }
.thanks .page-title { margin-bottom: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px var(--gutter) 24px; margin-top: 0; position: relative; z-index: 1; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid a, .footer-grid p { display: block; margin: 0 0 6px; font-size: 13px; overflow-wrap: anywhere; }
.footer-grid a:hover { text-decoration: underline; }
.footer-logo { height: 56px; width: auto; margin-bottom: 12px; }
.footer-title { text-transform: uppercase; letter-spacing: .12em; font-size: 11px !important; font-weight: 600; }
.copyright { margin: 40px 0 0; font-size: 11px; color: var(--muted); letter-spacing: .08em; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80;
  background: var(--text); color: #fff; padding: 12px 20px; font-size: 13px; max-width: calc(100vw - 32px);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .hero { background-position: 76% center; }  /* encuadre del movil: incluye el globo flystudios */
  .custom-card { width: 90%; margin-top: 20%; gap: 6px; }
  .custom-plus { width: 40px; height: 40px; }
  .custom-title { font-size: 16px; }
  .custom-sub { font-size: 9px; letter-spacing: .08em; }
  .custom-from { font-size: 10px; }
  .hide-sm { display: none; }
  .nav { width: 100%; }
  .logo img { height: 32px; }
  .announcement { font-size: 9.5px; letter-spacing: .06em; }
  :root { --header-h: 52px; --top-h: 88px; }
  .topbar { top: 8px; left: 8px; right: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
  .quick-add { display: none; }
  .pd { grid-template-columns: 1fr; }
  .pd-media { aspect-ratio: 4/5; }
  .pd-info { padding: 24px 20px; }
  .custom { grid-template-columns: 1fr; }
  .custom-preview { position: relative; top: 0; min-height: 0; padding: 20px; }
  .preview-item .garment { width: min(70%, 320px); }
  .preview-stage.two .garment { width: 100%; }
  .checkout { grid-template-columns: 1fr; }
  .summary { order: -1; border-left: 0; border-bottom: 1px solid var(--line); padding: 24px var(--gutter); }
  .checkout-form { padding-top: 24px; }
  .fields.three { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .fields.two, .fields.three { grid-template-columns: 1fr; }
  .cart-btn { font-size: 11px; }
  .pd-actions { flex-direction: column; }
  .pd-actions .qty { align-self: flex-start; }
}

/* T-SHIRT / HOODIE sin partirse en dos lineas */
.name-kind { white-space: nowrap; }

/* Descripcion del producto, al final de la ficha */
.pd-desc { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.pd-desc .label { margin-top: 0; }
.pd-desc .muted { margin: 6px 0 0; }

/* Pestanas de seccion encima de los productos (la actual destaca) */
.tabs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; }
.tab {
  margin: 0; font-size: clamp(17px, 2.4vw, 30px); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.01em; line-height: 1.15; color: #b8b8b8; transition: color .15s;
}
a.tab:hover { color: var(--text); }
.section-tabs { padding: 28px var(--gutter) 24px; }
.tab.on { color: var(--text); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.tab-custom { color: #a9b3ee; }  /* azul suave, mismo tono que los grises */
.tab-custom:hover, .tab-custom.on { color: var(--accent); }
.listing-count { white-space: nowrap; }
@media (max-width: 600px) {
  .listing-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tabs { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 16px 28px; }
  .tab { font-size: 18px; }
  .tab.on { text-underline-offset: 6px; }
}

/* Animacion al entrar en CUSTOM */
.custom-intro {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  display: grid; place-content: center; justify-items: center; color: #fff; text-align: center;
  background: #202020;  /* color del logo flystudios */
  clip-path: circle(0 at var(--x) var(--y));
  transition: clip-path .55s cubic-bezier(.7,0,.3,1), opacity .5s ease;
}
.custom-intro.in { clip-path: circle(150% at var(--x) var(--y)); }
.custom-intro.out { opacity: 0; }
.ci-balloon { width: 84px; transform: translateY(60vh); }
.ci-balloon img { width: 100%; height: auto; display: block; }
.custom-intro.in .ci-balloon { animation: ci-rise 1.9s cubic-bezier(.25,.8,.35,1) forwards; }
@keyframes ci-rise {
  0%   { transform: translateY(60vh) rotate(-6deg); }
  45%  { transform: translateY(0) rotate(4deg); }
  60%  { transform: translateY(-6px) rotate(-2deg); }
  100% { transform: translateY(-70vh) rotate(3deg); }
}
.ci-title, .ci-sub { margin: 0; opacity: 0; transform: translateY(14px); transition: opacity .4s ease .45s, transform .4s ease .45s; }
.ci-title { margin-top: 18px; font-size: clamp(34px, 6vw, 64px); font-weight: 800; letter-spacing: .14em; }
.ci-sub { margin-top: 6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.custom-intro.in .ci-title, .custom-intro.in .ci-sub { opacity: 1; transform: none; }

/* Vista previa CUSTOM: dibujo de prenda coloreado */
.gv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.gv-pair figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gv-pair figcaption { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gv { position: relative; width: 100%; }
.gv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gv-design { position: absolute; left: 50%; transform: translateX(-50%); }
.gv-design svg { width: 100%; height: auto; display: block; }
.line-thumb .gv { width: 100%; }

/* CUSTOM: pack con varias prendas */
.pack-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.pack-note strong { color: var(--text); }
.step-title em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 12px; margin-left: auto; }
.garment-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 18px; margin-bottom: 12px; }
.garment-card .label:first-of-type { margin-top: 10px; }
.garment-card-head { display: flex; align-items: baseline; gap: 10px; }
.garment-card-head strong { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.garment-card-head .muted { font-size: 12px; }
.garment-remove { margin-left: auto; font-size: 12px; color: var(--muted); text-decoration: underline; }
.garment-remove:hover { color: var(--accent); }
.add-garment { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.add-garment .btn { padding-left: 8px; padding-right: 8px; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--text); border-radius: 999px; padding: 3px; margin: 0 0 16px; }
.seg button { padding: 8px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.seg button.on { background: var(--text); color: #fff; }
.designs.mini { grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.designs.mini .design { padding: 5px; font-size: 10px; }
.custom-preview { max-height: calc(100vh - var(--top-h) - 10px); overflow-y: auto; justify-content: flex-start; }
.preview-stage.two { padding-bottom: 8px; }
@media (max-width: 820px) {
  .custom-preview { max-height: none; overflow: visible; }
  .preview-stage.two { grid-auto-flow: column; grid-auto-columns: 88%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; width: 100%; }
  .preview-stage.two .preview-item { scroll-snap-align: start; }
  .designs.mini { grid-template-columns: repeat(3, 1fr); }
}

/* Disenos estandar reales */
.gv-design img { width: 100%; height: auto; display: block; }
.design-thumb img[src*="disenos"] { object-fit: contain; padding: 8%; }

/* Logos de delante (custom) */
.step-help { margin: -4px 0 14px; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.logo-opt { border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; text-align: center; line-height: 1.25; }
.logo-opt.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.logo-thumb { aspect-ratio: 1.4; background: var(--bg-soft); display: grid; place-items: center; padding: 10%; }
.logo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-thumb .plus { font-size: 20px; color: var(--accent); }
.notes-hint { color: var(--accent); margin: 0 0 8px; }
.gv-logo { transform: translateX(-50%); }
@media (max-width: 480px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* Custom: modelo del globo */
.balloon-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.balloon-fields .field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.balloon-fields .field span { color: var(--muted); }
.balloon-fields input, .balloon-fields select { height: 44px; border: 1px solid var(--line); padding: 0 12px; background: #fff; border-radius: 0; font-size: 14px; width: 100%; }
.balloon-fields input:focus, .balloon-fields select:focus { outline: none; border-color: var(--text); }
.balloon-model { margin: 14px 0 0; padding: 12px 14px; background: var(--bg-soft); font-size: 13px; }
.balloon-model strong { font-size: 16px; letter-spacing: .06em; margin-left: 4px; }
@media (max-width: 480px) { .balloon-fields { grid-template-columns: 1fr 1fr; } .balloon-fields .field:first-child { grid-column: 1 / -1; } }

/* ===== CUSTOM: cada paso es una isla con fondo negro ===== */
.custom-form .step {
  --ink: #f4f3ef; --ink-soft: rgba(244,243,239,.62); --edge: rgba(244,243,239,.16);
  background: #202020; color: var(--ink); border: 0; border-radius: 18px;
  padding: 22px 20px 24px; margin: 0 0 14px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.custom-form .pack-note { margin-bottom: 20px; }
.custom-form .step .muted, .custom-form .step .label .muted, .custom-form .step-title em { color: var(--ink-soft); }
.custom-form .step-title { font-size: 14px; margin-bottom: 14px; }
.custom-form .step-title span { width: 30px; height: 30px; background: var(--ink); color: #202020; font-size: 13px; font-weight: 800; }
.custom-form .step .label { color: var(--ink); }
/* tarjetas de prenda */
.custom-form .garment-card { border: 1px solid var(--edge); background: rgba(255,255,255,.04); border-radius: 12px; }
.custom-form .garment-remove { color: var(--ink-soft); }
.custom-form .garment-remove:hover { color: var(--accent); }
/* colores */
.custom-form .swatch { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.custom-form .swatch.on { outline-color: var(--ink); }
/* tallas y botones pequenos */
.custom-form .size { border-color: var(--edge); color: var(--ink); background: transparent; border-radius: 8px; }
.custom-form .size:hover { border-color: var(--ink); }
.custom-form .size.on { background: var(--ink); color: #202020; border-color: var(--ink); }
/* anadir prendas */
.custom-form .add-garment .btn { border: 1px solid var(--edge); color: var(--ink); border-radius: 10px; }
.custom-form .add-garment .btn:hover { background: var(--ink); color: #202020; }
/* selector igual / distinto */
.custom-form .seg { border-color: var(--edge); }
.custom-form .seg button { color: var(--ink-soft); }
.custom-form .seg button.on { background: var(--ink); color: #202020; }
/* disenos y logos */
.custom-form .design, .custom-form .logo-opt { border-color: var(--edge); color: var(--ink); border-radius: 10px; background: rgba(255,255,255,.03); }
.custom-form .design:hover, .custom-form .logo-opt:hover { border-color: rgba(244,243,239,.45); }
.custom-form .design.on, .custom-form .logo-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: rgba(255,255,255,.08); }
.custom-form .design-thumb, .custom-form .logo-thumb { border-radius: 6px; }
.custom-form .upload { border-color: var(--edge); color: var(--ink); border-radius: 10px; }
.custom-form .upload:hover { border-color: var(--ink); }
/* campos */
.custom-form .step input[type=text], .custom-form .step select, .custom-form .step textarea {
  background: rgba(255,255,255,.06); border-color: var(--edge); color: var(--ink); border-radius: 10px;
}
.custom-form .step input::placeholder, .custom-form .step textarea::placeholder { color: rgba(244,243,239,.4); }
.custom-form .step input:focus, .custom-form .step select:focus, .custom-form .step textarea:focus { border-color: var(--ink); }
.custom-form .step select option { color: #202020; }
.custom-form .balloon-fields .field span { color: var(--ink-soft); }
.custom-form .balloon-model { background: rgba(255,255,255,.08); border-radius: 10px; color: var(--ink); }
.custom-form .step-help strong { color: var(--ink); }
.custom-form .notes-hint { color: var(--accent); }
/* total */
.custom-form .custom-total { padding: 18px 4px 0; }
.custom-form .custom-total .btn { border-radius: 12px; height: 54px; }
@media (max-width: 480px) {
  .custom-form .step { padding: 18px 14px 20px; border-radius: 16px; }
}

/* CUSTOM: lo seleccionado resalta en el naranja de Custom */
.custom-form .step { transition: box-shadow .2s; }
.custom-form .step:focus-within, .custom-form .step:hover { box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 0 0 2px var(--accent); }
.custom-form .size.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.custom-form .seg button.on { background: var(--accent); color: #fff; }
.custom-form .design.on, .custom-form .logo-opt.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px rgba(var(--accent-rgb),.25); background: rgba(var(--accent-rgb),.12); }
.custom-form .swatch.on { outline: 2px solid var(--accent); outline-offset: 3px; }
.custom-form .step input:focus, .custom-form .step select:focus, .custom-form .step textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.25); }
.custom-form .add-garment .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.custom-form .balloon-model strong { color: var(--accent); }

/* CUSTOM: firma/eslogan al pie de la vista previa */
.custom-signature { margin-top: auto; padding: 56px 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #202020; }
.sig-rule { width: 56px; height: 1px; background: #202020; opacity: .35; margin-bottom: 34px; }
.custom-signature img { width: 34px; height: auto; margin-bottom: 18px; }
.sig-kicker { margin: 0 0 16px; font-size: 10px; letter-spacing: .38em; font-weight: 600; color: var(--muted); }
.sig-title { margin: 0; font-size: clamp(30px, 3.4vw, 52px); line-height: .98; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
.sig-title em { font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }
.sig-sub { margin: 18px 0 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 820px) { .custom-signature { display: none; } }

/* Columna izquierda de CUSTOM: vista previa fija + firma al final del hueco */
.custom { align-items: stretch; }
.custom-form { align-self: start; }
.custom-left { display: flex; flex-direction: column; background: var(--bg-soft); }
.custom-left .custom-preview { min-height: 0; }
.custom-left .custom-signature { padding: 64px 32px 72px; }
.custom-sticky { flex: 1 1 auto; }

/* CUSTOM ordenador: todas las prendas caben en pantalla mientras bajas por los pasos */
@media (min-width: 821px) {
  .custom-preview { overflow: visible; max-height: none; padding: 20px 32px; }
  .preview-stage, .preview-stage.two { gap: 10px; }
  .preview-item .gv-pair { max-width: min(560px, calc((100vh - var(--top-h) - 120px) / var(--n, 1) * 1.55)); }
  .preview-item { gap: 2px; }
  .custom-preview > .muted.small { margin: 8px 0 0; font-size: 11px; }
}
/* CUSTOM movil: hoja que baja desde arriba con las prendas */
.custom-sheet { display: none; }
@media (max-width: 820px) {
  .custom-sheet {
    display: block; position: fixed; z-index: 35; left: 8px; right: 8px; top: calc(var(--top-h) + 4px);
    background: rgba(226,226,226,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.18);
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s;
  }
  .custom-sheet.open { transform: none; opacity: 1; pointer-events: auto; }
  .custom-sheet-inner { display: flex; gap: 10px; overflow-x: auto; padding: 10px 12px 8px; scroll-snap-type: x mandatory; }
  .sheet-item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; scroll-snap-align: start; }
  .sheet-views { display: flex; gap: 4px; }
  .sheet-views .gv { width: 74px; }
  .sheet-item > span { font-size: 9.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
}

/* ===== CUSTOM en movil: todo mas compacto para que quepa en la pantalla ===== */
@media (max-width: 600px) {
  .custom-form { padding: 22px 12px 40px; }
  .custom-form .page-title { font-size: 24px; }
  .custom-form .pack-note { font-size: 12px; margin-bottom: 14px; }
  .custom-form .step { padding: 14px 12px 16px; border-radius: 14px; margin-bottom: 10px; }
  .custom-form .step-title { font-size: 12px; gap: 8px; margin-bottom: 10px; }
  .custom-form .step-title span { width: 24px; height: 24px; font-size: 11px; }
  .custom-form .step-title em { font-size: 10.5px; }
  .custom-form .step-help { font-size: 11px; margin-bottom: 10px; }
  .custom-form .label { font-size: 12px; margin: 12px 0 6px; }
  /* tarjetas de prenda */
  .custom-form .garment-card { padding: 10px 10px 12px; margin-bottom: 8px; border-radius: 10px; }
  .custom-form .garment-card-head strong { font-size: 12px; }
  /* colores: 14 en dos filas de 7 */
  .custom-form .swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
  .custom-form .swatch { width: 100%; height: auto; aspect-ratio: 1; max-width: 34px; justify-self: center; }
  .custom-form .swatch.on { outline-offset: 2px; }
  /* tallas: las 6 en una fila */
  .custom-form .sizes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
  .custom-form .size { min-width: 0; height: 34px; padding: 0; font-size: 11px; }
  .custom-form .add-garment { gap: 8px; }
  .custom-form .add-garment .btn { height: 40px; font-size: 10.5px; letter-spacing: .06em; padding: 0 6px; }
  .custom-form .seg { width: 100%; margin-bottom: 10px; }
  .custom-form .seg button { padding: 7px 8px; font-size: 11px; }
  /* logos: 4 en una fila */
  .custom-form .logos { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .custom-form .logo-opt { padding: 5px; font-size: 9px; gap: 4px; }
  /* disenos: 4 por fila (o 3 si es por prenda) */
  .custom-form .designs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .custom-form .designs.mini { grid-template-columns: repeat(4, 1fr); }
  .custom-form .design { padding: 4px; font-size: 9.5px; gap: 4px; }
  .custom-form .design-thumb .plus { font-size: 18px; }
  .custom-form .upload { padding: 12px; font-size: 12px; }
  /* globo y notas */
  .custom-form .balloon-fields { gap: 8px; }
  .custom-form .balloon-fields input, .custom-form .balloon-fields select { height: 40px; font-size: 16px; padding: 0 10px; }
  .custom-form .balloon-model { padding: 10px 12px; font-size: 12px; }
  .custom-form .balloon-model strong { font-size: 14px; }
  .custom-form .step textarea { font-size: 16px; padding: 10px; }
  .custom-form .custom-total .btn { height: 48px; }
}
@media (max-width: 600px) {
  .sheet-views .gv { width: 58px; }
  .custom-sheet-inner { padding: 8px 10px 6px; gap: 8px; }
  .sheet-item > span { font-size: 8.5px; }
}

/* Arreglo Safari iPhone: que Custom nunca sea mas ancho que la pantalla */
.custom > *, .custom-left, .custom-sticky, .custom-preview, .custom-form, .garment-card, .step { min-width: 0; }
@media (max-width: 820px) {
  .custom { grid-template-columns: minmax(0, 1fr) !important; }
  .custom-form { max-width: 100%; width: 100%; }
  .custom-form .step, .custom-form .garment-card { max-width: 100%; overflow: hidden; }
  .preview-stage.two { max-width: 100%; }
  .custom { overflow-x: clip; }
}
@media (max-width: 820px) {
  .preview-stage.two { width: 100%; grid-auto-columns: calc(100vw - 72px); }
  .custom-preview { width: 100%; }
}
/* Safari: que botones e imagenes nunca ensanchen la columna con su tamano original */
.custom-form .step *, .custom-sheet * { min-width: 0; }
.custom-form .design, .custom-form .logo-opt, .custom-form .size, .custom-form .swatch, .custom-form .add-garment .btn, .custom-form .seg button { min-width: 0; max-width: 100%; }
.custom-form .design-thumb, .custom-form .logo-thumb { width: 100%; overflow: hidden; }
.custom-form .design-thumb img, .custom-form .logo-thumb img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.custom-form .add-garment .btn { white-space: normal; line-height: 1.2; }
.custom-form .logo-thumb img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.custom-form .logo-thumb { box-sizing: border-box; }
.custom-form .logo-thumb { position: relative; }
.custom-form .logo-thumb img { position: absolute; inset: 14%; width: 72%; height: 72%; max-width: none; max-height: none; object-fit: contain; }

/* Papelera para quitar de la cesta */
.line-info { position: relative; padding-right: 34px; }
.line-remove {
  position: absolute; top: -4px; right: -4px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted); transition: color .15s, background .15s;
}
.line-remove:hover, .line-remove:focus-visible { color: var(--accent); background: rgba(var(--accent-rgb),.08); }
.garment-remove { text-decoration: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; margin-right: -6px; }
.garment-remove:hover { background: rgba(255,138,115,.12); }

/* ===== CUSTOM minimalista: islas del color del fondo ===== */
.custom-form .step {
  --ink: var(--text); --ink-soft: var(--muted); --edge: var(--line);
  background: var(--bg); color: var(--text); border: 1px solid var(--line); box-shadow: none;
  border-radius: 16px; padding: 20px 20px 22px; margin-bottom: 12px;
}
.custom-form .step:hover, .custom-form .step:focus-within { box-shadow: none; border-color: #cfcdc6; }
.custom-form .step-title { font-size: 13px; margin-bottom: 14px; letter-spacing: .08em; }
.custom-form .step-title span { width: 24px; height: 24px; background: var(--text); color: #fff; font-size: 11px; font-weight: 700; }
.custom-form .pack-note { margin: 6px 0 22px; font-size: 13px; color: var(--muted); }
.custom-form .label { margin: 14px 0 8px; font-size: 12px; color: var(--muted); }
.custom-form .step .label .muted { color: #a9a7a0; }
/* prendas: sin cajas, separadas por linea */
.custom-form .garment-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 14px 0 4px; margin: 0; }
.custom-form .step > .garment-card:first-of-type { border-top: 0; padding-top: 0; }
.custom-form .garment-card-head strong { font-size: 12px; }
.custom-form .garment-remove { color: var(--muted); }
.custom-form .swatch { box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.custom-form .size { border-color: var(--line); color: var(--text); }
.custom-form .size:hover { border-color: var(--text); }
.custom-form .add-garment { display: flex; gap: 18px; margin-top: 14px; }
.add-link { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding: 6px 0; border-bottom: 1px solid currentColor; }
.add-link:hover { color: var(--accent); }
/* disenos y logos */
.custom-form .design, .custom-form .logo-opt { border-color: var(--line); color: var(--text); background: none; }
.custom-form .design:hover, .custom-form .logo-opt:hover { border-color: #bdbdbd; }
.custom-form .design-thumb, .custom-form .logo-thumb { background: var(--bg-soft); }
.text-toggle { margin-top: 14px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.text-toggle:hover { color: var(--accent); }
.custom-form .upload { border-color: #c9c7c0; color: var(--text); }
/* campos */
.custom-form .step input[type=text], .custom-form .step select, .custom-form .step textarea { background: #fff; border-color: var(--line); color: var(--text); }
.custom-form .step input::placeholder, .custom-form .step textarea::placeholder { color: #aaa8a1; }
.custom-form .balloon-fields .field span { color: var(--muted); }
.custom-form .balloon-model { background: var(--bg-soft); color: var(--text); }
/* paso 3 plegable */
.extras-toggle { width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 !important; text-align: left; }
.extras-toggle em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.extras-toggle i { margin-left: auto; font-style: normal; font-size: 20px; font-weight: 300; transition: transform .2s; }
.step-extras.open .extras-toggle i { transform: rotate(45deg); }
.extras-body { display: none; padding-top: 6px; }
.step-extras.open .extras-body { display: block; }
@media (max-width: 600px) {
  .custom-form .step { padding: 16px 14px 18px; }
}
.custom-form .swatches + .sizes { margin-top: 12px; }
@media (max-width: 600px) {
  .custom-form .swatches { grid-template-columns: repeat(7, 28px); justify-content: space-between; gap: 8px 0; }
  .custom-form .swatch { width: 28px; height: 28px; max-width: none; }
  .custom-form .size { height: 32px; }
}
.custom-form .extras-toggle em { margin-left: 0; }

/* CUSTOM: precio destacado y descuento por volumen */
.unit-price { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: 0; }
.unit-price s { font-size: 12px; font-weight: 400; color: var(--muted); margin-right: 6px; }
.custom-form .garment-card-head { align-items: center; }
.pack-deal { margin: 4px 0 6px; padding: 14px 16px; border: 1px dashed var(--accent); border-radius: 14px; }
.pack-tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.pack-tiers span { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 8px; background: var(--bg-soft); font-size: 11px; color: var(--muted); }
.pack-tiers b { font-size: 14px; color: var(--text); }
.pack-tiers span.on { background: var(--accent); color: #fff; }
.pack-tiers span.on b { color: #fff; }
.pack-deal p { margin: 0; font-size: 12.5px; text-align: center; }
.pack-deal strong { color: var(--accent); }
.custom-total .row-between strong { font-size: 22px; }
.custom-total s.muted { font-size: 14px; font-weight: 400; }
.saving { margin: -8px 0 12px; text-align: right; color: var(--accent); font-size: 12px; font-weight: 600; }
.pack-tiers span { font-size: 10.5px; gap: 2px; padding: 8px 4px; text-align: center; line-height: 1.3; }
.pack-tiers b { font-size: 15px; }

/* CUSTOM: botones de pack */
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 16px; }
.pack-btn {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px 12px; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pack-btn:hover { border-color: #bdbdbd; }
.pack-btn strong { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; line-height: 1.2; }
.pack-qty { font-size: 10.5px; color: var(--muted); }
.pack-prices { margin-top: 4px; font-size: 13px; font-weight: 800; }
.pack-prices i { font-style: normal; font-weight: 400; color: var(--muted); }
.pack-btn.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(var(--accent-rgb),.05); }
.pack-btn.on strong, .pack-btn.on .pack-prices { color: var(--accent); }
@media (max-width: 600px) {
  .packs { grid-template-columns: repeat(2, 1fr); }
  .pack-btn { padding: 12px 6px 10px; }
}

/* Details: subir foto del globo */
.photo-upload { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; margin-top: 0; }
.photo-upload .plus { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-soft); color: var(--accent); font-size: 22px; }
.photo-upload img { width: 44px; height: 44px; flex: 0 0 44px; object-fit: cover; border-radius: 10px; }
.photo-upload.has-photo { border-style: solid; border-color: var(--accent); }
.custom-form .extras-opt { margin-left: 0; font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.step-extras .extras-body { display: block; padding-top: 0; }

/* ===== CUSTOM: vista previa nueva (una prenda grande + miniaturas) ===== */
.custom-preview { justify-content: center; }
.stage-main { width: 100%; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.stage-title { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.stage-title span { font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: .08em; }
.stage-main .gv-pair { gap: 28px; }
.stage-main .gv-pair figcaption { margin-top: 8px; }
.stage-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px auto 6px; max-width: 620px; }
.stage-thumb { width: 64px; padding: 6px 4px 5px; border-radius: 12px; border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; gap: 3px; opacity: .55; transition: opacity .15s, border-color .15s, background .15s; }
.stage-thumb:hover { opacity: .9; }
.stage-thumb.on { opacity: 1; border-color: var(--accent); background: #fff; }
.stage-thumb .gv { width: 100%; }
.stage-thumb span { font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (min-width: 821px) {
  .stage-main .gv-pair { max-width: min(600px, calc((100vh - var(--top-h) - 260px) * 1.55)); }
}
@media (max-width: 820px) {
  .custom-preview { padding: 22px 16px 18px; }
  .stage-main .gv-pair { gap: 14px; }
  .stage-thumbs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; padding-bottom: 4px; }
  .stage-thumb { flex: 0 0 58px; width: 58px; }
  .sheet-item { margin: 0 auto; }
  .sheet-views .gv { width: 70px; }
  .custom-sheet-inner { flex-direction: column; align-items: center; gap: 6px; overflow: visible; }
  .sheet-dots { display: flex; gap: 8px; justify-content: center; }
  .dot-btn { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
  .dot-btn.on { outline: 2px solid var(--accent); outline-offset: 2px; }
}

/* Movil: deslizar la hoja entre prendas */
@media (max-width: 820px) {
  .custom-sheet-inner { position: relative; touch-action: pan-y; }
  .sheet-arrow { position: absolute; top: 38%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--text); background: rgba(255,255,255,.7); display: grid; place-items: center; z-index: 2; }
  .sheet-arrow.prev { left: 8px; } .sheet-arrow.next { right: 8px; }
  .sheet-item.from-right { animation: sheet-in-r .28s ease-out; }
  .sheet-item.from-left { animation: sheet-in-l .28s ease-out; }
}
@keyframes sheet-in-r { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-in-l { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== CUSTOM paso 1: lista editorial de prendas ===== */
.g-list { border-top: 1px solid var(--text); }
.g-row { display: grid; grid-template-columns: 58px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.g-thumb { width: 58px; padding: 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid transparent; transition: border-color .15s; }
.g-row.on .g-thumb { border-color: var(--text); }
.g-thumb .gv { width: 100%; }
.g-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.g-num { font-size: 11px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.g-head strong { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.g-color { margin-left: auto; font-size: 12px; color: var(--muted); }
.g-swatches { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.g-sw { width: 18px; height: 18px; border-radius: 3px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); transition: transform .12s; }
.g-sw:hover { transform: scale(1.15); }
.g-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--text); }
.g-sizes { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.g-size { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #a7a7a7; padding: 2px 0; border-bottom: 1.5px solid transparent; }
.g-size:hover { color: var(--text); }
.g-size.on { color: var(--text); border-color: var(--accent); }
.g-total-line { margin: 12px 0 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (max-width: 600px) {
  .g-row { grid-template-columns: 46px 1fr; gap: 12px; padding: 14px 0; }
  .g-thumb { width: 46px; padding: 4px; }
  .g-sw { width: 19px; height: 19px; }
  .g-swatches { gap: 4px; }
  .g-sizes { gap: 4px 14px; }
  .g-size { font-size: 13px; }
}
@media (max-width: 600px) {
  .g-swatches { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
  .g-sw { width: 100%; height: auto; aspect-ratio: 1; border-radius: 2px; }
  .g-sw.on { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--text); }
}
/* Talla elegida: circulo con relieve */
.g-sizes { gap: 6px 6px; align-items: center; }
.g-size { min-width: 34px; height: 34px; padding: 0 6px; border: 0; border-radius: 999px; display: inline-grid; place-items: center; transition: background .15s, box-shadow .15s, color .15s; }
.g-size.on {
  color: #fff; background: var(--accent);
  box-shadow: 0 3px 8px rgba(var(--accent-rgb),.35), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.12);
}
@media (max-width: 600px) { .g-size { min-width: 36px; height: 36px; } .g-sizes { gap: 4px 4px; } }
.g-size { width: 38px; min-width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 11.5px; letter-spacing: 0; }
@media (max-width: 600px) { .g-size { width: 38px; min-width: 38px; height: 38px; font-size: 12px; } }
.g-color { margin-left: 0; }

/* ===== CUSTOM: islas elegantes, mismo estilo que la isla de arriba ===== */
.custom-form .step, .custom-form .pack-btn, .custom-form .custom-total {
  background: var(--island);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 0; border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08), inset 0 0 0 1px rgba(255,255,255,.5);
}
.custom-form .step:hover, .custom-form .step:focus-within { box-shadow: 0 10px 30px rgba(0,0,0,.11), inset 0 0 0 1px rgba(255,255,255,.6); border: 0; }
.custom-form .step { padding: 22px 22px 24px; margin-bottom: 14px; }
.custom-form .pack-btn:hover { box-shadow: 0 8px 26px rgba(0,0,0,.1), inset 0 0 0 1px rgba(255,255,255,.6); }
.custom-form .pack-btn.on { background: var(--island); box-shadow: 0 8px 26px rgba(var(--accent-rgb),.18), inset 0 0 0 1.5px var(--accent); }
.custom-form .custom-total { padding: 18px 20px 20px; margin-top: 4px; }
/* dentro de las islas, lineas y miniaturas mas suaves */
.custom-form .g-list { border-top-color: rgba(0,0,0,.18); }
.custom-form .g-row { border-bottom-color: rgba(0,0,0,.07); }
.custom-form .g-thumb, .custom-form .design-thumb, .custom-form .logo-thumb { background: rgba(255,255,255,.6); }
.custom-form .design, .custom-form .logo-opt { background: rgba(255,255,255,.45); border-color: rgba(0,0,0,.06); border-radius: 12px; }
.custom-form .step input[type=text], .custom-form .step select, .custom-form .step textarea, .custom-form .upload { background: rgba(255,255,255,.7); border-color: rgba(0,0,0,.08); border-radius: 12px; }
.custom-form .balloon-model { background: rgba(255,255,255,.6); }
@media (max-width: 600px) { .custom-form .step { padding: 18px 14px 20px; } }


/* CUSTOM: islas que destacan mas sobre el fondo */
.custom-form .step, .custom-form .pack-btn, .custom-form .custom-total {
  background: #dedede;
  box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.05), inset 0 0 0 1px rgba(255,255,255,.7);
}
.custom-form .step:hover, .custom-form .step:focus-within { box-shadow: 0 14px 36px rgba(0,0,0,.15), 0 2px 6px rgba(0,0,0,.06), inset 0 0 0 1px rgba(255,255,255,.8); }
.custom-form .pack-btn.on { background: #dedede; box-shadow: 0 10px 30px rgba(var(--accent-rgb),.22), inset 0 0 0 1.5px var(--accent); }
.custom-form .g-thumb, .custom-form .design-thumb, .custom-form .logo-thumb { background: rgba(255,255,255,.75); }
.custom-form .design, .custom-form .logo-opt { background: rgba(255,255,255,.55); }
.custom-form .step input[type=text], .custom-form .step select, .custom-form .step textarea, .custom-form .upload { background: rgba(255,255,255,.85); }

/* ===== CUSTOM: efectos ===== */
.fx-in { animation: fx-in .45s cubic-bezier(.2,.8,.2,1) both; }
.fx-out { animation: fx-out .28s ease-in forwards; pointer-events: none; }
.fx-pop { animation: fx-pop .35s cubic-bezier(.3,1.6,.5,1); }
.fx-swap { animation: fx-swap .4s ease-out; }
.fx-flip { animation: fx-flip .5s cubic-bezier(.2,.8,.2,1); }
@keyframes fx-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fx-out { to { opacity: 0; transform: translateX(24px) scale(.96); } }
@keyframes fx-pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes fx-swap { 0% { opacity: .35; transform: scale(.97); filter: blur(2px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes fx-flip { 0% { transform: perspective(800px) rotateY(-70deg); opacity: .4; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fx-in, .fx-out, .fx-pop, .fx-swap, .fx-flip { animation: none !important; } }
.stage-thumb span { font-size: 10px; font-weight: 700; letter-spacing: .06em; }

/* CUSTOM ordenador: el diseno elegido en grande debajo de la vista previa */
.design-showcase { display: none; }
@media (min-width: 821px) {
  .custom-left .custom-preview { height: calc(100vh - var(--top-h) - 10px); min-height: 0; justify-content: flex-start; padding-top: 22px; padding-bottom: 22px; }
  .stage-main .gv-pair { max-width: min(560px, calc((100vh - var(--top-h) - 430px) * 1.55)); }
  .design-showcase { display: flex; flex-direction: column; align-items: center; flex: 1 1 auto; min-height: 0; width: 100%; margin-top: 18px; }
  .ds-card { flex: 1 1 auto; min-height: 0; width: min(100%, 520px); display: flex; align-items: center; justify-content: center; padding: 22px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.08), inset 0 0 0 1px rgba(0,0,0,.04); }
  .ds-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
  .ds-name { margin: 10px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .ds-name span { font-weight: 400; color: var(--muted); margin-right: 8px; }
}
/* Movil: el diseno elegido en grande debajo de la vista previa */
@media (max-width: 820px) {
  .design-showcase { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 16px; }
  .ds-card { width: 100%; display: flex; align-items: center; justify-content: center; padding: 18px; background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.08), inset 0 0 0 1px rgba(0,0,0,.04); }
  .ds-card img { width: 100%; max-width: 340px; height: auto; max-height: 60vh; object-fit: contain; }
  .ds-name { margin: 10px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .ds-name span { font-weight: 400; color: var(--muted); margin-right: 8px; }
}

/* Vista previa: boton "View design" y diseno en grande */
.stage-thumb.view-design { width: 74px; }
.vd-img { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 8px; padding: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.vd-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stage-thumb.view-design > span:last-child { white-space: nowrap; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stage-design-card { width: 100%; max-width: 520px; background: #fff; border-radius: 14px; padding: 22px; display: flex; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.08), inset 0 0 0 1px rgba(0,0,0,.04); }
.stage-design-card img { width: 100%; height: auto; max-height: calc(100vh - var(--top-h) - 300px); object-fit: contain; }
@media (max-width: 820px) {
  .stage-thumb.view-design { flex: 0 0 68px; width: 68px; }
  .stage-design-card img { max-height: 60vh; }
}

.stage-thumb.view-design > span:last-child { white-space: normal; font-size: 8.5px; line-height: 1.15; text-align: center; letter-spacing: .04em; }
.stage-thumb.view-design { width: 64px; }
.stage-design-card img { max-height: calc(100vh - var(--top-h) - 360px); }
@media (max-width: 820px) { .stage-thumb.view-design { flex: 0 0 60px; width: 60px; } .stage-design-card img { max-height: 55vh; } }
/* Ordenador: sin la tarjeta del diseno debajo; "View design" lo ensena mas grande */
@media (min-width: 821px) {
  .design-showcase { display: none !important; }
  .custom-left .custom-preview { justify-content: center; }
  .stage-main .gv-pair { max-width: min(600px, calc((100vh - var(--top-h) - 260px) * 1.55)); }
  .stage-design-card { max-width: 680px; padding: 18px; }
  .stage-design-card img { max-height: calc(100vh - var(--top-h) - 250px); }
}
/* Ordenador: la vista previa acompana todo el scroll de Custom (hasta el final del formulario) */
@media (min-width: 821px) {
  .custom-left .custom-signature { display: none; }
  .custom-left .custom-sticky { flex: 1 1 auto; }
}
.design-showcase { display: none !important; }

/* CUSTOM: galeria de prendas de clientes que va rotando */
.custom-gallery { padding: 64px 0 72px; border-top: 1px solid var(--line); overflow: hidden; }
.cg-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); margin-bottom: 36px; }
.cg-head img { width: 32px; height: auto; margin-bottom: 16px; }
.cg-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cg-row { display: flex; width: max-content; animation: marquee 90s linear infinite; }

.cg-group { display: flex; gap: 16px; padding-right: 16px; }
.cg-item { width: clamp(200px, 22vw, 300px); aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--bg-soft); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.cg-item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .custom-gallery { padding: 44px 0 52px; } .cg-item { width: 62vw; } .cg-group { gap: 10px; padding-right: 10px; } }
@media (prefers-reduced-motion: reduce) { .cg-row { animation-duration: 180s; } }
.cg-item { background: #fff; }
.cg-item img { object-fit: contain; padding: 6%; }
/* Galeria: tirada continua, sin recuadros, camisetas mas pequenas */
.cg-item { width: clamp(130px, 12vw, 180px); background: transparent !important; box-shadow: none; border-radius: 0; aspect-ratio: 9/10; }
.cg-item img { padding: 0; mix-blend-mode: multiply; }
.cg-group { gap: 4px; padding-right: 4px; }
.custom-gallery { background: #fff; }
@media (max-width: 600px) { .cg-item { width: 34vw; } .cg-group { gap: 2px; padding-right: 2px; } }

/* Galeria movida por JS (arrastrable) */
.cg-row { animation: none !important; will-change: transform; }
.cg-track { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cg-track:active { cursor: grabbing; }
.cg-item img { pointer-events: none; -webkit-user-drag: none; }


/* ===== CUSTOM: vista previa tipo estudio (una cara grande + selector Front/Back) ===== */
.custom-left { background: var(--bg); }
.custom-left .custom-preview { background: var(--bg); padding: 18px; }
.stage-main { position: relative; width: 100%; max-width: none; background: #e3e3e3; border-radius: 18px; padding: 22px 22px 70px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.stage-main .stage-title { margin-bottom: 8px; }
.stage-single { display: flex; justify-content: center; }
.stage-single .gv { width: min(100%, 440px); filter: drop-shadow(0 18px 24px rgba(0,0,0,.12)); }
.side-toggle { position: absolute; left: 18px; bottom: 18px; display: inline-flex; padding: 4px; background: #fff; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.side-toggle button { padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.side-toggle button.on { background: var(--text); color: #fff; }
.stage-design { padding-bottom: 22px; }
@media (min-width: 821px) {
  .stage-single .gv { width: min(100%, calc((100vh - var(--top-h) - 300px) * .9), 460px); }
}
@media (max-width: 820px) {
  .custom-left .custom-preview { padding: 12px 10px; }
  .stage-main { padding: 16px 12px 64px; border-radius: 16px; }
  .stage-single .gv { width: min(86%, 360px); }
  .side-toggle { left: 12px; bottom: 12px; }
}
.stage-single { width: 100%; }
@media (min-width: 821px) {
  .stage-single .gv { width: min(100%, calc((100vh - 430px) * .88), 460px); }
  .custom-left .custom-preview { padding-top: 12px; padding-bottom: 12px; }
  .stage-thumbs { margin-top: 14px; }
}

/* ===== Animaciones de navegacion ===== */
#app.page-out { opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
#app.page-in { animation: page-in .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.card-in { animation: card-in .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
/* Ficha de producto: entra con zoom suave */
.overlay { transition: opacity .3s ease; }
.modal { transform: translateY(18px) scale(.96); opacity: 0; transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .3s ease; }
.overlay.show .modal { transform: none; opacity: 1; }
.modal.fresh .pd-media img { animation: pd-img .6s cubic-bezier(.2,.8,.2,1); }
@keyframes pd-img { from { transform: scale(1.06); opacity: .6; } to { transform: none; opacity: 1; } }
.modal.fresh .pd-info > * { animation: pd-info .5s cubic-bezier(.2,.8,.2,1) both; }
.modal.fresh .pd-info > *:nth-child(2) { animation-delay: .04s; } .modal.fresh .pd-info > *:nth-child(3) { animation-delay: .08s; }
.modal.fresh .pd-info > *:nth-child(4) { animation-delay: .12s; } .modal.fresh .pd-info > *:nth-child(5) { animation-delay: .16s; }
.modal.fresh .pd-info > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes pd-info { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
/* Logo: rebote al pulsarlo */
.logo-pop img { animation: logo-pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes logo-pop { 0% { transform: scale(1); } 35% { transform: scale(.9); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  #app.page-in, .card-in, .modal.fresh .pd-media img, .modal.fresh .pd-info > *, .logo-pop img { animation: none !important; }
}
/* Quita el recuadro gris que pinta Safari/iPhone al tocar enlaces y botones */
html { -webkit-tap-highlight-color: transparent; }
a, button, label, input, select, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
/* iPhone: anular los efectos "hover" en pantallas tactiles para que un solo toque baste */
@media (hover: none) {
  a.tab:hover { color: #b8b8b8; }
  .tab-custom:hover { color: #a9b3ee; }
  .tab.on, .tab.on:hover { color: var(--text); }
  .tab-custom.on, .tab-custom.on:hover { color: var(--accent); }
  .nav a:hover { padding-left: 0; }
  .card:hover .media-b { opacity: 0; }
  .card:hover .media-a { opacity: 1; }
  .btn:hover { opacity: 1; }
  .btn-ghost:hover { background: transparent; color: var(--text); }
  .hero .btn-ghost:hover { background: transparent; color: #fff; }
  .size:hover { border-color: var(--line); }
  .g-size:hover { color: #a7a7a7; }
  .g-size.on:hover { color: #fff; }
  .g-sw:hover { transform: none; }
  .add-link:hover, .text-toggle:hover, .line-remove:hover, .garment-remove:hover { color: inherit; background: none; }
  .pack-btn:hover { border-color: var(--line); }
  .custom-form .design:hover, .custom-form .logo-opt:hover { border-color: var(--line); }
  .stage-thumb:hover { opacity: .55; }
  .stage-thumb.on:hover { opacity: 1; }
  .footer-grid a:hover { text-decoration: none; }
}

/* Details: textos del diseno */
.custom-form .tx-input { width: 100%; height: 44px; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 0 12px; background: rgba(255,255,255,.7); font-size: 16px; }
.custom-form .tx-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.25); }
.custom-form .tx-seg { margin-bottom: 8px; }
.custom-form .tx-help { margin: 0 0 4px; }
.custom-form #tx-desc { margin-top: 2px; }
/* Galeria arriba, antes del configurador */
.custom-gallery { border-top: 0; border-bottom: 1px solid var(--line); padding: 36px 0 44px; margin-bottom: 8px; }
.cg-head { margin-bottom: 26px; }
@media (max-width: 600px) { .custom-gallery { padding: 24px 0 32px; } }
/* Movil: bloque de galeria mas compacto */
@media (max-width: 600px) {
  .custom-gallery { padding: 16px 0 20px; }
  .cg-head { margin-bottom: 14px; }
  .cg-head img { width: 22px; margin-bottom: 8px; }
  .custom-gallery .sig-kicker { font-size: 9px; letter-spacing: .3em; margin-bottom: 8px; }
  .custom-gallery .sig-title { font-size: 26px; }
  .cg-item { width: 22vw; }
}
/* Separador antes del configurador */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.custom-gallery { border-bottom: 0; margin-bottom: 0; }
.design-divider { display: flex; align-items: center; gap: 22px; padding: 8px var(--gutter) 30px; }
.dd-line { flex: 1; height: 1px; background: var(--line); }
.dd-text { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; }
.dd-text em { font-style: italic; font-weight: 400; text-transform: none; color: var(--accent); }
.dd-step { font-size: 10px; font-weight: 600; letter-spacing: .32em; color: var(--muted); margin-bottom: 8px; }
.dd-text i { font-style: normal; font-weight: 400; font-size: 18px; color: var(--accent); margin-top: 6px; animation: dd-bounce 1.8s ease-in-out infinite; }
@keyframes dd-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.custom-form { padding-top: 0; }
@media (max-width: 600px) { .design-divider { gap: 12px; padding: 4px 16px 20px; } .dd-text { font-size: 18px; } .dd-step { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .dd-text i { animation: none; } }
/* CUSTOM: poster despues de "Add pack to cart" */
.custom-poster { margin: 48px var(--gutter) 64px; background: #202020; color: #f4f3ef; border-radius: 22px; overflow: hidden; position: relative; }
.custom-poster::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 420px; background: url("img/globo-blanco.png") center/contain no-repeat; opacity: .06; pointer-events: none; }
.cp-inner { position: relative; z-index: 1; padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 96px); max-width: 1100px; }
.cp-kicker { margin: 0 0 18px; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: rgba(244,243,239,.6); }
.cp-title { margin: 0; font-size: clamp(40px, 6.6vw, 96px); line-height: .95; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
.cp-title em { display: block; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; color: #7d91ff; }
.cp-text { margin: 28px 0 0; max-width: 620px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; color: rgba(244,243,239,.82); }
.cp-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cp-steps li { border-top: 1px solid rgba(244,243,239,.2); padding-top: 14px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cp-steps span { display: block; font-size: 12px; color: #7d91ff; margin-bottom: 6px; letter-spacing: .1em; }
@media (max-width: 700px) {
  .custom-poster { margin: 32px 12px 44px; border-radius: 18px; }
  .cp-steps { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .custom-poster::after { width: 220px; height: 280px; right: -50px; bottom: -60px; }
}

/* Disenos: cada uno encajado en la zona de impresion de la espalda */
.gv-design img.fit { width: var(--fw); max-width: none; margin-left: var(--fl); margin-top: var(--ft); }
/* Movil: evitar que la prenda "tiemble" al hacer scroll en iPhone */
@media (max-width: 820px) {
  .stage-single .gv { filter: none; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  .stage-main { box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), 0 14px 30px -18px rgba(0,0,0,.25); }
}

/* Gesto "volver atras" (deslizar desde el borde izquierdo) */
.back-hint { position: fixed; left: 0; top: 50%; z-index: 90; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,.18); opacity: 0; pointer-events: none;
  transform: translateY(-50%) translateX(-40px) scale(.7); transition: opacity .2s, transform .2s, background .15s, color .15s; }
.back-hint svg { width: 20px; height: 20px; }
.back-hint.ready { background: var(--accent); color: #fff; }

/* Ficha de producto en movil: asa arriba para indicar que se puede bajar para cerrar */
@media (max-width: 820px) {
  #product-modal { overscroll-behavior: contain; }
  #product-modal::before { content: ""; position: sticky; top: 0; display: block; width: 40px; height: 5px; margin: 8px auto -13px; border-radius: 3px; background: rgba(0,0,0,.22); z-index: 3; }
}

/* Ficha de producto: fotos deslizables */
.pd-slider { position: relative; overflow: hidden; display: block; touch-action: pan-y; }
.pd-track { display: flex; height: 100%; will-change: transform; }
.pd-slide { flex: 0 0 100%; height: 100%; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.pd-dots { display: none; }
@media (max-width: 820px) {
  .pd-dots { display: flex; gap: 6px; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); }
  .pd-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.22); transition: background .2s, width .2s; }
  .pd-dots span.on { width: 18px; border-radius: 4px; background: var(--text); }
}

/* Movil: miniaturas de la ficha de producto mas pequenas */
@media (max-width: 820px) {
  .pd-thumbs { left: 10px; bottom: 10px; gap: 6px; }
  .pd-thumb { width: 34px; border-radius: 4px; overflow: hidden; }
}

/* Portada: boton CUSTOM */
.hero .hero-ctas { margin-top: 22px; }
.hero .btn.hero-custom { background: var(--accent); border-color: var(--accent); color: #fff; padding: 0 30px; gap: 10px; box-shadow: 0 10px 26px rgba(var(--accent-rgb), .35); transition: transform .2s, box-shadow .2s, background .2s; }
.hero .btn.hero-custom span { transition: transform .2s; }
@media (hover: hover) { .hero .btn.hero-custom:hover { background: #fff; border-color: #fff; color: var(--accent); transform: translateY(-1px); } .hero .btn.hero-custom:hover span { transform: translateX(4px); } }
.hero .btn.hero-custom:active { transform: scale(.97); }
/* Boton CUSTOM encima del eslogan, mas grande */
.hero .hero-ctas { margin: 0 0 24px; }
.hero .btn.hero-custom { height: 64px; padding: 0 40px; font-size: 17px; letter-spacing: .16em; font-weight: 700; gap: 14px; }
@media (max-width: 600px) { .hero .btn.hero-custom { height: 56px; padding: 0 32px; font-size: 15px; } .hero .hero-ctas { margin-bottom: 18px; } }
/* Boton CUSTOM de la portada: pastilla de cristal */
.hero-custom2 { display: inline-flex; align-items: center; gap: 16px; padding: 10px 10px 10px 28px; border-radius: 999px;
  background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.45); color: #fff; text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.18);
  transition: background .25s, border-color .25s, transform .2s; -webkit-tap-highlight-color: transparent; }
.hero-custom2 em { font-style: italic; font-size: 15px; opacity: .85; }
.hero-custom2 strong { font-size: 20px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-custom2 .hc-arrow { width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; margin-left: 6px; transition: background .25s, color .25s, transform .25s; }
.hero-custom2 .hc-arrow svg { width: 22px; height: 22px; }
@media (hover: hover) {
  .hero-custom2:hover { background: rgba(255,255,255,.26); border-color: #fff; }
  .hero-custom2:hover .hc-arrow { background: var(--accent); color: #fff; transform: translateX(4px); }
}
.hero-custom2:active { transform: scale(.97); }
@media (max-width: 600px) {
  .hero-custom2 { gap: 12px; padding: 7px 7px 7px 20px; }
  .hero-custom2 em { font-size: 13px; }
  .hero-custom2 strong { font-size: 17px; }
  .hero-custom2 .hc-arrow { width: 42px; height: 42px; }
}

/* ---------- Customs con candado ---------- */
.locked-head { margin: 72px 0 28px; padding-top: 40px; border-top: 1px solid var(--line); }
.locked-eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.locked-head h2 { margin: 0; font-size: clamp(36px, 6vw, 76px); line-height: .95; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
.locked-head h2 span { font-weight: 400; font-style: italic; text-transform: none; letter-spacing: -.01em; }
.locked-head p.muted { margin: 14px 0 0; font-size: 14px; max-width: 46ch; }
.locked-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: #fff; flex-shrink: 0; }
.locked-ico svg { width: 17px; height: 17px; }
.lock-badge { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(17,17,17,.82); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lock-badge svg { width: 16px; height: 16px; }
.card.is-unlocked .lock-badge { background: var(--accent); }
.card.is-locked .card-media img { filter: saturate(.85); }
.pd-unlock { margin-top: 24px; padding: 18px; background: var(--bg-soft); border-radius: 14px; }
.pd-unlock-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.pd-unlock-title .locked-ico { width: 28px; height: 28px; }
.pd-unlock-title .locked-ico svg { width: 14px; height: 14px; }
.pd-unlock .small { margin: 0 0 14px; }
.pd-unlock-row { display: flex; gap: 8px; }
.pd-unlock-row input { flex: 1; min-width: 0; width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  font: inherit; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; }
.pd-unlock-row input:focus { outline: none; border-color: var(--text); }
.pd-unlock-row .btn { flex-shrink: 0; }
.pd-unlock.shake { animation: lockShake .4s; }
@keyframes lockShake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.pd-unlocked { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 13px; }
.pd-unlocked .locked-ico { width: 28px; height: 28px; background: var(--accent); }
.pd-unlocked .locked-ico svg { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .locked-head { margin-top: 48px; padding-top: 28px; }
  .lock-badge { width: 30px; height: 30px; top: 8px; right: 8px; }
}

/* Customs con candado al final de la página Custom */
.custom-locked { padding-top: 0; }
.custom-locked .locked-head { margin-top: 24px; }

/* ---------- Marca de agua (solo encima del diseño) + protección de imágenes ---------- */
:root {
  --wm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='1200'%3E%3Cdefs%3E%3Cpattern id='p' width='150' height='90' patternUnits='userSpaceOnUse' patternTransform='rotate(-28)'%3E%3Cg font-family='Helvetica,Arial,sans-serif' font-weight='800' font-size='12' letter-spacing='1.5' text-anchor='middle' fill='rgba(140,140,140,.42)'%3E%3Ctext x='75' y='28'%3EFLY STUDIOS%3C/text%3E%3Ctext x='0' y='73'%3EFLY STUDIOS%3C/text%3E%3Ctext x='150' y='73'%3EFLY STUDIOS%3C/text%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='1200' height='1200' fill='url(%23p)'/%3E%3C/svg%3E");
}
.pd-slide, .cg-item, .stage-design-card { position: relative; }
.wm, .gv-design:not(.gv-logo)::after, .stage-design-card::after {
  position: absolute; z-index: 2; pointer-events: auto;
  background: var(--wm) center / 1200px 1200px;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.gv-design:not(.gv-logo)::after { content: ""; inset: 0; background-size: 600px 600px; }
.stage-design-card::after { content: ""; inset: 22px; }
/* los botones y badges siguen por encima de la marca de agua */
.card-media .tag, .card-media .lock-badge, .card-media .quick-add { z-index: 3; }
img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }

/* Guía de tallas en la ficha de producto */
.size-guide { margin: 0 0 20px; padding: 12px 14px; background: #f4f4f4; border-radius: 6px; }
.size-guide p { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; }

/* Safari (iPhone) pinta la franja de arriba con el color de un elemento fijo pegado arriba:
   esta franja blanca va detrás del póster, no se ve, pero hace que esa zona salga blanca */
.safari-tint { position: fixed; top: 0; left: 0; right: 0; height: 64px; background: #fff; z-index: -1; pointer-events: none; }
