body.tienda {
  --papel:#fff8ef; --tinta:#43291f; --vino:#893c24; --linea:#e6cdb8;
  background:var(--papel); color:var(--tinta);
}
.tienda .simbolos { position:absolute; width:0; height:0; overflow:hidden; }
.tienda svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tienda main,.tienda .barra-marca,.pie-interior { width:min(100%,1400px); margin:auto; padding-inline:clamp(14px,4vw,62px); }
.tienda main { padding-bottom:0; }
.tienda .firma-marca,.firma-pie { display:flex; align-items:center; gap:10px; }
.tienda .firma-marca { color:#532e20; font:clamp(21px,2.5vw,34px)/1 Georgia,serif; letter-spacing:-.06em; text-decoration:none; }
.firma-marca svg,.firma-pie svg { width:44px; height:45px; padding:6px; border-radius:15px; background:#ffdec2; color:#8b391e; }
.tienda #abrir-carrito svg { width:20px; height:20px; }
.tienda #abrir-carrito,.tienda .principal,.tienda #productos .agregar,.tienda #detalle .agregar,.tienda #bolsa a.comprar {
  background:#903d24; color:white; border:1px solid #80331e; border-radius:24px; font-weight:650;
}
.tienda #cantidad { background:#ffe1c4; color:#692d1c; }
.tienda .escaparate {
  position:relative; isolation:isolate; overflow:hidden; display:grid; justify-items:center;
  padding:0 16px 24px; border-radius:26px; background:radial-gradient(ellipse,#ffd2ad,#ffaa82);
}
.escaparate:before,.escaparate:after {
  content:""; position:absolute; width:31%; height:53%; top:22%; z-index:-1;
  border:2px dashed #b55e3880; border-radius:52% 48% 61% 39%; transform:rotate(-24deg);
}
.escaparate:before { left:-12%; } .escaparate:after { right:-12%; transform:rotate(24deg); }
.escaparate img { width:min(100%,610px); height:auto; mask-image:radial-gradient(ellipse 70% 67%,black 70%,transparent); }
.escaparate .boton { padding:10px 22px; }
.tienda #catalogo { margin:0; padding:clamp(25px,4vw,55px) 0; scroll-margin-top:15px; }
.tienda #catalogo .barra { padding:16px; border:1px solid var(--linea); border-radius:17px; background:#fffdf9; }
.tienda :is(input,select,#limpiar,#paginas button,dialog button) { border-radius:10px; }
.tienda #catalogo #categorias { display:flex; flex-wrap:wrap; gap:7px; border:0; }
.tienda #catalogo #categorias button { border:1px solid var(--linea); border-radius:24px; background:#fffaf4; color:#633924; }
.tienda #catalogo #categorias button[aria-pressed=true] { background:#703621; color:white; box-shadow:none; }
.tienda #productos { gap:clamp(10px,2vw,26px); }
.tienda .producto {
  --acento:#ffdfc5; display:flex; gap:10px; padding:clamp(8px,1.2vw,16px);
  border:1px solid #ead3c1; border-radius:26px; background:#fffdf9;
}
.producto:nth-child(3n + 2) { --acento:#ffe7ab; } .producto:nth-child(3n) { --acento:#f6d3c9; }
.tienda .producto .tarjeta { display:flex; flex-direction:column; gap:7px; border-radius:18px; }
.tienda .producto .foto { width:100%; aspect-ratio:4/4.7; border-radius:20% 20% 12px 12px / 12% 12% 12px 12px; }
.tienda .tarjeta small { color:#754e3f; text-align:left; }
.tienda .tarjeta strong { margin:0 0 4px; overflow-wrap:anywhere; }
.tienda .medidas { width:100%; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px; margin-top:auto; color:#5c3929; }
.medidas span { background:var(--acento,#ffe2cd); border-radius:8px; padding:4px 8px; font:600 .85rem/1.3 system-ui,sans-serif; }
.tienda #productos .agregar.incluida,.tienda #detalle .agregar.incluida { background:#fff4e6; color:#74341c; }
.tienda dialog { border-radius:20px; background:#fffaf1; }
.tienda #ficha { padding:0; width:min(800px,94vw); max-height:88dvh; }
#ficha form { position:sticky; top:0; z-index:1; margin:0; padding:8px 14px; background:#fffaf1; }
#detalle { display:grid; grid-template-columns:1.1fr 1fr; gap:16px; padding:0 20px 18px; }
#detalle > .foto { grid-row:span 2; height:clamp(230px,42vh,430px); margin:0; border-radius:16px; background:#f3e6d7; }
.detalle-info { min-width:0; align-self:center; overflow-wrap:anywhere; }
.detalle-info h2 { margin:8px 0 18px; }
.detalle-info a { color:#783c25; text-underline-offset:4px; }
.detalle-acciones { align-self:end; }
.tienda .pie { color:#fff4e3; background:#512e23; border-top:8px solid #eab492; }
.pie-interior { display:grid; grid-template-columns:1fr auto; align-items:center; gap:26px; padding-block:clamp(28px,5vw,66px); }
.firma-pie h2 { margin:0; font:400 clamp(28px,3.5vw,52px)/1 Georgia,serif; letter-spacing:-.05em; }
.firma-pie i { color:#ffd2ac; }
.redes { display:flex; flex-wrap:wrap; gap:10px; }
.redes a { display:flex; align-items:center; gap:10px; padding:10px 15px; border:1px solid #91644e; border-radius:15px; text-decoration:none; }
.redes small { display:block; color:#ffd3b0; }
.letra-red { font:24px Georgia,serif; color:#ffd3b0; }
.redes a[href]:hover { background:#70402c; }
.pie nav { grid-column:1/-1; display:flex; justify-content:space-between; padding-top:14px; border-top:1px dashed #a7775f; font-size:.9rem; }
.pie nav a { text-underline-offset:4px; }
.gestion .acciones { align-items:flex-start; }
.gestion .acciones details { max-width:100%; }
.gestion .acciones summary { padding:8px; border-radius:9px; color:#66412b; cursor:pointer; }
.gestion .acciones details[open] { background:#fff6eb; border-radius:10px; padding:2px 5px; }
.gestion .acciones details[open] button { display:block; margin:4px 0; }
.gestion #contacto { display:grid; gap:14px; }
.gestion #contacto button { justify-self:start; }
.gestion .acciones summary:focus-visible,.tienda :focus-visible { outline:3px solid #b05531; outline-offset:3px; }
.tienda .pie :focus-visible { outline-color:#ffce9c; }
@media(max-width:700px) {
  .pie-interior { grid-template-columns:1fr; gap:20px; }
  .tienda .producto { border-radius:18px; }
  .tienda #ficha { width:100%; max-width:none; margin:auto 0 0; max-height:90dvh; border-radius:22px 22px 0 0; }
  #detalle { display:block; padding:0 14px; }
  #detalle > .foto { height:34dvh; }
  .detalle-info { padding:16px 0; }
  .detalle-acciones { position:sticky; bottom:0; padding:10px 0 max(10px,env(safe-area-inset-bottom)); background:#fffaf1; }
}
@media(max-width:480px) {
  .barra-marca nav > a { display:none; }
  .tienda .firma-marca svg { width:33px; height:36px; padding:4px; }
  .tienda #abrir-carrito { padding:7px 10px; }
}

/* Identidad adaptable: el nombre es texto y conserva su nitidez al ampliar. */
.tienda .firma-marca .sello { width:clamp(32px,3vw,46px); height:auto; }
.firma-pie .sello { width:52px; height:auto; background:#ffe3cd; padding:7px; border-radius:14px; }
.tienda .barra-marca { min-height:68px; }
.tienda .barra-marca .ir-buscar {
  min-height:44px; min-width:44px; display:inline-flex; align-items:center;
  justify-content:center; gap:7px; color:#643925; border-radius:22px;
}
.ir-buscar svg { width:19px; height:19px; }
.tienda .escaparate {
  gap:clamp(16px,2vw,28px); align-content:center;
  padding:clamp(28px,4.2vw,60px) 18px;
  background:radial-gradient(ellipse at 50% 35%,#fff2df 0%,#ffe2c8 57%,#f5b795 100%);
  border:1px solid #ebbea2; margin:0;
}
.identidad-portada { display:flex; align-items:center; justify-content:center; gap:clamp(14px,2.4vw,36px); text-align:left; }
.escaparate .sello-central { width:clamp(86px,10vw,150px); height:auto; mask-image:none; }
.identidad-portada h1 { color:#502b1e; font:500 clamp(42px,6.7vw,100px)/1.02 Georgia,serif; letter-spacing:-.062em; }
.identidad-portada h1 i { color:#914326; white-space:nowrap; }
.identidad-portada p { margin:8px 0 0; letter-spacing:.18em; text-transform:uppercase; font:650 clamp(10px,1.1vw,15px)/1.4 system-ui,sans-serif; letter-spacing:.18em; color:#71432e; }
.tienda #consulta { scroll-margin-top:24px; }
@media(max-width:640px) {
  .tienda .barra-marca { flex-wrap:nowrap; gap:4px; min-height:60px; padding-block:6px; }
  .tienda .firma-marca { gap:5px; white-space:nowrap; font-size:clamp(18px,5vw,26px); }
  .tienda .barra-marca nav { flex-wrap:nowrap; gap:3px; }
  .barra-marca nav > a[href="#catalogo"],.ir-buscar span { display:none; }
  .tienda #abrir-carrito { gap:4px; padding:6px 9px; }
  .tienda .escaparate { padding:20px 12px; gap:15px; }
  .identidad-portada { flex-direction:column; gap:4px; text-align:center; }
  .escaparate .sello-central { width:clamp(67px,18vw,102px); }
  .identidad-portada h1 { font-size:clamp(35px,9vw,54px); }
  .identidad-portada p { margin-top:5px; }
}


/* El color central corresponde al fondo del PNG original. */
.tienda .escaparate {
  background: radial-gradient(ellipse at center, #fca175 0%, #fca175 32%, #ffd3b2 75%, #ffe7d2 100%);
  padding: 0 14px clamp(20px, 2vw, 30px);
  gap: 0;
  border: 1px solid #efbc9c;
}
.tienda .escaparate::before, .tienda .escaparate::after { content: none; }
.tienda .escaparate .portada-original {
  display: block;
  width: min(100%, clamp(370px, 39vw, 500px));
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-block: clamp(-60px, -4vw, -24px) -12px;
  border-radius: 0;
  --laterales: linear-gradient(to right, transparent, black 9%, black 91%, transparent);
  --vertical: linear-gradient(to bottom, transparent, black 19%, black 86%, transparent);
  -webkit-mask-image: var(--laterales), var(--vertical);
  -webkit-mask-composite: source-in;
  mask-image: var(--laterales), var(--vertical);
  mask-composite: intersect;
}
.tienda .escaparate .boton { position: relative; padding-inline: 22px; }
.tienda .firma-marca .sello, .tienda .firma-pie .sello { padding: 0; border-radius: 8px; }
.tienda .producto:focus-within { border-color: #b96540; }
.tienda .pie .redes a[href]:focus-visible { background: #70402c; }
@media(max-width:640px) {
  .tienda .escaparate { padding: 0 6px 20px; }
  .tienda .escaparate .portada-original { width: min(100%, 420px); margin-block: -24px -7px; }
}

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .tienda .producto { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
  .tienda .producto:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #63351d16; border-color: #d9ae90; }
  .tienda .producto .foto img { transition: transform .4s ease; }
  .tienda .tarjeta:hover .foto img { transform: scale(1.035); }
  .tienda :is(.boton, button:not(.tarjeta), .redes a[href]), .gestion :is(button:not(.mini),summary) {
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  }
  .tienda :is(.boton, button:enabled:not(.tarjeta), .redes a[href]):hover,
  .gestion :is(button:enabled:not(.mini),summary):hover { transform: translateY(-2px); }
  .tienda :is(.boton, button:enabled, .redes a[href]):active { transform: translateY(0); }
  .tienda .barra-marca nav a, .tienda .pie nav a {
    text-decoration: none;
    background-image: linear-gradient(currentColor,currentColor);
    background-position: left bottom;
    background-size: 0 1px;
    background-repeat: no-repeat;
    transition: background-size .22s ease;
  }
  .tienda .barra-marca nav a:hover, .tienda .pie nav a:hover { background-size: 100% 1px; }
}
@media (prefers-reduced-motion:no-preference) {
  .tienda dialog[open], .gestion dialog[open] { animation: aparecer-amira .18s ease-out; }
  @keyframes aparecer-amira { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}

/* Portada de borde a borde. El catálogo mantiene su propio ancho de lectura. */
body.tienda main:has(.escaparate-amplio) { width:100%; max-width:none; padding-inline:0; }
.tienda main:has(.escaparate-amplio) #catalogo {
  width:min(100%,1400px); margin-inline:auto; padding-inline:clamp(14px,4vw,62px);
}
.tienda .escaparate.escaparate-amplio {
  border:0; border-radius:0; margin:0; padding:0 12px clamp(18px,2vw,32px);
  background:#fca175;
}
.escaparate-amplio img.fondo-vitrina {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  z-index:-1; mask-image:none;
}
.tienda .escaparate-amplio img.portada-original {
  width:min(65%,clamp(350px,35vw,510px));
  margin-top:clamp(-62px,-4vw,-24px);
}
@media(max-width:640px) {
  .tienda .escaparate-amplio img.portada-original { width:min(87%,370px); margin-top:-20px; }
  .escaparate-amplio img.fondo-vitrina { object-position:18% center; }
}
.gestion .busca-grupo { margin-top:24px; padding-top:18px; border-top:1px solid var(--linea); }
.gestion :is(#cuenta-marcas,#cuenta-categorias) { color:#745548; font-size:.9rem; }
.gestion .renombrar-grupo { width:100%; display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.gestion .renombrar-grupo input { flex:1 1 150px; width:auto; }
.gestion .clasificacion .renombrar-grupo button { margin:0; }
.tienda .producto { position:relative; }
.tienda .producto .favorito {
  position:absolute; top:1rem; right:1rem; width:44px; height:44px; padding:0;
  border:1px solid #ebccb6; border-radius:50%; background:#fffaf2; color:#84391f;
  font:26px/1 Georgia,serif; box-shadow:0 2px 10px #60241120;
}
.tienda #ver-favoritos { border-radius:22px; margin-top:12px; }
.tienda #ver-favoritos[aria-pressed=true], .vistas button[aria-pressed=true] { background:#803920; color:white; }
.galeria { min-width:0; grid-row:span 2; }
.galeria .foto { height:clamp(240px,42vh,430px); border-radius:16px; }
.vistas { display:flex; gap:6px; flex-wrap:wrap; margin:10px 0; }
.medidas-reales { margin:14px 0; padding:12px; background:#fae9d9; border-radius:12px; }
.medidas-reales h3 { font-size:1rem; margin:0 0 6px; }
.medidas-reales p { margin:2px 0; }
.gestion .extras { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; border:1px solid #dec8b8; border-radius:12px; }
.gestion .extras input[type=checkbox] { width:18px; min-height:18px; }
.gestion .extras label:has(input[type=checkbox]) { display:flex; align-items:center; gap:6px; }
@media(min-width:761px) { .tienda #catalogo .barra { grid-template-columns:2fr 1fr 1fr auto; } }
@media(max-width:600px) { .gestion .extras { grid-template-columns:1fr; } .galeria .foto { height:34dvh; } }
