/* Tiendas activas — molde claro (sobre dp-tools.css, body.dpt-page.ta-page).
   Las tarjetas las pinta /js/stores-showcase-v2.js (variante "rich"); --sc es el color de cada tienda. */

/* ---------- Encabezado ---------- */
.ta-hero { padding-bottom: 40px; }
.ta-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.ta-hero h1 { max-width: 13ch; }
.ta-stats { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; margin: 0 0 30px; padding: 0; list-style: none; }
.ta-stats li { display: flex; flex-direction: column; gap: 2px; padding: 0 26px; border-left: 1px solid var(--line-2); }
.ta-stats li:first-child { padding-left: 0; border-left: 0; }
.ta-stats strong { font: 800 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--display); color: var(--ink); letter-spacing: -.03em; }
.ta-stats span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.ta-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ta-btn--line { border-color: var(--ink); color: var(--ink) !important; background: transparent; }
.ta-btn--line:hover { background: var(--ink); color: #fff !important; }
.ta-btn--line .dpt-ico-svg { transition: transform .2s; }
.ta-btn--line:hover .dpt-ico-svg { transform: translateY(2px) rotate(90deg); }

/* Desfile de fotos reales de productos */
.ta-wall {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; height: 500px; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.ta-wall__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ta-wall__col:nth-child(2) { margin-top: -70px; }
.ta-wall__col:nth-child(3) { margin-top: -30px; }
.ta-wall__track { display: flex; flex-direction: column; gap: 14px; animation: ta-rise 46s linear infinite; }
.ta-wall__col:nth-child(2) .ta-wall__track { animation-duration: 58s; animation-direction: reverse; }
.ta-wall__col:nth-child(3) .ta-wall__track { animation-duration: 52s; }
.ta-wall:hover .ta-wall__track { animation-play-state: paused; }
@keyframes ta-rise { to { transform: translateY(calc(-50% - 7px)); } }
.ta-wall__tile {
  position: relative; display: block; flex: none; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden;
  background: color-mix(in srgb, var(--sc, #d4a017) 16%, #fff); box-shadow: var(--shadow);
}
.ta-wall__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ta-wall__tile em {
  position: absolute; left: 10px; right: 10px; bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink);
  font: 700 .72rem var(--body); font-style: normal; width: max-content; max-width: calc(100% - 20px);
}
.ta-wall__tile--skel { background: linear-gradient(100deg, #efe9de 30%, #f7f3ec 50%, #efe9de 70%); background-size: 200% 100%; animation: dpt-shimmer 1.2s linear infinite; box-shadow: none; }

/* ---------- Directorio ---------- */
.ta-browse { padding: 40px 0 72px; scroll-margin-top: 70px; }
.ta-toolbar {
  position: sticky; top: 62px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0 12px; margin-bottom: 4px;
  background: linear-gradient(180deg, var(--bg) 82%, rgba(251, 248, 243, 0));
}
.ta-search { position: relative; flex: 1 1 320px; max-width: 460px; }
.ta-search .dpt-ico-svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1.15rem; color: var(--muted); pointer-events: none; }
.ta-search input {
  width: 100%; height: 48px; padding: 0 18px 0 46px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font: 500 1rem var(--body); box-shadow: 3px 4px 0 var(--ink); transition: box-shadow .2s, transform .2s;
}
.ta-search input:focus { outline: none; transform: translate(-1px, -1px); box-shadow: 5px 6px 0 var(--brand); }
.ta-search input::placeholder { color: #9b95a1; }
.ta-sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: .88rem; font-weight: 600; }
.ta-sort select {
  height: 42px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 .92rem var(--body); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  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 fill='%2317151c' d='M1 2l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.ta-chips { order: 3; flex: 1 0 100%; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ta-chips::-webkit-scrollbar { display: none; }
.ta-chips .dpt-tab { height: 38px; padding: 0 14px; font-size: .88rem; }
.ta-chips .dpt-tab::before { display: none; }
.ta-chips .ta-chip--domain::before { display: inline-block; background: var(--ok); }
.ta-count { margin: 4px 0 16px; color: var(--muted); font-size: .9rem; font-weight: 600; min-height: 1.4em; }

.ta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ta-grid > [hidden] { display: none; }
.ta-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 22px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.ta-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--sc) 45%, var(--line)); }
.ta-card:focus-visible { outline-offset: 4px; }
.ta-card__media {
  position: relative; display: grid; gap: 3px; height: 210px; overflow: hidden;
  background: color-mix(in srgb, var(--sc) 14%, #fff);
}
.ta-card__media--2 { grid-template-columns: 1fr 1fr; }
.ta-card__media--3 { grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; }
.ta-card__media--3 img:first-child { grid-row: span 2; }
.ta-card__media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; transition: transform .6s var(--ease); background: #fff; }
.ta-card:hover .ta-card__media img:first-child { transform: scale(1.05); }
.ta-card__mono { display: grid; place-items: center; font: 800 4rem var(--display); color: color-mix(in srgb, var(--sc) 70%, #17151c); }
.ta-card__badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink); font: 700 .72rem var(--body); box-shadow: 0 4px 14px rgba(23, 21, 28, .14);
}
.ta-card__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(5, 150, 105, .18); }
.ta-card__id { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: -30px; padding: 0 18px; }
.ta-card__logo {
  display: grid; place-items: center; flex: none; width: 66px; height: 66px; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(23, 21, 28, .14);
}
.ta-card__logo img { max-width: 86%; max-height: 86%; object-fit: contain; }
.ta-card__logo > span { display: grid; place-items: center; width: 100%; height: 100%; background: var(--sc); color: #fff; font: 800 1.7rem var(--display); }
.ta-card__title { min-width: 0; padding-top: 38px; }
.ta-card__title h3 { margin: 0 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.12rem; line-height: 1.2; letter-spacing: -.015em; }
.ta-card__rubro {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font: 700 .72rem var(--body);
  color: color-mix(in srgb, var(--sc) 62%, #17151c); background: color-mix(in srgb, var(--sc) 12%, #fff);
}
.ta-card__desc {
  margin: 10px 0 0; padding: 0 18px; color: var(--ink-2); font-size: .92rem; line-height: 1.5; min-height: 3em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ta-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto 18px 0; padding: 14px 0 16px; margin-top: 14px;
  border-top: 1px dashed var(--line-2); color: var(--muted); font-size: .84rem; font-weight: 600;
}
.ta-card__go { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; color: var(--brand-ink); font-weight: 700; }
.ta-card:hover .ta-card__go { color: var(--ink); }

.ta-skel { display: flex; flex-direction: column; gap: 12px; height: 372px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.ta-skel i, .ta-skel b { display: block; background: linear-gradient(100deg, #efe9de 30%, #f7f3ec 50%, #efe9de 70%); background-size: 200% 100%; animation: dpt-shimmer 1.2s linear infinite; }
.ta-skel i { height: 210px; }
.ta-skel b { height: 14px; margin: 0 18px; border-radius: 8px; }
.ta-skel b:first-of-type { width: 55%; height: 20px; margin-top: 8px; }
.ta-skel b:last-of-type { width: 80%; }

.ta-empty { margin: 8px 0 0; padding: 28px; border-radius: 20px; border: 1px dashed var(--line-2); text-align: center; color: var(--ink-2); }
.ta-linkbtn { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; cursor: pointer; }
.ta-note { margin: 28px auto 0; max-width: 640px; text-align: center; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.ta-note a { color: var(--ink-2); font-weight: 600; }

/* ---------- Diseños ---------- */
.ta-more { display: inline-flex; align-items: center; gap: 8px; color: var(--ink) !important; font-weight: 700; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid var(--brand); }
.ta-more:hover .dpt-ico-svg { transform: translateX(3px); }
.ta-more .dpt-ico-svg { transition: transform .2s; }
.ta-themes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.ta-theme { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.ta-theme:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ta-theme__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.ta-theme__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.ta-theme:hover .ta-theme__img img { transform: scale(1.06); }
.ta-theme__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; }
.ta-theme__sw { display: flex; gap: 4px; margin-bottom: 4px; }
.ta-theme__sw i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(23, 21, 28, .15); }
.ta-theme strong { font: 700 1.02rem var(--display); }
.ta-theme small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.ta-demo-line { margin: 22px 0 0; color: var(--ink-2); }
.ta-demo-line a { color: var(--ink); font-weight: 700; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Pasos ---------- */
.ta-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ta-steps li { padding: 26px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ta-steps__n { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font: 800 1.15rem var(--display); }
.ta-steps strong { display: block; margin-bottom: 6px; font: 700 1.15rem var(--display); color: var(--ink); }
.ta-steps p { margin: 0; color: var(--ink-2); }

/* ---------- Llamado final ---------- */
.ta-cta { padding: 0 0 8px; }
.ta-cta__box {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden;
  padding: 44px 48px; border-radius: var(--r-lg); background: #17151c; color: #fff; isolation: isolate;
}
.ta-cta__box::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(230, 180, 34, .55), transparent 65%); }
.ta-cta__box h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.ta-cta__box p { margin: 0; color: #d6d3d1; font-size: 1.05rem; max-width: 52ch; }
.ta-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Bloques que agrega el pipeline ---------- */
.ta-page .adsense-editorial {
  margin: 0 auto 56px !important; padding: 34px 40px !important; max-width: 920px; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-2) !important; box-shadow: var(--shadow); font-size: 1rem;
}
.ta-page .adsense-editorial h2 { margin: 0 0 14px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.15; color: var(--ink); }
.ta-page .adsense-editorial h3 { margin: 24px 0 8px; font-size: 1.15rem; color: var(--ink); }
.ta-page .adsense-editorial p { margin: 0 0 14px; }
.ta-page .adsense-editorial ul { margin: 0 0 16px; padding-left: 20px; }
.ta-page .adsense-editorial li { margin-bottom: 6px; }
.ta-page .adsense-editorial li::marker { color: var(--brand); }
.ta-page .adsense-editorial strong { color: var(--ink); }
.ta-page .adsense-editorial a { color: var(--ink); font-weight: 600; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ta-page .public-seo-hub { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0; }
.ta-page .public-seo-hub__title { color: var(--ink); font-family: var(--display); }
.ta-page .public-seo-hub__intro { color: var(--ink-2); }
.ta-page .public-seo-hub__card { background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 14px; transition: border-color .2s, transform .2s; }
.ta-page .public-seo-hub__card:hover { border-color: var(--brand); transform: translateY(-2px); }
.ta-page .public-seo-hub__badge { color: var(--brand-ink); }
.ta-page .public-seo-hub__more summary { background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-weight: 700; }
.ta-page .public-seo-hub__more summary:hover { border-color: var(--brand); }
.ta-wa svg { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ta-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ta-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .ta-hero h1 { max-width: none; }
  .ta-wall { height: 300px; }
  .ta-wall__tile { aspect-ratio: 1 / 1; border-radius: 16px; }
  .ta-steps { grid-template-columns: 1fr; }
  .ta-cta__box { padding: 32px 26px; }
}
@media (max-width: 640px) {
  .ta-stats li { padding: 0 12px; }
  .ta-stats strong { font-size: 1.4rem; }
  .ta-stats span { font-size: .76rem; line-height: 1.25; }
  .ta-hero__cta .dpt-btn { flex: 1 1 100%; }
  .ta-wall { height: 230px; gap: 10px; }
  .ta-wall__col, .ta-wall__track { gap: 10px; }
  .ta-wall__tile em { display: none; }
  .ta-toolbar { position: static; }
  .ta-search { flex-basis: 100%; max-width: none; }
  .ta-sort { margin-left: 0; }
  .ta-grid { grid-template-columns: 1fr; gap: 16px; }
  .ta-card__media { height: 190px; }
  .ta-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ta-cta__btns .dpt-btn { flex: 1 1 100%; }
  .ta-page .adsense-editorial { margin: 0 16px 40px !important; padding: 24px 20px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ta-wall__track { animation: none; }
  .ta-card, .ta-card__media img, .ta-theme, .ta-theme__img img { transition: none; }
}
