/* =============================================================
   1. Tokens
   Paleta CMYK del logo: cian (hero), magenta (acento), amarillo (CTA), negro (tinta).
   ============================================================= */
:root {
  --paper: #fbf7ef;
  --paper-2: #f3ecdd;
  --paper-3: #e9dfca;
  --ink: #0d1b26;
  --ink-2: #2c3d4b;
  --ink-mute: #566775;
  --cyan: #29a3d0;
  --cyan-deep: #0b6f96;
  --magenta: #d400aa;
  --magenta-deep: #a3008a;
  --yellow: #ffdd15;
  --line: rgba(13, 27, 38, 0.16);

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

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --radius: 18px;
  --radius-lg: clamp(24px, 4vw, 44px);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1240px;
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.04; letter-spacing: -0.02em; }
ul { list-style: none; padding: 0; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--paper);
  border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Revelado al hacer scroll: solo si hay JS (sin JS todo se ve). */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 700 0.78rem/1 var(--sans); letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan-deep);
}
.eyebrow .icon { width: 1.1rem; height: 1.1rem; color: var(--magenta); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 0.9rem; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 40rem; }
.hl {
  background: linear-gradient(transparent 52%, var(--yellow) 52%, var(--yellow) 92%, transparent 92%);
  color: inherit; padding-inline: 0.06em;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 50px; padding: 0 1.45rem; border-radius: 999px;
  border: 2px solid var(--ink); font-weight: 700; font-size: 1rem; line-height: 1;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-wa { background: #17980e; color: #fff; }
.topbar .wa-ico { width: 1.15rem; height: 1.15rem; }
.wa-ico { width: 1.5rem; height: 1.5rem; flex: none; display: inline-block; vertical-align: middle; }
@media (hover: hover) {
  .btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--magenta); }
  .btn-ghost:hover { background: var(--paper); }
}
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: 0.92rem; }

/* Firma del sitio: desalineación de tinta CMYK al pasar el cursor, como una impresión mal registrada. */
.ink-card {
  position: relative; background: #fff;
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 0 0 0 var(--cyan), 0 0 0 0 var(--magenta);
  transition: box-shadow 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
@media (hover: hover) {
  .ink-card:hover { box-shadow: -8px 8px 0 0 var(--cyan), 8px -8px 0 0 var(--magenta); }
}
.ink-card:focus-within { box-shadow: -8px 8px 0 0 var(--cyan), 8px -8px 0 0 var(--magenta); }

/* Top bar + nav */
.topbar { background: var(--ink); color: var(--paper); font-size: 0.86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar .icon { width: 1rem; height: 1rem; color: var(--yellow); }
.topbar-city { display: none; align-items: center; gap: 0.45rem; opacity: 0.9; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid transparent; transition: border-color 0.3s; }
.nav.is-stuck { border-bottom-color: var(--ink); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--nav-h); }
.nav-logo img { height: 44px; width: auto; }
.nav-menu { display: none; }
.nav-menu a.nav-link { font-weight: 600; font-size: 0.97rem; padding: 0.4rem 0; position: relative; white-space: nowrap; }
.nav-menu a.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px; background: var(--magenta);
  transition: right 0.35s var(--ease-out);
}
.nav-menu a.nav-link:hover::after, .nav-menu a.nav-link[aria-current="page"]::after { right: 0; }
.nav-link-cat { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-link-cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); border: 2px solid var(--ink); }
.nav-cta { display: none; }
.nav-burger { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 14px; }
.nav-burger .icon { width: 1.5rem; height: 1.5rem; }
.nav-burger .i-close { display: none; }
.nav.is-open .nav-burger .i-menu { display: none; }
.nav.is-open .nav-burger .i-close { display: block; }
/* Móvil: panel desplegable (sin JS queda siempre visible para no perder la navegación). */
.nav-menu { flex-direction: column; gap: 0.25rem; padding: 1rem var(--gutter) 1.5rem; background: var(--paper); border-bottom: 2px solid var(--ink); position: absolute; top: 100%; left: 0; right: 0; }
.nav.is-open .nav-menu { display: flex; }
html:not(.js) .nav-menu { display: flex; position: static; }
html:not(.js) .nav-burger { display: none; }
.nav-menu a.nav-link { padding: 0.8rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.nav-menu .nav-cta-m { margin-top: 0.8rem; }

/* =============================================================
   6. Sections
   ============================================================= */
/* --- Hero: cartel cian --- */
.hero { padding-block: clamp(0.9rem, 2.5vw, 1.75rem) clamp(2.5rem, 6vw, 4.5rem); }
.poster {
  position: relative; background: var(--cyan); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 3.4rem); display: grid; gap: clamp(2rem, 5vw, 3.4rem);
  overflow: hidden; isolation: isolate;
}
.poster::before { /* trama de puntos (halftone) */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(13, 27, 38, 0.2) 1.6px, transparent 1.8px);
  background-size: 15px 15px;
  -webkit-mask-image: linear-gradient(115deg, transparent 38%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 38%, #000 100%);
}
.reg-mark { position: absolute; width: 30px; height: 30px; color: var(--ink); z-index: 6; }
.reg-tl { top: 12px; left: 12px; } .reg-tr { top: 12px; right: 12px; }
.reg-bl { bottom: 12px; left: 12px; } .reg-br { bottom: 12px; right: 12px; }
.hero-copy { display: grid; gap: 1.4rem; align-content: center; position: relative; z-index: 2; padding-top: 0.6rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem; width: fit-content;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.5rem 0.95rem; font: 700 0.76rem/1 var(--sans); letter-spacing: 0.13em; text-transform: uppercase;
}
.pill .icon { width: 1rem; height: 1rem; color: var(--magenta); }
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 14ch; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 0.4rem; font-weight: 700; font-size: 0.95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-facts .icon { width: 1.05rem; height: 1.05rem; }

