/* Hilo & Barro · v3 · mundo: el muestrario de tintes del taller (añil, achiote, nogal, guayacán, fique crudo) */
:root {
  --anil: #1C2856;
  --anil-2: #26357A;
  --anil-claro: #C3CBEA;
  --achiote: #A9401A;
  --achiote-vivo: #C4501F;
  --nogal: #36221A;
  --guayacan: #E7B51C;
  --fique: #F1EBDF;
  --fique-2: #E2D8C5;
  --agua: #EDEFF5;
  --agua-2: #DDE1EC;
  --tinta: #191B26;
  --tinta-2: #4A4E63;
  --wa: #0B7A3F;
  --wa-osc: #08612F;
  --letra: "Bricolage Grotesque", system-ui, sans-serif;
  --ancho: 1280px;
  --pie-seguro: env(safe-area-inset-bottom, 0px);
  --facil: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--agua); color: var(--tinta); font-family: var(--letra); font-size: 1rem; line-height: 1.55; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
body[data-con-barra="si"] { padding-bottom: calc(88px + var(--pie-seguro)); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--guayacan); color: var(--anil); }
:focus-visible { outline: 2.5px solid var(--guayacan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.04; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--guayacan); color: var(--anil); padding: 10px 14px; border-radius: 6px; }
.saltar:focus { top: 8px; }
.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.angosta { max-width: 780px; }
.ejemplo { background: #0F1634; color: #C9CFE6; font-size: .8125rem; text-align: center; padding: 7px 16px; }
.ejemplo strong { color: #fff; font-weight: 600; }

/* ───── Cabecera ───── */
.cabecera { position: sticky; top: 0; z-index: 20; background: var(--anil); color: var(--fique); border-bottom: 1px solid rgba(241,235,223,.12); }
.cabecera__fila { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.marca__nudo { width: 34px; height: 34px; color: var(--guayacan); }
.marca__nombre { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; font-variation-settings: "wdth" 90; }
.nav { display: none; gap: 28px; font-size: .9375rem; }
.nav a { text-decoration: none; color: var(--anil-claro); transition: color .2s; }
.nav a:hover { color: #fff; }
.bolsa { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(241,235,223,.35); border-radius: 999px; background: transparent; color: var(--fique); font: inherit; font-weight: 600; font-size: .9375rem; cursor: pointer; transition: background .2s, border-color .2s; }
.bolsa:hover { background: rgba(255,255,255,.08); border-color: var(--fique); }
.bolsa svg { width: 20px; height: 20px; }
.bolsa__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--guayacan); color: var(--anil); font-size: .8125rem; font-weight: 800; animation: latido .45s var(--facil); }
@keyframes latido { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--facil); }
.boton:active { transform: scale(.97); }
.boton svg { width: 20px; height: 20px; }
.boton--claro { background: var(--fique); color: var(--anil); }
.boton--claro:hover { background: #fff; }
.boton--linea { border-color: rgba(241,235,223,.5); color: var(--fique); background: transparent; }
.boton--linea:hover { border-color: var(--fique); background: rgba(255,255,255,.06); }
.boton--oscuro { width: 100%; background: var(--anil); color: #fff; }
.boton-wa { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border: 0; border-radius: 999px; background: var(--wa); color: #fff; font: inherit; font-weight: 700; font-size: 1.0625rem; cursor: pointer; transition: background .2s, transform .2s var(--facil); }
.boton-wa:hover { background: var(--wa-osc); }
.boton-wa:active { transform: scale(.98); }
.boton-wa svg { width: 22px; height: 22px; }

/* ───── Portada (añil) ───── */
.portada { background: var(--anil); color: var(--fique); padding: 22px 0 0; overflow: hidden; position: relative; }
.portada::before { /* trama de tejido muy tenue */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .045;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 7px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 7px); }
.portada__grid { position: relative; display: grid; gap: 22px; }
.portada__grid > * { min-width: 0; }
.portada__texto { display: contents; }
.portada h1 { order: 1; } .portada .lead { order: 2; } .muestra-grande { order: 3; } .portada__acciones { order: 4; } .tintes { order: 5; }
.portada__grid { row-gap: 0; }
.portada .muestra-grande { margin-top: 24px; }
h1 { font-size: clamp(3.4rem, 15vw, 7.5rem); font-weight: 700; letter-spacing: -.04em; line-height: .9; font-variation-settings: "wdth" 75; color: #fff; }
.lead { margin-top: 12px; font-size: 1.0625rem; line-height: 1.5; color: #D6DBEE; max-width: 44ch; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tintes { list-style: none; display: flex; gap: 6px; padding: 0; margin: 26px 0 0; }
.tintes li { flex: 1; max-width: 92px; font-size: .75rem; font-weight: 600; color: var(--anil-claro); }
.tintes li::before { content: ""; display: block; height: 46px; border-radius: 3px 3px 0 0; margin-bottom: 6px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 1px, transparent 1px 4px), linear-gradient(var(--c), var(--c));
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.18); }

/* Muestra grande: la pieza destacada como tarjeta de muestrario */
.muestra-grande { position: relative; display: grid; grid-template-rows: auto auto; margin: 0; }
.muestra-grande__foto { position: relative; border-radius: 6px 6px 0 0; overflow: hidden; background: linear-gradient(160deg, #6E6A86, #D6C09A); }
.muestra-grande__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 64%; /* foto real: el bolso queda en la mitad baja */ }
.muestra-grande__rotulo { position: relative; background: var(--fique); color: var(--tinta); padding: 16px 18px 16px 50px; border-radius: 0 0 6px 6px;
  background-image: repeating-linear-gradient(90deg, rgba(120,95,60,.06) 0 1px, transparent 1px 3px); }
.ojal { position: absolute; left: 18px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--anil); box-shadow: 0 0 0 3px var(--fique-2), inset 0 2px 2px rgba(0,0,0,.4); }

.muestra-grande__nombre { font-size: 1.35rem; letter-spacing: -.02em; font-variation-settings: "wdth" 85; }
.muestra-grande__det { margin-top: 2px; font-size: .875rem; color: var(--tinta-2); }
.muestra-grande__fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.muestra-grande__precio { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.muestra-grande__nota { margin-top: 10px; font-size: .8125rem; color: var(--tinta-2); }
.muestra-grande .ctl { width: 150px; }

.envio-tira { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 30px auto 0; padding-top: 0; padding-bottom: 0; }
.envio-tira div { padding: 16px 12px 18px 0; border-top: 1px solid rgba(241,235,223,.2); }
.envio-tira div:nth-child(odd) { padding-right: 16px; }
.envio-tira dt { font-size: .8125rem; color: var(--anil-claro); }
.envio-tira dd { margin: 2px 0 0; font-weight: 700; font-size: .9375rem; color: #fff; line-height: 1.3; }

/* Etiquetas cosidas */
.etiqueta { position: absolute; top: 12px; left: 12px; padding: 4px 10px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; border-radius: 2px; background: var(--fique); color: var(--anil); outline: 1px dashed currentColor; outline-offset: -4px; }
.etiqueta--oferta { background: var(--achiote); color: #fff; }
.etiqueta--agotado { background: var(--tinta); color: #fff; }

/* ───── Catálogo ───── */
.catalogo { padding: 52px 0 64px; }
.catalogo__cabeza h2, .envios h2, .opiniones h2, .preguntas h2 { font-size: clamp(2.2rem, 9vw, 4rem); letter-spacing: -.035em; font-variation-settings: "wdth" 78; color: var(--anil); }
.catalogo__sub { margin-top: 6px; color: var(--tinta-2); }
.catalogo__filtros { margin-top: 20px; display: grid; gap: 12px; }
.filtros { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 4px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtro { flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--agua-2); background: #fff; color: var(--anil); font: inherit; font-weight: 600; font-size: .9375rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filtro:hover { border-color: var(--anil); }
.filtro[aria-pressed="true"] { background: var(--anil); color: #fff; border-color: var(--anil); }
.buscador { position: relative; }
.buscador svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--tinta-2); pointer-events: none; }
.buscador input { width: 100%; min-height: 48px; border: 1.5px solid var(--agua-2); border-radius: 999px; padding: 0 16px 0 46px; font: inherit; background: #fff; color: var(--tinta); }
.buscador input::placeholder { color: #6B6F84; }
.buscador input:focus { outline: none; border-color: var(--anil); box-shadow: 0 0 0 3px rgba(28,40,86,.18); }

.piezas { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
.pieza { display: flex; flex-direction: column; min-width: 0; }
.pieza[hidden] { display: none; }
.pieza__foto { position: relative; border-radius: 6px; overflow: hidden; background: var(--fique-2); }
.pieza__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s var(--facil); }
.pieza:hover .pieza__foto img { transform: scale(1.03); }
.pieza__cuerpo { display: flex; flex-direction: column; flex: 1; padding-top: 12px; }
.pieza__nombre { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.pieza__precio { margin-top: 4px; font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.precio-antes { font-weight: 500; font-size: .875rem; color: var(--tinta-2); }
.precio--oferta { color: var(--achiote); }
.pieza__desc { margin-top: 6px; font-size: .8125rem; line-height: 1.45; color: var(--tinta-2); }
.muestras { border: 0; margin: 12px 0 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.muestras legend { width: 100%; padding: 0; margin-bottom: 8px; font-size: .8125rem; color: var(--tinta-2); }
.muestras legend span { color: var(--tinta); font-weight: 600; }
.muestra { position: relative; cursor: pointer; }
.muestra input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.muestra__mecha { display: block; width: 30px; height: 40px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 1px, transparent 1px 4px), linear-gradient(var(--c), var(--c)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .3s var(--facil), box-shadow .2s; }
.muestra input:checked + .muestra__mecha { box-shadow: 0 0 0 2px var(--agua), 0 0 0 4px var(--anil); transform: translateY(-3px); }
.muestra input:focus-visible + .muestra__mecha { outline: 2.5px solid var(--guayacan); outline-offset: 5px; }
.pieza .ctl { margin-top: auto; padding-top: 14px; }

.mas { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 46px; border: 1.5px solid var(--anil); border-radius: 999px; background: var(--anil); color: #fff; font: inherit; font-weight: 700; font-size: .9375rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--facil); }
.mas:hover { background: var(--anil-2); border-color: var(--anil-2); }
.mas:active { transform: scale(.97); }
.mas svg { width: 18px; height: 18px; }
.ctl--claro .mas { background: var(--anil); color: #fff; }
.ctl--claro .mas:hover { background: var(--anil-2); }
.paso { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 4px; border-radius: 999px; background: var(--anil); color: #fff; animation: abrir-paso .35s var(--facil); }
.paso button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--guayacan); font: inherit; font-size: 1.35rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.paso button:hover { background: rgba(255,255,255,.12); }
.paso output { font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes abrir-paso { from { clip-path: inset(0 30% 0 30% round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }
.pieza--agotada .pieza__foto img { filter: grayscale(.7); opacity: .75; }
.pieza__encargo { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; border: 1.5px dashed #9AA0B8; color: var(--tinta-2); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.pieza__encargo:hover { border-style: solid; border-color: var(--anil); color: var(--anil); }
.pieza--agotada .pieza__cuerpo::after { content: ""; }
.sin-resultados { margin-top: 24px; padding: 18px; border-radius: 6px; background: #fff; }

/* ───── Taller (achiote) ───── */
.taller { background: var(--achiote); color: #FFF4EA; padding: 56px 0; }
.taller__grid { display: grid; gap: 28px; }
.taller__foto { margin: 0; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #7A3A1E, #D9A066); }
.taller__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.taller h2 { font-size: clamp(2rem, 8vw, 3.6rem); letter-spacing: -.035em; font-variation-settings: "wdth" 78; color: #fff; }
.taller__historia { margin-top: 16px; display: grid; gap: 12px; font-size: 1.0625rem; max-width: 52ch; }
.taller__cifras { margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid rgba(255,244,234,.35); padding-top: 16px; }
.taller__cifras div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.taller__cifras dd { margin: 0; font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variation-settings: "wdth" 75; color: #fff; }
.taller__cifras dt { margin-top: 6px; font-size: .8125rem; line-height: 1.3; color: #FFE3CF; }

/* ───── Envíos y pagos ───── */
.envios { padding: 60px 0; }
.envios__grid { display: grid; gap: 32px; }
.envios__lead { margin-top: 14px; color: var(--tinta-2); font-size: 1.0625rem; max-width: 48ch; }
.envios__sub { margin-top: 26px; font-size: 1rem; font-weight: 600; }
.pagos { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pagos li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--agua-2); font-weight: 600; font-size: .9375rem; }
.pagos .pagos__fuerte::after { content: " · paga al recibir"; font-weight: 400; color: var(--tinta-2); margin-left: 4px; }
.reglas { margin: 0; display: grid; border-top: 2px solid var(--anil); }
.regla { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--agua-2); }
.regla dt { font-weight: 700; color: var(--anil); }
.regla dd { margin: 0; color: var(--tinta-2); }

/* ───── Opiniones (nogal) ───── */
.opiniones { background: var(--nogal); color: #F4E9DF; padding: 60px 0; }
.opiniones h2 { color: #fff; }
.opiniones__fila { display: grid; gap: 28px; margin-top: 28px; }
.opinion { margin: 0; padding-top: 18px; border-top: 1px solid rgba(244,233,223,.25); }
.estrellas { display: inline-flex; gap: 3px; color: var(--guayacan); }
.estrellas svg { width: 16px; height: 16px; }
.estrellas .apagada { color: rgba(244,233,223,.3); }
.opinion blockquote { margin: 12px 0 0; }
.opinion blockquote p { font-size: 1.25rem; line-height: 1.4; letter-spacing: -.01em; font-weight: 500; }
.opinion figcaption { margin-top: 12px; font-size: .875rem; color: #D9C7B8; }
.opiniones .nota-ejemplo { margin-top: 28px; font-size: .8125rem; color: #C8B4A4; }

/* ───── Preguntas ───── */
.preguntas { padding: 60px 0 72px; }
.preguntas h2 { margin-bottom: 16px; }
details { border-bottom: 1px solid var(--agua-2); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; font-weight: 600; font-size: 1.0625rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--anil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .3s var(--facil); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--tinta-2); max-width: 62ch; }

/* ───── Pie ───── */
.pie { background: var(--anil); color: var(--anil-claro); padding: 40px 0; font-size: .9375rem; }
.pie__grid { display: grid; gap: 18px; }
.pie__grid p + p { margin-top: 4px; }
.pie__marca { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; color: #fff; font-variation-settings: "wdth" 80; margin-bottom: 8px; }
.pie a { color: #fff; }
.pie__credito { font-size: .8125rem; color: #9DA6CC; }

/* ───── Barra del pedido ───── */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 18px 12px calc(12px + var(--pie-seguro)); background: linear-gradient(rgba(237,239,245,0), rgba(237,239,245,.94) 45%); transition: transform .45s var(--facil); }
.barra[data-visible="no"] { transform: translateY(130%); visibility: hidden; transition: transform .45s var(--facil), visibility 0s .45s; }
.barra__boton { width: 100%; max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "cuenta total" "aviso total"; align-items: center; column-gap: 12px; text-align: left; min-height: 64px; padding: 10px 12px 10px 20px; border: 0; border-radius: 999px; background: var(--anil); color: #fff; font: inherit; cursor: pointer; box-shadow: 0 18px 36px -12px rgba(15,22,52,.6); }
.barra__cuenta { grid-area: cuenta; font-weight: 700; }
.barra__aviso { grid-area: aviso; font-size: .8125rem; color: var(--anil-claro); }
.barra__total { grid-area: total; background: var(--guayacan); color: var(--anil); font-weight: 800; font-size: 1.1rem; padding: 10px 16px; border-radius: 999px; font-variant-numeric: tabular-nums; }

/* ───── Hojas ───── */
dialog.hoja { width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 18px 18px 0 0; background: #fff; color: var(--tinta); overflow: hidden; }
dialog.hoja[open] { display: flex; flex-direction: column; animation: subir .4s var(--facil); }
dialog.hoja::backdrop { background: rgba(15,22,52,.55); }
@keyframes subir { from { transform: translateY(48px); opacity: 0; } }
dialog.hoja form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.hoja__cabeza { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 1px solid var(--agua-2); }
.hoja__cabeza h2 { font-size: 1.75rem; letter-spacing: -.03em; font-variation-settings: "wdth" 80; color: var(--anil); }
.cerrar { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--agua); color: var(--anil); display: grid; place-items: center; cursor: pointer; }
.cerrar svg { width: 20px; height: 20px; }
.hoja__cuerpo { flex: 1; overflow-y: auto; padding: 6px 20px 16px; overscroll-behavior: contain; }
.hoja__pie { padding: 12px 20px calc(14px + var(--pie-seguro)); border-top: 1px solid var(--agua-2); }
.lineas { list-style: none; margin: 8px 0 0; padding: 0; }
.linea { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--agua-2); }
.linea__nombre { font-weight: 600; line-height: 1.25; }
.linea__var { font-size: .8125rem; color: var(--tinta-2); }
.linea .paso { grid-column: 2; grid-row: 1; min-height: 38px; animation: none; }
.linea .paso button { width: 34px; height: 34px; font-size: 1.15rem; }
.linea .paso output { min-width: 14px; text-align: center; }
.linea__precio { grid-column: 3; grid-row: 1; min-width: 74px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.vacio { padding: 18px 0; color: var(--tinta-2); }
.meta { margin-top: 14px; }
.meta__barra { display: block; height: 6px; border-radius: 3px; background: var(--agua); overflow: hidden; }
.meta__barra span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--achiote-vivo); transition: width .6s var(--facil); }
.meta__txt { margin-top: 6px; font-size: .8125rem; color: var(--tinta-2); }
.totales { display: grid; grid-template-columns: 1fr auto; gap: 4px 0; margin: 14px 0 18px; font-variant-numeric: tabular-nums; }
.totales:empty { display: none; }
.totales span:nth-child(even) { text-align: right; font-weight: 600; padding-left: 12px; }
.totales .total { font-size: 1.3rem; font-weight: 700; color: var(--anil); margin-top: 6px; padding-top: 8px; border-top: 2px solid var(--anil); }
.campo { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.campo > label, .campo legend { display: block; padding: 0; margin-bottom: 6px; font-weight: 600; font-size: .9375rem; }
.opcional { font-weight: 400; color: var(--tinta-2); }
.campo input[type=text], .campo textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #B9BED0; border-radius: 10px; font: inherit; color: var(--tinta); background: #fff; }
.campo textarea { min-height: 76px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--anil); box-shadow: 0 0 0 3px rgba(28,40,86,.18); }
.campo input::placeholder, .campo textarea::placeholder { color: #6B6F84; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones label { position: relative; cursor: pointer; }
.opciones label[hidden] { display: none; }
.opciones input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opciones span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #B9BED0; border-radius: 999px; font-weight: 600; font-size: .9375rem; transition: background .15s, color .15s, border-color .15s; }
.opciones input:checked + span { background: var(--anil); border-color: var(--anil); color: #fff; }
.opciones input:focus-visible + span { outline: 2.5px solid var(--guayacan); outline-offset: 2px; }
.privado { font-size: .8125rem; color: var(--tinta-2); }
.error { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #FCEBE5; color: #8A2A0E; font-weight: 600; font-size: .9375rem; }
.chat__aviso { margin: 12px 0; font-size: .875rem; color: var(--tinta-2); }
.chat { background: #E9E4DA; border-radius: 12px; padding: 16px 14px; margin-bottom: 16px; }
.chat__burbuja { margin-left: auto; max-width: 92%; background: #DCF7C5; color: #10210A; border-radius: 10px 2px 10px 10px; padding: 10px 12px; white-space: pre-wrap; font-size: .9rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.12); }

/* ───── Tableta ───── */
@media (min-width: 640px) {
  .piezas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
  .envio-tira { grid-template-columns: repeat(4, 1fr); }
  .envio-tira div { padding-right: 16px; }
  .opiniones__fila { grid-template-columns: repeat(3, 1fr); }
}
/* ───── Escritorio ───── */
@media (min-width: 1024px) {
  .envoltura { padding: 0 48px; }
  .nav { display: flex; }
  .portada { padding-top: 64px; }
  .portada__texto { display: block; }
  .portada .muestra-grande { margin-top: 0; }
  .portada__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
  h1 { font-size: 8.5rem; }
  .muestra-grande { order: 0; transform: rotate(1.5deg); transition: transform .6s var(--facil); }
  .muestra-grande:hover { transform: rotate(0deg); }
  .muestra-grande__foto img { aspect-ratio: 1; }
  .lead { font-size: 1.25rem; margin-top: 22px; }
  .tintes { margin-top: 48px; }
  .tintes li::before { height: 86px; }
  .envio-tira { margin-top: 56px; }
  .catalogo { padding: 96px 0 104px; }
  .catalogo__cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
  .catalogo__filtros { grid-template-columns: 1fr 320px; align-items: center; margin-top: 28px; }
  .filtros { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; }
  .piezas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 28px; margin-top: 40px; }
  .taller { padding: 104px 0; }
  .taller__grid { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
  .envios { padding: 104px 0; }
  .envios__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .regla { grid-template-columns: 160px 1fr; gap: 24px; padding: 20px 0; }
  .opiniones { padding: 104px 0; }
  .opiniones__fila { gap: 48px; margin-top: 44px; }
  .opinion blockquote p { font-size: 1.45rem; }
  .preguntas { padding: 104px 0 120px; }
  .pie__grid { grid-template-columns: 1.4fr 1fr auto; align-items: end; }
  body[data-con-barra="si"] { padding-bottom: 0; }
  .barra { left: auto; right: 24px; bottom: 24px; padding: 0; width: 460px; background: none; }
  dialog.hoja { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; border-radius: 0; max-width: 480px; }
  dialog.hoja[open] { animation: entrar .45s var(--facil); }
  dialog.hoja--chat { margin: auto; height: auto; border-radius: 16px; }
  @keyframes entrar { from { transform: translateX(60px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
