/* Tienda de Merch Club (para los responsables). Paleta y tarjetas al estilo de la plantilla Anon. */
:root {
  --t-fondo: #ffffff;
  --t-superficie: #ffffff;
  --t-superficie-2: hsl(0, 0%, 96%);
  --t-borde: hsl(0, 0%, 90%);
  --t-texto: hsl(0, 0%, 13%);
  --t-suave: hsl(0, 0%, 42%);
  --t-acento: #e8344e;
  --t-acento-texto: #ffffff;
  --t-acento-suave: #fde8eb;
  --t-ok: #13795b;
  --t-ok-fondo: #e6f5ef;
  --t-error: #c02a3c;
  --t-error-fondo: #fde8eb;
  --t-aviso-fondo: hsl(40, 100%, 95%);
  --t-radio: 12px;
  --t-toque: 44px;
  --t-sombra: 0 1px 2px rgba(20, 20, 30, .05), 0 6px 20px rgba(20, 20, 30, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --t-fondo: #111115;
    --t-superficie: #1b1b21;
    --t-superficie-2: #24242c;
    --t-borde: #33333d;
    --t-texto: #f1f1f4;
    --t-suave: #a3a3b0;
    --t-acento: #ff5a70;
    --t-acento-texto: #16161a;
    --t-acento-suave: #3a1d24;
    --t-ok: #4cc79c;
    --t-ok-fondo: #163328;
    --t-error: #ff7a8a;
    --t-error-fondo: #3a1d24;
    --t-aviso-fondo: #2d2717;
    --t-sombra: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: 'Poppins', system-ui, sans-serif; font-size: 15px; line-height: 1.5; background: var(--t-fondo); color: var(--t-texto); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .3rem; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
a { color: var(--t-acento); }
img { max-width: 100%; }
.t-solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.t-suave { color: var(--t-suave); font-size: .9rem; margin: 0 0 .75rem; }
.t-centro { text-align: center; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--t-acento) 45%, transparent); outline-offset: 2px; }

/* Encabezado */
.t-barra { position: sticky; top: 0; z-index: 20; background: var(--t-superficie); border-bottom: 1px solid var(--t-borde); }
.t-barra-dentro { max-width: 1200px; margin: 0 auto; padding: .6rem 20px; display: flex; align-items: center; gap: 1.25rem; }
.t-marca { font-weight: 700; font-size: 1.35rem; color: var(--t-texto); text-decoration: none; letter-spacing: -.02em; flex: none; }
.t-marca span { color: var(--t-acento); }
.t-buscar { flex: 1; display: flex; max-width: 520px; position: relative; }
.t-buscar input {
  width: 100%; min-height: var(--t-toque); padding: 0 3rem 0 1rem;
  border: 1px solid var(--t-borde); border-radius: 999px; background: var(--t-superficie-2); color: var(--t-texto); font: inherit;
}
.t-buscar button {
  position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--t-suave); cursor: pointer; display: grid; place-items: center;
}
.t-buscar-sugs {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--t-superficie); border: 1px solid var(--t-borde); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.t-buscar-sugs ul { list-style: none; margin: 0; padding: .3rem; }
.t-buscar-sugs li { border-radius: 10px; }
.t-buscar-sugs li.activo, .t-buscar-sugs li:hover { background: var(--t-acento-suave); }
.t-buscar-sugs a { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; color: var(--t-texto); text-decoration: none; }
.t-sug-foto {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 9px; overflow: hidden;
  background: var(--t-superficie-2); display: grid; place-items: center;
}
.t-sug-foto img { width: 100%; height: 100%; object-fit: cover; }
.t-sug-texto { display: flex; flex-direction: column; min-width: 0; }
.t-sug-texto strong { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sug-texto small { color: var(--t-suave); font-size: .8rem; }
.t-sugs-vacio { padding: .9rem .8rem; color: var(--t-suave); font-size: .9rem; }
.t-menu { display: flex; gap: .25rem; margin-left: auto; }
.t-menu a {
  position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: var(--t-toque); padding: 0 .75rem;
  border-radius: 999px; color: var(--t-texto); text-decoration: none; font-weight: 500; font-size: .9rem;
}
.t-menu a:hover, .t-menu a[aria-current="page"] { background: var(--t-acento-suave); color: var(--t-acento); }
.t-contador {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--t-acento); color: var(--t-acento-texto); font-size: .72rem;
}
.t-panel { border: 1px solid var(--t-borde); }

.t-contenido { max-width: 1200px; margin: 0 auto; padding: 1.5rem 20px 4rem; min-height: 60vh; }
.t-pie { border-top: 1px solid var(--t-borde); padding: 1.5rem 20px; text-align: center; color: var(--t-suave); font-size: .85rem; }
.t-pie p { margin: 0 0 .5rem; }
.t-pie form { margin: 0; }

/* Elementos comunes */
.t-tarjeta { background: var(--t-superficie); border: 1px solid var(--t-borde); border-radius: var(--t-radio); box-shadow: var(--t-sombra); padding: 1.25rem; margin-bottom: 1rem; }
.t-angosta { max-width: 440px; margin: 2rem auto; }
.t-vacio { text-align: center; color: var(--t-suave); }
.t-encabezado { margin-bottom: 1.25rem; }
.t-encabezado .t-suave { margin: 0; }
.t-encabezado-fila { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.t-regresar { display: inline-flex; align-items: center; min-height: 36px; color: var(--t-suave); text-decoration: none; font-size: .9rem; margin-bottom: .5rem; }
.t-aviso { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 500; background: var(--t-aviso-fondo); }
.t-aviso-ok { background: var(--t-ok-fondo); color: var(--t-ok); }
.t-aviso-error { background: var(--t-error-fondo); color: var(--t-error); }

.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--t-toque); padding: 0 1.25rem;
  border: 1px solid var(--t-borde); border-radius: 10px; background: var(--t-superficie); color: var(--t-texto);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.t-btn:hover { border-color: var(--t-suave); }
.t-btn-primario { background: var(--t-acento); border-color: var(--t-acento); color: var(--t-acento-texto); }
.t-btn-primario:hover { filter: brightness(1.05); border-color: var(--t-acento); }
.t-bloque { width: 100%; }
.t-enlace { border: 0; background: none; padding: .35rem 0; font: inherit; color: var(--t-acento); font-weight: 500; cursor: pointer; text-decoration: underline; }
.t-error { color: var(--t-error); font-size: .85rem; font-weight: 500; }