.collage { position: relative; min-height: clamp(330px, 78vw, 560px); z-index: 2; }
.shot {
  position: absolute; margin: 0; background: #fff; padding: 0.5rem;
  border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 0 20px 36px -12px rgba(13, 27, 38, 0.45);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; }
.shot figcaption { font: 700 0.72rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.55rem 0.2rem 0.15rem; color: var(--ink-2); }
.shot-a { width: 76%; top: 1%; left: 0; transform: rotate(-3deg); z-index: 2; }
.shot-b { width: 60%; right: 0; top: 33%; transform: rotate(4deg); z-index: 3; }
.shot-c { width: 46%; left: 5%; bottom: 0; transform: rotate(-5deg); z-index: 4; }
@media (hover: hover) {
  .shot:hover { transform: rotate(0deg) scale(1.03); z-index: 7; box-shadow: -9px 9px 0 var(--magenta), 9px -9px 0 var(--yellow); }
}
.sticker {
  position: absolute; right: 2%; top: -1%; z-index: 8; width: clamp(5.6rem, 15vw, 7.6rem); aspect-ratio: 1;
  display: grid; place-items: center; text-align: center; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink); transform: rotate(12deg);
  font: 800 clamp(0.72rem, 1.9vw, 0.9rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; padding: 0.4rem;
}

/* --- Marquee --- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 2rem; padding: 1.05rem 1rem; }
.marquee-item { font: 700 clamp(1rem, 2.2vw, 1.4rem)/1 var(--display); white-space: nowrap; display: inline-flex; align-items: center; gap: 2rem; }
.marquee .icon { width: 1.3rem; height: 1.3rem; color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Casa creativa --- */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-photo { margin: 0; padding: 0; }
.about-photo img { border-radius: calc(var(--radius) - 2px); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.about-text { display: grid; gap: 1.2rem; }
.about-text h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.checks { display: grid; gap: 0.7rem; margin-top: 0.4rem; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 600; }
.checks .tick {
  flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--cyan);
  border: 2px solid var(--ink); display: grid; place-items: center; margin-top: 0.1rem;
}
.checks .tick .icon { width: 0.9rem; height: 0.9rem; stroke-width: 3; }

/* --- Servicios: textiles --- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-photo { margin: 0; padding: 0; }
.split-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 25%; border-radius: calc(var(--radius) - 2px); }
.feature-list { display: grid; gap: 0.9rem; margin: 0.4rem 0; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1rem 1.1rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.feature p { color: var(--ink-2); font-size: 0.97rem; }
.feature-n { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font: 800 1rem var(--display); border: 2px solid var(--ink); }
.feature:nth-child(1) .feature-n { background: var(--cyan); }
.feature:nth-child(2) .feature-n { background: var(--magenta); color: #fff; }
.feature:nth-child(3) .feature-n { background: var(--yellow); }

/* --- Papelería --- */
.band { background: var(--paper-2); border-block: 2px solid var(--ink); }
.paper-banner { margin: 0 0 clamp(1.75rem, 4vw, 3rem); position: relative; }
.paper-banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 45%; border: 2px solid var(--ink); border-radius: var(--radius-lg); }
.paper-banner figcaption {
  position: absolute; left: clamp(0.8rem, 3vw, 1.6rem); bottom: clamp(0.8rem, 3vw, 1.6rem);
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 0.55rem 1rem;
  font: 800 clamp(0.8rem, 1.8vw, 1rem) var(--display);
}
.service-grid { display: grid; gap: 1.4rem; }
.service { padding: 1.4rem; display: grid; gap: 0.7rem; align-content: start; }
.service-ico { width: 3.1rem; height: 3.1rem; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); border: 2px solid var(--ink); }
.service-ico .icon { width: 1.6rem; height: 1.6rem; }
.service h3 { font-size: 1.3rem; }
.service p { color: var(--ink-2); font-size: 0.97rem; }

