/* ==========================================================================
   Yegua Club — estilos
   Mobile first. Colores y tipografías tomados del Instagram de la marca.
   ========================================================================== */

:root {
  --negro: #000000;
  --rosa: #FF7AC0;        /* logo */
  --rojo: #E8112D;        /* títulos de tandas */
  --verde: #3BE36A;       /* estrellas */
  --chicle: #FCD6E9;      /* fondo rosa claro */
  --vino: #4A0710;
  --carbon: #1C1C1C;
  --papel: #F6F3F5;       /* hojas, formularios */
  --tinta: #F6F3F5;       /* texto sobre negro */
  --gris: #A8A8A8;
  --error: #B00020;

  --f-logo: 'Yellowtail', 'Brush Script MT', cursive;
  --f-type: 'Courier Prime', 'Courier New', Courier, monospace;
  --f-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 56px;
  --pad: max(18px, env(safe-area-inset-left));
  --pad-r: max(18px, env(safe-area-inset-right));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden]:not(.bagbar) { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--negro);
  color: var(--tinta);
  font: 400 1rem/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
body.has-bagbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--rosa); color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }
.noscript { padding: 16px var(--pad); background: var(--rojo); color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 1rem/1.1 var(--f-ui); text-decoration: none; text-align: center;
  transition: transform .15s var(--ease), background-color .2s, color .2s;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--pink { background: var(--rosa); color: #000; }
.btn--line { border-color: currentColor; color: var(--tinta); background: transparent; }
.btn--black { background: #000; color: #fff; }
.btn--black:hover { background: #222; }
.btn--line-dark { border-color: #000; color: #000; background: transparent; }
.btn--block { width: 100%; }
.btn--big { min-height: 54px; padding: 0 28px; }
.custom__hint, .result__hint { margin: 10px 0 0; font-size: .9rem; opacity: .8; }
.custom__steps a { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: break-word; }

.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: inherit;
}
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn:active { background: rgba(0,0,0,.08); }

/* ---------- Barra superior y header ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px var(--pad-r) 7px var(--pad);
  background: var(--rosa); color: #000;
  font: 500 .8125rem/1.3 var(--f-ui);
}
.topbar a { font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }

.header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
  padding: 0 calc(var(--pad-r) - 8px) 0 var(--pad);
  background: rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.header__logo { display: block; width: 86px; flex: none; }

/* Logo oficial (vector). Rosa con la sombra roja corrida, como serigrafía. */
.logo { display: block; width: 100%; height: auto; overflow: visible; }
.logo .logo__main { fill: var(--rosa); }
.logo .logo__shadow { fill: var(--rojo); transform: translate(4.5px, 3.5px); }
.header__nav { display: none; margin-left: auto; gap: 26px; }
.header__nav a { font: 700 .95rem var(--f-type); text-decoration: none; }
.header__nav a:hover { color: var(--rosa); }
.bagbtn {
  position: relative; margin-left: auto;
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; background: transparent; color: var(--tinta);
}
.bagbtn svg { width: 26px; height: 26px; }
.bagbtn__count {
  position: absolute; top: 4px; right: 2px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--verde); color: #000;
  font: 700 .75rem/20px var(--f-ui); text-align: center;
}
.bagbtn__count.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.preview-note {
  padding: 8px var(--pad); background: var(--verde); color: #000;
  font: 500 .875rem/1.35 var(--f-ui); text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: 44px var(--pad-r) 52px var(--pad);
}
.hero__mark {
  width: min(90vw, 520px);
  margin: 10px 0 30px -3%;
  animation: mark-in .9s var(--ease) both;
}
.hero__mark .logo__shadow { animation: shadow-in .9s var(--ease) .2s both; }
@keyframes mark-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes shadow-in {
  from { transform: translate(0, 0); }
  to   { transform: translate(4.5px, 3.5px); }
}
.hero__stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__star { position: absolute; animation: star-in .7s var(--ease) both; }
.hero__star--a { width: clamp(54px, 15vw, 120px); height: clamp(54px, 15vw, 120px); fill: var(--verde); right: 7%; top: 26px; animation-delay: .35s; --r: 14deg; }
.hero__star--b { width: clamp(26px, 7vw, 54px); height: clamp(26px, 7vw, 54px); fill: var(--rosa); right: 30%; top: 46%; animation-delay: .5s; --r: -10deg; }
.hero__star--c { width: clamp(34px, 9vw, 70px); height: clamp(34px, 9vw, 70px); fill: var(--rojo); left: 58%; top: 12px; animation-delay: .62s; --r: 24deg; }
@keyframes star-in {
  from { opacity: 0; transform: scale(0) rotate(-90deg); }
  to   { opacity: 1; transform: scale(1) rotate(var(--r, 0deg)); }
}
.hero__star { transform: rotate(var(--r, 0deg)); }
.hero__kicker { font: 700 1.25rem/1.2 var(--f-type); color: var(--rosa); margin-bottom: 8px; }
.hero__lead { font-size: 1.125rem; line-height: 1.45; max-width: 34ch; color: var(--tinta); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- Fotos de la sesión que pasan (al lado del logo) ---------- */
.reel { margin: -6px calc(-1 * var(--pad-r)) 28px calc(-1 * var(--pad)); }
.reel__window { overflow: hidden; padding: 14px 0; }
.reel__track {
  display: flex; width: max-content;
  animation: reel-x calc(var(--reel-n, 5) * 7s) linear infinite;
}
.reel__item {
  flex: none; margin: 0 14px 0 0;
  width: min(44vw, 230px); aspect-ratio: 4 / 5;
  border: 5px solid var(--papel); border-radius: 3px; background: #111;
  transform: rotate(-2deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .55);
}
.reel__item:nth-child(even) { transform: rotate(1.6deg) translateY(8px); }
/* Foto apaisada: misma altura que las otras, más ancha */
.reel__item--wide { width: calc(min(44vw, 230px) * 1.5625); aspect-ratio: 5 / 4; }
.reel__item img { width: 100%; height: 100%; object-fit: cover; }
.reel__credit { padding: 2px var(--pad-r) 0 var(--pad); font-size: .8rem; color: var(--gris); }
.reel__credit a { text-underline-offset: 3px; }
.reel:hover .reel__track { animation-play-state: paused; }
@keyframes reel-x { to { transform: translateX(-50%); } }
@keyframes reel-y { to { transform: translateY(-50%); } }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; border-block: 1px solid #2c2c2c;
  padding: 12px 0; font: 400 1.125rem/1 var(--f-type); color: var(--tinta);
}
.ticker__track { display: flex; align-items: center; gap: 18px; width: max-content; animation: ticker 32s linear infinite; }
.ticker__track span { white-space: nowrap; }
.ticker__track svg { width: 14px; height: 14px; fill: var(--verde); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Chips de tandas ---------- */
.shopnav {
  position: sticky; top: var(--header-h); z-index: 15;
  background: rgba(0, 0, 0, .94); border-bottom: 1px solid #2c2c2c;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px var(--pad-r) 10px var(--pad);
  scroll-snap-type: x proximity;
}
.chips--groups { padding-bottom: 6px; }
.chips--artists { padding-top: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; background: none; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px;
  border: 1px solid #4a4a4a; border-radius: 999px;
  font: 700 .95rem/1 var(--f-type); text-decoration: none; color: var(--tinta);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip.is-active { background: var(--rosa); border-color: var(--rosa); color: #000; }
.chips--artists .chip { min-height: 34px; padding: 0 14px; font-size: .88rem; color: #bdbdbd; border-color: #3a3a3a; }
.chips--artists .chip.is-active { background: none; border-color: var(--tinta); color: var(--tinta); }

/* ---------- Botones de tandas (pantalla inicial de la tienda) ---------- */
.tiles { padding: 34px var(--pad-r) 48px var(--pad); }
.tiles__title { font: 700 clamp(1.6rem, 6.5vw, 2.4rem)/1.1 var(--f-type); margin-bottom: 18px; }
.tiles__grid { display: grid; gap: 12px; }
.tile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  width: 100%; padding: 18px 14px 16px 18px;
  border: 1px solid #333; border-radius: 16px; background: #111; color: var(--tinta);
  text-align: left; cursor: pointer;
  transition: transform .15s var(--ease), border-color .2s;
}
.tile:active { transform: scale(.98); }
.tile:hover { border-color: var(--rosa); }
.tile__title {
  grid-column: 1; font: 400 clamp(1.8rem, 8.2vw, 3.2rem)/1.05 var(--f-logo); color: var(--rosa);
  text-shadow: .04em .04em 0 var(--rojo);
}
.tile__meta { grid-column: 1; font: 400 .92rem/1.3 var(--f-type); color: #cfcfcf; }
.tile__pics { grid-column: 2; grid-row: 1 / span 2; display: flex; padding-right: 4px; }
.tile__pic {
  width: 50px; aspect-ratio: 4 / 5; flex: none; overflow: hidden;
  margin-left: -22px; border: 2px solid #111; border-radius: 6px; background: #fff;
  transform: rotate(-4deg);
}
.tile__pic:first-child { margin-left: 0; }
.tile__pic:nth-child(2) { transform: rotate(3deg) translateY(4px); }
.tile__pic img, .tile__pic .tee { width: 100%; height: 100%; object-fit: cover; }
.loading { padding: 40px var(--pad); color: var(--gris); font-family: var(--f-type); }

/* ---------- Grupos (rock nacional, internacional, pop) ---------- */
.grupo { padding: 48px var(--pad-r) 18px var(--pad); background: #000; border-top: 1px solid #2c2c2c; }
.grupo__title {
  font: 400 clamp(2.8rem, 13vw, 5.5rem)/1 var(--f-logo); color: var(--rosa);
  text-shadow: .04em .04em 0 var(--rojo); transform: rotate(-3deg); transform-origin: left center;
}

/* ---------- Tandas (paneles) ---------- */
.tanda {
  --p-bg: #000; --p-ink: var(--tinta); --p-title: var(--rojo); --p-tile: #161616; --p-muted: var(--gris);
  background: var(--p-bg); color: var(--p-ink);
  padding: 34px var(--pad-r) 40px var(--pad);
  scroll-margin-top: 104px;   /* lo que ocupa la barra de tandas y artistas */
}
.tanda--negro  { --p-bg: #000;      --p-ink: var(--tinta); --p-title: var(--rojo);  --p-tile: #161616; --p-muted: #A8A8A8; }
.tanda--chicle { --p-bg: var(--chicle); --p-ink: #000; --p-title: #000;        --p-tile: #F7C1DA; --p-muted: #6B4A5A; }
.tanda--blanco { --p-bg: var(--papel);  --p-ink: #000; --p-title: #8E0A1B;     --p-tile: #E9E3E6; --p-muted: #5E5E5E; }
.tanda--vino   { --p-bg: var(--vino);   --p-ink: var(--chicle); --p-title: var(--rosa); --p-tile: #5E0D18; --p-muted: #E6B3C9; }
.tanda--carbon { --p-bg: var(--carbon); --p-ink: var(--tinta); --p-title: var(--rojo); --p-tile: #272727; --p-muted: #ABABAB; }

.tanda__title {
  font: 700 clamp(1.85rem, 7.5vw, 3.25rem)/1.02 var(--f-type);
  color: var(--p-title); letter-spacing: -.01em;
  max-width: 18ch; text-wrap: balance;
}
.tanda__sub { margin-top: 10px; color: var(--p-muted); font-size: .95rem; max-width: 46ch; }

.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px; margin-top: 24px;
}

.card {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  padding: 0; border: 0; background: none; color: inherit; text-align: left;
  -webkit-user-select: none; user-select: none;
}
.card__img {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  background: var(--p-tile); margin-bottom: 8px;
  transition: transform .2s var(--ease);
}
.card:active .card__img { transform: scale(.975); }
.card__img .tee { width: 82%; height: auto; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
/* Frente y espalda: se desliza al pasar el mouse */
.card__slides { position: absolute; inset: 0; display: flex; transition: transform .9s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.card__slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.card__name { font: 700 1.0625rem/1.2 var(--f-type); }
.card__price { font-size: .9rem; color: var(--p-muted); }
.card__dots { display: flex; gap: 5px; margin-top: 5px; }
.dot, .sw {
  position: relative; flex: none; border-radius: 50%;
  background: var(--tela, #fff); border: 1.5px solid var(--p-muted, #999);
}
.dot { width: 13px; height: 13px; }
.dot.has-estampa::after, .sw.has-estampa::after {
  content: ''; position: absolute; inset: 28%; border-radius: 50%; background: var(--estampa);
}
.card__img--photo { background: #fff; }
.sticker {
  position: absolute; top: 10px; left: 8px;
  background: var(--verde); color: #000;
  font: 700 .75rem/1 var(--f-type); padding: 6px 8px; border-radius: 3px;
  transform: rotate(-5deg);
}

/* ---------- Remera dibujada (mockup) ---------- */
.tee__body--dark  { fill: #121212; stroke: rgba(255,255,255,.22); stroke-width: 1.4; }
.tee__body--light { fill: #FAFAFA; stroke: rgba(0,0,0,.2); stroke-width: 1.4; }
.tee__neck { stroke-width: 1.4; }
.tee__body--dark ~ .tee__neck { stroke: rgba(255,255,255,.3); }
.tee__body--light ~ .tee__neck { stroke: rgba(0,0,0,.22); }
.tee__star--dark { fill: var(--rosa); }
.tee__star--light { fill: var(--rojo); }
.tee__txt { font: 700 15px var(--f-type); }
.tee__txt--dark { fill: var(--tinta); }
.tee__txt--light { fill: #000; }

/* ---------- Personalizadas ---------- */
.custom {
  padding: 52px var(--pad-r) 56px var(--pad);
  background: var(--vino); color: var(--chicle);
}
.custom__title {
  font: 400 clamp(3rem, 14vw, 5.5rem)/1 var(--f-logo); color: var(--rosa);
  text-shadow: .04em .04em 0 var(--rojo); transform: rotate(-3deg); transform-origin: left center;
}
.custom__lead { margin-top: 18px; font-size: 1.125rem; line-height: 1.45; max-width: 40ch; }
.custom__steps { margin: 24px 0 28px; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 12px; max-width: 46ch; }
.custom__steps li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr; align-items: baseline; }
.custom__steps li::before { content: counter(c); font: 700 1.5rem/1 var(--f-type); color: var(--rosa); }
.custom__pick { margin: 0 0 28px; max-width: 460px; }
.custom__models { display: flex; flex-wrap: wrap; gap: 8px; }
.custom__models .chip { border-color: rgba(252, 214, 233, .45); color: var(--chicle); }
.custom__models .chip.is-active { background: var(--rosa); border-color: var(--rosa); color: #000; }
.custom__price { margin: 14px 0 0; font-size: 1.05rem; }
.custom__price:empty { display: none; }
.custom__price b { font: 700 1.2rem var(--f-type); color: var(--rosa); white-space: nowrap; }
.custom__subtitle { font: 700 1.15rem/1.2 var(--f-type); color: var(--rosa); margin: 22px 0 10px; }
.custom__subtitle:first-child { margin-top: 0; }
.custom__subtitle a { margin-left: 10px; font: 400 .9rem var(--f-ui); color: var(--chicle); text-decoration: underline; text-underline-offset: 3px; }
.custom__models .chip .dot { margin-right: 8px; border-color: rgba(252, 214, 233, .6); }
.custom__empty { margin: 0; font-size: .95rem; opacity: .75; }
.custom__total { display: block; margin-top: 4px; }
.custom .qty { background: none; border-color: rgba(252, 214, 233, .45); color: var(--chicle); }
.custom .qty button { color: inherit; }
.custom__err { margin: 12px 0 0; font-weight: 700; color: var(--rosa); }
.custom__err:empty { display: none; }
.btn--wa { background: var(--verde); color: #000; min-height: 54px; padding: 0 28px; }
.btn--wa:hover { background: #5cf086; }

.tile--custom { text-decoration: none; border-color: var(--vino); background: linear-gradient(135deg, #1a0408, #111 60%); }
.tile__star { width: 64px; height: 64px; fill: var(--verde); transform: rotate(12deg); }

/* ---------- Secciones de texto ---------- */
.section-title { font: 700 clamp(1.75rem, 6.5vw, 2.75rem)/1.05 var(--f-type); max-width: 20ch; text-wrap: balance; }
.section-lead { margin-top: 10px; color: #cfcfcf; max-width: 48ch; }
.section-lead a { color: var(--rosa); text-underline-offset: 3px; }

.models { padding: 52px var(--pad-r) 48px var(--pad); border-top: 1px solid #2c2c2c; }
.models__list { display: grid; gap: 26px; margin-top: 28px; }
.model { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.model .tee { width: 96px; height: auto; }
.model .tee__body--light { fill: none; stroke: var(--rosa); stroke-width: 2.4; }
.model .tee__neck { stroke: var(--rosa) !important; stroke-width: 2.4; }
.model .tee__print { display: none; }
.model__name { font: 700 1.375rem/1.1 var(--f-type); }
.model__desc { color: #cfcfcf; margin-top: 4px; }
.model__meta { margin-top: 6px; font: 400 .95rem var(--f-type); color: var(--rosa); }

.steps { padding: 52px var(--pad-r) 52px var(--pad); background: var(--chicle); color: #000; }
.steps__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: paso; }
.steps__list li { counter-increment: paso; display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; }
.steps__list li::before {
  content: counter(paso); grid-row: span 2;
  font: 700 2.6rem/1 var(--f-type); color: var(--rojo);
}
.steps__list h3 { font: 700 1.2rem/1.2 var(--f-type); margin-top: 4px; }
.steps__list p { margin-top: 3px; max-width: 46ch; }
.safe {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start;
  margin-top: 34px; padding: 16px; border: 1.5px solid #000; border-radius: 10px; background: #fff;
}
.safe svg { width: 26px; height: 26px; color: #000; }

.faq { padding: 52px var(--pad-r) 40px var(--pad); }
.faq .section-title { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid #2f2f2f; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 12px 0;
  font: 700 1.0625rem/1.3 var(--f-type);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.6rem/1 var(--f-type); color: var(--rosa); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: #d6d6d6; max-width: 60ch; }
.faq details a { color: var(--rosa); }

/* ---------- Footer ---------- */
.footer {
  padding: 44px var(--pad-r) calc(36px + env(safe-area-inset-bottom)) var(--pad);
  border-top: 1px solid #2c2c2c;
}
.footer__mark { width: 190px; }
.footer__tag { margin-top: 10px; color: #cfcfcf; }
.footer__links { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.footer__links a { text-underline-offset: 3px; }
.footer__contact { overflow-wrap: anywhere; }
.footer__label { font-weight: 700; color: var(--rosa); margin-right: 4px; }
.footer__small { color: var(--gris); font-size: .85rem; }

/* ---------- Barra fija de carrito (celu) ---------- */
.bagbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 18;
  padding: 10px var(--pad-r) calc(10px + env(safe-area-inset-bottom)) var(--pad);
  background: linear-gradient(to top, #000 70%, rgba(0,0,0,0));
  transform: translateY(0); transition: transform .3s var(--ease);
}
.bagbar[hidden] { display: block; transform: translateY(110%); visibility: hidden; }
.bagbar__btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 54px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--rosa); color: #000; font: 700 1rem var(--f-ui);
}
.bagbar__btn strong { font-family: var(--f-type); font-size: 1.05rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: var(--papel); color: #000; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s;
}
.toast.is-in { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast button { white-space: nowrap; flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: #000; color: #fff; font-weight: 700; }

/* ==========================================================================
   Hojas (dialogs): hoja inferior en celu, ventana o cajón en compu
   ========================================================================== */
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0; padding: 0; border: 0;
  width: 100%; max-width: 100%; height: auto; max-height: 92vh; max-height: 92dvh;
  background: var(--papel); color: #000;
  border-radius: 20px 20px 0 0; overflow: hidden;
  transform: translateY(100%);
  transition: transform .34s var(--ease);
}
.sheet[open] { display: flex; }
.sheet.is-in { transform: none; }
.sheet.is-dragging { transition: none; }
.sheet::backdrop { background: rgba(0,0,0,.6); opacity: 0; transition: opacity .3s; }
.sheet.is-in::backdrop { opacity: 1; }
.sheet--side { height: 92vh; height: 92dvh; }

.sheet__inner { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: inherit; }
.sheet__head {
  position: relative; flex: none;
  display: flex; align-items: center; gap: 4px;
  padding: 16px 8px 6px 18px; touch-action: none;
}
.sheet__handle {
  position: absolute; top: 7px; left: 50%; width: 40px; height: 5px; margin-left: -20px;
  border-radius: 3px; background: rgba(0,0,0,.2);
}
.sheet__head .iconbtn[data-cart-back] { margin-left: -10px; }
.sheet__title { flex: 1; font: 700 1.125rem/1.2 var(--f-type); outline: none; }
.sheet__body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 18px 22px;
}
.sheet__foot {
  flex: none; display: grid; gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0,0,0,.1); background: var(--papel);
}
.sheet__foot[hidden] { display: none; }
.sheet__sum { display: flex; justify-content: space-between; font: 700 1.05rem var(--f-type); }
.sheet__sum:empty { display: none; }
.sheet__secure { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: #444; }
.sheet__secure svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.sheet__secure[hidden] { display: none; }

/* ---------- Ficha de producto ---------- */
.product__visual {
  display: grid; place-items: center;
  aspect-ratio: 1 / 1; max-height: 34vh; max-height: 34dvh; width: 100%;
  border-radius: 12px; overflow: hidden; margin-bottom: 16px;
  background: var(--chicle);
}
.product__visual { position: relative; }
.product__visual .tee { width: auto; height: 86%; transition: opacity .2s; }
.product__detalle { margin-top: 8px; font-size: .95rem; color: #333; }
.product__thumbs {
  position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px;
}
.thumb {
  width: 48px; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; border-radius: 6px;
  overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.thumb[aria-pressed="true"] { border-color: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__photo-note {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 7px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .92); color: #000; font-size: .8rem; line-height: 1.3;
}
.product__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product__thumbs img { position: static; }
.product__visual:has(img) { background: #fff; }
.product__tanda { font-size: .9rem; color: #555; }
.product__name { font: 700 1.75rem/1.1 var(--f-type); margin-top: 2px; }
.product__price { font: 700 1.375rem var(--f-type); color: var(--rojo); margin-top: 6px; }
.product fieldset { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.product legend { padding: 0; margin-bottom: 8px; font-weight: 700; display: flex; justify-content: space-between; width: 100%; }
.product legend a, .product legend button {
  font-weight: 500; font-size: .9rem; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px;
}

.opts { display: grid; gap: 8px; }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.model-desc { margin-top: 8px; font-size: .9rem; color: #444; }
.model-desc:empty { display: none; }
.opts--sizes { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.opts--colors { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; padding: 8px 6px; border: 1.5px solid #CFC8CC; border-radius: 10px;
  background: #fff; text-align: center; line-height: 1.15;
  transition: background-color .15s, border-color .15s, color .15s;
}
.opt small { font-family: var(--f-type); font-size: .82rem; opacity: .75; }
.opt input:checked + span { background: #000; border-color: #000; color: #fff; }
.opt input:checked + span small { opacity: .9; }
.opt input:focus-visible + span { outline: 3px solid var(--rosa); outline-offset: 2px; }
.opt--color > span { flex-direction: row; gap: 10px; justify-content: flex-start; padding-left: 12px; }
.opt--color .sw { width: 22px; height: 22px; border-color: #999; }
.opt--color input:checked + span .sw { border-color: #fff; box-shadow: 0 0 0 2px #000, 0 0 0 3px #fff; }
.opts--colors { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.opt--color > span { text-align: left; line-height: 1.2; }
.opt--size > span { font: 700 1rem var(--f-type); min-height: 46px; }
.has-error .opt > span { border-color: var(--error); }

.qty { display: inline-flex; align-items: center; border: 1.5px solid #CFC8CC; border-radius: 999px; background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font: 700 1.25rem var(--f-ui); border-radius: 50%; }
.qty button:disabled { opacity: .3; }
.qty output { min-width: 28px; text-align: center; font: 700 1.05rem var(--f-type); }
.qty--sm button { width: 36px; height: 36px; font-size: 1.1rem; }

.note { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--chicle); font-size: .92rem; }
.fs-err { color: var(--error); font-size: .9rem; margin-top: 6px; }
.fs-err:empty { display: none; }

/* ---------- Carrito ---------- */
.cart { list-style: none; margin: 0; padding: 0; }
.cart li {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.1);
}
.cart__thumb { width: 72px; aspect-ratio: 4 / 5; border-radius: 6px; background: var(--chicle); display: grid; place-items: center; overflow: hidden; }
.cart__thumb .tee { width: 86%; height: auto; }
.cart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart__name { font: 700 1rem/1.2 var(--f-type); }
.cart__detail { font-size: .88rem; color: #555; margin-top: 2px; }
.cart__row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cart__remove { border: 0; background: none; padding: 6px 2px; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; color: #555; }
.cart__price { font: 700 1rem var(--f-type); white-space: nowrap; }
.empty { display: grid; justify-items: center; gap: 16px; padding: 48px 0; text-align: center; }
.empty p { font: 700 1.125rem var(--f-type); }

/* ---------- Formularios ---------- */
.checkout fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.checkout legend { font: 700 1.125rem var(--f-type); padding: 0; margin: 6px 0 10px; }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font-weight: 500; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #CFC8CC; border-radius: 10px; background: #fff;
  font-size: 1rem; /* 16px: evita el zoom de iPhone */
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 36px;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(255,122,192,.55);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field__err { color: var(--error); font-size: .88rem; }
.field__err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.field-row:has(.field--cp[hidden]) { grid-template-columns: 1fr; }
.field--check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 10px; margin-top: 8px; }
.field--check input {
  width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; border-radius: 5px;
  -webkit-appearance: auto; appearance: auto; accent-color: #000;
}
.field--check label { font-size: .92rem; }
.field--check .field__err { grid-column: 2; }
.form-err { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: #FFE3E8; color: var(--error); font-weight: 500; }
.form-err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.addr[hidden] { display: none; }

.ship { display: grid; gap: 8px; margin-bottom: 14px; }
.paybox { display: grid; gap: 4px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1.5px solid #000; }
.paybox span { font-size: .85rem; opacity: .75; }
.ship .opt > span { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; gap: 12px; padding: 12px 14px; }
.ship .opt b { display: block; font-weight: 700; }
.ship .opt em { display: block; font-style: normal; font-size: .85rem; opacity: .75; }
.ship .opt strong { font-family: var(--f-type); white-space: nowrap; }
.quote { margin: -4px 0 16px; padding: 14px 16px 4px; border-radius: 12px; background: #fff; border: 1.5px solid #000; }
.quote[hidden] { display: none; }
.quote__row { display: flex; gap: 8px; align-items: stretch; }
.quote__row input { flex: 1; min-width: 0; }
.quote__btn { min-height: 48px; padding: 0 22px; flex: none; }
.quote__res { margin: 8px 0 0; font-size: .92rem; }
.quote__res:empty { display: none; }
select:disabled { opacity: .7; }

.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 6px 0 14px; padding: 14px; border-radius: 10px; background: #fff; }
.totals dt, .totals dd { margin: 0; }
.totals dd { font-family: var(--f-type); text-align: right; }
.totals .is-total { font-weight: 700; font-size: 1.1rem; padding-top: 6px; border-top: 1px solid rgba(0,0,0,.12); }

/* ---------- Resultado ---------- */
.result__send { display: grid; gap: 10px; width: 100%; max-width: 360px; }
.result__send .btn[hidden] { display: none; }
.result { display: grid; justify-items: center; align-content: center; gap: 12px; padding: 40px 18px; text-align: center; }
.result__star { width: 64px; height: 64px; fill: var(--verde); }
.result.is-bad .result__star { fill: var(--rojo); }
.result__title { font: 700 1.6rem/1.15 var(--f-type); max-width: 18ch; }
.result p { max-width: 40ch; }
.result__order { font: 700 1.1rem var(--f-type); padding: 8px 14px; border: 1.5px dashed #000; border-radius: 8px; }
.result__order:empty { display: none; }
.bank {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; width: 100%; max-width: 360px;
  margin: 4px 0; padding: 14px 16px; border-radius: 12px; background: #fff; text-align: left;
}
.bank dt { margin: 0; color: #555; font-size: .9rem; }
.bank dd { margin: 0; font: 700 1rem var(--f-type); overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.bank--dark { background: #141414; max-width: 100%; }
.bank--dark dt { color: #bdbdbd; }
.bank--dark dd { color: var(--tinta); }

/* ---------- Talles ---------- */
.sizes p { color: #444; font-size: .95rem; }
.sizes h3 { font: 700 1.1rem var(--f-type); margin: 24px 0 4px; }
.sizes h3 small { font: 400 .95rem var(--f-ui); color: #555; }
.sizes__info { margin: 0; padding-left: 18px; color: #333; font-size: .95rem; display: grid; gap: 4px; }
.sizes__nota { font-size: .9rem; margin-bottom: 8px; }
.sizes table { width: 100%; border-collapse: collapse; font-family: var(--f-type); }
.sizes th, .sizes td { padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(0,0,0,.12); }
.sizes thead th { font-family: var(--f-ui); font-size: .85rem; color: #555; }

/* ---------- Páginas secundarias (gracias, legales) ---------- */
.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page main { flex: 1; }
.footer--slim { display: flex; flex-wrap: wrap; gap: 14px 24px; padding-top: 24px; font-size: .92rem; }
.footer--slim a { text-underline-offset: 3px; }

.status { display: grid; justify-items: start; align-content: start; gap: 14px; padding: 48px var(--pad-r) 40px var(--pad); max-width: 640px; }
.status__star { width: 72px; height: 72px; fill: var(--gris); }
.status[data-status="ok"] .status__star { fill: var(--verde); }
.status[data-status="wait"] .status__star { fill: var(--rosa); animation: spin 3s linear infinite; }
.status[data-status="bad"] .status__star { fill: var(--rojo); }
@keyframes spin { to { transform: rotate(360deg); } }
.status__title { font: 700 clamp(1.9rem, 7vw, 2.8rem)/1.08 var(--f-type); color: var(--rosa); max-width: 18ch; }
.status__text { font-size: 1.08rem; max-width: 46ch; }
.status__order { font: 700 1.15rem var(--f-type); padding: 8px 14px; border: 1.5px dashed var(--tinta); border-radius: 8px; }
.status__detail { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; width: 100%; margin: 6px 0; padding: 16px; border-radius: 12px; background: #141414; }
.status__detail dt { font-family: var(--f-type); }
.status__detail dd { margin: 0; text-align: right; color: #cfcfcf; font-size: .92rem; }
.status__actions { margin-top: 10px; }
.status__help { color: var(--gris); font-size: .92rem; margin-top: 18px; }
.status__help a { color: var(--rosa); }

.legal { padding: 40px var(--pad-r) 48px var(--pad); max-width: 760px; }
.legal h1 { font: 700 clamp(1.9rem, 7vw, 2.8rem)/1.08 var(--f-type); color: var(--rosa); }
.legal__updated { color: var(--gris); margin-top: 8px; font-size: .92rem; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.legal__toc a { padding: 8px 14px; border: 1px solid #4a4a4a; border-radius: 999px; text-decoration: none; font: 700 .9rem var(--f-type); }
.legal h2 { font: 700 1.35rem/1.2 var(--f-type); margin: 34px 0 10px; color: var(--tinta); scroll-margin-top: 80px; }
.legal p { color: #d6d6d6; max-width: 66ch; }
.legal p + p { margin-top: 10px; }
.legal a { color: var(--rosa); }
.legal__small { font-size: .85rem; color: var(--gris) !important; }

/* ==========================================================================
   Pantallas más grandes
   ========================================================================== */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; }
  .models__list { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .model { grid-template-columns: 1fr; }
  .model .tee { width: 120px; }
  .steps__list { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
  .hero { padding-top: 64px; padding-bottom: 72px; }
}

@media (min-width: 900px) {
  :root { --pad: max(40px, calc((100vw - 1180px) / 2)); --pad-r: max(40px, calc((100vw - 1180px) / 2)); --header-h: 64px; }
  .header__nav { display: flex; }
  .tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .models__list { grid-template-columns: repeat(4, 1fr); }
  .tile { padding: 26px 22px 24px 26px; }
  .tile__pic { width: 76px; }

  /* Hero en dos columnas: logo y textos a la izquierda, fotos pasando a la derecha */
  .hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: 1fr repeat(4, auto) 1fr; column-gap: 56px; }
  .hero > .hero__mark { grid-column: 1; grid-row: 2; width: min(100%, 600px); }
  .header__logo { width: 96px; }
  .hero > .hero__kicker { grid-column: 1; grid-row: 3; }
  .hero > .hero__lead { grid-column: 1; grid-row: 4; }
  .hero > .hero__actions { grid-column: 1; grid-row: 5; }
  .reel { grid-column: 2; grid-row: 1 / -1; margin: 0; }
  .reel__window {
    height: min(640px, 78vh); padding: 0 18px;
    -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  }
  .reel__track { flex-direction: column; width: auto; animation-name: reel-y; }
  .reel__item { width: 100%; max-width: 330px; margin: 0 auto 22px; }
  .reel__item:nth-child(even) { transform: rotate(1.6deg) translateX(14px); }
  .reel__credit { padding: 10px 18px 0; text-align: right; }
  .hero__star--a { right: auto; left: 40%; top: 34px; }
  .hero__star--b { right: auto; left: 47%; top: 58%; }
  .hero__star--c { left: 30%; top: 10px; }
  .bagbtn { margin-left: 8px; }
  .bagbar { display: none !important; }
  body.has-bagbar { padding-bottom: 0; }
  .toast { bottom: 28px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card:hover .card__img { transform: translateY(-3px); }
  .steps__list { grid-template-columns: repeat(4, 1fr); }
  .faq details { max-width: 760px; }

  .sheet {
    inset: 0; margin: auto; width: min(560px, 92vw); max-height: 88vh; height: fit-content;
    border-radius: 16px; transform: translateY(14px) scale(.985); opacity: 0;
    transition: transform .28s var(--ease), opacity .2s;
  }
  .sheet.is-in { transform: none; opacity: 1; }
  .sheet__handle { display: none; }
  .sheet__head { padding-top: 12px; }

  .sheet--product { width: min(980px, 94vw); }
  .sheet--product .product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0 32px; align-items: start; }
  .sheet--product .product__visual { position: sticky; top: 0; max-height: none; aspect-ratio: 4 / 5; margin: 0; }
  .sheet--product .sheet__foot { padding-left: calc(52.5% + 4px); }

  .sheet--side {
    inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw);
    height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0;
    transform: translateX(100%); opacity: 1;
  }
  .sheet--side.is-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker__track { animation: none; }
  .reel__track { animation: none; }
  .reel__window { overflow-x: auto; }
  .reel__item[aria-hidden="true"] { display: none; }
}
