/* GForce Solutions · Tienda. Mismo lenguaje que la web (negro, lima, Anton) con fichas de producto claras,
   como las fotos de estudio de una tienda deportiva: el producto resalta sobre gris claro. */
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tienda-pagina { background: var(--bg); }

/* Botón del carrito en la barra */
.carrito-boton { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borde-2); background: transparent; color: #fff; cursor: pointer; transition: border-color .15s, color .15s; }
.carrito-boton:hover { border-color: var(--lima); color: var(--lima); }
.carrito-boton svg { width: 22px; height: 22px; }
.carrito-boton__n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--lima); color: var(--sobre-lima, #000); font: 800 11px/20px var(--fuente); text-align: center; }
.carrito-boton.salta { animation: t-salto .45s ease; }
@keyframes t-salto { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }

/* Portada de la tienda */
.t-hero { padding: calc(72px + env(safe-area-inset-top) + 44px) 0 34px; background: var(--negro); border-bottom: 1px solid var(--borde); }
.t-hero__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.t-hero .bajada { max-width: 52ch; }
.t-sellos { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.t-sellos li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--borde-2); border-radius: 999px; font: 700 12px/1 var(--fuente); letter-spacing: .06em; text-transform: uppercase; color: #e6e6e6; }
.t-sellos svg { width: 18px; height: 18px; color: var(--lima); stroke-width: 2.2; }

.t-aviso { background: rgba(var(--lima-rgb), .1); border-bottom: 1px solid rgba(var(--lima-rgb), .3); color: #f2f2f2; font-size: 14px; padding: 12px 0; }
.t-aviso b { color: var(--lima); }

/* Barra de filtros */
.t-catalogo { padding-top: 26px; padding-bottom: 80px; }
.t-barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.t-filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.t-filtros button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--borde-2); background: transparent; color: #e6e6e6; font: 700 12.5px/1 var(--fuente); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.t-filtros button:hover { border-color: #fff; }
.t-filtros button[aria-selected='true'] { background: var(--lima); border-color: var(--lima); color: var(--sobre-lima, #000); }
.t-orden { display: flex; align-items: center; gap: 14px; color: var(--tenue); font-size: 13px; }
.t-orden select { appearance: none; min-height: 40px; padding: 0 38px 0 14px; border-radius: 4px; border: 1px solid var(--borde-2); background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23cdd703' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; color: #fff; font: 600 13px/1 var(--fuente); cursor: pointer; }
.t-orden select option { background: #141414; }

/* Grilla de productos */
.t-grilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.t-cargando, .t-vacio { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--tenue); }
.t-card { position: relative; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.t-card__img { position: relative; aspect-ratio: 1 / 1.08; border-radius: 6px; background: #ececea; overflow: hidden; }
.t-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .35s ease; }
.t-card:hover .t-card__img img { transform: scale(1.04); }
.t-etiqueta { position: absolute; top: 12px; left: 12px; padding: 6px 9px; background: #000; color: var(--lima); font: 800 10.5px/1 var(--fuente); letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }
.t-card__rapido { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #000; color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s, background .15s, color .15s; }
.t-card__rapido svg { width: 20px; height: 20px; stroke-width: 2.4; }
.t-card:hover .t-card__rapido, .t-card__rapido:focus-visible { opacity: 1; transform: none; }
.t-card__rapido:hover { background: var(--lima); color: var(--sobre-lima, #000); }
.t-card__cat { margin: 4px 0 0; font: 700 11px/1 var(--fuente); letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); }
.t-card__nombre { margin: 0; font: 700 16px/1.25 var(--fuente); color: #fff; }
.t-card__nombre a::after { content: ''; position: absolute; inset: 0; }
.t-card__resumen { margin: 0; font-size: 13.5px; color: var(--texto-2); line-height: 1.4; }
.t-card__precio { margin: 2px 0 0; font: 800 17px/1 var(--fuente); color: #fff; }
.t-card__precio s { margin-left: 6px; font-weight: 500; font-size: 13px; color: var(--tenue); }
.t-card__integra { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--fuente); letter-spacing: .08em; text-transform: uppercase; color: var(--lima); }
.t-card__integra::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lima); }
.t-card__rapido { z-index: 2; }

/* Ficha del producto */
.t-ficha { width: min(1060px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--borde-2); border-radius: 10px; background: var(--bg-2); color: #fff; overflow: auto; }
.t-ficha::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
.t-ficha[open] { animation: t-entra .25s ease; }
@keyframes t-entra { from { opacity: 0; transform: translateY(12px); } }
.t-ficha__in { display: grid; grid-template-columns: 1.05fr 1fr; }
.t-ficha__img { position: relative; background: #ececea; min-height: 460px; display: grid; place-items: center; }
.t-ficha__img img { width: 88%; max-height: 560px; object-fit: contain; }
.t-ficha__info { padding: 38px 34px 34px; display: flex; flex-direction: column; gap: 14px; }
.t-ficha__cat { margin: 0; font: 700 12px/1 var(--fuente); letter-spacing: .16em; text-transform: uppercase; color: var(--lima); }
.t-ficha__nombre { margin: 0; font: 400 clamp(32px, 3.6vw, 44px)/1 var(--display); text-transform: uppercase; }
.t-ficha__precio { margin: 0; font: 800 26px/1 var(--fuente); }
.t-ficha__precio s { font-size: 16px; font-weight: 500; color: var(--tenue); }
.t-ficha__resumen { margin: 0; color: var(--texto-2); }
.t-rotulo { margin: 0 0 8px; font: 700 11.5px/1 var(--fuente); letter-spacing: .12em; text-transform: uppercase; color: #dcdcdc; }
.t-rotulo span { color: var(--lima); margin-left: 6px; }
.t-variantes__lista { display: flex; gap: 8px; flex-wrap: wrap; }
.t-variantes__lista button { min-width: 52px; min-height: 44px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--borde-2); background: transparent; color: #fff; font: 700 14px/1 var(--fuente); cursor: pointer; }
.t-variantes__lista button:hover { border-color: #fff; }
.t-variantes__lista button[aria-checked='true'] { background: #fff; color: #000; border-color: #fff; }
.t-comprar { display: flex; gap: 10px; margin-top: 4px; }
.t-cantidad { display: inline-flex; align-items: center; border: 1px solid var(--borde-2); border-radius: 4px; }
.t-cantidad button { width: 44px; height: 48px; border: 0; background: transparent; color: #fff; font: 600 20px/1 var(--fuente); cursor: pointer; }
.t-cantidad button:hover { color: var(--lima); }
.t-cantidad output { min-width: 28px; text-align: center; font: 700 15px/1 var(--fuente); }
.t-agregar { flex: 1; }
.t-error { margin: 0; min-height: 0; color: var(--rojo); font-size: 13.5px; }
.t-error:empty { display: none; }
.t-integra { margin: 0; padding: 12px 14px; border-left: 3px solid var(--lima); background: rgba(var(--lima-rgb), .07); font-size: 14px; color: #f2f2f2; }
.t-integra b { color: var(--lima); }
.t-ficha__lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.t-ficha__lista li { position: relative; padding-left: 22px; font-size: 14.5px; color: #e6e6e6; }
.t-ficha__lista li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 9px; height: 5px; border-left: 2px solid var(--lima); border-bottom: 2px solid var(--lima); transform: rotate(-45deg); }
.t-ficha__desc { margin: 0; font-size: 14.5px; color: var(--texto-2); }
.t-envio { margin: 0; padding-top: 14px; border-top: 1px solid var(--borde); font-size: 13px; color: var(--tenue); }
.t-cerrar { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #000; color: #fff; display: grid; place-items: center; cursor: pointer; }
.t-cerrar:hover { color: var(--lima); }
.t-cerrar svg { width: 20px; height: 20px; stroke-width: 2.2; }

/* Carrito (panel lateral) */
.t-velo { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .62); backdrop-filter: blur(2px); }
.t-carrito { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--borde-2); transform: translateX(102%); transition: transform .3s ease; padding-top: env(safe-area-inset-top); }
.t-carrito.abierto { transform: none; }
.t-carrito__cabeza { position: relative; display: flex; align-items: center; min-height: 70px; padding: 0 22px; border-bottom: 1px solid var(--borde); }
.t-carrito__cabeza h2 { margin: 0; font: 400 26px/1 var(--display); text-transform: uppercase; }
.t-carrito__cabeza .t-cerrar { top: 14px; right: 14px; background: transparent; }
.t-carrito__paso { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.t-carrito__paso[hidden] { display: none; }
.t-items { list-style: none; margin: 0; padding: 8px 22px; overflow-y: auto; flex: 1; }
.t-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--borde); }
.t-item__img { width: 76px; height: 82px; border-radius: 4px; background: #ececea; object-fit: contain; padding: 6px; }
.t-item__nombre { margin: 0; font: 700 14.5px/1.3 var(--fuente); }
.t-item__var { margin: 3px 0 8px; font-size: 12.5px; color: var(--tenue); }
.t-item .t-cantidad button { width: 34px; height: 34px; font-size: 17px; }
.t-item__der { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.t-item__precio { font: 800 14.5px/1 var(--fuente); }
.t-item__quitar { border: 0; background: none; color: var(--tenue); font: 600 12px/1 var(--fuente); text-decoration: underline; cursor: pointer; padding: 4px 0; }
.t-item__quitar:hover { color: var(--rojo); }
.t-carrito__vacio { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--texto-2); }
.t-carrito__pie { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borde); display: grid; gap: 10px; background: var(--bg-2); }
.t-total { display: flex; justify-content: space-between; align-items: baseline; font: 700 13px/1 var(--fuente); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); }
.t-total b { font: 400 30px/1 var(--display); letter-spacing: .02em; color: #fff; }
.t-nota { margin: 0; font-size: 12.5px; color: var(--tenue); }
.t-nota a { text-decoration: underline; }
.t-ancho { width: 100%; }
.t-pago { overflow-y: auto; }
.t-volver { align-self: flex-start; margin: 14px 22px 0; border: 0; background: none; color: var(--texto-2); font: 700 12.5px/1 var(--fuente); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: 6px 0; }
.t-volver:hover { color: var(--lima); }
.t-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 22px 18px; }
.t-campos .campo input, .t-campos .campo select, .t-campos .campo textarea { min-height: 44px; padding: 10px 12px; }
.t-entrega { border: 0; margin: 4px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.t-entrega legend { padding: 0; margin-bottom: 8px; font: 700 11.5px/1 var(--fuente); letter-spacing: .1em; text-transform: uppercase; color: #dcdcdc; }
.t-entrega label { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--borde-2); border-radius: 4px; font-size: 14px; cursor: pointer; }
.t-entrega label:has(input:checked) { border-color: var(--lima); background: rgba(var(--lima-rgb), .08); }
.t-entrega input { accent-color: var(--lima); }
.t-pago.retiro .t-solo-envio { display: none; }
.t-listo { align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 30px; }
.t-listo svg { width: 60px; height: 60px; padding: 14px; border-radius: 50%; background: var(--lima); color: var(--sobre-lima, #000); stroke-width: 3; }
.t-listo h3 { margin: 0; font: 400 28px/1.05 var(--display); text-transform: uppercase; }
.t-listo p { margin: 0; color: var(--texto-2); max-width: 30ch; }

/* Página de compra (resultado del pago) */
.t-compra { min-height: 70vh; display: grid; place-items: center; padding: calc(72px + 40px) 18px 60px; }
.t-compra__caja { width: min(560px, 100%); padding: 32px; border-radius: var(--radio); background: var(--sup); border-top: 3px solid var(--lima); display: grid; gap: 14px; }
.t-compra__icono { width: 60px; height: 60px; padding: 14px; border-radius: 50%; background: var(--lima); color: var(--sobre-lima, #000); stroke-width: 3; }
.t-compra__icono.espera { background: var(--amarillo); }
.t-compra__icono.mal { background: var(--rojo); color: #fff; }
.t-compra h1 { margin: 0; font: 400 clamp(30px, 6vw, 40px)/1.02 var(--display); text-transform: uppercase; }
.t-compra p { margin: 0; color: var(--texto-2); }
.t-compra ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--borde); }
.t-compra li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--borde); font-size: 14.5px; }
.t-compra__acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

@media (max-width: 1020px) {
  .t-grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-ficha__in { grid-template-columns: 1fr; }
  .t-ficha__img { min-height: 0; aspect-ratio: 1 / .8; }
  .t-ficha__img img { max-height: 100%; width: 70%; }
}
@media (max-width: 760px) {
  .t-hero { padding-top: calc(62px + env(safe-area-inset-top) + 28px); padding-bottom: 24px; }
  .t-sellos { gap: 6px; }
  .t-sellos li { padding: 8px 10px; font-size: 10.5px; }
  .t-filtros { flex-wrap: nowrap; overflow-x: auto; margin-inline: -18px; padding: 0 18px 4px; scrollbar-width: none; width: calc(100% + 36px); }
  .t-filtros::-webkit-scrollbar { display: none; }
  .t-filtros button { flex: 0 0 auto; }
  .t-orden { width: 100%; justify-content: space-between; }
  .t-grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .t-card__nombre { font-size: 14.5px; }
  .t-card__resumen { display: none; }
  .t-card__rapido { opacity: 1; transform: none; width: 38px; height: 38px; right: 8px; bottom: 8px; }
  .t-etiqueta { top: 8px; left: 8px; font-size: 9.5px; }
  .t-ficha { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .t-ficha__info { padding: 24px 18px 30px; }
  .t-campos { grid-template-columns: 1fr; padding-inline: 18px; }
  .t-items, .t-carrito__pie { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-carrito, .t-card__img img, .t-card__rapido { transition: none; }
  .t-ficha[open], .carrito-boton.salta { animation: none; }
}

/* 020.32 · Filtro fino (género · subcategoría) */
.t-subfiltro { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--lima); background: rgba(var(--lima-rgb), .12); color: #fff; font: 700 12.5px/1 var(--fuente); letter-spacing: .04em; cursor: pointer; }
.t-subfiltro__x { font-size: 16px; color: var(--lima); }

/* 020.33 · Tienda propia: el pedido sale con los datos de la cuenta; sólo se piden notas. */
.t-pago--propia .t-campos > *:not(:has(#c-notas)):not(.trampa) { display: none; }
/* 020.37 · Teléfono con el código del país */
.t-tel { display: flex; align-items: stretch; }
.t-tel__prefijo { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--borde-2); border-right: 0; border-radius: 4px 0 0 4px; background: #111; color: var(--lima); font: 700 14px/1 var(--fuente); white-space: nowrap; }
.t-tel input { border-radius: 0 4px 4px 0 !important; min-width: 0; }
.t-campo-dir { grid-column: 1 / -1; }
