/* Lisa Cro: crema, rosa y lila de la etiqueta. Tinta y ciruela derivan del lila para dar lectura. */
:root {
  color-scheme: light;
  --crema: #F4F2E5;
  --papel: #FBFAF3;
  --rosa: #F4C4CE;
  --rosa-suave: #FBE6EA;
  --lila: #B3ACCA;
  --lila-suave: #E4E1EE;
  --tinta: #38304F;
  --ciruela: #5F5485;
  --frambuesa: #A83E5F;
  --radio-etiqueta: 44px 10px 44px 10px;
  --sombra: 0 10px 28px -14px rgba(56, 48, 79, .45);
  --titular: 'Gilda Display', Georgia, serif;
  --cuerpo: 'Nunito', system-ui, sans-serif;
  --manuscrita: 'Allura', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-gutter: stable; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--crema); color: var(--tinta); font: 400 1.0625rem/1.6 var(--cuerpo); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--titular); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ciruela); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.saltar { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--tinta); color: var(--crema); padding: 8px 16px; border-radius: 8px; }
.saltar:focus { top: 8px; }
.manuscrita { font-family: var(--manuscrita); font-size: 2rem; line-height: 1.1; color: var(--ciruela); }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border: 0; border-radius: 26px 8px 26px 8px; font-weight: 800; text-decoration: none; transition: transform .18s ease, background-color .18s ease; }
.boton svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.boton:hover { transform: translateY(-2px); }
.boton--principal { background: var(--tinta); color: var(--crema); }
.boton--principal:hover { background: #2B2440; }
.boton--principal:disabled { background: var(--lila-suave); color: var(--ciruela); cursor: not-allowed; transform: none; }
.boton--costura { background: transparent; color: var(--tinta); border: 2px dashed var(--tinta); }
.boton--ancho { width: 100%; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: var(--crema); border-bottom: 2px dashed var(--rosa); }
.cabecera__interior { max-width: 1200px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 32px; }
.cabecera__logo img { width: 132px; }
.cabecera__nav { display: flex; gap: 26px; margin-left: auto; font-weight: 700; }
.cabecera__nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px dashed transparent; }
.cabecera__nav a:hover { border-bottom-color: var(--lila); }
.boton-pedido { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 12px 8px 14px; background: var(--lila-suave); border: 0; border-radius: 22px 6px 22px 6px; font-weight: 800; }
.boton-pedido:hover { background: var(--lila); }
.boton-pedido svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.boton-pedido__cuenta { min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; background: var(--tinta); color: var(--crema); border-radius: 13px; font-size: .875rem; }

/* Orilla tejida entre secciones */
.puntilla { position: relative; }
.puntilla::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; top: 100%; height: 16px; pointer-events: none;
  background:
    radial-gradient(circle at 16px 5px, var(--hueco, var(--crema)) 2.5px, transparent 3px) 0 0 / 32px 16px repeat-x,
    radial-gradient(circle at 16px 0, var(--puntilla) 15.5px, transparent 16px) 0 0 / 32px 16px repeat-x; }

