/* ============================================================
   TandilUNO Vouchers Pro — Frontend CSS (Airbnb Style)
   ============================================================ */

:root {
  --coral:      #FF385C;
  --coral-light:#FF5A5F;
  --coral-pale: #FFF0F1;
  --dark:       #222222;
  --mid:        #717171;
  --light:      #B0B0B0;
  --border:     #DDDDDD;
  --bg:         #F7F7F7;
  --white:      #FFFFFF;
  --green:      #00A651;
  --green-pale: #F0FFF4;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md:  0 2px 4px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 4px 8px rgba(0,0,0,.06), 0 16px 48px rgba(0,0,0,.12);
  --r:          16px;
  --r-sm:       10px;
  --r-full:     100px;
  --font:       'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── BASE ── */
.tuvp-page-wrap, .tuvp-page-wrap * { box-sizing: border-box; }
.tuvp-page-wrap { font-family: var(--font); color: var(--dark); }

/* ── HERO ── */
.tuvp-hero { padding: 40px 0 32px; }
.tuvp-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--coral-pale); color: var(--coral);
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.tuvp-hero-title {
  font-size: clamp(24px,4vw,38px); font-weight: 600;
  letter-spacing: -1px; line-height: 1.15; margin: 0 0 12px;
}
.tuvp-hero-title span { color: var(--coral); }
.tuvp-hero-sub { font-size: 16px; color: var(--mid); line-height: 1.6; max-width: 520px; margin: 0 0 24px; }
.tuvp-hero-stats { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.tuvp-hstat { display: flex; flex-direction: column; gap: 2px; }
.tuvp-hstat-num { font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.tuvp-hstat-label { font-size: 12px; color: var(--mid); }
.tuvp-hstat-div { width: 1px; height: 32px; background: var(--border); }

/* ── FILTROS ── */
.tuvp-filters-wrap { border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.tuvp-filters {
  display: flex; gap: 8px; overflow-x: auto; padding: 16px 0;
  scrollbar-width: none;
}
.tuvp-filters::-webkit-scrollbar { display: none; }
.tuvp-filter {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 10px 18px; border-radius: var(--r-full);
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--dark); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .15s; font-family: var(--font);
}
.tuvp-filter:hover { border-color: var(--dark); }
.tuvp-filter.active { background: var(--dark); border-color: var(--dark); color: var(--white); }

/* ── GRID ── */
.tuvp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  align-items: stretch;
}
.tuvp-empty { text-align: center; color: var(--mid); padding: 40px; grid-column: 1/-1; }

/* ── CARD ── */
.tuvp-card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: all .2s ease;
  animation: tuvpFadeUp .4s ease both;
  display: flex; flex-direction: column;
}
.tuvp-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
@keyframes tuvpFadeUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }

/* Foto */
.tuvp-card-photo-wrap { position: relative; overflow: hidden; flex-shrink: 0; }
.tuvp-card-photo {
  width: 100%; height: 200px;
  background-size: cover; background-position: center;
  transition: transform .4s ease;
}
.tuvp-card:hover .tuvp-card-photo { transform: scale(1.04); }
.tuvp-card-photo-empty {
  width: 100%; height: 200px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.tuvp-card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--coral); color: white;
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(255,56,92,.4);
}
.tuvp-card-cat-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  padding: 5px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 500; color: var(--dark);
}
.tuvp-card-agotado-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}
.tuvp-card-agotado { opacity: .75; }