.t-form { display: flex; flex-direction: column; gap: .9rem; }
.t-campo { display: flex; flex-direction: column; gap: .35rem; }
.t-campo > span { font-weight: 500; font-size: .9rem; }
.t-campo em, .t-opcion legend em { font-style: normal; color: var(--t-suave); font-weight: 400; }
input, select, textarea {
  width: 100%; min-height: var(--t-toque); padding: .55rem .85rem; border: 1px solid var(--t-borde); border-radius: 10px;
  background: var(--t-superficie); color: var(--t-texto); font: inherit;
}
textarea { resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; accent-color: var(--t-acento); flex: none; }
.t-campo-error input, .t-campo-error select { border-color: var(--t-error); }
.t-fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* Catalogo */
.t-categorias { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.25rem; scrollbar-width: thin; }
.t-categorias a {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--t-borde); color: var(--t-texto); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.t-categorias a[aria-current="true"] { background: var(--t-texto); border-color: var(--t-texto); color: var(--t-fondo); }
.t-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.t-producto {
  display: flex; flex-direction: column; border: 1px solid var(--t-borde); border-radius: var(--t-radio); overflow: hidden;
  text-decoration: none; color: var(--t-texto); background: var(--t-superficie); transition: box-shadow .2s ease, transform .2s ease;
}
.t-producto:hover { box-shadow: 0 10px 30px rgba(20, 20, 30, .1); transform: translateY(-2px); }
.t-producto-foto { aspect-ratio: 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--t-borde); }
.t-producto-foto img { width: 100%; height: 100%; object-fit: contain; }
.t-sin-foto { font-size: 3rem; font-weight: 700; color: var(--t-acento); }
.t-producto-info { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.t-producto-categoria { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--t-acento); }
.t-producto-nombre { font-size: .95rem; font-weight: 600; margin: 0; line-height: 1.35; }
.t-producto-precio { margin: auto 0 0; padding-top: .35rem; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.t-producto-precio strong { font-size: 1.1rem; }
.t-producto-precio small { color: var(--t-suave); font-size: .75rem; }

/* Detalle del producto */
.t-detalle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.t-detalle-foto { position: sticky; top: 80px; aspect-ratio: 1; border: 1px solid var(--t-borde); border-radius: var(--t-radio); background: #fff; display: grid; place-items: center; overflow: hidden; }
.t-detalle-foto img { width: 100%; height: 100%; object-fit: contain; }
.t-precio-grande { margin: 0; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.t-precio-grande strong { font-size: 1.6rem; }
.t-precio-grande small { color: var(--t-suave); }
.t-descripcion { color: var(--t-suave); margin: 0; }
.t-opcion { border: 0; padding: 0; margin: 0; }
.t-opcion legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.t-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.t-chip { cursor: pointer; }
.t-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.t-chip > span {
  display: inline-flex; align-items: center; min-height: var(--t-toque); padding: 0 1rem; border: 1px solid var(--t-borde);
  border-radius: 999px; font-weight: 500; font-size: .9rem;
}
.t-chip > span { gap: .5rem; }
.t-muestra, .t-punto {
  display: inline-block; flex: none; border-radius: 50%; background-color: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}
.t-muestra { width: 20px; height: 20px; }
.t-punto { width: 14px; height: 14px; }
/* Jaspe: el tono con motitas claras y oscuras, como la tela. */
.t-muestra-jaspe, .t-punto-jaspe {
  background-image:
    radial-gradient(rgba(255, 255, 255, .45) 0.8px, transparent 1.2px),
    radial-gradient(rgba(0, 0, 0, .3) 0.8px, transparent 1.2px);
  background-size: 4px 4px, 5px 5px;
  background-position: 0 0, 2px 2px;
}
.t-producto-colores { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: .25rem; }
.t-producto-colores small { font-size: .72rem; color: var(--t-suave); margin-left: 2px; }
.t-chip input:checked + span { border-color: var(--t-acento); background: var(--t-acento-suave); color: var(--t-acento); }
.t-chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--t-acento) 45%, transparent); outline-offset: 2px; }
/* Color agotado: atenuado, con rayita, no seleccionable. */
.t-chip-agotado { cursor: not-allowed; }
.t-chip-agotado > span { opacity: .5; text-decoration: line-through; }
.t-chip-agotado .t-muestra { text-decoration: none; }
.t-agotado { text-decoration: none; font-size: .72rem; font-weight: 700; color: var(--t-tenue, #8a8f98); letter-spacing: .02em; }
.t-talla-agotada { opacity: .55; }
.t-talla-agotada input { background: var(--t-fondo-suave, #f2f3f5); }
.t-tallas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.t-talla { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .5rem; border: 1px solid var(--t-borde); border-radius: 10px; }
.t-talla-nombre { font-weight: 700; }
.t-talla input { text-align: center; padding: .4rem; }
.t-talla-precio { font-size: .72rem; color: var(--t-suave); min-height: 1em; text-align: center; }
.t-talla-sola { max-width: 160px; align-items: stretch; }
.t-check { display: flex; align-items: center; gap: .6rem; min-height: var(--t-toque); cursor: pointer; }
.t-check small { color: var(--t-suave); }
.t-agregar { position: sticky; bottom: 0; background: var(--t-fondo); padding: .75rem 0; border-top: 1px solid var(--t-borde); display: flex; flex-direction: column; gap: .4rem; }
.t-agregar p { margin: 0; }
.t-agregar-total { font-weight: 600; }

/* Carrito */
.t-carrito-lista { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.25rem; }
.t-renglon { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem; border: 1px solid var(--t-borde); border-radius: var(--t-radio); background: var(--t-superficie); }
.t-renglon-foto { width: 80px; height: 80px; border-radius: 10px; border: 1px solid var(--t-borde); background: #fff; display: grid; place-items: center; overflow: hidden; }
.t-renglon-foto img { width: 100%; height: 100%; object-fit: contain; }
.t-renglon-foto .t-sin-foto { font-size: 1.5rem; }
.t-renglon-info h2 { font-size: .95rem; margin: 0 0 .15rem; }
.t-renglon-info h2 a { color: var(--t-texto); text-decoration: none; }
.t-renglon-info p { margin: 0; font-size: .85rem; }
.t-renglon-unit { color: var(--t-suave); }
.t-renglon-cantidad { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.t-renglon-cantidad input { width: 90px; text-align: center; }
.t-renglon-importe { font-size: 1rem; }
.t-quitar { font-size: .85rem; }
.t-no-disponible { opacity: .65; }
/* Producto agrupado: el mismo producto (p. ej. c701) en varios colores o tallas */
.t-grupo { border: 1px solid var(--t-borde); border-radius: var(--t-radio); background: var(--t-superficie); overflow: hidden; }
.t-grupo-cabeza { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .9rem; border-bottom: 1px solid var(--t-borde); background: var(--t-superficie-2); }
.t-grupo-titulo h2 { font-size: 1rem; margin: 0 0 .15rem; }
.t-grupo-titulo h2 a { color: var(--t-texto); text-decoration: none; }
.t-grupo-titulo p { margin: 0; }
.t-grupo .t-renglon { border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--t-borde); }
.t-grupo .t-renglon:last-child { border-bottom: 0; }
.t-renglon-sub { grid-template-columns: minmax(0, 1fr) auto; }
.t-sub-variante { font-size: .92rem; font-weight: 600; margin: 0 0 .15rem; }
.t-actualizar { align-self: flex-end; }
.t-carrito-pie { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; align-items: start; }
.t-totales dl, .t-totales-lista { margin: 0; }
.t-totales dl > div, .t-totales-lista > div { display: flex; justify-content: space-between; padding: .35rem 0; }
.t-totales dt, .t-totales-lista dt { color: var(--t-suave); }
.t-totales dd, .t-totales-lista dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.t-total { border-top: 1px solid var(--t-borde); margin-top: .35rem; padding-top: .6rem !important; }
.t-total dt { color: var(--t-texto) !important; font-weight: 700; }
.t-total dd { font-weight: 700 !important; font-size: 1.2rem; }
.t-presupuesto { margin-top: 1rem; padding: .75rem .9rem; border-radius: 10px; background: var(--t-ok-fondo); color: var(--t-ok); font-size: .9rem; }
.t-presupuesto p { margin: 0; }
.t-presupuesto-pasado { background: var(--t-error-fondo); color: var(--t-error); }
.t-presupuesto-resumen { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.t-presupuesto-resumen p { margin: 0; }

/* Cotizaciones */
.t-lista-cotizaciones { display: flex; flex-direction: column; gap: .5rem; }
.t-cotizacion { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; text-decoration: none; color: var(--t-texto); margin: 0; }
.t-cotizacion small { display: block; }
.t-cotizacion:hover { border-color: var(--t-acento); }
.t-cotizacion-total { font-size: 1.05rem; }
.t-estado { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--t-superficie-2); color: var(--t-suave); white-space: nowrap; }
.t-estado-enviada { background: var(--t-aviso-fondo); color: hsl(35, 80%, 35%); }
.t-estado-aprobada, .t-estado-autorizada, .t-estado-en_produccion { background: var(--t-acento-suave); color: var(--t-acento); }
.t-estado-entregada { background: var(--t-ok-fondo); color: var(--t-ok); }
.t-estado-rechazada, .t-estado-cancelada { background: var(--t-error-fondo); color: var(--t-error); }
.t-tabla { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.t-tabla th, .t-tabla td { padding: .6rem .5rem; border-bottom: 1px solid var(--t-borde); text-align: left; vertical-align: top; }
.t-tabla th { font-size: .78rem; color: var(--t-suave); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.t-tabla td small { display: block; color: var(--t-suave); font-size: .82rem; }
.t-tabla tr.t-grupo-cabeza td { background: var(--t-superficie-2); border-bottom: 0; padding-top: .8rem; }
.t-tabla tr.t-grupo-sub td { border-bottom: 0; }
.t-tabla tr.t-grupo-sub td[data-col="Artículo"] { padding-left: 1rem; }
.t-tabla tr.t-grupo-total td { font-weight: 700; color: var(--t-texto); }
.t-tabla tr.t-grupo-total td[data-col="Artículo"] { padding-left: 1rem; }
.t-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-totales-lista { max-width: 320px; margin-left: auto; }
.t-perfil { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; align-items: start; }

/* Aviso para confirmar (assets/js/confirmar.js) */
.dialogo { width: min(420px, calc(100vw - 32px)); padding: 1.25rem; border: 1px solid var(--t-borde); border-radius: var(--t-radio); background: var(--t-superficie); color: var(--t-texto); }
.dialogo::backdrop { background: rgba(10, 10, 15, .45); }
.dialogo-titulo { margin: 0 0 .35rem; font-weight: 600; font-size: 1.05rem; }
.dialogo-detalle { margin: 0 0 1rem; color: var(--t-suave); }
.dialogo-acciones { display: flex; justify-content: flex-end; gap: .5rem; }
.dialogo .btn {
  min-height: var(--t-toque); padding: 0 1.1rem; border: 1px solid var(--t-borde); border-radius: 10px;
  background: var(--t-superficie); color: var(--t-texto); font: inherit; font-weight: 600; cursor: pointer;
}
.dialogo .btn-peligro { background: var(--t-error); border-color: var(--t-error); color: #fff; }

/* Celular */
@media (max-width: 860px) {
  .t-detalle, .t-carrito-pie, .t-perfil { grid-template-columns: minmax(0, 1fr); }
  .t-detalle-foto { position: static; max-width: 420px; }
}
@media (max-width: 720px) {
  .t-barra-dentro { flex-wrap: wrap; gap: .5rem; padding: .5rem 16px; }
  .t-buscar { order: 3; flex-basis: 100%; max-width: none; }
  .t-menu a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .t-menu a { padding: 0 .65rem; }
  .t-menu a.t-panel span, .t-menu:not(:has(svg)) a span { position: static; width: auto; height: auto; clip: auto; }
  .t-contenido { padding: 1rem 16px 3rem; }
  h1 { font-size: 1.35rem; }
  .t-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .t-producto-info { padding: .65rem .7rem .8rem; }
  .t-producto-nombre { font-size: .85rem; }
  .t-renglon { grid-template-columns: 64px minmax(0, 1fr); }
  .t-renglon-foto { width: 64px; height: 64px; }
  .t-renglon-cantidad { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .t-grupo-cabeza { grid-template-columns: 64px minmax(0, 1fr); }
  .t-renglon-sub { grid-template-columns: minmax(0, 1fr); }
  .t-tabla tr.t-grupo-cabeza td[data-col="Artículo"], .t-tabla tr.t-grupo-sub td[data-col="Artículo"], .t-tabla tr.t-grupo-total td[data-col="Artículo"] { padding-left: 0; }
  .t-tabla td.t-col-vacia { display: none; }
  .t-cotizacion { grid-template-columns: minmax(0, 1fr) auto; }
  .t-cotizacion .t-estado { grid-column: 1; justify-self: start; }
  .t-fila-2 { grid-template-columns: minmax(0, 1fr); }
  .t-tabla thead { display: none; }
  .t-tabla, .t-tabla tbody, .t-tabla tr { display: block; }
  .t-tabla tr { border-bottom: 1px solid var(--t-borde); padding: .5rem 0; }
  .t-tabla td { display: flex; justify-content: space-between; border: 0; padding: .2rem 0; }
  .t-tabla td[data-col="Artículo"] { display: block; }
  .t-tabla td:not([data-col="Artículo"])::before { content: attr(data-col); color: var(--t-suave); font-size: .85rem; }
}

/* =====================================================================
   Rediseño de la tienda (inspirado en Anon y Hayroo)
   ===================================================================== */
:root { --t-pie-fondo: #1c1c21; --t-pie-texto: #c9c9d2; --t-hero-fondo: #fdecef; --t-hero-fondo-2: #fff6f0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --t-pie-fondo: #0b0b0e; --t-hero-fondo: #2a1a1f; --t-hero-fondo-2: #22191a; }
}

.t-saltar { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--t-acento); color: var(--t-acento-texto); padding: .6rem 1rem; border-radius: 8px; }
.t-saltar:focus { left: 8px; }

/* Franja de aviso arriba */
.t-franja { background: var(--t-texto); color: var(--t-fondo); text-align: center; font-size: .78rem; padding: .45rem 16px; }
.t-franja p { margin: 0; }

/* Encabezado */
.t-barra { box-shadow: 0 1px 0 var(--t-borde); }
.t-barra-dentro { gap: 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.t-marca { font-size: 1.55rem; }
.t-buscar { max-width: 560px; }
.t-iconos { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.t-iconos a {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: var(--t-toque); min-height: var(--t-toque); padding: .25rem .6rem; border-radius: 12px;
  color: var(--t-texto); text-decoration: none; font-size: .72rem; font-weight: 500; transition: background-color .2s ease, color .2s ease;
}
.t-iconos a:hover, .t-iconos a[aria-current="page"] { background: var(--t-acento-suave); color: var(--t-acento); }
.t-iconos a .t-contador { position: absolute; top: 0; right: 4px; }
.t-iconos-texto a { flex-direction: row; font-size: .9rem; }
.t-iconos-texto .t-btn { color: var(--t-acento-texto); }
.t-iconos .t-panel { border: 1px solid var(--t-borde); }

/* Menu de categorias (texto, como Anon) */
.t-menu-categorias {
  max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: center; gap: .25rem;
  overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--t-borde);
}
.t-menu-categorias::-webkit-scrollbar { display: none; }
.t-menu-categorias a {
  flex: none; display: inline-flex; align-items: center; min-height: var(--t-toque); padding: 0 .9rem;
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--t-texto); text-decoration: none;
  border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.t-menu-categorias a:hover, .t-menu-categorias a[aria-current="page"] { color: var(--t-acento); border-bottom-color: var(--t-acento); }

/* Barra de abajo (solo celular) */
.t-abajo { display: none; }

/* Banner principal */
.t-hero { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 1.5rem; background: linear-gradient(120deg, var(--t-hero-fondo), var(--t-hero-fondo-2)); }
.t-hero-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.t-hero-pista::-webkit-scrollbar { display: none; }
.t-hero-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 1.5rem; padding: 2.5rem 4.5rem; min-height: 360px; }
.t-hero-ojo { color: var(--t-acento); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.t-hero-texto h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; margin: .4rem 0 .6rem; text-transform: uppercase; letter-spacing: -.01em; }
.t-hero-texto p { margin: 0 0 1.25rem; color: var(--t-suave); }
.t-hero-texto p strong { color: var(--t-texto); font-size: 1.35rem; }
.t-hero-foto { display: grid; place-items: center; }
.t-hero-foto img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.t-hero-flecha {
  position: absolute; top: 50%; transform: translateY(-50%); width: var(--t-toque); height: var(--t-toque); border-radius: 50%;
  border: 0; background: var(--t-superficie); color: var(--t-texto); box-shadow: var(--t-sombra); cursor: pointer; display: grid; place-items: center;
}
.t-hero-ant { left: 14px; }
.t-hero-sig { right: 14px; }
.t-hero-puntos { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.t-hero-puntos button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.t-hero-puntos button::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--t-texto) 25%, transparent); transition: width .2s ease, background-color .2s ease; }
.t-hero-puntos button[aria-current="true"]::after { width: 22px; border-radius: 6px; background: var(--t-acento); }

/* Tarjetas de categoria (como Anon) */
.t-cat-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.t-cat-tarjetas a {
  display: flex; align-items: center; gap: .85rem; padding: .85rem; border: 1px solid var(--t-borde); border-radius: 14px;
  background: var(--t-superficie); color: var(--t-texto); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.t-cat-tarjetas a:hover { border-color: var(--t-acento); box-shadow: var(--t-sombra); }
.t-cat-icono { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--t-acento-suave); color: var(--t-acento); display: grid; place-items: center; }
.t-cat-tarjetas strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.t-cat-tarjetas small { color: var(--t-suave); font-size: .78rem; }

/* Barra lateral + contenido */
.t-con-lateral { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.t-lateral { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 1rem; }
.t-lateral-caja { border: 1px solid var(--t-borde); border-radius: 14px; padding: 1rem; background: var(--t-superficie); }
.t-lateral-caja h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; }
.t-lateral-cats, .t-lateral-mini { list-style: none; margin: 0; padding: 0; }
.t-lateral-cats a {
  display: flex; align-items: center; gap: .6rem; min-height: var(--t-toque); padding: 0 .4rem; border-radius: 8px;
  color: var(--t-texto); text-decoration: none; font-size: .9rem; transition: background-color .2s ease;
}
.t-lateral-cats a span { flex: 1; }
.t-lateral-cats a small { color: var(--t-suave); font-size: .78rem; }
.t-lateral-cats a svg { color: var(--t-acento); }
.t-lateral-cats a:hover, .t-lateral-cats a[aria-current="page"] { background: var(--t-acento-suave); }
.t-lateral-mini a { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; color: var(--t-texto); text-decoration: none; }
.t-lateral-mini strong { display: block; font-size: .82rem; font-weight: 500; line-height: 1.3; }
.t-lateral-mini small { color: var(--t-acento); font-weight: 600; font-size: .82rem; }
.t-lateral-mini a:hover strong { color: var(--t-acento); }
.t-mini-foto { flex: none; width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--t-borde); background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--t-acento); }
.t-mini-foto img { width: 100%; height: 100%; object-fit: contain; }

.t-secciones { display: flex; flex-direction: column; gap: 2.25rem; min-width: 0; }
.t-sec-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--t-borde); margin-bottom: 1rem; }
.t-sec-titulo h2 { margin: 0; padding-bottom: .6rem; font-size: 1.1rem; position: relative; }
.t-sec-titulo h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--t-acento); }
.t-ver-todo { font-size: .85rem; font-weight: 600; text-decoration: none; padding: .6rem 0; }
.t-listado-cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.t-listado-cabeza .t-suave { margin: 0; }
.t-ordenar { margin: 0; }
.t-ordenar label { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--t-suave); }
.t-ordenar select { width: auto; }

