/* ==========================================================================
   STAMP SHOP — Creative Future · Estilos
   Paleta: azul tinta (estructura), marfil (fondo), coral / mango / turquesa (acentos)
   ========================================================================== */
:root {
  --ink: #172A3A;
  --ink-2: #22394d;
  --coral: #F05A4F;
  --coral-d: #d8463c;
  --mango: #FFC857;
  --ivory: #FFF8ED;
  --ivory-2: #f6ecdc;
  --turq: #45B8AC;
  --char: #252525;
  --white: #ffffff;
  --muted: #55606b;
  --line: rgba(23, 42, 58, .14);

  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 0 rgba(23, 42, 58, .06), 0 14px 34px -18px rgba(23, 42, 58, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.02em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em;
  border: 2px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease), color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(23, 42, 58, .6); }
.btn:active { transform: translateY(0); }
.btn--coral { --bg: var(--coral); --fg: var(--white); }
.btn--coral:hover { background: var(--coral-d); border-color: var(--coral-d); }
.btn--ink { --bg: var(--ink); --fg: var(--ivory); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--line { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: .5em 1.05em; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: .9em 1.8em; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; }
.link-btn { background: none; border: 0; padding: 0; color: var(--coral-d); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* ---------- Aviso de borrador ---------- */
.draft-bar { background: var(--mango); color: var(--ink); font-size: .9rem; padding: 8px var(--gutter); text-align: center; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 248, 237, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav__logo img { width: 168px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .98rem; transition: background-color .2s; }
.nav__links a:hover, .nav__links a.is-active { background: var(--ivory-2); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px 6px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--ivory); font-weight: 700; cursor: pointer; }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.cart-btn__count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--mango); color: var(--ink); display: grid; place-items: center; font-size: .85rem; transition: transform .3s var(--ease); }
.cart-btn__count.bump { transform: scale(1.3); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Tipografía común ---------- */
.eyebrow { font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-d); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--mango); }
.h2 { font-size: clamp(2.1rem, 5.2vw, 4.2rem); line-height: .98; font-weight: 800; max-width: 18ch; }
.h2--light { color: var(--ivory); }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .04em; height: .38em; z-index: -1; border-radius: .2em; transform: skewX(-8deg) scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .25s; }
.is-in .hl::after, .hl.is-in::after { transform: skewX(-8deg) scaleX(1); }
.hl--mango::after { background: var(--mango); }
.hl--turq::after { background: rgba(69, 184, 172, .55); }
.hl--coral::after { background: rgba(240, 90, 79, .35); }
.h2--light .hl--mango { color: var(--mango); }
.h2--light .hl--mango::after { background: rgba(255, 200, 87, .22); }
.section__lead { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin-top: 16px; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Secciones ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter); }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__head--split .section__lead { margin-top: 0; }