/* Portada */
.portada { background: var(--lila); }
.portada__interior { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; min-height: min(640px, calc(100vh - 90px)); }
.portada__texto { align-self: center; padding: 72px 0; }
.portada .manuscrita { color: var(--tinta); font-size: 2.25rem; margin-bottom: 12px; }
.portada h1 { font-size: clamp(2.5rem, 5vw, 4rem); text-wrap: balance; }
.portada__bajada { max-width: 34em; margin-top: 20px; font-size: 1.1875rem; font-weight: 600; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.portada__colgantes { position: relative; overflow: hidden; min-height: 460px; }
.colgante { --hoyo: 53.3%; position: absolute; z-index: 0; width: clamp(170px, 19vw, 240px); transform: rotate(var(--giro)); transform-origin: var(--hoyo) 7%; }
.colgante::before { content: ''; position: absolute; z-index: -1; left: var(--hoyo); top: calc(7% - 700px); width: 2px; height: 700px; background: var(--rosa); }
.colgante img { width: 100%; filter: drop-shadow(0 16px 18px rgba(56, 48, 79, .28)); }
.colgante--frente { top: 76px; left: 8%; --giro: -3deg; animation: mecer 7s ease-in-out infinite; }
.colgante--atras { --hoyo: 46.7%; top: 34px; left: 48%; --giro: 5deg; animation: mecer 8.5s ease-in-out -2s infinite; }
@keyframes mecer {
  0%, 100% { transform: rotate(var(--giro)); }
  50% { transform: rotate(calc(var(--giro) + 2.5deg)); }
}

/* Secciones */
.seccion { padding: 88px 24px; }
.seccion > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.seccion--rosa { background: var(--rosa-suave); }
.seccion--lila { background: var(--lila-suave); }
.seccion__cabeza { text-align: center; margin-bottom: 40px; }
.seccion__cabeza h2 { font-size: clamp(2.25rem, 4vw, 3rem); }
.seccion__cabeza p:not(.manuscrita) { max-width: 36em; margin: 12px auto 0; }

/* Filtros */
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filtros button { min-height: 44px; padding: 8px 20px; background: transparent; border: 2px dashed var(--lila); border-radius: 22px; font-weight: 700; }
.filtros button:hover { background: var(--lila-suave); }
.filtros button[aria-pressed="true"] { background: var(--tinta); border: 2px solid var(--tinta); color: var(--crema); }
.filtros--tonos { margin-top: -30px; }
.filtros--tonos button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px; font-size: .9375rem; border-color: transparent; background: var(--papel); }
.filtros--tonos small { opacity: .7; font-weight: 800; }
.catalogo__vacio { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--ciruela); font-weight: 700; }

/* Pieza: cada producto es una etiqueta colgante con su costura */
.catalogo { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 44px 28px; padding-top: 14px; }
.pieza { position: relative; display: flex; flex-direction: column; padding: 12px; background: var(--papel); border-radius: var(--radio-etiqueta); box-shadow: var(--sombra); text-decoration: none; transform-origin: 50% 0; transition: transform .25s ease; }
.pieza::before { content: ''; position: absolute; inset: 6px; z-index: 1; border: 2px dashed var(--rosa); border-radius: 38px 7px 38px 7px; pointer-events: none; }
.pieza::after { content: ''; position: absolute; z-index: 2; top: -14px; left: 50%; width: 30px; height: 46px; margin-left: -15px; border-radius: 3px 3px 15px 15px; background: radial-gradient(circle at 50% 30px, var(--crema) 6.5px, var(--lila) 7px); }
.pieza:hover { transform: rotate(-1.2deg) translateY(-4px); }
.pieza:nth-child(even):hover { transform: rotate(1.2deg) translateY(-4px); }
.pieza__imagen { position: relative; aspect-ratio: 4 / 4.2; border-radius: 34px 4px 8px 4px; overflow: hidden; }
.pieza__imagen img, .pieza__imagen .tejido { width: 100%; height: 100%; object-fit: cover; }
.pieza__datos { padding: 16px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pieza__datos h3 { font-size: 1.4375rem; }
.pieza__precio { font-weight: 800; }
.pieza__precio small { font-size: .875rem; font-weight: 600; color: var(--ciruela); }
.punto { width: 20px; height: 20px; border-radius: 50%; background: var(--color); box-shadow: inset 0 0 0 1px rgba(56, 48, 79, .2); }
.sello { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 3px 12px; background: var(--tinta); color: var(--crema); border-radius: 14px 4px 14px 4px; font-size: .8125rem; font-weight: 800; }
.pieza--agotada .pieza__imagen .tejido, .pieza--agotada .pieza__imagen img { filter: saturate(.55); }

/* Tejido provisorio hasta tener foto real */
.tejido { position: relative; display: block; background-color: var(--color); background-size: 44px 28px; }
.tejido__nota { position: absolute; right: 12px; bottom: 12px; padding: 2px 10px; background: rgba(251, 250, 243, .92); border-radius: 12px; font-size: .75rem; font-weight: 700; color: var(--tinta); }

/* Trabajos */
.trabajos { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; gap: 16px; }
.trabajo { position: relative; margin: 0; overflow: hidden; border-radius: 28px 6px 28px 6px; }
.trabajo:nth-child(6n + 1), .trabajo:nth-child(6n + 4), .trabajo:nth-child(6n + 5) { grid-row: span 2; }
.trabajo img, .trabajo .tejido { width: 100%; height: 100%; object-fit: cover; }
.trabajo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 3px 12px; background: rgba(251, 250, 243, .94); border-radius: 12px; font-size: .875rem; font-weight: 700; }

