/* =========================================================
   Cris Angela · Catálogo online — Tema claro
   Blanco + tinta azul noche + acento violeta/rosa + cian
   ========================================================= */
:root {
  --bg: #ffffff;
  --suave: #f6f7fb;
  --suave-2: #eef0f8;
  --linea: #eceef5;
  --linea-2: #dfe2ee;
  --tinta: #12152b;
  --txt: #12152b;
  --txt-2: #565b7a;
  --txt-3: #9196b2;
  --acento: #6d4aff;
  --acento-claro: #f1edff;
  --rosa: #ff3d8b;
  --rosa-claro: #ffeaf3;
  --cian: #06b6d4;
  --cian-claro: #e3f8fc;
  --grad: linear-gradient(120deg, #6d4aff 0%, #a64bff 50%, #ff3d8b 100%);
  --grad-suave: linear-gradient(120deg, #f1edff 0%, #fbeaff 50%, #ffeaf3 100%);
  --foto: #f5f6fb;
  --wa: #22c55e;
  --wa-2: #16a34a;
  --radio: 20px;
  --sombra: 0 1px 2px rgba(18, 21, 43, .04), 0 10px 30px -14px rgba(18, 21, 43, .14);
  --sombra-hover: 0 22px 44px -20px rgba(109, 74, 255, .35);
  --top-h: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; color: var(--txt); background: var(--bg); line-height: 1.5; min-height: 100vh;
}
body.bloq { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--acento-claro); }

/* ---------- Aviso ---------- */
.aviso { background: var(--tinta); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }
.aviso span::before { content: '✦ '; color: #ffb3d2; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--linea);
}
.top-in { max-width: 1560px; margin: 0 auto; height: var(--top-h); display: flex; align-items: center; gap: 24px; padding: 0 28px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.marca-ico {
  width: 46px; height: 46px; border-radius: 15px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 22px; transform: rotate(-6deg);
  box-shadow: 0 10px 22px -8px rgba(166, 75, 255, .7);
}
.marca-logo { height: 48px; width: auto; max-width: 160px; object-fit: contain; }
.marca-txt { display: flex; flex-direction: column; line-height: 1.15; }
.marca-txt strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.marca-txt small { font-size: 12px; color: var(--txt-3); font-weight: 600; }

.buscar {
  flex: 1; max-width: 620px; margin: 0 auto; height: 50px; display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 18px; border-radius: 999px; color: var(--txt-3);
  background: var(--suave); border: 1.5px solid transparent; transition: border-color .2s, background .2s, box-shadow .2s;
}
.buscar:focus-within { background: #fff; border-color: var(--acento); box-shadow: 0 0 0 5px var(--acento-claro); }
.buscar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--txt); font-size: 15px; font-weight: 500; }
.buscar input::placeholder { color: var(--txt-3); }
.buscar kbd { font-family: inherit; font-size: 12px; color: var(--txt-3); background: #fff; border: 1px solid var(--linea-2); border-radius: 8px; padding: 2px 9px; margin-right: 6px; }

.top-acc { display: flex; align-items: center; gap: 10px; flex: none; }
.btn-top {
  position: relative; height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--linea-2);
  background: #fff; display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px;
  text-decoration: none; transition: all .2s;
}
.btn-top:hover { border-color: var(--tinta); }
.btn-top.wa { color: var(--wa-2); }
.btn-top.wa:hover { border-color: var(--wa); background: #effdf4; }
.carrito-btn { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.carrito-btn:hover { background: #262a4d; }
.badge-n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rosa); color: #fff;
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.badge-n.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.cats-movil { display: none !important; }

/* ---------- Layout ---------- */
.layout {
  max-width: 1560px; margin: 0 auto; padding: 28px 28px 50px;
  display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start;
}

/* ---------- Filtros (barra lateral) ---------- */
.filtros {
  position: sticky; top: calc(var(--top-h) + 20px);
  max-height: calc(100vh - var(--top-h) - 40px); overflow-y: auto;
  background: #fff; border: 1px solid var(--linea); border-radius: 24px; padding: 6px 0 12px;
  box-shadow: var(--sombra); scrollbar-width: thin; scrollbar-color: var(--linea-2) transparent;
}
.filtros::-webkit-scrollbar { width: 6px; }
.filtros::-webkit-scrollbar-thumb { background: var(--linea-2); border-radius: 3px; }
.filtros-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 14px; border-bottom: 1px dashed var(--linea-2); margin-bottom: 4px; }
.filtros-cab h2 { margin: 0; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.filtros-cab h2 svg { color: var(--acento); }
.filtros-n, .btn-filtros b {
  min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; font-size: 11.5px;
  background: var(--rosa); color: #fff; display: inline-grid; place-items: center; font-weight: 800;
}
.limpiar { border: 0; background: var(--suave); color: var(--txt-2); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; transition: all .2s; }
.limpiar:hover { background: var(--rosa-claro); color: var(--rosa); }
.cerrar-f { display: none; }
.capa-filtros { display: none; }

.f-grupo { border-bottom: 1px dashed var(--linea-2); }
.f-grupo:last-child { border-bottom: 0; }
.f-tit {
  width: 100%; border: 0; background: none; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-3);
}
.f-tit span { display: flex; align-items: center; gap: 9px; }
.f-tit svg { color: var(--acento); }
.flecha { width: 8px; height: 8px; border-right: 2px solid var(--txt-3); border-bottom: 2px solid var(--txt-3); transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.f-grupo:not(.abierto) .flecha { transform: rotate(-45deg); margin-top: 0; }
.f-grupo:not(.abierto) .f-cuerpo { display: none; }
.f-cuerpo { padding: 0 10px 14px; }

.cat-item {
  width: 100%; border: 0; background: none; text-align: left; display: flex; align-items: center; gap: 12px;
  padding: 7px 10px 7px 7px; border-radius: 16px; color: var(--txt); font-weight: 700; font-size: 14.5px; transition: background .15s;
}
.cat-item:hover { background: var(--suave); }
.cat-item.activo { background: var(--acento-claro); color: var(--acento); }
.cat-img { width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--foto); display: grid; place-items: center; overflow: hidden; padding: 4px; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; }
.cat-img.todos { background: var(--grad); color: #fff; font-size: 18px; padding: 0; }
.cat-item.activo .cat-img:not(.todos) { background: #fff; }
.cat-nom { flex: 1; line-height: 1.25; }
.cat-k { min-width: 30px; height: 24px; padding: 0 8px; border-radius: 12px; font-size: 12px; font-weight: 800; background: var(--suave); color: var(--txt-2); display: grid; place-items: center; }
.cat-item.activo .cat-k { background: var(--acento); color: #fff; }
.subcats { margin: 2px 0 8px 27px; padding-left: 14px; border-left: 2px solid var(--linea); }
.sub-item { width: 100%; border: 0; background: none; text-align: left; color: var(--txt-2); display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.sub-item::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--txt-3); flex: none; }
.sub-item span { flex: 1; }
.sub-item b { font-size: 12px; color: var(--txt-3); }
.sub-item:hover { color: var(--txt); background: var(--suave); }
.sub-item.activo { color: var(--rosa); background: var(--rosa-claro); }
.sub-item.activo::before { background: var(--rosa); border-color: var(--rosa); }

.rangos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; padding: 0 6px; }
.rango { border: 1.5px solid var(--linea-2); background: #fff; color: var(--txt-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 650; transition: all .15s; }
.rango:hover { border-color: var(--tinta); color: var(--txt); }
.rango.activo { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.precio-inputs { display: flex; align-items: center; gap: 8px; color: var(--txt-3); padding: 0 6px; }
.precio-inputs input { width: 100%; min-width: 0; height: 42px; border-radius: 12px; border: 1.5px solid var(--linea-2); background: #fff; padding: 0 12px; outline: 0; }
.precio-inputs input:focus { border-color: var(--acento); }

.switch { display: flex; align-items: center; gap: 12px; padding: 8px; font-weight: 600; color: var(--txt-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 40px; height: 23px; border-radius: 12px; background: var(--linea-2); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--acento); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }

/* ---------- Cabecera de la lista ---------- */
.cabecera-lista {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--grad-suave); border-radius: 28px; padding: 30px 34px; margin-bottom: 22px; min-height: 170px;
}
.cabecera-lista::after {
  content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 139, .18), transparent 70%);
}
.cab-txt { position: relative; z-index: 1; max-width: 560px; }
.migas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--txt-3); font-weight: 600; }
.migas button { border: 0; background: none; padding: 0; color: var(--txt-2); font-weight: 700; }
.migas button:hover { color: var(--acento); }
.migas i { font-style: normal; opacity: .6; }
.cabecera-lista h1 { margin: 6px 0 6px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.cabecera-lista p { margin: 0; color: var(--txt-2); font-weight: 500; }
.cab-fotos { position: relative; z-index: 1; display: flex; flex: none; }
.cab-fotos span {
  width: 112px; height: 112px; border-radius: 26px; background: #fff; padding: 12px; margin-left: -22px;
  box-shadow: 0 18px 36px -18px rgba(18, 21, 43, .35); transform: rotate(-6deg); transition: transform .3s;
}
.cab-fotos span:nth-child(2) { transform: rotate(4deg) translateY(-10px); }
.cab-fotos span:nth-child(3) { transform: rotate(-2deg) translateY(8px); }
.cab-fotos img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Burbujas de categorías ---------- */
.burbujas { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 6px; scrollbar-width: none; }
.burbujas::-webkit-scrollbar { display: none; }
.burbuja { flex: none; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 0; }
.b-img {
  width: 88px; height: 88px; border-radius: 50%; background: var(--foto); padding: 14px; display: grid; place-items: center;
  outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s, transform .2s;
}
.b-img { overflow: hidden; }
.b-img img { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; }
.b-img.todos { background: var(--grad); color: #fff; font-size: 26px; }
.burbuja b { font-size: 13.5px; font-weight: 700; line-height: 1.2; text-align: center; }
.burbuja small { font-size: 11.5px; color: var(--txt-3); font-weight: 600; margin-top: -4px; }
.burbuja:hover .b-img { transform: translateY(-3px); outline-color: var(--linea-2); }
.burbuja.activo .b-img { outline-color: var(--rosa); }
.burbuja.activo b { color: var(--rosa); }

/* ---------- Barra de herramientas ---------- */
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 0 2px 16px; margin-bottom: 16px; border-bottom: 1px solid var(--linea); }
.conteo { color: var(--txt-2); font-weight: 600; }
.conteo b { color: var(--txt); font-size: 17px; }
.ordenar { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--txt-3); font-size: 14px; font-weight: 600; }
.ordenar select {
  height: 44px; border-radius: 999px; border: 1.5px solid var(--linea-2); background: #fff; color: var(--txt); font-weight: 700;
  padding: 0 40px 0 18px; appearance: none; -webkit-appearance: none; outline: 0; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2312152b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.ordenar select:focus { border-color: var(--acento); }
.btn-filtros { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--linea-2); background: #fff; font-weight: 700; }

.activos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.activos:empty { display: none; }
.chip-act { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--tinta); color: #fff; border-radius: 999px; padding: 7px 8px 7px 15px; font-size: 13px; font-weight: 700; }
.chip-act span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); font-size: 14px; line-height: 1; }
.chip-act:hover span { background: var(--rosa); }