/* Body */
.tuvp-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tuvp-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tuvp-card-cat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.tuvp-card-name { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.tuvp-card-addr { font-size: 12px; color: var(--mid); margin-top: 2px; }
.tuvp-card-desc { font-size: 14px; color: var(--mid); line-height: 1.5; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tuvp-card-divider { height: 1px; background: var(--border); margin-bottom: 12px; }
.tuvp-card-validity { font-size: 12px; color: var(--mid); margin-bottom: 0; }

/* Condiciones en card */
.tuvp-card-conditions {
  font-size: 12px; color: var(--mid); line-height: 1.5;
  background: var(--bg); border-radius: 8px;
  padding: 7px 10px; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Botones card */
.tuvp-card-btns { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 14px; }
.tuvp-btn-qr {
  width: 100%; padding: 13px; background: var(--coral); color: white;
  border: none; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font); display: flex; align-items: center;
  justify-content: center; gap: 8px; transition: all .15s;
}
.tuvp-btn-qr:hover { background: #e0314f; transform: translateY(-1px); }
.tuvp-btn-qr:active { transform: translateY(0); }
.tuvp-btn-disabled { background: var(--border) !important; color: var(--mid) !important; cursor: not-allowed !important; transform: none !important; }
.tuvp-btn-wa {
  width: 100%; padding: 11px; background: var(--green-pale); color: var(--green);
  border: 1.5px solid #c6f6d5; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; text-align: center;
  text-decoration: none; display: block; transition: all .15s; font-family: var(--font);
}
.tuvp-btn-wa:hover { background: #d4fce4; }

/* ── MODAL QR ── */
.tuvp-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  z-index: 9999; display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.tuvp-modal-overlay.open { opacity: 1; pointer-events: all; }
.tuvp-modal {
  background: var(--white); border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px; padding: 0 0 32px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  max-height: 90vh; overflow-y: auto;
}
.tuvp-modal-overlay.open .tuvp-modal { transform: translateY(0); }
.tuvp-modal-handle {
  width: 40px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 16px auto 0;
}
.tuvp-modal-inner { padding: 20px 24px 0; }
.tuvp-modal-loading {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 40px 0;
}
.tuvp-modal-loading p { color: var(--mid); font-size: 14px; }
.tuvp-spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--coral); border-radius: 50%;
  animation: tuvpSpin .7s linear infinite;
}
@keyframes tuvpSpin { to { transform: rotate(360deg); } }

.tuvp-modal-biz { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tuvp-modal-biz-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.tuvp-modal-biz-name { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.tuvp-modal-biz-cat { font-size: 13px; color: var(--mid); margin-top: 2px; }

.tuvp-modal-discount-big { text-align: center; margin-bottom: 20px; }
.tuvp-modal-discount-num { font-size: 48px; font-weight: 700; color: var(--coral); letter-spacing: -2px; line-height: 1; margin-bottom: 4px; }
.tuvp-modal-discount-label { font-size: 14px; color: var(--mid); }

.tuvp-qr-box {
  background: var(--bg); border: 2px dashed var(--border);
  border-radius: var(--r); padding: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.tuvp-qr-img { width: 180px; height: 180px; border-radius: 12px; background: white; padding: 8px; box-shadow: var(--shadow-sm); }
.tuvp-qr-code { font-family: monospace; font-size: 18px; font-weight: 700; letter-spacing: 3px; background: white; padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border); color: var(--dark); }
.tuvp-qr-hint { font-size: 13px; color: var(--mid); text-align: center; line-height: 1.5; margin: 0; }

.tuvp-modal-conditions {
  background: var(--green-pale); border: 1px solid #c6f6d5;
  border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 13px; color: #276749; line-height: 1.5; margin-bottom: 16px;
}
.tuvp-modal-error {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 32px 0; text-align: center;
}
.tuvp-error-icon { font-size: 48px; }
.tuvp-modal-error p { color: var(--mid); font-size: 15px; }
.tuvp-modal-close {
  display: block; width: calc(100% - 48px); margin: 0 24px;
  padding: 14px; background: var(--dark); color: white; border: none;
  border-radius: var(--r-sm); font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: opacity .15s;
}
.tuvp-modal-close:hover { opacity: .85; }

/* ── HOW IT WORKS ── */
.tuvp-how-section {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border); padding: 32px; margin-top: 16px;
}
.tuvp-how-title { font-size: 20px; font-weight: 600; letter-spacing: -.4px; margin: 0 0 24px; }
.tuvp-how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 24px; }
.tuvp-how-step { display: flex; flex-direction: column; gap: 8px; }
.tuvp-how-num { width: 34px; height: 34px; border-radius: 50%; background: var(--coral-pale); color: var(--coral); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.tuvp-how-step-title { font-size: 14px; font-weight: 600; }
.tuvp-how-step-desc { font-size: 13px; color: var(--mid); line-height: 1.5; }

/* ── VERIFICACIÓN QR ── */
.tuvp-verify-wrap { max-width: 480px; margin: 40px auto; padding: 0 20px; }
.tuvp-verify-valid, .tuvp-verify-result { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); padding: 28px; box-shadow: var(--shadow-md); }
.tuvp-verify-header { text-align: center; margin-bottom: 20px; }
.tuvp-verify-check { font-size: 48px; margin-bottom: 8px; }
.tuvp-verify-header h2 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.tuvp-verify-header p { font-size: 14px; color: var(--mid); margin: 0; }
.tuvp-verify-voucher-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-radius: var(--r-sm); padding: 14px; margin-bottom: 16px;
}
.tuvp-verify-cat-emoji { font-size: 32px; }
.tuvp-verify-voucher-info { flex: 1; }
.tuvp-verify-comercio { font-size: 15px; font-weight: 600; }
.tuvp-verify-desc { font-size: 13px; color: var(--mid); margin-top: 2px; }
.tuvp-verify-discount-badge {
  background: var(--coral); color: white; padding: 6px 12px;
  border-radius: var(--r-full); font-size: 13px; font-weight: 700;
  white-space: nowrap;
}
.tuvp-verify-code-display {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 16px;
}
.tuvp-label { font-size: 12px; color: var(--mid); text-transform: uppercase; letter-spacing: .5px; }
.tuvp-code-mono { font-family: monospace; font-size: 18px; font-weight: 700; letter-spacing: 2px; color: var(--dark); }
.tuvp-verify-conditions { background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; font-size: 13px; color: var(--mid); line-height: 1.5; margin-top: 14px; }
.tuvp-verify-guest-info { background: var(--green-pale); border: 1px solid #c6f6d5; border-radius: var(--r-sm); padding: 14px; font-size: 14px; color: #276749; text-align: center; margin-bottom: 14px; }
.tuvp-verify-guest-info p { margin: 0 0 10px; }

/* Calculadora en verificación */
.tuvp-calculator { background: var(--bg); border-radius: var(--r-sm); padding: 20px; margin-top: 16px; }
.tuvp-calculator h3 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.tuvp-calc-field label { display: block; font-size: 13px; color: var(--mid); margin-bottom: 6px; }
.tuvp-calc-field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font-size: 20px; font-family: var(--font);
  background: var(--white); outline: none;
}
.tuvp-calc-field input:focus { border-color: var(--coral); }
.tuvp-calc-result { background: var(--white); border-radius: var(--r-sm); padding: 16px; margin: 14px 0; border: 1px solid var(--border); }
.tuvp-calc-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 15px; border-bottom: 1px solid var(--bg); }
.tuvp-calc-row:last-child { border-bottom: none; }
.tuvp-calc-discount { color: var(--green); }
.tuvp-calc-final { font-size: 18px; font-weight: 700; padding-top: 10px; }
.tuvp-btn-calc {
  width: 100%; padding: 13px; background: var(--dark); color: white;
  border: none; border-radius: var(--r-sm); font-size: 15px;
  font-weight: 600; cursor: pointer; font-family: var(--font);
  margin-top: 12px; transition: opacity .15s;
}
.tuvp-btn-calc:disabled { opacity: .5; cursor: not-allowed; }
.tuvp-btn-confirm {
  width: 100%; padding: 14px; background: var(--green); color: white;
  border: none; border-radius: var(--r-sm); font-size: 15px;
  font-weight: 700; cursor: pointer; font-family: var(--font);
  margin-top: 10px; transition: all .15s;
}
.tuvp-btn-confirm:hover { background: #007a3d; }
.tuvp-btn-secondary {
  display: block; text-align: center; margin-top: 16px;
  padding: 12px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  color: var(--dark); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: border-color .15s;
}
.tuvp-btn-secondary:hover { border-color: var(--dark); }

/* Resultados de verificación */
.tuvp-result-icon { font-size: 48px; text-align: center; margin-bottom: 12px; }
.tuvp-verify-result h2 { text-align: center; font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.tuvp-verify-result p { text-align: center; color: var(--mid); font-size: 14px; margin: 0 0 16px; }
.tuvp-result-voucher-info { background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; text-align: center; margin-bottom: 16px; }

/* ── PANEL COMERCIANTE ── */
.tuvp-panel-wrap { font-family: var(--font); }
.tuvp-panel-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.tuvp-panel-biz-name { font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.tuvp-panel-biz-cat { font-size: 14px; color: var(--mid); margin-top: 4px; }
.tuvp-panel-status-badge { padding: 6px 14px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; }
.tuvp-status-activo { background: #dcfce7; color: #16a34a; }
.tuvp-status-pendiente { background: #fef9c3; color: #ca8a04; }
.tuvp-status-pausado { background: #f3f4f6; color: #6b7280; }
.tuvp-status-vencido, .tuvp-status-rechazado { background: #fee2e2; color: #dc2626; }

/* Tabs */
.tuvp-panel-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  margin-bottom: 28px; overflow-x: auto; scrollbar-width: none;
}
.tuvp-panel-tabs::-webkit-scrollbar { display: none; }
.tuvp-tab {
  padding: 10px 18px; background: none; border: none;
  font-size: 14px; font-weight: 500; color: var(--mid);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-family: var(--font); white-space: nowrap;
  transition: all .15s;
}
.tuvp-tab:hover { color: var(--dark); }
.tuvp-tab.active { color: var(--dark); border-bottom-color: var(--dark); }
.tuvp-tab-content { display: none; }
.tuvp-tab-content.active { display: block; }
.tuvp-tab-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tuvp-tab-header h3 { font-size: 18px; font-weight: 600; margin: 0; }

/* Voucher item en panel */
.tuvp-voucher-list { display: flex; flex-direction: column; gap: 14px; }
.tuvp-voucher-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); display: flex; overflow: hidden; gap: 0;
}
.tuvp-vi-photo {
  width: 120px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.tuvp-vi-photo-empty {
  width: 120px; flex-shrink: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.tuvp-vi-body { flex: 1; padding: 14px 16px; }
.tuvp-vi-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tuvp-vi-titulo { font-size: 15px; font-weight: 600; }
.tuvp-vi-desc { font-size: 13px; color: var(--mid); margin-top: 2px; }
.tuvp-vi-discount { background: var(--coral-pale); color: var(--coral); padding: 4px 10px; border-radius: var(--r-full); font-size: 13px; font-weight: 700; white-space: nowrap; align-self: flex-start; }
.tuvp-vi-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--mid); margin-bottom: 12px; }
.tuvp-vi-estado { font-weight: 600; }
.tuvp-vi-actions { display: flex; gap: 8px; }

/* Formulario nuevo voucher */
.tuvp-voucher-form-wrap { background: var(--bg); border-radius: var(--r); padding: 24px; margin-top: 24px; }
.tuvp-voucher-form-wrap h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.tuvp-form-note { font-size: 13px; color: var(--mid); margin-bottom: 20px; }

/* ── FORMULARIOS ── */
.tuvp-form { font-family: var(--font); }
.tuvp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tuvp-field { display: flex; flex-direction: column; gap: 6px; }
.tuvp-field-full { grid-column: 1/-1; }
.tuvp-field label { font-size: 13px; font-weight: 500; color: var(--dark); }
.tuvp-field input, .tuvp-field select, .tuvp-field textarea {
  padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font-size: 15px; font-family: var(--font);
  background: var(--white); outline: none; width: 100%;
  transition: border-color .15s;
}
.tuvp-field input:focus, .tuvp-field select:focus, .tuvp-field textarea:focus { border-color: var(--coral); }
.tuvp-field small { font-size: 12px; color: var(--mid); }
.tuvp-form-section-title { font-size: 16px; font-weight: 600; color: var(--dark); margin: 24px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.tuvp-form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.tuvp-form-disclaimer { font-size: 13px; color: var(--mid); flex: 1; }
.tuvp-upload-area { display: flex; gap: 8px; }
.tuvp-img-preview { margin-top: 8px; }
.tuvp-img-preview img { max-width: 200px; max-height: 100px; border-radius: 8px; border: 1px solid var(--border); }

/* ── BOTONES ── */
.tuvp-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; background: var(--coral); color: white;
  border: none; border-radius: var(--r-sm); font-size: 14px;
  font-weight: 600; cursor: pointer; font-family: var(--font);
  text-decoration: none; transition: all .15s;
}
.tuvp-btn-primary:hover { background: #e0314f; transform: translateY(-1px); }
.tuvp-btn-large { padding: 14px 28px; font-size: 16px; }
.tuvp-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; background: white; color: var(--dark);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font);
  text-decoration: none; transition: all .15s;
}
.tuvp-btn-outline:hover { border-color: var(--dark); }
.tuvp-btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-family: var(--font); font-weight: 500; border: 1.5px solid var(--border); background: white; transition: all .15s; }
.tuvp-btn-sm:hover { background: var(--bg); }

/* ── ESTADÍSTICAS ── */
.tuvp-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 16px; margin-bottom: 28px; }
.tuvp-stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; text-align: center; }
.tuvp-stat-num { font-size: 28px; font-weight: 700; letter-spacing: -1px; color: var(--dark); margin-bottom: 4px; }
.tuvp-stat-label { font-size: 13px; color: var(--mid); }
.tuvp-stat-money .tuvp-stat-num { color: var(--green); }
.tuvp-stats-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.tuvp-stats-table th { text-align: left; padding: 8px 12px; background: var(--bg); color: var(--mid); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.tuvp-stats-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tuvp-mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 80px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.tuvp-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; width: 28px; height: 100%; justify-content: flex-end; }
.tuvp-bar { width: 16px; background: var(--coral); border-radius: 4px 4px 0 0; min-height: 4px; transition: all .3s; }
.tuvp-bar-label { font-size: 9px; color: var(--mid); white-space: nowrap; transform: rotate(-45deg); }