/* Pasos unidos por una hebra */
.pasos { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: paso; }
.pasos::before { content: ''; position: absolute; top: 32px; left: 12%; right: 12%; border-top: 2px dashed var(--lila); }
.pasos li { position: relative; text-align: center; counter-increment: paso; }
.pasos li::before { content: counter(paso); box-sizing: content-box; display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; background: var(--rosa); border: 6px solid var(--crema); border-radius: 50%; font: 400 1.5rem var(--titular); }
.pasos h3 { font-size: 1.375rem; margin-bottom: 8px; }

/* Tarifas */
.tarifas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tarifa { position: relative; padding: 28px 24px; background: var(--papel); border-radius: var(--radio-etiqueta); text-align: center; }
.tarifa::before { content: ''; position: absolute; inset: 6px; border: 2px dashed var(--lila); border-radius: 38px 7px 38px 7px; pointer-events: none; }
.tarifa h3 { font-size: 1.375rem; }
.tarifa strong { display: block; margin: 8px 0; font: 400 2rem var(--titular); }

/* Cuidados */
.cuidados { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cuidados li { padding: 20px 22px; background: var(--papel); border: 2px dashed var(--rosa); border-radius: 30px 8px 30px 8px; }
.cuidados h3 { font-size: 1.3125rem; margin-bottom: 6px; }

/* Pie */
.pie { position: relative; background: var(--tinta); color: var(--crema); }
.pie__interior { max-width: 1200px; margin: 0 auto; padding: 72px 24px 96px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pie__interior > img { width: 84px; }
.pie__frase { font-family: var(--manuscrita); font-size: 2.25rem; line-height: 1.1; color: var(--rosa); }
.pie__redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-weight: 700; }
.pie__redes a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.pie__redes a:hover { color: var(--rosa); }
.pie__redes svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.pie__redes svg.relleno, .pie__redes .relleno { fill: currentColor; stroke: none; }
.pie__legal { font-size: .875rem; opacity: .8; }

/* Diálogos */
dialog { padding: 0; border: 0; color: var(--tinta); background: transparent; max-width: none; max-height: none; overflow: visible; }
dialog::backdrop { background: rgba(56, 48, 79, .55); }
.cerrar { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: var(--lila-suave); border: 0; border-radius: 50%; font-size: 1.625rem; line-height: 1; }
.cerrar:hover { background: var(--lila); }
.ficha > .cerrar, .pago > .cerrar { position: absolute; top: 12px; right: 12px; z-index: 3; }

/* Ficha de producto */
.ficha { width: min(960px, calc(100vw - 32px)); margin: auto; }
.ficha[open] { animation: subir .25s ease; }
.ficha__interior { display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100dvh - 32px); overflow: auto; background: var(--papel); border-radius: 40px 10px 40px 10px; }
.ficha__visual { position: relative; min-height: 100%; }
.ficha__visual img, .ficha__visual .tejido { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ficha__detalle { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
.ficha__detalle h2 { font-size: 2.125rem; padding-right: 40px; margin-bottom: 6px; }
.ficha__cuidados { font-weight: 800; white-space: nowrap; }
.ficha__codigo { margin-bottom: 8px; color: var(--ciruela); font-size: .9375rem; font-weight: 700; }
.ficha__tono, .pieza__tono { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pieza__tono { margin-top: auto; padding-top: 4px; font-size: .9375rem; }
.ficha__unica { padding: 12px 16px; background: var(--rosa-suave); border-radius: 20px 5px 20px 5px; }
.ficha__fotos { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: flex; gap: 6px; }
.ficha__fotos button { width: 52px; height: 52px; padding: 0; overflow: hidden; background: none; border: 2px solid var(--papel); border-radius: 12px 3px 12px 3px; }
.ficha__fotos button[aria-pressed="true"] { border-color: var(--tinta); }
.ficha__fotos img { position: static; width: 100%; height: 100%; object-fit: cover; }
.ficha__precio { font-size: 1.375rem; font-weight: 800; }
.ficha__precio small { font-size: 1rem; font-weight: 600; color: var(--ciruela); }
.muestra__cuenta { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center; background: var(--tinta); color: var(--crema); border-radius: 10px; font-size: .75rem; font-weight: 800; }
.ficha__estado { font-weight: 700; color: var(--ciruela); }
.ficha__estado--agotado { color: var(--frambuesa); }
.ficha__estado a { font-weight: 800; white-space: nowrap; }
.ficha__compra { display: flex; gap: 10px; }
.ficha__compra .boton { flex: 1; padding-inline: 14px; }

/* Panel del pedido */
.panel { width: min(480px, 100vw); height: 100dvh; margin: 0 0 0 auto; }
.panel[open] { animation: entrar .25s ease; }
.panel__interior { display: flex; flex-direction: column; height: 100%; background: var(--papel); }
.panel__cabeza { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 2px dashed var(--rosa); }
.panel__cabeza h2 { font-size: 1.875rem; }
.panel__cuerpo { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; }
.panel__pie { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 2px dashed var(--rosa); background: var(--crema); }
.grupo { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--lila-suave); }
.grupo h3 { font-size: 1.25rem; margin-bottom: 8px; }
.linea { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; padding: 6px 0; }
.linea__muestra { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px 3px 12px 3px; overflow: hidden; }
.linea__muestra .tejido, .linea__muestra img { width: 100%; height: 100%; object-fit: cover; background-size: 22px 14px; }
.linea__nombre { font-weight: 700; line-height: 1.3; }
.linea__subtotal { font-weight: 800; text-align: right; }
.linea__precio { font-size: .875rem; color: var(--ciruela); font-weight: 600; }
.linea__quitar { justify-self: end; min-height: 34px; padding: 0 2px; background: none; border: 0; color: var(--frambuesa); font-size: .875rem; font-weight: 800; text-decoration: underline; }
.vacio { padding: 48px 12px; text-align: center; }
.vacio img { width: 96px; margin: 0 auto 16px; }
.vacio .boton { margin-top: 16px; }
.vacio__pago { margin-top: 20px; padding: 0; background: none; border: 0; font-weight: 800; text-decoration: underline; }

.entrega { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 8px; }
.entrega h3 { font-size: 1.375rem; }
.entrega__tipo { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.entrega__tipo label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px; background: var(--crema); border: 2px solid transparent; border-radius: 18px 5px 18px 5px; font-weight: 700; cursor: pointer; }
.entrega__tipo label:has(input:checked) { border-color: var(--tinta); background: var(--lila-suave); }
.entrega__tipo input { accent-color: var(--tinta); width: 18px; height: 18px; margin: 0; }
#campos-envio { display: flex; flex-direction: column; gap: 14px; }
.campo { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9375rem; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 46px; padding: 10px 12px; font-weight: 400; font-size: 1rem; background: #fff; border: 1.5px solid var(--lila); border-radius: 10px; }
.campo select:disabled { background: var(--crema); color: var(--ciruela); }
.opcional { font-weight: 600; color: var(--ciruela); }
.entrega__nota { padding: 10px 14px; background: var(--rosa-suave); border-radius: 12px; font-size: .9375rem; }

.resumen { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; margin: 0 0 12px; }
.resumen dt, .resumen dd { margin: 0; }
.resumen dd { text-align: right; font-weight: 700; }
.resumen .resumen__total { font: 400 1.5rem var(--titular); margin-top: 4px; }

/* Modal de transferencia */
.pago { width: min(500px, calc(100vw - 32px)); margin: auto; }
.pago[open] { animation: subir .25s ease; }
.pago__interior { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); overflow: hidden; background: var(--papel); border-radius: 40px 10px 40px 10px; }
.pago__cuerpo { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 24px 8px; }
.pago__cabeza { display: flex; align-items: center; justify-content: center; gap: 10px; padding-right: 28px; padding-left: 28px; }
.pago__cabeza img { width: 40px; flex: none; }
.pago__cabeza h2 { font-size: 1.75rem; }
.pago__monto { margin: 12px 0; padding: 8px 14px; background: var(--lila-suave); border-radius: 22px 6px 22px 6px; text-align: center; }
.pago__monto strong { display: block; font: 400 2rem/1.15 var(--titular); }
.pago__monto span { font-size: .875rem; font-weight: 700; }
.pago__ejemplo { margin-bottom: 8px; padding: 6px 12px; background: var(--rosa-suave); border-radius: 10px; font-size: .8125rem; font-weight: 700; text-align: center; }
.cuenta { margin: 0; }
.cuenta div { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; column-gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--lila); }
.cuenta dt { font-size: .8125rem; font-weight: 700; color: var(--ciruela); }
.cuenta dd { margin: 0; font-weight: 800; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.cuenta button { min-height: 30px; padding: 0 10px; background: var(--crema); border: 1.5px solid var(--lila); border-radius: 10px 3px 10px 3px; font-size: .8125rem; font-weight: 800; }
.cuenta button:hover { background: var(--lila-suave); }
.pago__indicaciones { counter-reset: i; margin: 12px 0 4px; display: grid; gap: 4px; font-size: .9063rem; line-height: 1.4; }
.pago__indicaciones li { display: grid; grid-template-columns: 24px 1fr; gap: 6px; counter-increment: i; }
.pago__indicaciones li::before { content: counter(i); width: 22px; height: 22px; display: grid; place-items: center; background: var(--rosa); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.pago__acciones { display: grid; gap: 4px; padding: 12px 24px 10px; border-top: 2px dashed var(--rosa); }
.pago__botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pago__botones .boton { min-height: 48px; padding: 8px; line-height: 1.2; white-space: nowrap; }
.pago__secundarias { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; font-size: .875rem; }
.pago__secundarias a, .pago__secundarias button { display: inline-flex; align-items: center; min-height: 32px; padding: 0; background: none; border: 0; font-weight: 800; text-decoration: underline; }

/* Avisos y barra móvil */
.aviso { position: fixed; z-index: 60; left: 50%; bottom: 24px; width: max-content; max-width: calc(100vw - 32px); padding: 10px 20px; background: var(--tinta); color: var(--crema); border-radius: 20px 6px 20px 6px; font-weight: 700; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.aviso--visible { opacity: 1; transform: translate(-50%, 0); }
.barra-pedido { display: none; }

@keyframes subir { from { opacity: 0; transform: translateY(16px); } }
@keyframes entrar { from { transform: translateX(40px); opacity: .4; } }

@media (max-width: 900px) {
  .cabecera__nav { display: none; }
  .cabecera__interior { justify-content: space-between; padding: 8px 16px; }
  .portada__interior { grid-template-columns: 1fr; padding: 0 16px; gap: 0; min-height: 0; }
  .portada__texto { padding: 44px 0 8px; }
  .portada__colgantes { min-height: 340px; margin: 0 -16px; }
  .colgante { width: 150px; }
  .colgante--frente { top: 20px; left: calc(50% - 150px); }
  .colgante--atras { top: 6px; left: 50%; }
  .seccion { padding: 64px 16px; }
  .pasos { grid-template-columns: 1fr 1fr; }
  .pasos::before { display: none; }
  .cuidados { grid-template-columns: 1fr 1fr; }
  .trabajos { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .trabajo:nth-child(6n) { grid-column: span 2; }
  .ficha__interior { display: block; }
  .ficha__visual { min-height: 0; aspect-ratio: 16 / 10; }
  .ficha__detalle { padding: 22px 20px 24px; }
  .barra-pedido { position: fixed; z-index: 15; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 20px; background: var(--tinta); color: var(--crema); border: 0; border-radius: 26px 8px 26px 8px; font-weight: 700; box-shadow: var(--sombra); }
  .aviso { bottom: 76px; }
  dialog .aviso { bottom: 16px; }
}

@media (max-width: 520px) {
  .portada .manuscrita { font-size: 1.75rem; }
  .boton-pedido > span:not(.boton-pedido__cuenta) { display: none; }
  .catalogo { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .pieza { padding: 8px; border-radius: 30px 8px 30px 8px; }
  .pieza::before { inset: 4px; border-radius: 26px 5px 26px 5px; }
  .pieza__imagen { border-radius: 24px 3px 6px 3px; }
  .pieza__datos { padding: 12px 6px 10px; }
  .pieza__datos h3 { font-size: 1.1875rem; }
  .punto { width: 16px; height: 16px; }
  .tejido__nota { right: 8px; bottom: 8px; font-size: .6875rem; }
  .pasos, .cuidados { grid-template-columns: 1fr; }
  .ficha { width: 100vw; margin: auto 0 0; }
  .ficha__interior { max-height: 94dvh; border-radius: 30px 30px 0 0; }
  .panel { width: 100vw; }
  .pago__cuerpo { padding: 18px 16px 6px; }
  .pago__cabeza { padding-inline: 0 36px; }
  .pago__cabeza img { width: 32px; }
  .pago__cabeza h2 { font-size: 1.5rem; }
  .cuenta div { grid-template-columns: 82px 1fr auto; column-gap: 8px; }
  .pago__acciones { padding: 10px 16px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