/* ---------- Tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radio);
  border: 1px solid var(--linea); transition: transform .25s ease, box-shadow .25s, border-color .25s;
  animation: entrar .4s ease both;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: #d9d0ff; }
@keyframes entrar { from { opacity: 0; transform: translateY(12px); } }
.card-foto {
  position: relative; aspect-ratio: 1 / 1; background: var(--foto); border: 0; padding: 20px; margin: 8px 8px 0;
  border-radius: 15px; display: grid; place-items: center; overflow: hidden;
}
.card-foto::before { content: ''; position: absolute; width: 64%; height: 14%; bottom: 9%; left: 18%; background: radial-gradient(closest-side, rgba(18, 21, 43, .13), transparent); border-radius: 50%; }
.card-foto img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.card:hover .card-foto img { transform: scale(1.07); }
.card-foto .sin-foto { font-size: 46px; font-weight: 800; color: #c7cadc; }
.etiqueta { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.etiqueta.dest { background: #fff; color: var(--acento); box-shadow: 0 2px 8px rgba(18, 21, 43, .08); }
.etiqueta.dest::before { content: '★ '; color: #ffb020; }
.etiqueta.oferta { background: var(--rosa); color: #fff; }
.etiqueta.agotado { background: var(--tinta); color: #fff; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.card-cat { font-size: 11px; font-weight: 800; color: var(--acento); text-transform: uppercase; letter-spacing: .1em; }
.card-nom { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.3; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-meta { font-size: 12.5px; color: var(--txt-3); display: flex; align-items: center; gap: 8px; min-height: 22px; margin-top: 4px; font-weight: 600; }
.dots { display: inline-flex; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; margin-left: -4px; box-shadow: 0 0 0 1px rgba(18, 21, 43, .12); }
.dots .dot:first-child { margin-left: 0; }
.card-precio { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-precio strong { font-size: 21px; font-weight: 800; color: var(--tinta); letter-spacing: -.02em; }
.card-precio small { color: var(--txt-3); font-weight: 600; }
.card-precio del { color: var(--txt-3); font-size: 13px; }
.btn-card {
  margin-top: 12px; height: 44px; border-radius: 999px; width: 100%; border: 1.5px solid var(--tinta);
  background: #fff; color: var(--tinta); font-weight: 750; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 9px; transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn-card:hover, .card:hover .btn-card:not(.en-carrito):not(:disabled) { background: var(--tinta); color: #fff; }
.btn-card:active { transform: scale(.97); }
.btn-card.en-carrito { background: #effdf4; border-color: #bbf0cf; color: var(--wa-2); }
.btn-card:disabled { background: var(--suave); border-color: var(--suave); color: var(--txt-3); cursor: not-allowed; }

.mas { display: flex; margin: 30px auto 0; }
.vacio { text-align: center; padding: 70px 20px; color: var(--txt-2); }
.vacio-ico { font-size: 52px; }
.vacio h3 { color: var(--txt); font-size: 22px; margin: 10px 0 4px; }
.vacio .btn { margin-top: 14px; }

/* ---------- Botones ---------- */
.btn {
  height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font-weight: 800; font-size: 15.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: filter .2s, transform .1s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-prim { background: var(--grad); color: #fff; box-shadow: 0 14px 28px -14px rgba(166, 75, 255, .8); }
.btn-prim:hover { filter: brightness(1.07); }
.btn-sec { background: #fff; color: var(--txt); border: 1.5px solid var(--linea-2); }
.btn-sec:hover { border-color: var(--tinta); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-2); }
.btn-bloque { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.cargando { pointer-events: none; opacity: .75; }
.btn.cargando svg { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.btn-texto { width: 100%; border: 0; background: none; color: var(--txt-3); font-weight: 650; padding: 12px 0 0; font-size: 14px; }
.btn-texto:hover { color: var(--txt); }

/* ---------- Ficha de producto ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-fondo { position: absolute; inset: 0; background: rgba(18, 21, 43, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.ficha {
  position: relative; width: 100%; max-width: 1120px; max-height: calc(100vh - 48px); background: #fff; border-radius: 30px;
  overflow: hidden; box-shadow: 0 40px 100px -20px rgba(18, 21, 43, .45); animation: subir .3s cubic-bezier(.2, .9, .3, 1.1); display: flex; flex-direction: column;
}
@keyframes subir { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.ficha-scroll { overflow-y: auto; overscroll-behavior: contain; }
.ficha-cerrar {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--suave); color: var(--txt); font-size: 26px; line-height: 1; display: grid; place-items: center; transition: background .2s, color .2s;
}
.ficha-cerrar:hover { background: var(--tinta); color: #fff; }
.ficha-cerrar.estatico { position: static; }
.ficha-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.ficha-galeria { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ficha-foto {
  position: relative; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; padding: 36px;
  background: radial-gradient(70% 60% at 50% 40%, #ffffff 0%, #f4f2ff 60%, #fde9f3 100%);
  display: grid; place-items: center;
}
.ficha-foto::after { content: ''; position: absolute; bottom: 9%; left: 22%; width: 56%; height: 8%; background: radial-gradient(closest-side, rgba(18, 21, 43, .18), transparent); border-radius: 50%; }
.ficha-foto img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; animation: fade .3s; }
.ficha-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.ficha-thumbs:empty { display: none; }
.thumb { width: 76px; height: 76px; flex: none; border-radius: 16px; background: var(--foto); padding: 6px; border: 2px solid transparent; transition: border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.activo { border-color: var(--acento); }
.ficha-info { padding: 40px 38px 32px 14px; display: flex; flex-direction: column; gap: 14px; }
.ficha-info .migas button { color: var(--acento); }
.ficha-info h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; }
.ficha-precio { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ficha-precio strong { font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: var(--tinta); }
.ficha-precio del { color: var(--txt-3); font-size: 18px; }
.ficha-precio .ahorro { background: var(--rosa-claro); color: var(--rosa); font-weight: 800; font-size: 13px; padding: 4px 11px; border-radius: 999px; }
.ficha-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ficha-feats:empty { display: none; }
.ficha-feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--txt-2); font-weight: 600; background: var(--suave); border-radius: 14px; padding: 10px 12px; }
.ficha-feats li::before { content: '✓'; width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; color: var(--acento); font-size: 11px; font-weight: 800; box-shadow: 0 1px 3px rgba(18, 21, 43, .1); }
.ficha-desc { margin: 0; color: var(--txt-2); white-space: pre-line; }
.ficha-desc:empty { display: none; }
.var-tit { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 10px; }
.var-tit b { color: var(--txt); text-transform: none; letter-spacing: 0; font-size: 14px; margin-left: 4px; }
.var-ops { display: flex; flex-wrap: wrap; gap: 10px; }
.var-color { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; padding: 0; box-shadow: 0 0 0 1.5px var(--linea-2); transition: box-shadow .2s, transform .15s; }
.var-color:hover { transform: scale(1.08); }
.var-color.activo { box-shadow: 0 0 0 2.5px var(--tinta); }
.var-btn { border: 1.5px solid var(--linea-2); background: #fff; color: var(--txt); border-radius: 14px; padding: 9px 14px; font-weight: 700; font-size: 14px; transition: all .15s; }
.var-btn small { display: block; color: var(--txt-3); font-weight: 700; font-size: 12px; }
.var-btn:hover { border-color: var(--tinta); }
.var-btn.activo { border-color: var(--tinta); background: var(--tinta); color: #fff; }
.var-btn.activo small { color: #c9cbe0; }
.var-btn.letra { width: 46px; padding: 9px 0; text-align: center; }
.ficha-compra { display: flex; gap: 12px; margin-top: 4px; }
.ficha-compra .btn { flex: 1; }
.cantidad { display: flex; align-items: center; height: 52px; border-radius: 999px; border: 1.5px solid var(--linea-2); background: #fff; flex: none; }
.cantidad button { width: 46px; height: 100%; border: 0; background: none; font-size: 22px; font-weight: 700; color: var(--txt-2); }
.cantidad button:hover { color: var(--acento); }
.cantidad input { width: 40px; text-align: center; border: 0; background: none; font-weight: 800; font-size: 17px; outline: 0; -moz-appearance: textfield; }
.cantidad input::-webkit-outer-spin-button, .cantidad input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ficha-aviso { background: var(--rosa-claro); color: #c81e63; border-radius: 14px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.ficha-garantias { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--txt-3); font-size: 13px; font-weight: 600; }

.relacionados { padding: 8px 22px 26px; background: var(--suave); }
.relacionados h3 { font-size: 18px; margin: 18px 4px 14px; }
.rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rel { border: 1px solid var(--linea); background: #fff; border-radius: 18px; padding: 10px; text-align: left; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .2s, transform .2s; color: var(--txt); }
.rel:hover { box-shadow: var(--sombra-hover); transform: translateY(-3px); }
.rel-foto { aspect-ratio: 1; border-radius: 13px; background: var(--foto); padding: 10px; }
.rel-foto img { width: 100%; height: 100%; object-fit: contain; }
.rel b { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel span { color: var(--tinta); font-weight: 800; }

/* ---------- Carrito ---------- */
.capa-carrito { position: fixed; inset: 0; z-index: 90; background: rgba(18, 21, 43, .4); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.capa-carrito.ver { opacity: 1; }
.carrito {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: 100%; max-width: 450px; background: #fff;
  display: flex; flex-direction: column; transform: translateX(105%); transition: transform .32s cubic-bezier(.2, .9, .3, 1);
  box-shadow: -30px 0 80px -20px rgba(18, 21, 43, .35); border-radius: 28px 0 0 28px;
}
.carrito.abierto { transform: none; }
.carrito-cab { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 14px; }
.carrito-cab h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.carrito-cab small { color: var(--txt-3); font-weight: 600; }
.pasos { display: flex; align-items: center; gap: 8px; padding: 0 22px 16px; border-bottom: 1px solid var(--linea); font-size: 12.5px; font-weight: 700; color: var(--txt-3); }
.pasos i { flex: 1; height: 2px; background: var(--linea); border-radius: 1px; }
.pasos .activo { color: var(--acento); }
.paso { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.carrito-lista { flex: 1; overflow-y: auto; padding: 8px 22px; }
.carrito-pie { padding: 16px 22px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--suave); }
.linea-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 700; color: var(--txt-2); }
.linea-total strong { font-size: 26px; color: var(--txt); letter-spacing: -.02em; }
.item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.item-foto { width: 76px; height: 76px; flex: none; border-radius: 16px; background: var(--foto); padding: 6px; }
.item-foto img { width: 100%; height: 100%; object-fit: contain; }
.item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-info b { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.item-info small { color: var(--txt-3); font-size: 12.5px; font-weight: 600; }
.item-var { display: inline-flex; align-items: center; gap: 6px; color: var(--txt-2) !important; }
.item-var .dot { width: 12px; height: 12px; border: 0; margin: 0; }
.item-fila { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.mini-cant { display: flex; align-items: center; border: 1.5px solid var(--linea-2); border-radius: 999px; height: 34px; }
.mini-cant button { width: 32px; height: 100%; border: 0; background: none; font-size: 17px; font-weight: 700; color: var(--txt-2); }
.mini-cant button:hover { color: var(--acento); }
.mini-cant span { min-width: 24px; text-align: center; font-weight: 800; font-size: 14px; }
.item-sub { font-weight: 800; }
.item-del { border: 0; background: none; color: var(--txt-3); font-size: 12.5px; font-weight: 700; padding: 0; align-self: flex-start; }
.item-del:hover { color: var(--rosa); }
.carrito-vacio { text-align: center; padding: 70px 10px; color: var(--txt-3); }
.carrito-vacio div { font-size: 54px; }
.carrito-vacio p { color: var(--txt); font-weight: 800; font-size: 17px; margin: 8px 0 2px; }

.form label, .form .lbl { display: block; font-size: 13.5px; font-weight: 700; color: var(--txt-2); margin-bottom: 14px; }
.form .lbl { margin-bottom: 8px; }
.form label small { color: var(--txt-3); font-weight: 600; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--linea-2);
  background: #fff; color: var(--txt); outline: 0; font-size: 15px; resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--txt-3); }
.form input:focus, .form textarea:focus { border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-claro); }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.opcion { margin: 0 !important; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion span { display: block; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--linea-2); background: #fff; cursor: pointer; transition: all .15s; }
.opcion b { display: block; color: var(--txt); font-size: 14.5px; }
.opcion small { color: var(--txt-3); font-weight: 600; }
.opcion input:checked + span { border-color: var(--acento); background: var(--acento-claro); }
.opcion input:focus-visible + span { outline: 2px solid var(--acento); }
.resumen { background: var(--suave); border-radius: 16px; padding: 12px 14px; font-size: 13.5px; color: var(--txt-2); }
.resumen div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.resumen div span:last-child { color: var(--txt); font-weight: 700; white-space: nowrap; }
.error-form { margin-top: 12px; background: var(--rosa-claro); color: #c81e63; padding: 11px 14px; border-radius: 14px; font-weight: 600; font-size: 14px; }
.exito { align-items: center; justify-content: center; text-align: center; padding: 30px; }
.exito-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--wa); color: #fff; font-size: 44px; display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 0 0 10px #dcfce7; }
.exito h3 { margin: 0 0 6px; font-size: 24px; }
.exito p { color: var(--txt-2); margin: 0 0 22px; }

/* ---------- Barra inferior / toast / pie ---------- */
.barra-carrito {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; height: 58px; border: 0; border-radius: 999px;
  background: var(--tinta); color: #fff; padding: 0 22px; display: none; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 14.5px; box-shadow: 0 16px 40px -12px rgba(18, 21, 43, .6);
}
.barra-carrito b { color: #ffb3d2; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0;
  background: var(--tinta); color: #fff; border-radius: 18px; padding: 10px 12px 10px 10px; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 50px -10px rgba(18, 21, 43, .5); transition: all .25s; max-width: calc(100% - 32px);
}
.toast img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #fff; padding: 2px; }
.toast button { border: 0; background: #fff; color: var(--tinta); border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.toast.ver { transform: translate(-50%, 0); opacity: 1; }

.pie { border-top: 1px solid var(--linea); background: var(--suave); }
.pie-in { max-width: 1560px; margin: 0 auto; padding: 30px 28px 36px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--txt-3); font-size: 14px; }
.pie strong { color: var(--txt); font-size: 17px; }
.pie p { margin: 4px 0 0; }
.pie-der { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pie-der a { color: var(--wa-2); font-weight: 700; text-decoration: none; }
.pie-der .pie-admin { color: var(--txt-3); font-weight: 600; }
.pie-der .pie-admin:hover { color: var(--txt); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 248px minmax(0, 1fr); gap: 22px; }
  .rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btn-top.wa span { display: none; }
  .cab-fotos span { width: 92px; height: 92px; }
}

@media (max-width: 1000px) {
  :root { --top-h: 64px; }
  .top-in { padding: 10px 16px; gap: 10px 12px; flex-wrap: wrap; height: auto; }
  .buscar { order: 3; flex-basis: 100%; max-width: none; height: 46px; }
  .buscar kbd { display: none; }
  .marca-txt small { display: none; }
  .marca-ico { width: 42px; height: 42px; font-size: 20px; }
  .top-acc { margin-left: auto; }
  .btn-top { height: 44px; padding: 0 14px; }
  .carrito-txt { display: none; }

  .layout { display: block; padding: 16px 16px 110px; }
  .filtros {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; width: min(340px, 88vw); max-height: none; border-radius: 0 26px 26px 0;
    transform: translateX(-105%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); border: 0;
  }
  body.filtros-abiertos .filtros { transform: none; }
  .capa-filtros { display: block; position: fixed; inset: 0; z-index: 99; background: rgba(18, 21, 43, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.filtros-abiertos .capa-filtros { opacity: 1; pointer-events: auto; }
  .cerrar-f { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--suave); font-size: 22px; line-height: 1; }
  .limpiar { margin-left: auto; }
  .btn-filtros { display: inline-flex; }
  .barra-carrito { display: flex; }
  .ficha-top { grid-template-columns: 1fr; }
  .ficha-info { padding: 4px 22px 26px; }
  .cabecera-lista { padding: 24px; min-height: 0; border-radius: 24px; }
}

@media (max-width: 640px) {
  .cabecera-lista { padding: 20px; margin-bottom: 16px; }
  .cabecera-lista p { font-size: 14px; }
  .cab-fotos { display: none; }
  .burbujas { gap: 10px; margin: 0 -16px 4px; padding: 4px 16px 14px; }
  .burbuja { width: 78px; }
  .b-img { width: 68px; height: 68px; padding: 10px; }
  .burbuja b { font-size: 12.5px; }
  .toolbar { gap: 8px; }
  .toolbar { flex-wrap: nowrap; }
  .toolbar .conteo { display: none; }
  .ordenar span { display: none; }
  .ordenar select { height: 44px; padding: 0 32px 0 14px; font-size: 13.5px; background-position: right 12px center; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-foto { padding: 12px; margin: 6px 6px 0; }
  .card-body { padding: 10px 12px 12px; }
  .card-nom { font-size: 14px; }
  .card-cat { font-size: 10px; }
  .card-precio strong { font-size: 18px; }
  .btn-card { height: 40px; font-size: 13px; margin-top: 10px; }
  .btn-card svg { display: none; }
  .modal { padding: 0; align-items: flex-end; }
  .ficha { max-height: 94vh; border-radius: 28px 28px 0 0; }
  .ficha-galeria { padding: 14px; }
  .ficha-foto { padding: 24px; }
  .ficha-feats { grid-template-columns: 1fr; }
  .ficha-precio strong { font-size: 30px; }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carrito { border-radius: 0; }
  .pie-der { align-items: flex-start; }
}

/* ---------- Escritorio: barra lateral fija, de borde a borde ---------- */
@media (min-width: 1001px) {
  .top-in { max-width: none; padding: 0 32px 0 24px; }
  .layout { max-width: none; padding: 0; gap: 0; grid-template-columns: 310px minmax(0, 1fr); }
  .filtros {
    position: sticky; top: calc(var(--top-h) + 1px);
    height: calc(100vh - var(--top-h) - 1px); max-height: none;
    border: 0; border-right: 1px solid var(--linea); border-radius: 0; box-shadow: none;
    padding: 8px 6px 24px; background: #fcfcfe;
  }
  .filtros-cab { padding: 18px 18px 16px; }
  .cat-item { padding: 9px 12px 9px 8px; }
  .main { padding: 28px 36px 50px; min-width: 0; }
}
@media (min-width: 1001px) and (max-width: 1180px) {
  .layout { grid-template-columns: 280px minmax(0, 1fr); }
  .main { padding: 24px 24px 50px; }
}

/* =========================================================
   Colores por categoría + efectos 3D
   ========================================================= */
body {
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(6, 182, 212, .07), transparent 70%),
    radial-gradient(480px 300px at 30% 100%, rgba(245, 158, 11, .06), transparent 70%),
    #fff;
  background-attachment: fixed;
}

/* Barra lateral: hover con el color de cada categoría */
.cat-item { position: relative; --c: var(--acento); transition: background .2s, color .2s, transform .2s; }
.cat-item::before {
  content: ''; position: absolute; left: -6px; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--c); transform: scaleY(0); transition: transform .2s;
}
.cat-item:hover { background: color-mix(in srgb, var(--c) 11%, #fff); color: var(--c); transform: translateX(3px); }
.cat-item:hover::before, .cat-item.activo::before { transform: scaleY(1); }
.cat-item:hover .cat-k { background: var(--c); color: #fff; }
.cat-item:hover .cat-img:not(.todos) { background: #fff; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--c) 60%, transparent); transform: rotate(-4deg) scale(1.06); }
.cat-img { transition: transform .25s, box-shadow .25s, background .2s; }
.cat-item.activo { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.cat-item.activo .cat-k { background: var(--c); }
.sub-item { --c: var(--acento); }
.sub-item:hover { background: color-mix(in srgb, var(--c) 9%, #fff); color: var(--c); }
.sub-item:hover::before { border-color: var(--c); }
.sub-item.activo { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.sub-item.activo::before { background: var(--c); border-color: var(--c); }
.rango:hover { border-color: #06b6d4; color: #0891b2; background: #ecfeff; }
.limpiar:hover { background: #fff7ed; color: #ea580c; }

/* Cabecera con más color y fotos en 3D */
.cabecera-lista {
  background:
    radial-gradient(300px 200px at 12% 120%, rgba(6, 182, 212, .22), transparent 70%),
    radial-gradient(260px 180px at 55% -30%, rgba(245, 158, 11, .2), transparent 70%),
    var(--grad-suave);
}
.cab-fotos { perspective: 700px; }
.cab-fotos span { transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .9, .3, 1.2), box-shadow .5s; }
.cab-fotos span:nth-child(1) { transform: rotateY(22deg) rotateZ(-6deg); }
.cab-fotos span:nth-child(2) { transform: translateY(-12px) translateZ(30px) rotateZ(3deg); z-index: 2; }
.cab-fotos span:nth-child(3) { transform: rotateY(-22deg) rotateZ(4deg) translateY(8px); }
.cabecera-lista:hover .cab-fotos span { transform: none; box-shadow: 0 26px 40px -20px rgba(18, 21, 43, .45); }

/* Burbujas de color */
.burbuja { --c: var(--acento); }
.b-img { background: color-mix(in srgb, var(--c) 13%, #fff); box-shadow: inset 0 -6px 12px -6px color-mix(in srgb, var(--c) 35%, transparent); }
.b-img.todos { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #ff3d8b)); }
.burbuja:hover .b-img { transform: translateY(-5px) scale(1.04); outline-color: var(--c); box-shadow: 0 14px 22px -12px var(--c); }
.burbuja:hover b, .burbuja.activo b { color: var(--c); }
.burbuja.activo .b-img { outline-color: var(--c); }

/* Tarjetas 3D */
.grid { perspective: 1400px; }
.card { --c: var(--acento); --rx: 0deg; --ry: 0deg; animation-fill-mode: backwards; transform-style: preserve-3d; will-change: transform; }
.card.tilt { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); transition: transform .08s linear, box-shadow .25s, border-color .25s; }
.card:hover { border-color: color-mix(in srgb, var(--c) 40%, #fff); box-shadow: 0 26px 46px -22px color-mix(in srgb, var(--c) 70%, transparent); }
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .55), transparent 60%);
}
.card.tilt::after { opacity: 1; }
.card-foto { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, #fff) 0%, var(--foto) 70%); }
.card-foto img { filter: drop-shadow(0 10px 12px rgba(18, 21, 43, .16)); }
.card.tilt .card-foto img { transform: scale(1.08) translateY(-4px); }
.card-cat { color: var(--c); }
.card-cat::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--c); margin-right: 6px; transform: rotate(45deg); vertical-align: 1px; }

/* Botones con relieve 3D */
.btn-card { box-shadow: 0 3px 0 var(--linea-2); }
.btn-card:hover, .card:hover .btn-card:not(.en-carrito):not(:disabled) {
  background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 65%, #000);
}
.btn-card:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 65%, #000) !important; }
.btn-card.en-carrito { box-shadow: 0 3px 0 #bbf0cf; }
.btn-prim { box-shadow: 0 5px 0 #4a2bc9, 0 16px 26px -14px rgba(166, 75, 255, .9); }
.btn-prim:active { transform: translateY(4px); box-shadow: 0 1px 0 #4a2bc9; }
.btn-wa { box-shadow: 0 5px 0 #15803d, 0 16px 26px -14px rgba(34, 197, 94, .8); }
.btn-wa:active { transform: translateY(4px); box-shadow: 0 1px 0 #15803d; }
.carrito-btn { box-shadow: 0 4px 0 #000; }
.carrito-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.btn-top.wa { box-shadow: 0 3px 0 #bbf0cf; }
.marca-ico { box-shadow: 0 5px 0 #4a2bc9, 0 12px 22px -8px rgba(166, 75, 255, .7); transition: transform .3s; }
.marca:hover .marca-ico { transform: rotate(6deg) scale(1.05); }
.var-color.activo { transform: scale(1.12); }
.etiqueta.dest { box-shadow: 0 3px 0 rgba(18, 21, 43, .08), 0 6px 14px -6px rgba(18, 21, 43, .25); }
.ficha-foto img { filter: drop-shadow(0 18px 18px rgba(18, 21, 43, .2)); }

/* ---------- Logo ---------- */
.marca-logo { height: 62px; width: auto; max-width: 220px; object-fit: contain; transition: transform .3s; }
.marca:hover .marca-logo { transform: scale(1.04) rotate(-1deg); }
@media (max-width: 1000px) { .marca-logo { height: 50px; max-width: 170px; } }

/* ---------- Modelos con foto ---------- */
.mini-modelos { display: inline-flex; }
.mini-modelos img {
  width: 22px; height: 22px; border-radius: 7px; object-fit: contain; background: #fff; padding: 1px;
  border: 1.5px solid #fff; margin-left: -6px; box-shadow: 0 0 0 1px var(--linea-2);
}
.mini-modelos img:first-child { margin-left: 0; }
.var-ops.con-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.var-img {
  position: relative; border: 2px solid var(--linea); background: #fff; border-radius: 16px; padding: 6px 6px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 5px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.var-img img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 11px; background: var(--foto); padding: 4px; }
.var-img span { font-size: 12px; font-weight: 700; color: var(--txt-2); line-height: 1.2; text-align: center; }
.var-img small { font-size: 11.5px; font-weight: 800; color: var(--txt); }
.var-img:hover { transform: translateY(-3px); border-color: var(--linea-2); box-shadow: 0 10px 20px -12px rgba(18, 21, 43, .35); }
.var-img.activo { border-color: var(--rosa); box-shadow: 0 0 0 3px var(--rosa-claro); }
.var-img.activo::after {
  content: '✓'; position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--rosa); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 3px 8px -2px rgba(255, 61, 139, .7);
}
.var-img.activo span { color: var(--rosa); }
.foto-modelo {
  position: absolute; z-index: 2; left: 16px; bottom: 16px; background: rgba(18, 21, 43, .82); color: #fff;
  font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; animation: fade .3s;
}

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

/* Cabecera de color retirada a pedido del cliente */
.cabecera-lista { display: none !important; }
.main { padding-top: 22px; }

/* =========================================================
   Ficha de producto · versión pedida por el cliente
   ========================================================= */
.ficha-foto {
  background: #fff; border: 1.5px solid var(--linea); border-radius: 24px; padding: 18px;
}
.ficha-foto::after { display: none; }
.ficha-foto img { filter: none; border-radius: 14px; }
.ficha-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; overflow: visible; }
.thumb { width: auto; height: auto; aspect-ratio: 1; background: #fff; border: 2px solid var(--linea); border-radius: 18px; padding: 8px; }
.thumb:hover { border-color: #c9b8ff; }
.thumb.activo { border-color: #7c3aed; box-shadow: 0 0 0 3px #efe9ff; }
.thumb img { border-radius: 10px; }

.ficha-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-cat {
  border: 0; background: #efe9ff; color: #5b21b6; font-weight: 700; font-size: 14px;
  padding: 7px 16px; border-radius: 999px; transition: background .2s;
}
.pill-cat:hover { background: #e2d8ff; }
.ficha-info h2 { color: #1a1f4e; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }

.ficha-precio { gap: 12px; }
.precio-pill {
  display: inline-flex; align-items: baseline; gap: 8px; background: #ffe4e9; border-radius: 16px; padding: 8px 18px;
}
.precio-pill small { color: #e11d48; font-weight: 700; font-size: 14px; }
.ficha-precio .precio-pill strong {
  color: #e11d48; -webkit-text-fill-color: #e11d48; background: none; font-size: 34px; font-weight: 800; letter-spacing: -.02em;
}

.ficha-desc { font-size: 16px; line-height: 1.6; color: #3d4266; }

.ficha-caract {
  background: linear-gradient(180deg, #f7f4ff 0%, #fbfaff 100%); border: 1.5px solid #ebe5ff; border-radius: 20px; padding: 16px 20px 8px;
}
.ficha-caract h3 { margin: 0 0 6px; color: #5b21b6; font-size: 19px; font-weight: 800; }
.ficha-caract .ficha-feats { display: block; }
.ficha-caract .ficha-feats li {
  display: flex; align-items: center; gap: 14px; background: none; border-radius: 0; padding: 11px 2px;
  border-bottom: 1px solid #ebe5ff; color: #2a2f55; font-size: 15px; font-weight: 500;
}
.ficha-caract .ficha-feats li:last-child { border-bottom: 0; }
.ficha-caract .ficha-feats li::before { display: none; }
.f-ico { color: #5b21b6; flex: none; width: 28px; display: grid; place-items: center; }

/* Botón principal rojo-rosado como el diseño del cliente */
.ficha-compra .btn-prim {
  background: linear-gradient(180deg, #ff3b6b, #f0285a); box-shadow: 0 5px 0 #c01445, 0 16px 26px -14px rgba(240, 40, 90, .8);
}
.ficha-compra .btn-prim:active { box-shadow: 0 1px 0 #c01445; }
.cantidad { border-radius: 16px; }

/* Fotos con fondo de color: que se vean completas y limpias en las tarjetas */
.card-foto img { filter: none; border-radius: 8px; }

/* Precio en rojo también en las tarjetas */
.card-precio strong { color: #e11d48; }
.rel span { color: #e11d48; }

/* La foto principal siempre completa dentro de su recuadro */
.ficha-foto img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); min-height: 0; object-fit: contain; }
@media (max-width: 640px) { .ficha-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .thumb { border-radius: 14px; padding: 5px; } }

/* Medidas de cada modelo */
.var-med { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; color: #0f766e; background: #e6fbf6; border-radius: 999px; padding: 2px 8px; margin: 1px auto 0; line-height: 1.35; text-align: center; }
.var-btn .var-med { margin: 4px 0 0; display: inline-block; }
.var-btn.activo .var-med { background: rgba(255, 255, 255, .18); color: #fff; }
.var-img small { color: #e11d48; font-size: 12.5px; }