/* Tarjeta de producto */
.t-rejilla { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.t-prod { position: relative; display: flex; flex-direction: column; border: 1px solid var(--t-borde); border-radius: 14px; overflow: hidden; background: var(--t-superficie); transition: box-shadow .25s ease, border-color .25s ease; }
.t-prod:hover { box-shadow: 0 12px 30px rgba(20, 20, 30, .1); border-color: transparent; }
.t-prod-foto { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: #fff; overflow: hidden; }
.t-prod-foto img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .35s ease; }
.t-prod:hover .t-prod-foto img { transform: scale(1.05); }
.t-prod-icono { width: 100%; height: 100%; display: grid; place-items: center; color: var(--t-acento); background: var(--t-acento-suave); }
.t-prod-etiqueta { position: absolute; top: 10px; left: 10px; background: var(--t-acento); color: var(--t-acento-texto); font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.t-fav-form { position: absolute; top: 6px; right: 6px; margin: 0; z-index: 2; }
.t-fav {
  width: var(--t-toque); height: var(--t-toque); border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: color-mix(in srgb, var(--t-superficie) 88%, transparent); color: var(--t-suave); box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  transition: color .2s ease, transform .15s ease;
}
.t-fav:hover { color: var(--t-acento); }
.t-fav:active { transform: scale(.92); }
.t-fav.activo { color: var(--t-acento); }
.t-fav.activo svg { fill: currentColor; }
.t-prod-info { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; border-top: 1px solid var(--t-borde); }
.t-prod-categoria { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--t-acento); }
.t-prod-nombre { font-size: .92rem; font-weight: 500; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-prod-nombre a { color: var(--t-texto); text-decoration: none; }
.t-prod-nombre a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toda la tarjeta lleva al producto */
.t-prod-nombre a:hover { color: var(--t-acento); }
.t-prod .t-producto-precio strong { font-size: 1.05rem; }

/* Detalle */
.t-migas { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: var(--t-suave); margin-bottom: 1rem; }
.t-migas a { color: var(--t-suave); text-decoration: none; padding: .5rem 0; }
.t-migas a:hover { color: var(--t-acento); }
.t-migas [aria-current] { color: var(--t-texto); }
.t-detalle-titulo { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.t-fav-grande { flex: none; border: 1px solid var(--t-borde); box-shadow: none; }
.t-relacionados { margin-top: 3rem; }
.t-vacio-icono { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--t-acento-suave); color: var(--t-acento); margin-bottom: .5rem; }

/* Pie oscuro (como Anon) */
.t-pie { background: var(--t-pie-fondo); color: var(--t-pie-texto); border-top: 0; padding: 0; text-align: left; margin-top: 3rem; }
.t-pie-dentro { max-width: 1200px; margin: 0 auto; padding: 2.5rem 20px 1.5rem; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.t-pie .t-marca { color: #fff; }
.t-pie p { margin: .6rem 0 0; font-size: .85rem; line-height: 1.6; }
.t-pie h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .6rem; }
.t-pie ul, .t-pie ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .1rem; font-size: .85rem; }
.t-pie ol { list-style: decimal; padding-left: 1.1rem; gap: .35rem; }
.t-pie a { color: var(--t-pie-texto); text-decoration: none; display: inline-block; padding: .3rem 0; }
.t-pie a:hover { color: #fff; }
.t-pie-final { max-width: 1200px; margin: 0 auto; padding: 1rem 20px 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.t-pie-final p { margin: 0; }
.t-pie .t-enlace { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; scroll-behavior: auto !important; }
  .t-prod:hover .t-prod-foto img { transform: none; }
}

@media (max-width: 1100px) {
  .t-iconos a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .t-iconos-texto a span { position: static; width: auto; height: auto; clip: auto; }
}
@media (max-width: 1024px) {
  .t-con-lateral { grid-template-columns: minmax(0, 1fr); }
  .t-lateral { display: none; }
  .t-pie-dentro { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .t-franja { font-size: .72rem; }
  .t-con-sesion .t-iconos { display: none; }
  .t-menu-categorias { justify-content: flex-start; padding: 0 8px; }
  .t-menu-categorias a { font-size: .75rem; padding: 0 .7rem; }
  .t-hero { border-radius: 16px; }
  .t-hero-slide { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.25rem 3rem; min-height: 0; gap: .5rem; text-align: center; }
  .t-hero-foto { order: -1; }
  .t-hero-foto img { max-width: 210px; }
  .t-hero-flecha { display: none; }
  .t-cat-tarjetas { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .25rem; scrollbar-width: none; }
  .t-cat-tarjetas a { flex: 0 0 auto; scroll-snap-align: start; padding: .6rem .9rem .6rem .6rem; }
  .t-cat-icono { width: 44px; height: 44px; }
  .t-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .t-prod-info { padding: .6rem .7rem .8rem; }
  .t-prod-nombre { font-size: .85rem; }
  .t-pie-dentro { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  /* Barra de navegacion abajo */
  .t-con-sesion { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .t-abajo {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--t-superficie); border-top: 1px solid var(--t-borde); padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 16px rgba(20, 20, 30, .06);
  }
  .t-abajo a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 60px; color: var(--t-suave); text-decoration: none; font-size: .7rem; font-weight: 500;
  }
  .t-abajo a[aria-current="page"] { color: var(--t-acento); }
  .t-abajo .t-contador { position: absolute; top: 6px; left: calc(50% + 6px); }
  .t-agregar { bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* =====================================================================
   Marca en azules (noche #003057 · profundo #005E85 · oceano #007DA8 · cielo #00B5D6)
   ===================================================================== */
:root {
  --azul-noche: #003057;
  --azul-profundo: #005E85;
  --azul-oceano: #007DA8;
  --azul-cielo: #00B5D6;
  --t-acento: var(--azul-profundo);
  --t-acento-texto: #ffffff;
  --t-acento-suave: #e3f3f8;
  --t-detalle: var(--azul-oceano);
  --t-corazon: #e0115f;
  --t-marca-texto: var(--azul-noche);
  --t-pie-fondo: var(--azul-noche);
  --t-pie-texto: #c7d8e4;
  --t-hero-fondo: #e6f5fa;
  --t-hero-fondo-2: #f5fbfd;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --t-acento: #4fc9e3;
    --t-acento-texto: #00213d;
    --t-acento-suave: #0d2c3b;
    --t-detalle: #6fd3ea;
    --t-corazon: #ff5c93;
    --t-marca-texto: #ffffff;
    --t-pie-fondo: #001a30;
    --t-hero-fondo: #0b2535;
    --t-hero-fondo-2: #0f1d27;
  }
}

/* Logo */
.t-marca { display: inline-flex; align-items: center; gap: .5rem; color: var(--t-marca-texto); }
.t-marca-texto span { color: var(--t-detalle); }
.t-logo { flex: none; border-radius: 9px; }
.t-pie .t-marca { color: #fff; }
.t-pie .t-marca-texto span { color: var(--azul-cielo); }

/* Detalles en oceano (iconos, categorias); los botones van en profundo */
.t-prod-categoria, .t-producto-categoria, .t-hero-ojo, .t-lateral-cats a svg { color: var(--t-detalle); }
.t-lateral-mini small, .t-mini-foto, .t-cat-icono, .t-paso-icono, .t-prod-icono, .t-vacio-icono, .t-sin-foto { color: var(--t-detalle); }
.t-sec-titulo h2::after { background: linear-gradient(90deg, var(--azul-profundo), var(--azul-cielo)); }

/* Corazon de favoritos en magenta de la paleta */
.t-fav:hover, .t-fav.activo { color: var(--t-corazon); }

/* Franja y pie con los rayos de la marca */
.t-franja {
  color: #fff;
  background:
    linear-gradient(100deg, transparent 0 62%, rgba(0, 181, 214, .35) 62% 78%, rgba(0, 125, 168, .45) 78% 100%),
    var(--azul-noche);
}
.t-pie {
  background:
    linear-gradient(170deg, rgba(0, 181, 214, .14) 0 18%, transparent 18%),
    linear-gradient(195deg, transparent 0 70%, rgba(0, 125, 168, .18) 70%),
    var(--t-pie-fondo);
}

/* Banner con rayos suaves en cielo y oceano */
.t-hero {
  background:
    linear-gradient(165deg, rgba(0, 181, 214, .16) 0 30%, transparent 30%),
    linear-gradient(200deg, transparent 0 58%, rgba(0, 125, 168, .10) 58%),
    linear-gradient(120deg, var(--t-hero-fondo), var(--t-hero-fondo-2));
}
.t-hero-puntos button[aria-current="true"]::after { background: var(--azul-profundo); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-hero-foto img { mix-blend-mode: normal; border-radius: 16px; background: #fff; }
}

/* Foto del banner: cuadro blanco, sin estirarse ni teñirse con el fondo */
.t-hero-foto img, :root:not([data-theme="light"]) .t-hero-foto img {
  height: auto; aspect-ratio: 1; object-fit: cover; mix-blend-mode: normal;
  background: #fff; border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 48, 87, .18);
}
@media (max-width: 720px) {
  .t-hero-foto img { max-width: 190px; border-radius: 14px; }
  .t-hero-texto h2 { font-size: 1.45rem; }
}

/* En celular el encabezado se desplaza (la barra de abajo ya da la navegacion) */
@media (max-width: 720px) { .t-barra { position: static; } }

/* Pedido minimo: visible antes de agregar, con la cuenta en vivo */
.t-minimo { margin: -.2rem 0 .6rem; padding: .5rem .75rem; border-radius: 10px; background: var(--t-acento-suave); font-size: .88rem; }
.t-minimo-falta { background: var(--t-error-fondo); color: var(--t-error); }
.t-minimo-ok { background: var(--t-ok-fondo); color: var(--t-ok); }
.t-btn-apagado { opacity: .55; }
.t-prod-minimo { align-self: flex-start; margin-top: .2rem; font-size: .72rem; font-weight: 600; color: var(--t-detalle); background: var(--t-acento-suave); padding: .1rem .5rem; border-radius: 999px; }

/* El texto del logo sigue el color de su enlace (blanco en el pie) */
.t-marca-texto { color: inherit; }
.t-pie .t-marca-texto { color: #fff; }
.t-barra .t-marca-texto { color: var(--t-marca-texto); }
.t-pie .t-marca { display: inline-flex; align-items: center; padding: 0; }

/* Galeria del producto: foto grande y miniaturas */
.t-galeria { position: sticky; top: 80px; display: grid; gap: .6rem; min-width: 0; }
.t-galeria .t-detalle-foto { position: static; }
.t-galeria-mini { display: flex; gap: .5rem; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.t-galeria-mini button { flex: 0 0 auto; width: 72px; height: 72px; padding: 0; border: 2px solid var(--t-borde); border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; transition: border-color .15s; }
.t-galeria-mini button:hover { border-color: var(--t-acento); }
.t-galeria-mini button[aria-current="true"] { border-color: var(--t-acento); box-shadow: 0 0 0 2px var(--t-acento-suave); }
.t-galeria-mini img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 860px) {
  .t-galeria { position: static; max-width: 420px; width: 100%; }
}

/* Carrito: articulos a la izquierda, resumen fijo a la derecha */
.t-carrito { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
.t-carrito-lista { margin-bottom: .5rem; }
.t-carrito-lado .t-tarjeta { margin-bottom: 0; }
.t-totales h2 { margin: 0; font-size: 1.15rem; }
.t-totales-cuenta { margin: .1rem 0 .6rem; font-size: .85rem; }
.t-descuento dt, .t-descuento dd { color: var(--t-ok) !important; font-weight: 600; }
.t-pendiente { margin-top: .75rem; padding: .7rem .8rem; border-radius: 10px; background: var(--t-aviso-fondo); font-size: .88rem; }
.t-pendiente p { margin: 0 0 .5rem; }
.t-cupon { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--t-borde); display: grid; gap: .35rem; }
.t-cupon label { font-weight: 500; font-size: .9rem; }
.t-cupon-fila { display: flex; gap: .5rem; }
.t-cupon-fila input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.t-cupon-fila input::placeholder { text-transform: none; letter-spacing: 0; }
.t-cupon-fila .t-btn { flex: none; }
.t-cupon.t-campo-error input { border-color: var(--t-error); }
.t-cupon-aplicado { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; border: 1px dashed var(--t-ok); border-radius: 10px; background: var(--t-ok-fondo); color: var(--t-ok); font-size: .9rem; }
.t-cupon-aplicado > span { display: inline-flex; align-items: center; gap: .45rem; }
.t-cupon-aplicado .t-enlace { color: var(--t-ok); min-height: 44px; }
.t-enviar { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--t-borde); display: grid; gap: .8rem; }
.t-enviar h3 { margin: 0; font-size: 1rem; }
.t-nota-chica { margin: 0; font-size: .8rem; }
@media (min-width: 861px) and (min-height: 760px) {
  .t-carrito-lado { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; border-radius: var(--t-radio); scrollbar-width: thin; }
}
@media (max-width: 860px) {
  .t-carrito { grid-template-columns: minmax(0, 1fr); }
}

/* Cotizacion: siguiente paso (descargar PDF y confirmar), fotos y nota */
.t-estado-vencida { background: var(--t-error-fondo); color: var(--t-error); }
.t-paso-siguiente { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; border-color: var(--t-acento); background: var(--t-acento-suave); }
.t-paso-siguiente h2 { margin: 0 0 .25rem; font-size: 1.1rem; }
.t-paso-siguiente p { margin: 0; }
.t-paso-siguiente > div:first-child { flex: 1 1 320px; }
.t-paso-botones { display: flex; gap: .6rem; flex-wrap: wrap; }
.t-paso-botones .t-btn { display: inline-flex; align-items: center; gap: .45rem; }
.t-paso-vencida { border-color: var(--t-error); background: var(--t-error-fondo); }
.t-nota-merch { border-left: 4px solid var(--t-acento); }
.t-nota-merch p { margin: .35rem 0 0; }
.t-articulo { display: flex; gap: .75rem; align-items: center; }
.t-articulo-foto { width: 56px; height: 56px; flex: none; border-radius: 10px; border: 1px solid var(--t-borde); background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--t-detalle); font-weight: 700; }
.t-articulo-foto img { width: 100%; height: 100%; object-fit: contain; }
.t-cotizacion-vigencia { display: block; font-size: .78rem; color: var(--t-suave); margin-top: .15rem; }
@media (max-width: 720px) {
  .t-tabla td[data-col="Artículo"] { display: block; }
  .t-paso-botones, .t-paso-botones .t-btn { width: 100%; justify-content: center; }
}

.t-cambios { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.t-cambios li { margin-bottom: .25rem; }

/* Quien paga (carrito) y "A pagar" */
.t-pagador { margin: 0 0 .75rem; }
.t-pagador fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.t-pagador legend { font-weight: 500; font-size: .9rem; padding: 0; margin-bottom: .35rem; }
.t-pagador-opcion { display: flex; gap: .5rem; align-items: flex-start; padding: .6rem .65rem; min-height: 44px; border: 1px solid var(--t-borde); border-radius: 10px; cursor: pointer; font-size: .85rem; }
.t-pagador-opcion:has(input:checked) { border-color: var(--t-acento); background: var(--t-acento-suave); }
.t-pagador-opcion input { margin-top: .15rem; }
.t-pagador-opcion strong { display: block; font-weight: 600; line-height: 1.25; }
.t-pagador-opcion small { display: block; color: var(--t-suave); font-size: .75rem; line-height: 1.3; margin-top: .15rem; }
.t-totales dt small, .t-totales-lista dt small { font-size: .75rem; }
.t-a-pagar dd { color: var(--t-acento); }
.t-totales dd, .t-totales-lista dd { white-space: nowrap; }
.t-totales dl > div, .t-totales-lista > div { gap: .75rem; }

.t-olvide { margin: -.35rem 0 0; text-align: right; font-size: .88rem; }
.t-olvide a { display: inline-flex; align-items: center; min-height: 44px; color: var(--t-acento); }

/* Muestras de color dentro de los chips: circulo limpio, borde suave que se ve en claro y en
   oscuro, y un aro del color de acento cuando esta elegido. */
.t-chip > span:has(> .t-muestra) { padding: 0 1rem 0 .45rem; }
.t-chip .t-muestra { width: 28px; height: 28px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-texto) 18%, transparent); transition: box-shadow .15s; }
.t-chip input:checked + span .t-muestra { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-texto) 18%, transparent), 0 0 0 2px var(--t-superficie), 0 0 0 4px var(--t-acento); }
.t-chip > span { transition: border-color .15s, background-color .15s; }
.t-chip:hover > span { border-color: color-mix(in srgb, var(--t-acento) 45%, var(--t-borde)); }
@media (prefers-reduced-motion: reduce) { .t-chip > span, .t-chip .t-muestra { transition: none; } }

/* "Tambien te puede interesar": una sola fila que se desliza de lado */
.t-carrusel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 2px 2px .75rem; margin: 0 -2px; }
.t-carrusel:focus-visible { outline: 3px solid color-mix(in srgb, var(--t-acento) 45%, transparent); outline-offset: 4px; border-radius: var(--t-radio); }
.t-carrusel .t-rejilla { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 4 * 1rem) / 5); gap: 1rem; }
.t-carrusel .t-rejilla > * { scroll-snap-align: start; }
.t-carrusel-flechas { display: flex; gap: .4rem; padding-bottom: .5rem; }
.t-carrusel-flecha { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--t-borde); border-radius: 50%; background: var(--t-superficie); color: var(--t-texto); cursor: pointer; }
.t-carrusel-flecha:hover:not(:disabled) { border-color: var(--t-acento); color: var(--t-acento); }
.t-carrusel-flecha:disabled { opacity: .35; cursor: default; }
.t-carrusel-cabe .t-carrusel-flechas { visibility: hidden; }
@media (max-width: 1100px) { .t-carrusel .t-rejilla { grid-auto-columns: calc((100% - 2 * 1rem) / 3); } }
@media (max-width: 720px) {
  .t-carrusel .t-rejilla { grid-auto-columns: 46%; gap: .65rem; }
  .t-carrusel-flechas { display: none; }
}