/* ---------- Portada ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; min-height: calc(100svh - 72px); }
.hero__title { font-size: clamp(3.3rem, 9vw, 7.6rem); line-height: .9; font-weight: 800; letter-spacing: -.045em; margin-bottom: 26px; }
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--coral); }
.mark { font-style: normal; position: relative; display: inline-block; z-index: 0; }
.mark::after { content: ""; position: absolute; left: -.05em; right: -.02em; bottom: .06em; height: .3em; background: var(--mango); z-index: -1; border-radius: .15em; transform: rotate(-1.5deg); }
.hero__lead { font-size: clamp(1.12rem, 1.8vw, 1.35rem); max-width: 30ch; color: var(--ink-2); margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags li { padding: 6px 14px; border: 1.5px dashed rgba(23, 42, 58, .35); border-radius: 999px; font-size: .9rem; font-weight: 600; }

.hero__stage { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 600px; justify-self: center; }
.hero__canvas { position: absolute; inset: 6% 8% 4% 8%; background: var(--ink); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow); }
.hero__canvas::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 248, 237, .09) 1.2px, transparent 1.3px); background-size: 18px 18px; }
.hero__tee { position: relative; width: 82%; height: auto; }
.hero__tee-body { fill: var(--ivory); stroke: rgba(0, 0, 0, .12); stroke-width: 2; transition: fill .6s var(--ease); }
.hero__caption { position: relative; color: var(--ivory); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-top: 4px; }
.hero__caption span { color: var(--mango); font-weight: 700; }
#heroPrint text { transition: opacity .35s; }

.float-card { position: absolute; margin: 0; width: 34%; background: var(--white); padding: 8px 8px 0; border-radius: 14px; box-shadow: var(--shadow); transition: transform .6s var(--ease); }
.float-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; background: var(--white); }
.float-card--b img { object-fit: contain; }
.float-card figcaption { font-family: "Permanent Marker", var(--display); font-size: 1rem; text-align: center; padding: 6px 0 8px; color: var(--ink); }
.float-card--a { top: -1%; left: -4%; transform: rotate(-8deg); }
.float-card--b { bottom: 4%; right: -5%; transform: rotate(7deg); width: 30%; }
.float-card--c { bottom: -3%; left: 2%; transform: rotate(4deg); width: 27%; }
.float-card--b figcaption { color: var(--coral-d); }
.sticker { position: absolute; display: grid; place-items: center; }
.sticker--star { top: 2%; right: 6%; width: 64px; height: 64px; background: var(--mango); border-radius: 50%; font-size: 1.8rem; color: var(--ink); animation: spin 14s linear infinite; }
.sticker--dot { top: 44%; left: 3%; width: 22px; height: 22px; border-radius: 50%; background: var(--turq); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--coral); color: var(--white); overflow: hidden; border-block: 2px solid var(--ink); transform: rotate(-1.2deg); margin: 0 -2vw; }
.marquee__track { display: flex; width: max-content; gap: 26px; padding: 14px 0; animation: marquee 34s linear infinite; font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2rem); text-transform: uppercase; letter-spacing: -.01em; }
.marquee__track i { font-style: normal; color: var(--mango); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); counter-reset: s; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 24px; position: relative; transition: transform .35s var(--ease), box-shadow .35s; }
.steps li:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
.steps b { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--coral); display: block; margin-bottom: 14px; }
.steps li:nth-child(2) b { color: var(--turq); }
.steps li:nth-child(3) b { color: #d9a12c; }
.steps li:nth-child(4) b { color: var(--ink); }
.steps h3 { font-size: 1.22rem; line-height: 1.15; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .97rem; }

/* ---------- Estudio ---------- */
.studio { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 3vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.6vw, 32px); box-shadow: var(--shadow); }
.studio__preview { background: var(--ivory-2); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; align-self: start; position: sticky; top: 96px; }
.studio__preview canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; background: var(--ivory-2); }
.studio__note { font-size: .82rem; color: var(--muted); text-align: center; padding: 10px 6px 2px; }
.studio__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; font-weight: 800; }
.studio__sub { color: var(--muted); margin: 6px 0 18px; }
.studio__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.studio__hint { font-size: .82rem; color: var(--muted); margin-top: 12px; }

.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.field legend, .field label, .field .label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type="text"], input[type="search"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(69, 184, 172, .25); }
input[type="range"] { width: 100%; accent-color: var(--coral); min-height: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: .93rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip[aria-checked="true"], .chip[aria-selected="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip small { opacity: .6; font-weight: 500; margin-left: 4px; }
.chip--wa { border-style: dashed; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(23, 42, 58, .2); cursor: pointer; position: relative; transition: transform .2s; }
.swatches--sm .swatch { width: 30px; height: 30px; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ivory), 0 0 0 5px var(--ink); }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.field .upload label.btn { display: inline-flex; margin: 0; font-size: .92rem; }
.upload small { flex-basis: 100%; color: var(--muted); font-size: .82rem; }

.cta-band { margin-top: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r); background: var(--mango); }
.cta-band p { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.6rem); letter-spacing: -.01em; }

