/* Chucao Cuadros 1.1.4 · Un pequeño taller, sin cambiar la solicitud.
   Capa acotada al shortcode. Los recursos son locales y decorativos. */
.chcu {
  --chcu-clay: #984e38;
  --chcu-pencil: #cfc4b4;
  --chcu-sheet: #fffdf7;
  --chcu-heading: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  padding: clamp(20px,3.3vw,40px);
  border-color: var(--chcu-pencil);
  border-radius: 5px 28px 5px 5px;
  background-image: url('../artesanal/papel.png');
  box-shadow: 0 8px 26px #523c2109;
}
.chcu .chcu-header { position: relative; margin-bottom: 22px; }
.chcu .chcu-home {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  margin-bottom: 4px;
  color: var(--chcu-accent);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: var(--chcu-clay);
  text-underline-offset: 5px;
}
.chcu .chcu-header::after {
  content: '';
  position: absolute;
  top: 34px;
  right: 4px;
  width: 80px;
  height: 40px;
  opacity: .65;
  background: url('../artesanal/ramita.svg') center / contain no-repeat;
  pointer-events: none;
}
.chcu .chcu-logo { margin: 0 auto 8px; }
.chcu .chcu-logo img {
  width: 92px;
  height: 92px;
  max-width: 100%;
  max-height: 92px;
  object-fit: contain;
}
.chcu h2, .chcu h3 { font-family: var(--chcu-heading); }
.chcu h2 { font-size: clamp(29px,3.4vw,42px); margin: 8px auto 12px; }
.chcu .chcu-header > p:last-child { font-size: 15px; max-width: 560px; margin-inline: auto; }
.chcu .chcu-eyebrow { color: var(--chcu-clay); }
.chcu .chcu-progress {
  border-block: 1px dashed var(--chcu-pencil);
  padding-block: 12px;
  margin-bottom: 26px;
}
.chcu .chcu-progress li > span { border-style: dashed; border-radius: 46% 53% 48% 51%; }
.chcu .chcu-progress [aria-current='step'] > span { outline: 1px solid var(--chcu-accent); outline-offset: 3px; }
.chcu .chcu-step-intro { margin-bottom: 22px; font-size: 15px; }
.chcu .chcu-categories { gap: 14px; margin-block: 20px; }
.chcu button.chcu-category {
  min-height: 102px;
  padding: 14px 18px;
  gap: 4px;
  border: 1px solid var(--chcu-pencil);
  border-radius: 3px 12px 3px 3px;
  background: var(--chcu-sheet);
  box-shadow: 1px 3px 0 #523c2108;
  transition: border-color 180ms ease,box-shadow 180ms ease,transform 180ms ease;
}
.chcu button.chcu-category-with-picture {
  display: grid;
  grid-template-columns: 70px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
}
.chcu .chcu-category-picture {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 70px;
  height: 70px;
  display: block;
  background: #f2eee4;
  border: 1px solid #e5ddcd;
  border-radius: 45% 52% 48% 50%;
  overflow: hidden;
}
.chcu .chcu-category-picture img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}
.chcu .chcu-category strong { font-size: 17px; }
.chcu .chcu-category-with-picture strong { grid-column: 2; grid-row: 1; align-self: end; }
.chcu .chcu-category-with-picture .chcu-category-count { grid-column: 2; grid-row: 2; align-self: start; }
.chcu .chcu-category .chcu-category-count { font-size: 12px; }
.chcu button.chcu-category[aria-pressed='true'] { border-color: var(--chcu-accent); background: #eef2e9; }
.chcu .chcu-collection { margin-block: 24px; }
/* La regla original para legend no debe ensanchar una etiqueta solo accesible. */
.chcu .chcu-collection legend.chcu-sr { width: 1px; height: 1px; padding: 0; margin: -1px; }
.chcu .chcu-design-card,
.chcu .chcu-size-card {
  background: var(--chcu-sheet);
  border: 1px solid var(--chcu-pencil);
  border-radius: 3px 14px 3px 3px;
  padding: 8px 8px 14px;
  box-shadow: 1px 3px 0 #523c2108;
}
.chcu .chcu-card-photo { border-radius: 2px 9px 2px 2px; }
.chcu .chcu-design-card:has(input:checked),
.chcu .chcu-size-card:has(input:checked) {
  border-color: var(--chcu-accent);
  box-shadow: 0 0 0 2px var(--chcu-accent);
  background: #eef2e9;
}
.chcu .chcu-selection-mark { border-radius: 46% 53% 48% 51%; box-shadow: 0 1px 3px #253f3626; }
.chcu .chcu-size-card { padding: 22px 16px; }
.chcu .chcu-size-visual { color: var(--chcu-clay); font-size: 36px; }
.chcu .chcu-name {
  border-color: var(--chcu-pencil);
  border-radius: 3px 10px 3px 3px;
  background: var(--chcu-sheet);
}
.chcu .chcu-name-label { color: var(--chcu-accent); }
.chcu .chcu-summary {
  position: relative;
  background-color: var(--chcu-sheet);
  background-image: url('../artesanal/papel.png');
  border: 1px solid var(--chcu-pencil);
  border-radius: 3px 16px 3px 3px;
  box-shadow: 2px 4px 0 #523c210a;
}
.chcu .chcu-summary::before {
  content: '';
  position: absolute;
  right: 18px;
  top: 7px;
  width: 46px;
  height: 13px;
  background: #e8d3a799;
  border-inline: 1px dashed #c8af81;
  transform: rotate(5deg);
  pointer-events: none;
}
.chcu .chcu-summary-image img { border: 4px solid var(--chcu-sheet); outline: 1px solid var(--chcu-pencil); border-radius: 3px 10px 3px 3px; }
.chcu .chcu-summary dd[data-summary='name'] { color: var(--chcu-accent); font: 600 20px/1.35 var(--chcu-heading); }
.chcu .chcu-summary .chcu-total { border-top-style: dashed; font-variant-numeric: tabular-nums; }
.chcu button.chcu-primary,
.chcu button.chcu-secondary {
  border-radius: 3px 9px 3px 3px;
  min-height: 46px;
  transition: transform 160ms ease,box-shadow 160ms ease,background-color 160ms ease;
}
.chcu button.chcu-primary { box-shadow: 2px 3px 0 #253f3626; }
.chcu button.chcu-secondary { border-color: var(--chcu-pencil); }
.chcu button.chcu-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #253f3626; }
.chcu .chcu-footer { border-top: 1px dashed var(--chcu-pencil); font-size: 13px; margin-top: 36px; }
.chcu .chcu-footer strong { color: var(--chcu-accent); }
.chcu .chcu-footer a { text-decoration-color: var(--chcu-clay); text-underline-offset: 5px; }
.chcu a:focus-visible { outline: 3px solid #b56b28; outline-offset: 4px; }
@media (hover:hover) and (pointer:fine) {
  .chcu button.chcu-category:hover { transform: translateY(-2px); border-color: var(--chcu-accent); box-shadow: 1px 5px 0 #523c2110; }
  .chcu button.chcu-primary:hover { transform: translateY(-2px); box-shadow: 2px 5px 0 #253f3626; }
}
@media (max-width:600px) {
  .chcu { margin: 12px auto; padding: 16px; border-radius: 4px 18px 4px 4px; }
  .chcu .chcu-header { margin-bottom: 18px; }
  .chcu .chcu-header::after { width: 54px; height: 30px; top: 48px; right: 0; }
  .chcu .chcu-logo img { width: 76px; height: 76px; max-height: 76px; }
  .chcu h2 { font-size: 28px; line-height: 1.15; margin-block: 8px 10px; }
  .chcu .chcu-header > p:last-child { font-size: 13px; }
  .chcu .chcu-progress { margin-bottom: 22px; padding-block: 12px; }
  .chcu .chcu-progress li { font-size: 11px; gap: 7px; }
  .chcu .chcu-step-intro { font-size: 14px; margin-bottom: 18px; }
  .chcu button.chcu-category { min-height: 88px; padding: 10px 14px; }
  .chcu button.chcu-category-with-picture { grid-template-columns: 60px minmax(0,1fr); column-gap: 14px; }
  .chcu .chcu-category-picture { width: 60px; height: 60px; }
  .chcu .chcu-categories { gap: 12px; }
  .chcu .chcu-design-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .chcu .chcu-design-card { padding: 6px 6px 12px; }
  .chcu .chcu-design-card strong { font-size: 14px; padding: 10px 3px 0; }
  .chcu .chcu-summary { padding: 20px; gap: 20px; }
  .chcu .chcu-summary dl { column-gap: 16px; }
  .chcu .chcu-summary-image { max-width: 200px; }
}
@media (max-width:359px) {
  .chcu .chcu-design-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) {
  .chcu *, .chcu *::before, .chcu *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .chcu button.chcu-category:hover, .chcu button.chcu-primary:hover { transform: none; }
}
@media (forced-colors:active) {
  .chcu .chcu-design-card:has(input:checked), .chcu .chcu-size-card:has(input:checked) { outline: 3px solid Highlight; }
}
