/* EL PERRO BIEN — Tienda (/tienda y fichas). Prefijo tnd-. Tokens del sitio. */
.tnd-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .tnd-wrap { padding: 0 24px; } }
.tnd-hero { background: rgba(120,136,120,.08); padding: 48px 0 32px; }
.tnd-hero h1 { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.tnd-hero p { font-size: 17px; line-height: 1.55; color: var(--gray-600); margin: 0; max-width: 640px; }
@media (min-width: 768px) { .tnd-hero h1 { font-size: 40px; } }

.tnd-pills { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0; margin: 0; list-style: none; -webkit-overflow-scrolling: touch; }
.tnd-pill { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--gray-200); background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.tnd-pill[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tnd-pill:focus-visible, .tnd-btn:focus-visible, .tnd-faq button:focus-visible, .tnd-size input:focus-visible + span {
  outline: 3px solid var(--navy-mid); outline-offset: 2px; }

.tnd-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); padding-bottom: 24px; }
@media (min-width: 992px) { .tnd-grid { grid-template-columns: repeat(4, 1fr); } }
.tnd-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--navy); box-shadow: var(--shadow-sm); }
.tnd-card .tnd-img { aspect-ratio: 1 / 1; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 13px; }
.tnd-card .tnd-body { padding: 12px 14px 16px; }
.tnd-card h3 { font-size: 15px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tnd-card .tnd-price { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.tnd-tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #fff; color: var(--navy); border: 1px solid var(--gray-200); }
.tnd-tag--agotado { background: #b3261e; color: #fff; border-color: #b3261e; }
.tnd-card--agotado .tnd-img { opacity: .6; }

.tnd-note { font-size: 14px; color: var(--gray-600); padding: 8px 0 24px; }
.tnd-vacio { padding: 32px 0; color: var(--gray-600); }

.tnd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; text-align: center; }
.tnd-btn--primary { background: var(--blue); color: #fff; }
.tnd-btn--primary:hover { background: #1d4ed8; }
.tnd-btn--secondary { background: #fff; color: var(--navy-mid); border-color: var(--navy-mid); }
.tnd-btn[aria-disabled="true"] { background: #e3e8ee; color: #8a96a3; border-color: #e3e8ee; pointer-events: none; }

.tnd-faq h3 { margin: 0; font-size: 17px; }
.tnd-faq button { width: 100%; min-height: 48px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--gray-200);
  padding: 14px 40px 14px 0; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; position: relative; }
.tnd-faq button::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 22px; }
.tnd-faq button[aria-expanded="true"]::after { content: "–"; }
.tnd-faq .tnd-faq-panel { padding: 0 0 16px; color: var(--gray-700); line-height: 1.55; text-align: left; }

/* Ficha */
.tnd-crumbs { font-size: 14px; margin: 24px 0 8px; }
.tnd-crumbs a { color: var(--navy-mid); }
.tnd-ficha { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 8px 0 48px; }
@media (min-width: 992px) { .tnd-ficha { grid-template-columns: 55% 1fr; gap: 48px; } }
.tnd-ficha .tnd-img-lg { aspect-ratio: 1 / 1; background: var(--gray-100); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: var(--gray-400); }
.tnd-ficha h1 { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.tnd-ficha .tnd-price-lg { font-size: 26px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; margin: 0 0 16px; }
.tnd-size { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 12px; }
.tnd-size legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.tnd-size label { position: relative; }
.tnd-size input { position: absolute; opacity: 0; inset: 0; }
.tnd-size span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--gray-200); border-radius: 999px; font-weight: 600; background: #fff; cursor: pointer; }
.tnd-size input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.tnd-size input:disabled + span { text-decoration: line-through; color: #8a96a3; background: #f1f5f9; cursor: not-allowed; }
.tnd-warn { color: #b26a00; font-weight: 600; font-size: 14px; }
.tnd-actions { display: grid; gap: 12px; margin: 16px 0; }
.tnd-meta { color: var(--gray-600); font-size: 15px; margin: 16px 0; }
.tnd-link { color: var(--navy-mid); text-decoration: underline; display: inline-block; padding: 12px 0; }

/* Guía de medición */
.tnd-guia h2 { font-size: 22px; margin: 32px 0 12px; color: var(--navy); }
.tnd-guia table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 15px; }
.tnd-guia th, .tnd-guia td { border: 1px solid var(--gray-200); padding: 10px 12px; text-align: left; }
.tnd-guia th { background: var(--gray-100); }
.tnd-guia .tnd-scroll { overflow-x: auto; }

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

/* Carrito, checkout y resultado */
.tnd-sr { position: absolute; left: -9999px; }
.tnd-aviso { background: #e8f4ec; border: 1px solid #2e7d4f; color: #1f5a37; padding: 12px 16px; border-radius: var(--radius); }
.tnd-error { background: #fdecea; border: 1.5px solid #b3261e; color: #8c1d18; padding: 12px 16px; border-radius: var(--radius); }
.tnd-lineas { list-style: none; margin: 16px 0; padding: 0; }
.tnd-linea { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
@media (min-width: 768px) { .tnd-linea { grid-template-columns: 1fr auto 90px auto; } }
.tnd-linea-imp { font-weight: 700; font-variant-numeric: tabular-nums; }
.tnd-linea-cant { display: flex; gap: 8px; align-items: center; }
.tnd-subtotal { display: flex; justify-content: space-between; font-size: 18px; max-width: 420px; }
.tnd-form { display: grid; gap: 16px; max-width: 640px; }
.tnd-form fieldset { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 16px 20px 20px; }
.tnd-form legend { font-weight: 700; padding: 0 8px; color: var(--navy); }
.tnd-campo label { display: block; font-weight: 600; margin-bottom: 4px; }
.tnd-campo input[type=text], .tnd-campo input[type=email], .tnd-campo input[type=tel], .tnd-campo select, .tnd-campo textarea {
  width: 100%; min-height: 48px; padding: 8px 12px; border: 1.5px solid #8a96a3; border-radius: var(--radius); font: inherit; background: #fff; }
.tnd-campo .tnd-ayuda { font-size: 14px; color: var(--gray-600); margin-top: 4px; }
.tnd-campo .tnd-err { color: #b3261e; font-size: 14px; margin-top: 4px; }
.tnd-campo.tiene-error input, .tnd-campo.tiene-error select { border-color: #b3261e; }
.tnd-radio { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 8px; }
.tnd-resumen { background: var(--gray-100); border-radius: var(--radius-lg); padding: 16px 20px; }
.tnd-resumen dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.tnd-resumen dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
