/* ══════════════════════════════════════
   TIENDA — compra y comprobante de pago
══════════════════════════════════════ */
.tk-wrap { max-width: 1100px; margin: 0 auto; padding: 150px 40px 90px; }
.tk-narrow { max-width: 640px; }
.tk-crumb { font-size: 0.68rem; color: var(--text-mut); margin-bottom: 14px; letter-spacing: 0.04em; }
.tk-crumb a { color: var(--gold); text-decoration: none; }
.tk-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--charcoal); margin-bottom: 26px; line-height: 1.2; }
.tk-h2 { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 4px 0 16px; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tk-card { background: #fff; border: 1px solid var(--br); padding: 32px; }
.tk-summary { position: sticky; top: 140px; }

.tk-field { margin-bottom: 16px; }
.tk-field label { display: block; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.tk-field input, .tk-field select, .tk-field textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--br-mid); background: var(--ivory);
  font-family: var(--sans); font-size: 0.85rem; color: var(--charcoal); outline: none; border-radius: 0;
  transition: border-color .25s; cursor: text;
}
.tk-field select { cursor: pointer; }
.tk-field input:focus, .tk-field select:focus, .tk-field textarea:focus { border-color: var(--gold-bright); background: #fff; }
.tk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.74rem; color: var(--text-dim); line-height: 1.5; margin: 8px 0 22px; cursor: pointer; }
.tk-check input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.tk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tk-pay {
  display: block; width: 100%; text-align: center; background: var(--charcoal); color: #fff; border: none;
  padding: 16px 20px; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; text-decoration: none; cursor: pointer; transition: background .25s;
}
.tk-pay:hover { background: #333; color: #fff; }
.tk-btn-block { display: block; text-align: center; }
.tk-secure { font-size: 0.7rem; color: var(--text-dim); line-height: 1.55; margin-top: 14px; text-align: center; }
.tk-wa { display: block; text-align: center; margin-top: 16px; font-size: 0.72rem; color: #1a8f4a; text-decoration: none; font-weight: 500; }
.tk-wa:hover { text-decoration: underline; }

.tk-alert { padding: 11px 14px; font-size: 0.78rem; line-height: 1.5; margin-bottom: 20px; }
.tk-err  { background: rgba(180,64,64,0.07); border-left: 3px solid #B44040; color: #9b3434; }
.tk-warn { background: var(--gold-pale); border-left: 3px solid var(--gold-bright); color: #6e5520; }

.tk-item { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--br); }
.tk-item img { width: 72px; height: 90px; object-fit: cover; background: var(--ivory); flex-shrink: 0; }
.tk-item-name { font-family: var(--serif); font-size: 1.1rem; color: var(--charcoal); line-height: 1.3; }
.tk-item-meta { font-size: 0.68rem; color: var(--text-mut); margin-top: 4px; }
.tk-line { display: flex; justify-content: space-between; gap: 14px; font-size: 0.8rem; color: var(--text-dim); padding: 7px 0; }
.tk-line > :last-child { text-align: right; color: var(--charcoal); }
/* Descuento LIVE / código de vendedor */
.tk-desc > :first-child { color: var(--esm, #13865a); font-weight: 500; }
.tk-desc > :last-child { color: var(--esm, #13865a); font-weight: 600; }
.tk-total { border-top: 1px solid var(--br); margin-top: 6px; padding-top: 14px; font-weight: 600; font-size: 0.92rem; }
.tk-total > :last-child { color: var(--gold); }

/* Carrito */
.tk-cart-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--br); }
.tk-cart-row:first-child { padding-top: 0; }
.tk-cart-img { display: block; width: 84px; height: 104px; background: var(--ivory); overflow: hidden; }
.tk-cart-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-cart-info .tk-item-name { text-decoration: none; display: block; }
.tk-cart-info form { margin-top: 8px; }
.tk-cart-price { font-weight: 600; font-size: 0.9rem; color: var(--charcoal); white-space: nowrap; }
.tk-cart-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; }
.tk-link { background: none; border: none; padding: 0; cursor: pointer; font-family: var(--sans); font-size: 0.72rem; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.tk-link:hover { color: var(--charcoal); }
.tk-empty { text-align: center; padding: 56px 24px; }
.tk-empty p { font-family: var(--serif); font-size: 1.4rem; color: var(--text-dim); margin-bottom: 24px; }

/* Agenda */
.ag-tipos { display: grid; gap: 10px; margin-bottom: 14px; }
.ag-tipo { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--br-mid); cursor: pointer; font-size: 0.82rem; transition: border-color .2s, background .2s; }
.ag-tipo input { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }
.ag-tipo:has(input:checked) { border-color: var(--gold-bright); background: var(--gold-pale); }
/* Calendario de mes completo + horarios al lado (estilo DrJimmy) */
.ag-picker { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ag-cal { border: 1px solid var(--br-mid); padding: 14px 14px 10px; background: #fff; }
.ag-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ag-cal-head strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.ag-nav { width: 36px; height: 36px; border: 1px solid var(--br-mid); background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; border-radius: 50%; }
.ag-nav:disabled { opacity: .3; cursor: default; }
.ag-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.ag-dn { font-size: 0.62rem; font-weight: 600; letter-spacing: .06em; color: var(--text-dim); padding: 4px 0; }
.ag-off, .ag-dia span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-size: 0.85rem; border-radius: 10px; }
.ag-off { color: var(--text-mut, #bbb); opacity: .55; }
.ag-dia { cursor: pointer; position: relative; }
.ag-dia input { position: absolute; opacity: 0; pointer-events: none; }
.ag-dia span { background: var(--gold-pale, rgba(201,168,76,.14)); color: var(--charcoal); font-weight: 600; transition: all .2s; }
.ag-dia:hover span { box-shadow: inset 0 0 0 1px var(--gold); }
.ag-dia input:checked + span { background: var(--charcoal); color: #fff; }
.ag-dia input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.hoy { text-decoration: underline; text-underline-offset: 3px; }
.ag-leyenda { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--text-dim); margin: 10px 0 0; }
.ag-leyenda i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--br-mid); display: inline-block; margin-left: 8px; }
.ag-leyenda i:first-child { margin-left: 0; }
.ag-leyenda i.on { background: var(--gold-pale, rgba(201,168,76,.14)); border-color: var(--gold); }
.ag-slots { border: 1px dashed var(--br-mid); padding: 16px; min-height: 100%; }
.ag-vacio { font-size: 0.82rem; line-height: 1.55; color: var(--text-dim); }
.ag-vacio strong { display: block; color: var(--charcoal); margin-bottom: 4px; }
.ag-slots-tit { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 6px; }
.ag-grupo { font-size: 0.62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; margin: 10px 0 6px; }
.ag-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
@media (max-width: 1100px) { .ag-picker { grid-template-columns: 1fr; } }
.ag-hora { padding: 11px 6px; border: 1px solid var(--br-mid); background: #fff; font-family: var(--sans); font-size: 0.78rem; cursor: pointer; transition: all .2s; }
.ag-hora:hover { border-color: var(--gold-bright); }
.ag-hora.on { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* Comprobante */
.tk-result { text-align: center; }
.tk-result .tk-title { margin-bottom: 12px; }
.tk-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: var(--text-mut); }
.tk-ok .tk-icon { background: #3C8C50; }
.tk-espera .tk-icon { background: var(--gold-bright); }
.tk-fallo .tk-icon { background: #B44040; }
.tk-lead { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; margin: 0 auto 24px; max-width: 460px; }
.tk-receipt { text-align: left; border: 1px solid var(--br); padding: 14px 18px; margin-bottom: 24px; background: var(--ivory); }
.tk-actions { max-width: 320px; margin: 0 auto; }

@media (max-width: 860px) {
  .tk-grid { grid-template-columns: 1fr; }
  .tk-summary { position: static; order: -1; }
}
@media (max-width: 560px) {
  .tk-wrap { padding: 120px 16px 60px; }
  .tk-card { padding: 22px 18px; }
  .tk-row { grid-template-columns: 1fr; gap: 0; }
  .tk-cart-row { grid-template-columns: 64px 1fr; }
  .tk-cart-img { width: 64px; height: 80px; }
  .tk-cart-price { grid-column: 2; }
}