/* ---------- Catálogo ---------- */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.search { position: relative; max-width: 520px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { padding-left: 46px; min-height: 52px; border-radius: 999px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.chips--scroll .chip { scroll-snap-align: start; }
.results { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; animation: cardIn .5s var(--ease) both; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card__media { position: relative; background: var(--white); aspect-ratio: 1; cursor: pointer; border: 0; padding: 0; display: block; width: 100%; overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__frame { position: absolute; inset: 14%; border: 2px dashed var(--coral); border-radius: 12px; opacity: 0; transition: opacity .3s, inset .4s var(--ease); pointer-events: none; display: grid; place-items: end center; }
.card__frame span { transform: translateY(50%); background: var(--coral); color: var(--white); font-family: "Permanent Marker", var(--display); font-size: .85rem; padding: 2px 10px; border-radius: 999px; }
.card:hover .card__frame, .card__media:focus-visible .card__frame { opacity: 1; inset: 10%; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--line); }
.card__cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--turq); }
.card__title { font-family: var(--display); font-size: 1.12rem; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.card__code { font-size: .84rem; color: var(--muted); }
.card__idea { font-size: .88rem; color: var(--ink-2); background: var(--ivory); border-radius: 10px; padding: 8px 10px; margin-top: 4px; }
.card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.card__actions .btn { flex: 1; }
.grid-more { display: flex; justify-content: center; margin-top: 28px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); }

.more-cats { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 40px; align-items: center; padding: clamp(20px, 3vw, 32px); border: 2px dashed rgba(23, 42, 58, .25); border-radius: var(--r-lg); }
.more-cats h3 { font-size: 1.5rem; margin-bottom: 6px; }
.more-cats p { color: var(--muted); }

/* ---------- Ideas (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.idea { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; text-decoration: none; color: var(--ink); isolation: isolate; transition: transform .4s var(--ease); min-height: 240px; }
.idea:hover { transform: translateY(-4px); }
.idea h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; font-weight: 800; }
.idea p { font-size: .97rem; max-width: 30ch; }
.idea__go { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.idea__go::after { content: "→"; transition: transform .3s var(--ease); }
.idea:hover .idea__go::after { transform: translateX(4px); }
.idea__imgs { display: flex; gap: 10px; align-items: flex-end; }
.idea__imgs img { width: 34%; max-width: 150px; aspect-ratio: 1; object-fit: contain; background: var(--white); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.idea__imgs img:nth-child(1) { transform: rotate(-5deg); }
.idea__imgs img:nth-child(2) { transform: rotate(4deg) translateY(-8px); }
.idea:hover .idea__imgs img:nth-child(1) { transform: rotate(-9deg) translateY(-4px); }
.idea:hover .idea__imgs img:nth-child(2) { transform: rotate(8deg) translateY(-14px); }
.idea__tag { position: absolute; top: 18px; right: 18px; font-family: "Permanent Marker", var(--display); font-size: .95rem; padding: 4px 12px; border-radius: 999px; background: var(--white); transform: rotate(4deg); }
.idea--1 { grid-column: span 3; grid-row: span 2; background: var(--mango); }
.idea--1 .idea__imgs img { width: 44%; max-width: 220px; }
.idea--2 { grid-column: span 3; background: var(--turq); }
.idea--3 { grid-column: span 3; background: #fbd9d4; }
.idea--4 { grid-column: span 2; background: var(--ivory-2); }
.idea--5 { grid-column: span 4; background: var(--ink); color: var(--ivory); }
.idea--5 .idea__tag { background: var(--coral); color: var(--white); }
.idea--row { flex-direction: row; align-items: flex-end; }
.idea--row > div:first-child { display: flex; flex-direction: column; gap: 12px; justify-content: space-between; align-self: stretch; }

/* ---------- Cómo pedir ---------- */
.pedir { max-width: none; background: var(--ink); color: var(--ivory); border-radius: var(--r-lg); margin: 0 clamp(8px, 1.5vw, 20px); }
.pedir__inner { max-width: var(--max); margin: 0 auto; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; top: 27px; left: 28px; right: 12%; border-top: 2px dashed rgba(255, 248, 237, .3); }
.flow li { position: relative; padding-right: 24px; }
.flow span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mango); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-bottom: 18px; position: relative; }
.flow li:nth-child(2) span { background: var(--turq); }
.flow li:nth-child(3) span { background: var(--coral); color: var(--white); }
.flow li:nth-child(4) span { background: var(--ivory); }
.flow h3 { font-size: 1.3rem; margin-bottom: 8px; }
.flow p { color: rgba(255, 248, 237, .75); font-size: .98rem; max-width: 28ch; }
.pedir__info { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pedir__info li { border: 1px solid rgba(255, 248, 237, .2); border-radius: var(--r); padding: 16px 18px; }
.pedir__info b { display: block; color: var(--mango); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Contacto ---------- */
.contacto__card { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; padding: clamp(40px, 7vw, 88px) clamp(20px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.contacto__card .h2 { max-width: 16ch; }
.contacto__iso { position: absolute; width: 220px; right: -40px; top: -30px; opacity: .07; transform: rotate(12deg); pointer-events: none; }
.contacto__ctas { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 30px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.socials a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; }
.socials a:hover { border-color: var(--ink); }
.contacto__data { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; }
.contacto__data div { text-align: center; }
.contacto__data dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contacto__data dd { margin: 2px 0 0; font-weight: 600; }

/* ---------- Pie ---------- */
.footer { background: var(--char); color: rgba(255, 248, 237, .8); text-align: center; padding: 48px var(--gutter) 40px; margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .92rem; }
.footer img { width: 200px; margin-bottom: 8px; }
.footer__fine { font-size: .8rem; opacity: .7; max-width: 60ch; }

/* ---------- Modal ficha ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 200; }
.modal__backdrop, .drawer__backdrop { position: absolute; inset: 0; background: rgba(23, 42, 58, .55); backdrop-filter: blur(3px); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.modal__box { position: relative; margin: 4vh auto; width: min(960px, calc(100% - 24px)); max-height: 92vh; overflow: auto; background: var(--ivory); border-radius: var(--r-lg); animation: pop .35s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.pm { display: grid; grid-template-columns: 1fr 1fr; }
.pm__media { background: var(--white); display: grid; place-items: center; padding: 24px; min-height: 320px; }
.pm__media img { max-height: 70vh; object-fit: contain; }
.pm__body { padding: 32px 28px 28px; }
.pm__cat { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--turq); margin-bottom: 6px; }
.pm__title { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; font-weight: 800; padding-right: 40px; }
.pm__code { color: var(--muted); margin: 6px 0 14px; font-size: .92rem; }
.pm__specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0; font-size: .94rem; }
.pm__specs dt { font-weight: 700; }
.pm__specs dd { margin: 0; color: var(--ink-2); }
.pm__idea { background: var(--mango); border-radius: 14px; padding: 12px 14px; font-size: .95rem; margin: 14px 0; }
.pm__price { font-weight: 700; margin-bottom: 14px; }
.pm__form .field--row { grid-template-columns: 140px; }

/* ---------- Drawer pedido ---------- */
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--ivory); display: flex; flex-direction: column; animation: slide .35s var(--ease) both; }
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); position: relative; }
.drawer__head h2 { font-size: 1.6rem; }
.drawer__head .modal__close { position: static; box-shadow: none; background: var(--ivory-2); }
.drawer__body { overflow: auto; padding: 18px 20px 28px; flex: 1; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.cart-item img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: var(--ivory-2); }
.cart-item h4 { margin: 0; font-size: .98rem; line-height: 1.2; font-family: var(--display); }
.cart-item p { font-size: .82rem; color: var(--muted); }
.cart-item__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; font-weight: 700; }
.qty input { width: 52px; min-height: 36px; border: 0; text-align: center; padding: 0; background: transparent; box-shadow: none; }
.cart-item .link-btn { font-size: .85rem; }
.cart-empty { text-align: center; padding: 30px 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cart-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.cart-form h3 { font-size: 1.25rem; margin-bottom: 14px; }
.form-error { color: #b3261e; font-weight: 600; font-size: .92rem; margin-bottom: 10px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; background: var(--ink); color: var(--ivory); padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; animation: pop .3s var(--ease) both; }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Adaptable
   ========================================================================== */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .flow::before { display: none; }
}
@media (max-width: 960px) {
  .nav__links { position: fixed; top: 64px; left: 12px; right: 12px; flex-direction: column; gap: 2px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); transform-origin: top; transform: scaleY(.9); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; }
  .menu-btn { display: inline-block; }
  .nav__actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__stage { max-width: 520px; }
  .studio { grid-template-columns: 1fr; }
  .studio__preview { position: static; }
  .more-cats { grid-template-columns: 1fr; }
  .pm { grid-template-columns: 1fr; }
  .pm__media { min-height: 0; }
  .pm__media img { max-height: 46vh; }
  .bento { grid-template-columns: 1fr 1fr; }
  .idea--1, .idea--2, .idea--3, .idea--5 { grid-column: span 2; grid-row: auto; }
  .idea--4 { grid-column: span 2; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav__logo img { width: 128px; }
  .cart-btn span { display: none; }
  .cart-btn { padding: 6px; }
  .hero__title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .float-card { width: 30%; padding: 5px 5px 0; }
  .float-card--a { left: -2%; }
  .float-card--b { right: -2%; bottom: 26%; width: 26%; }
  .float-card--c { display: none; }
  .float-card figcaption { font-size: .72rem; padding: 4px 0 5px; }
  .sticker--star { width: 48px; height: 48px; font-size: 1.3rem; }
  .steps { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__body { padding: 12px; }
  .card__title { font-size: 1rem; }
  .card__idea { display: none; }
  .card__actions { flex-direction: column; }
  .card__actions .btn { min-height: 42px; font-size: .9rem; padding: .5em .8em; }
  .bento { grid-template-columns: 1fr; }
  .idea--1, .idea--2, .idea--3, .idea--4, .idea--5 { grid-column: auto; }
  .idea--row { flex-direction: column; align-items: stretch; }
  .cta-band { padding: 20px; }
  .cta-band .btn { width: 100%; }
  .studio__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