/* --- Catálogo: tarjetas de colección y de producto --- */
.coll-grid, .prod-grid { display: grid; gap: 1.5rem; }
.coll-card { display: block; }
.coll-card a { display: block; border-radius: inherit; }
.coll-media { aspect-ratio: 4 / 3; background: var(--paper-2); border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; overflow: hidden; display: grid; place-items: center; }
.coll-media img { width: 100%; height: 100%; object-fit: cover; }
.coll-media .icon { width: 3rem; height: 3rem; color: var(--ink-mute); }
.coll-body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: 0.4rem; }
.coll-body h3 { font-size: 1.45rem; }
.coll-body p { color: var(--ink-2); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coll-count { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.85rem; color: var(--magenta-deep); margin-top: 0.2rem; }
.pcard-btn { display: block; width: 100%; text-align: left; border-radius: inherit; }
.pcard-media { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--paper-2); border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-media .icon { width: 3.2rem; height: 3.2rem; color: var(--ink-mute); }
.pcard-body { display: grid; gap: 0.35rem; padding: 1rem 1.1rem 1.2rem; }
.pcard-coll { font: 700 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-deep); }
.pcard-title { font: 700 1.1rem/1.2 var(--display); letter-spacing: -0.01em; }
.pcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.2rem; }
.pcard-price { font-weight: 800; font-size: 1.05rem; }
.tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.65rem; border-radius: 999px; border: 2px solid var(--ink); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-ok { background: #d8f5e4; color: #0f5132; }
.tag-order { background: #fff0c2; color: #6a4b00; }
.more { margin-top: clamp(1.8rem, 4vw, 3rem); display: flex; justify-content: center; }

.state { border: 2px dashed var(--ink); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); text-align: center; display: grid; gap: 0.9rem; justify-items: center; background: #fff; grid-column: 1 / -1; }
.state p { max-width: 34rem; color: var(--ink-2); }
.skeleton { border-radius: var(--radius); min-height: 280px; background: linear-gradient(90deg, var(--paper-2), var(--paper-3), var(--paper-2)); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; border: 2px solid var(--line); }
@keyframes shimmer { to { background-position: -220% 0; } }

/* --- Cómo funciona --- */
.steps { display: grid; gap: 1.4rem; counter-reset: step; }
.step { padding: 1.6rem; display: grid; gap: 0.8rem; align-content: start; }
.step-num { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; font: 800 1.5rem var(--display); border: 2px solid var(--ink); }
.step:nth-child(1) .step-num { background: var(--cyan); }
.step:nth-child(2) .step-num { background: var(--magenta); color: #fff; }
.step:nth-child(3) .step-num { background: var(--yellow); }
.step h3 { font-size: 1.45rem; }
.step p { color: var(--ink-2); }

/* --- CTA: cartel amarillo --- */
.poster-y { background: var(--yellow); }
.poster-y::before { -webkit-mask-image: linear-gradient(245deg, transparent 40%, #000 100%); mask-image: linear-gradient(245deg, transparent 40%, #000 100%); }
.cta-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.cta-copy { display: grid; gap: 1.1rem; position: relative; z-index: 2; }
.cta-copy h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); max-width: 16ch; }
.cta-photo { margin: 0; position: relative; z-index: 2; background: #fff; padding: 0.5rem; border: 2px solid var(--ink); border-radius: 16px; transform: rotate(2deg); box-shadow: 0 20px 36px -12px rgba(13, 27, 38, 0.4); }
.cta-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }

/* --- Footer --- */
.footer { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 7vw, 5rem) 1.6rem; margin-top: clamp(3.5rem, 8vw, 7rem); }
.footer-grid { display: grid; gap: 2.4rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand p { color: rgba(251, 247, 239, 0.78); max-width: 26rem; }
.footer h2 { font: 800 0.8rem/1 var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.footer-list { display: grid; gap: 0.7rem; }
.footer-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: rgba(251, 247, 239, 0.9); }
.footer-list .icon { margin-top: 0.2rem; color: var(--cyan); }
.footer-list .wa-ico { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(251, 247, 239, 0.5); display: grid; place-items: center; transition: background 0.25s, color 0.25s, transform 0.35s var(--ease-out); }
.socials a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-3px); text-decoration: none; }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(251, 247, 239, 0.2); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.88rem; color: rgba(251, 247, 239, 0.7); }