.t-estado-en_camino { background: var(--t-ok-fondo); color: var(--t-ok); }

/* Aviso de privacidad y casilla del registro */
.t-legal { max-width: 760px; margin: 0 auto 1rem; line-height: 1.6; }
.t-legal h2 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.t-legal ul { padding-left: 1.2rem; }
.t-legal li { margin-bottom: .3rem; }
.t-privacidad { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; font-size: .9rem; cursor: pointer; }
.t-privacidad input { margin-top: .15rem; }
.t-privacidad a { color: var(--t-acento); }
.t-pie-final a { color: inherit; }

/* Disenos: tarjetas con vista previa (panel y tienda usan las mismas clases) */
.disenos-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.diseno-item { display: flex; flex-direction: column; gap: .4rem; }
.diseno-tarjeta { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--t-borde); border-radius: 12px; background: var(--t-superficie); overflow: hidden; }
.diseno-vista { display: grid; place-items: center; aspect-ratio: 1; background: repeating-conic-gradient(#f3f5f7 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.diseno-vista img { width: 100%; height: 100%; object-fit: contain; }
.diseno-icono { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--t-acento-suave); color: var(--t-acento); font-weight: 700; font-size: .9rem; }
.diseno-tarjeta figcaption { padding: .55rem .65rem .6rem; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.diseno-tarjeta figcaption strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diseno-tarjeta figcaption small { font-size: .75rem; color: var(--t-suave); }
.diseno-acciones { display: flex; gap: .75rem; margin-top: .25rem; font-size: .82rem; }
.diseno-acciones a, .diseno-acciones button { color: var(--t-acento); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; }
.diseno-meta { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.diseno-grande { max-width: 260px; margin: 0 auto 1rem; }
.filtros-disenos { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filtros-disenos input[type=search] { min-width: 240px; }
.disenos-mini { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.disenos-mini .diseno-tarjeta { width: 132px; }
.disenos-mini .diseno-acciones { font-size: .75rem; gap: .5rem; }

/* Disenos del responsable y pruebas */
.t-disenos-articulo { margin-top: .5rem; }
.t-subir-diseno { display: inline-flex; align-items: center; min-height: 44px; margin-top: .35rem; color: var(--t-acento); font-weight: 600; font-size: .88rem; cursor: pointer; }
.t-subir-diseno input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.t-subir-diseno:focus-within span { outline: 3px solid color-mix(in srgb, var(--t-acento) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.t-subiendo span::after { content: ' · subiendo…'; color: var(--t-suave); font-weight: 400; }
.t-pruebas h2 { margin: 0 0 .25rem; font-size: 1.1rem; }
.t-pruebas-lista { display: grid; gap: 1rem; margin-top: .75rem; }
.t-prueba { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1rem; align-items: start; padding: .75rem; border: 1px solid var(--t-borde); border-radius: var(--t-radio); }
.t-prueba-pendiente { border-color: var(--t-acento); background: var(--t-acento-suave); }
.t-prueba-datos p { margin: .35rem 0 0; }
.t-prueba-acciones { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; margin-top: .6rem; }
.t-prueba-acciones details { flex: 1 1 260px; }
.t-prueba-acciones summary { list-style: none; display: inline-flex; }
.t-prueba-acciones summary::-webkit-details-marker { display: none; }
.t-prueba-acciones details[open] summary { margin-bottom: .5rem; }
.t-prueba-acciones details .t-campo { margin-bottom: .5rem; }
.t-estado-prueba-pendiente { background: var(--t-aviso-fondo); color: hsl(35, 80%, 35%); }
.t-estado-prueba-aprobada { background: var(--t-ok-fondo); color: var(--t-ok); }
.t-estado-prueba-cambios { background: var(--t-error-fondo); color: var(--t-error); }
@media (max-width: 720px) { .t-prueba { grid-template-columns: minmax(0, 1fr); } .t-prueba .diseno-tarjeta { max-width: 220px; } }

/* Disenos dentro de un articulo (carrito, cotizacion, revision, produccion): chips compactos */
.t-disenos-articulo .disenos-mini { display: flex; flex-direction: column; gap: .35rem; margin-top: .45rem; }
.t-disenos-articulo .diseno-tarjeta { width: auto; max-width: 340px; flex-direction: row; align-items: center; border-radius: 10px; }
.t-disenos-articulo .diseno-vista { width: 48px; height: 48px; flex: none; aspect-ratio: auto; border-right: 1px solid var(--t-borde); }
.t-disenos-articulo .diseno-icono { width: 40px; height: 40px; font-size: .7rem; border-radius: 8px; }
.t-disenos-articulo .diseno-tarjeta figcaption { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .5rem; row-gap: 0; padding: .3rem .6rem; min-width: 0; }
.t-disenos-articulo .diseno-tarjeta figcaption strong { max-width: 150px; font-size: .82rem; }
.t-disenos-articulo .diseno-tarjeta figcaption small { font-size: .72rem; }
.t-disenos-articulo .diseno-acciones { margin: 0; gap: .6rem; font-size: .78rem; }
.t-disenos-articulo .diseno-acciones a, .t-disenos-articulo .diseno-acciones button { min-height: 28px; }

.t-facturas { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; margin: .5rem 0; font-size: .92rem; }
.t-facturas a { color: var(--t-acento); font-weight: 600; }

/* "Necesitas algo?": repetir, pedir cambio o cancelacion */
.t-ayuda-pedido h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.t-ayuda-acciones { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; }
.t-ayuda-acciones form { margin: 0; }
.t-solicitud { flex: 1 1 280px; }
.t-solicitud summary { list-style: none; display: inline-flex; cursor: pointer; }
.t-solicitud summary::-webkit-details-marker { display: none; }
.t-solicitud[open] summary { margin-bottom: .6rem; }
.t-solicitud[open] { flex-basis: 100%; }
.t-btn-peligro { color: var(--t-error); border-color: color-mix(in srgb, var(--t-error) 40%, var(--t-borde)); }

/* --- Movimiento: avisos, botones enviando, carrito, favoritos, fotos y tarjetas --- */
.enviando { cursor: progress; opacity: .85; }
.enviando::before { content: ""; display: inline-block; flex: none; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: t-gira .7s linear infinite; }
@keyframes t-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .t-aviso { animation: t-entra .35s cubic-bezier(.2, .8, .2, 1) both; }
  .t-contador.t-brinco { animation: t-brinco .6s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
  .t-fav.t-late svg { animation: t-late .45s ease; }
  #galeria-grande.t-foto-cambio { animation: t-fundido .3s ease; }
  .t-prod { animation: t-sube .4s ease both; }
  .t-prod:nth-child(2) { animation-delay: .04s; } .t-prod:nth-child(3) { animation-delay: .08s; }
  .t-prod:nth-child(4) { animation-delay: .12s; } .t-prod:nth-child(5) { animation-delay: .16s; }
  .t-prod:nth-child(6) { animation-delay: .2s; } .t-prod:nth-child(n+7) { animation-delay: .24s; }
  dialog[open] { animation: t-ventana .22s cubic-bezier(.2, .8, .2, 1); }
  dialog[open]::backdrop { animation: t-fundido .22s ease; }
  .t-btn:active:not(:disabled), .t-chip:active > span { transform: scale(.97); }
  .t-btn { transition: transform .12s ease, background-color .2s ease, box-shadow .2s ease; }
}
@media (prefers-reduced-motion: reduce) { .enviando::before { animation-duration: 2.4s; } }
@keyframes t-entra { from { opacity: 0; transform: translateY(-8px); } }
@keyframes t-brinco { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes t-late { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes t-fundido { from { opacity: 0; } }
@keyframes t-sube { from { opacity: 0; transform: translateY(10px); } }
@keyframes t-ventana { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* Registro: elegir sede o cliente */
.t-tipo { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0 0 .25rem; }
.t-tipo legend { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; padding: 0; }
.t-radio { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--t-borde); border-radius: 12px; cursor: pointer; }
.t-radio:has(input:checked) { border-color: var(--t-acento); box-shadow: inset 0 0 0 1px var(--t-acento); }
.t-radio input { margin-top: .2rem; width: 20px; height: 20px; accent-color: var(--t-acento); flex: none; }
.t-radio span { display: grid; }
.t-radio small { color: var(--t-texto-suave); font-size: .8rem; }

/* Nota de precio de mayoreo en la pagina del producto */
.t-mayoreo-nota { display: flex; align-items: center; gap: .4rem; margin: -.4rem 0 .5rem; padding: .5rem .7rem; border-radius: 10px; background: var(--t-ok-fondo); color: var(--t-ok); font-size: .85rem; }
.t-mayoreo-nota svg { flex: none; }

/* Interruptor de precios (solo para el equipo que revisa la tienda) */
.t-vista-precios { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; padding: .4rem 1rem; background: var(--t-aviso-fondo); font-size: .85rem; border-bottom: 1px solid var(--t-borde); }
.t-vista-precios a { color: var(--t-acento); font-weight: 600; white-space: nowrap; }
.t-suplantar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; padding: .5rem 16px; background: var(--t-acento); color: #fff; font-size: .85rem; }
.t-suplantar p { margin: 0; }
.t-suplantar-acc { display: flex; align-items: center; gap: .5rem; }
.t-suplantar-acc form { margin: 0; }
.t-suplantar a, .t-suplantar button { color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; padding: .35rem .7rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 36px; white-space: nowrap; }
.t-suplantar a { display: inline-flex; align-items: center; text-decoration: none; }
.t-suplantar a:hover, .t-suplantar button:hover { background: rgba(255, 255, 255, .3); }
.t-prod-mayoreo { display: inline-block; font-size: .72rem; color: var(--t-ok); background: var(--t-ok-fondo); padding: .1rem .4rem; border-radius: 6px; margin-top: .1rem; }

/* Cambio de foto por color: fundido suave (la precarga evita el salto en blanco) */
#galeria-grande.t-foto-anim { transition: opacity .15s ease; }
@media (prefers-reduced-motion: reduce) { #galeria-grande.t-foto-anim { transition: none; } }