/* ── VALIDADOR PANEL ── */
.tuvp-validar-hint { color: var(--mid); font-size: 14px; margin-bottom: 20px; }
.tuvp-validar-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.tuvp-validar-form .tuvp-field { flex: 1; min-width: 200px; }
.tuvp-calculator-panel { background: var(--bg); border-radius: var(--r); padding: 20px; margin-top: 16px; }
.tuvp-calc-voucher-info { font-size: 14px; font-weight: 500; margin-bottom: 16px; padding: 12px; background: var(--white); border-radius: var(--r-sm); border: 1px solid var(--border); }
.tuvp-calc-result { background: var(--white); border-radius: var(--r-sm); padding: 16px; margin: 14px 0; border: 1px solid var(--border); }
.tuvp-calc-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--bg); }
.tuvp-calc-row:last-child { border-bottom: none; }
.tuvp-calc-desc-row { color: var(--green); }
.tuvp-calc-final-row { font-size: 18px; font-weight: 700; }
.tuvp-btn-calc-action { width: 100%; padding: 13px; background: var(--dark); color: white; border: none; border-radius: var(--r-sm); font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); margin-top: 12px; }
.tuvp-btn-confirm-canje { width: 100%; padding: 14px; background: var(--green); color: white; border: none; border-radius: var(--r-sm); font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font); margin-top: 10px; }
.tuvp-canje-success { text-align: center; background: var(--green-pale); border: 1px solid #c6f6d5; border-radius: var(--r); padding: 28px; }
.tuvp-canje-success .tuvp-success-icon { font-size: 48px; margin-bottom: 12px; }
.tuvp-canje-success h3 { font-size: 20px; font-weight: 600; margin: 0 0 12px; color: var(--green); }

/* ── WIDGET HOME ── */
.tuvp-widget-wrap { font-family: var(--font); padding: 32px 0; }
.tuvp-widget-header { margin-bottom: 20px; }
.tuvp-widget-title { font-size: 22px; font-weight: 600; letter-spacing: -.4px; margin: 0 0 6px; }
.tuvp-widget-sub { font-size: 14px; color: var(--mid); margin: 0; }
.tuvp-widget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.tuvp-widget-card { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .2s; }
.tuvp-widget-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tuvp-widget-photo { width: 100%; height: 150px; background-size: cover; background-position: center; position: relative; }
.tuvp-widget-photo-placeholder { background: var(--bg); display: flex; align-items: center; justify-content: center; }
.tuvp-widget-emoji { font-size: 48px; }
.tuvp-widget-discount {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--coral); color: white; padding: 4px 10px;
  border-radius: var(--r-full); font-size: 12px; font-weight: 700;
}
.tuvp-widget-body { padding: 12px 14px 14px; }
.tuvp-widget-cat { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--mid); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.tuvp-widget-cat-emoji { font-size: 13px; }
.tuvp-widget-comercio { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.tuvp-widget-desc { font-size: 13px; color: var(--mid); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tuvp-widget-addr { font-size: 11px; color: var(--light); margin-bottom: 10px; }
.tuvp-widget-whatsapp {
  display: block; text-align: center; padding: 8px;
  background: var(--green-pale); color: var(--green);
  border: 1px solid #c6f6d5; border-radius: 8px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  transition: background .15s;
}
.tuvp-widget-whatsapp:hover { background: #d4fce4; }
.tuvp-widget-footer { text-align: center; margin-top: 20px; }
.tuvp-widget-cta {
  display: inline-block; padding: 12px 24px;
  border: 1.5px solid var(--dark); border-radius: var(--r-full);
  color: var(--dark); text-decoration: none;
  font-size: 14px; font-weight: 600; transition: all .15s;
}
.tuvp-widget-cta:hover { background: var(--dark); color: white; }

/* ── REGISTRO ── */
.tuvp-registro-hero { text-align: center; padding: 32px 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.tuvp-registro-hero h1 { font-size: 28px; font-weight: 600; letter-spacing: -.5px; margin: 0 0 8px; }
.tuvp-registro-hero p { font-size: 16px; color: var(--mid); margin: 0; }
.tuvp-success-box { background: var(--green-pale); border: 1px solid #c6f6d5; border-radius: var(--r); padding: 32px; text-align: center; }
.tuvp-success-box .tuvp-success-icon { font-size: 48px; margin-bottom: 12px; }
.tuvp-success-box h3 { font-size: 20px; font-weight: 600; color: var(--green); margin: 0 0 8px; }
.tuvp-error-box { background: #fee2e2; border: 1px solid #fca5a5; border-radius: var(--r-sm); padding: 14px 16px; color: #dc2626; font-size: 14px; margin-bottom: 20px; }

/* ── ESTADOS VACÍOS ── */
.tuvp-empty-state { text-align: center; padding: 48px 24px; background: var(--bg); border-radius: var(--r); margin-top: 16px; }
.tuvp-empty-icon { font-size: 48px; margin-bottom: 12px; }
.tuvp-empty-state h4 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.tuvp-empty-state p { font-size: 14px; color: var(--mid); margin: 0; }

/* ── PENDING / REJECTED NOTICES ── */
.tuvp-pending-notice, .tuvp-rejected-notice { background: var(--bg); border-radius: var(--r); padding: 32px; text-align: center; }
.tuvp-pending-notice h3 { color: #ca8a04; }
.tuvp-rejected-notice h3 { color: #dc2626; }
.tuvp-login-required { background: var(--bg); border-radius: var(--r); padding: 32px; text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .tuvp-form-grid { grid-template-columns: 1fr; }
  .tuvp-field-full { grid-column: 1; }
  .tuvp-grid { grid-template-columns: 1fr; gap: 16px; }
  .tuvp-how-section { padding: 24px 16px; }
  .tuvp-modal { padding-bottom: 28px; }
  .tuvp-panel-header { flex-direction: column; }
  .tuvp-voucher-item { flex-direction: column; }
  .tuvp-vi-photo, .tuvp-vi-photo-empty { width: 100%; height: 140px; }
  .tuvp-widget-grid { grid-template-columns: 1fr 1fr; }
  .tuvp-form-footer { flex-direction: column; }
  .tuvp-btn-primary, .tuvp-btn-outline { width: 100%; justify-content: center; }
  .tuvp-validar-form { flex-direction: column; }
}
@media (max-width: 400px) {
  .tuvp-widget-grid { grid-template-columns: 1fr; }
  .tuvp-hero-stats { gap: 14px; }
}

/* ── UPLOAD FILE BUTTON (panel comerciante) ── */
.tuvp-file-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--white); color: var(--dark);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .15s; font-family: var(--font);
}
.tuvp-file-label:hover { border-color: var(--coral); color: var(--coral); }