/* --- Página de catálogo --- */
.page-head { padding-block: clamp(2.2rem, 6vw, 4rem) clamp(1.4rem, 3vw, 2rem); background: var(--paper-2); border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(13, 27, 38, 0.13) 1.5px, transparent 1.7px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000); mask-image: linear-gradient(100deg, transparent 45%, #000); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.03em; }
.toolbar { display: grid; gap: 1rem; margin-block: clamp(1.4rem, 3vw, 2rem); }
.search { position: relative; max-width: 30rem; }
.search .icon { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--ink-mute); }
.search input { width: 100%; min-height: 50px; padding: 0 1rem 0 2.8rem; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: inherit; color: inherit; }
.search input::placeholder { color: var(--ink-mute); }
.chips { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 1.1rem; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700; font-size: 0.95rem; transition: background 0.2s, transform 0.3s var(--ease-out); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .chip:hover { transform: translateY(-2px); } }
.result-count { color: var(--ink-mute); font-weight: 500; font-size: 0.92rem; }
.coll-intro { margin-bottom: 1.4rem; max-width: 46rem; display: grid; gap: 0.4rem; }
.coll-intro h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.coll-intro p { color: var(--ink-2); white-space: pre-line; }

/* --- Modal de producto --- */
dialog.modal {
  border: 2px solid var(--ink); padding: 0; border-radius: 26px; background: var(--paper); color: var(--ink);
  width: min(980px, calc(100% - 1.5rem)); max-height: min(92dvh, 880px); overflow: auto; margin: auto;
}
dialog.modal::backdrop { background: rgba(13, 27, 38, 0.62); }
.modal-close { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; }
.modal-grid { display: grid; gap: 0; }
.gallery { padding: 1rem; background: var(--paper-2); display: grid; gap: 0.8rem; align-content: start; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; background: #fff; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main > .icon { width: 3.6rem; height: 3.6rem; color: var(--ink-mute); }
.g-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; }
.g-prev { left: 0.6rem; } .g-next { right: 0.6rem; }
.thumbs { display: flex; gap: 0.5rem; overflow-x: auto; overflow-y: visible; padding: 0.2rem 0.2rem 0.5rem; }
.thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: #fff; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: clamp(1.2rem, 3vw, 2.2rem); display: grid; gap: 1rem; align-content: start; }
.modal-info h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.modal-price { font: 800 1.7rem var(--display); }
.modal-desc { color: var(--ink-2); white-space: pre-line; }
.opt-group { display: grid; gap: 0.5rem; }
.opt-label { font-weight: 700; font-size: 0.9rem; }
.opt-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opt { min-height: 42px; min-width: 42px; padding: 0 0.95rem; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-weight: 700; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.opt.is-order { border-style: dashed; }
.modal-note { font-size: 0.88rem; color: var(--ink-mute); }

/* =============================================================
   7. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .topbar-city { display: inline-flex; }
  .coll-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .modal-grid { grid-template-columns: 1fr 1fr; }
  .gallery { padding: 1.4rem; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .cta-grid { grid-template-columns: 1.1fr 0.9fr; }
}
@media (min-width: 960px) {
  .hero .poster { grid-template-columns: 1.02fr 0.98fr; align-items: center; }
  .about { grid-template-columns: 0.95fr 1.05fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-photo { order: 2; }
  .service-grid, .coll-grid, .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-menu { display: flex; position: static; flex-direction: row; align-items: center; gap: 1.1rem; padding: 0; border: 0; background: none; }
  .nav-menu a.nav-link { padding: 0.4rem 0; border: 0; font-size: 0.97rem; }
  .nav-menu .nav-cta-m { display: none; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-inner { gap: 1.6rem; }
}
@media (min-width: 1180px) {
  .nav-menu { gap: 1.6rem; }
}
@media (min-width: 1280px) {
  .prod-grid { grid-template-columns: repeat(4, 1fr); }
  .coll-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 539px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .shot figcaption { display: none; }
  .collage { min-height: 360px; }
}

/* =============================================================
   8. Reduced motion — solo lo intrusivo (regla del skill: no se apaga todo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 90s; }
}

/* =============================================================
   10. Dinámicos (tarjetas que llegan de la API)
   ============================================================= */
.pop-in { animation: popIn 0.7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes popIn { from { opacity: 0; transform: translateY(18px); } }
html.modal-open { overflow: hidden; }
