*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a1a2e;
  --gold: #f0b429;
  --gold-light: #fef9e7;
  --bg: #f0f2f5;
  --white: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #ef4444;
  --success: #10b981;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  background: var(--primary);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-brand {
  color: var(--gold);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-links a.active { background: rgba(240,180,41,0.2); color: var(--gold); }
.nav-links a.nav-logout { color: rgba(255,255,255,0.45); }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
}

/* ── MAIN ── */
main {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 14px 60px;
}

main.wide { max-width: 760px; }

/* ── FLASH ── */
.flash {
  padding: 11px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
}
.flash.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash.info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ── LOGIN ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* ── LEFT: VISUAL PANEL ── */
.login-visual {
  flex: 1;
  background: linear-gradient(150deg, #fffdf7 0%, #fef5d8 55%, #fdf0c2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
  gap: 28px;
}

.lv-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.lv-orb-1 {
  width: 360px; height: 360px;
  background: rgba(240,180,41,0.22);
  top: -80px; right: -80px;
}
.lv-orb-2 {
  width: 280px; height: 280px;
  background: rgba(240,155,20,0.14);
  bottom: -60px; left: -60px;
}

.lv-brand {
  text-align: center;
  z-index: 1;
}
.lv-star {
  font-size: 38px;
  display: block;
  margin-bottom: 6px;
}
.lv-brand h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.lv-brand h2 span { color: #c8860a; }
.lv-brand p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* Phone mockup area */
.lv-mockup-area {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  min-height: 420px;
}

/* Phone frame */
.lv-phone {
  width: 220px;
  background: #0d0d1a;
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 32px 80px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  z-index: 2;
}
.lv-phone-notch {
  width: 52px; height: 14px;
  background: #0d0d1a;
  border-radius: 0 0 10px 10px;
  margin: 0 auto 6px;
}
.lv-phone-screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lv-screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lv-screen-hello {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.lv-screen-sub {
  font-size: 9px;
  color: var(--muted);
  margin-top: 1px;
}
.lv-screen-badge {
  background: var(--primary);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
}

.lv-screen-card {
  background: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.lv-dots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.lv-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: white;
}
.lv-dot-f {
  border-color: var(--gold);
  background: var(--gold-light);
}
.lv-dots-sep {
  grid-column: 1 / -1;
  font-size: 7px;
  text-align: center;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 0;
  background: var(--gold-light);
  border-radius: 4px;
  margin: 1px 0;
}
.lv-dots-sep-dim {
  color: var(--muted);
  background: #f3f4f6;
}

.lv-screen-hint {
  font-size: 8px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

.lv-screen-referido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 6px 10px;
}
.lv-ref-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--muted);
}
.lv-ref-code {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  font-family: monospace;
  letter-spacing: 1px;
}

/* Floating chips */
.lv-chip {
  position: absolute;
  background: white;
  border: 1px solid rgba(240,180,41,0.35);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 1px 4px rgba(0,0,0,0.1);
  z-index: 3;
  min-width: 170px;
}
.lv-chip-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.lv-chip-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.lv-chip-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

.lv-chip-1 {
  top: 10px;
  right: -10px;
  animation: lv-float-a 3.2s ease-in-out infinite;
}
.lv-chip-2 {
  bottom: 30px;
  left: -10px;
  animation: lv-float-b 3.8s ease-in-out infinite 0.6s;
}
.lv-chip-3 {
  bottom: 100px;
  right: -8px;
  animation: lv-float-a 4.2s ease-in-out infinite 1.2s;
}

@keyframes lv-float-a {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes lv-float-b {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

.lv-footer {
  font-size: 11px;
  color: rgba(107,90,50,0.5);
  text-align: center;
  letter-spacing: 0.4px;
  z-index: 1;
}

/* ── RIGHT: FORM PANEL ── */
.login-right {
  width: 420px;
  flex-shrink: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  min-height: 100vh;
}

.login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 28px 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-brand .star { font-size: 42px; display: block; margin-bottom: 6px; }

.login-brand h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}

.login-brand h1 span { color: var(--gold); }

.login-brand p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ── FORMS ── */
.form-group { margin-bottom: 14px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,180,41,0.15);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { opacity: 0.88; }

.btn-gold { background: var(--gold); color: var(--primary); }
.btn-gold:hover { opacity: 0.88; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { opacity: 0.88; }

.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--text); }

.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-full { width: 100%; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── STAMP CARD (dashboard) ── */

.stamp-card {
  background: linear-gradient(145deg, #ecdec8 0%, #e0cba8 40%, #d4b98a 100%);
  border: 1px solid #c9a87a;
  box-shadow:
    0 8px 32px rgba(120,80,20,0.14),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.06);
}

.stamp-card .card-title {
  color: #4a2e0a;
}

.stamp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stamp-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.stamp-card .stamp-name {
  color: #3d2008;
  font-weight: 700;
}

.stamp-count-badge {
  background: var(--primary);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.3px;
}
.stamp-card .stamp-count-badge {
  background: rgba(60,35,8,0.75);
  color: var(--gold);
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stamp-circle {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2.5px dashed #d1d5db;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  overflow: hidden;
  position: relative;
}
.stamp-card .stamp-circle {
  border-color: rgba(60,35,8,0.22);
  background: rgba(255,255,255,0.22);
}
.stamp-card .stamp-circle.filled {
  background: rgba(255,248,220,0.85);
  border-color: var(--gold);
  box-shadow: 0 2px 10px rgba(180,120,20,0.4);
}

.stamp-circle.filled {
  border: 2.5px solid var(--gold);
  background: var(--gold-light);
  box-shadow: 0 2px 10px rgba(240,180,41,0.35);
}

.stamp-circle.filled img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  border-radius: 50%;
}

.stamp-number {
  font-size: 13px;
  font-weight: 600;
  color: #d1d5db;
}
.stamp-card .stamp-number {
  color: rgba(60,35,8,0.28);
}

.stamp-milestone {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.stamp-milestone::before,
.stamp-milestone::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.stamp-card .stamp-milestone::before,
.stamp-card .stamp-milestone::after {
  background: rgba(60,35,8,0.18);
}
.milestone-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.stamp-card .milestone-label {
  background: rgba(255,255,255,0.3);
  border-color: rgba(60,35,8,0.18);
  color: #5a3510;
}
.milestone-label.reached {
  background: var(--gold-light);
  color: var(--primary);
  border-color: var(--gold);
}
.stamp-card .milestone-label.reached {
  background: rgba(255,248,200,0.85);
}

.stamp-cards-done {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

.stamp-hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.stamp-card .stamp-hint {
  color: #7a4e22;
}
.stamp-card .stamp-hint strong {
  color: #4a2e0a;
}

/* ── PROGRESS BARS ── */
.prize-list { display: flex; flex-direction: column; gap: 16px; }

.prize-item {}

.prize-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}

.prize-desc {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.prize-count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.prize-count.done { color: var(--success); font-weight: 700; }

.progress-track {
  background: var(--border);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  background: var(--gold);
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.progress-fill.full { background: var(--success); }

.prize-ready-label {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  margin-top: 4px;
}

/* ── HISTORY ITEMS ── */
.history-list { display: flex; flex-direction: column; }

.history-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.history-item:last-child { border-bottom: none; }

.h-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.h-icon.estrella { background: #fef3c7; }
.h-icon.canje    { background: #d1fae5; }

.h-body { flex: 1; }
.h-desc { font-size: 14px; color: var(--text); }
.h-date { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── BUSCADOR ── */
.search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
}

.search-wrap input {
  padding-left: 38px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 10px;
}

/* ── ADMIN CLIENT CARDS ── */
.client-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.client-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.client-info {}
.client-name { font-weight: 700; font-size: 15px; }
.client-email { font-size: 13px; color: var(--muted); margin-top: 2px; }

.client-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.15s;
}
.client-link:hover .client-name { color: var(--gold); text-decoration: underline; }

.star-badge {
  background: var(--gold-light);
  border: 1.5px solid var(--gold);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.client-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── DETAILS / INLINE FORMS ── */
details { margin-top: 6px; }

summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
}
summary::-webkit-details-marker { display: none; }
summary .arrow { font-size: 9px; transition: transform 0.2s; }
details[open] summary .arrow { transform: rotate(90deg); }

.details-body {
  margin-top: 10px;
  padding: 14px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.form-row .form-group { flex: 1; min-width: 130px; margin-bottom: 0; }

/* ── PRIZES TABLE ── */
.prizes-table-wrap { overflow-x: auto; }

.prizes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 400px;
}

.prizes-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
}

.prizes-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prizes-table tr:last-child td { border-bottom: none; }
.prizes-table tr:hover td { background: #fafafa; }

/* ── HISTORIAL TABLE ── */
.hist-table-wrap { overflow-x: auto; }

.hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px;
}

.hist-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.hist-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.hist-table tr:last-child td { border-bottom: none; }
.hist-table tr:hover td { background: #fafafa; }

/* ── BADGE ── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}
.badge-estrella  { background: #fef3c7; color: #92400e; }
.badge-canje     { background: #d1fae5; color: #065f46; }
.badge-reset     { background: #fee2e2; color: #991b1b; }
.badge-descuento { background: #dbeafe; color: #1e40af; }
.badge-tarjeta   { background: var(--gold-light); color: #854d0e; border: 1px solid var(--gold); }
.badge-alta      { background: #d1fae5; color: #065f46; }
.badge-baja      { background: #f3f4f6; color: #6b7280; }

/* ── QUICK LINKS (cliente) ── */
.dash-quicklink {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
}
.dash-quicklink:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.dql-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.dql-body { flex: 1; }
.dql-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.dql-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.dql-arrow {
  font-size: 22px;
  color: var(--muted);
  line-height: 1;
}

/* ── DASHBOARD ── */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.dash-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
}
.dash-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dash-num {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin: 2px 0 0;
}
.dash-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.dash-chart-wrap {
  height: 70px;
  margin: 8px -4px 0;
}

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.page-title {
  font-size: 20px;
  font-weight: 800;
}

/* ── EMPTY STATE ── */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.empty .icon { font-size: 38px; display: block; margin-bottom: 10px; }
.empty p { font-size: 14px; }

/* ── NEW PRIZE FORM ── */
.new-form-card {
  background: var(--gold-light);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.new-form-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

/* ── PODIO REFERIDOS ── */
.podio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.podio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.podio-card:first-child {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(240,180,41,0.2);
}

.podio-card:hover { border-color: var(--gold); }

.podio-medal { font-size: 36px; display: block; margin-bottom: 8px; }
.podio-name  { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 10px; }
.podio-num   { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1; }
.podio-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.podio-code  {
  margin-top: 10px;
  display: inline-block;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 3px 10px;
  color: var(--primary);
}

/* ── SCAN PAGE ── */
.scan-page {
  min-height: 100vh;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.scan-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 28px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.scan-confetti {
  font-size: 52px;
  margin-bottom: 4px;
  animation: pop 0.5s ease;
}

@keyframes pop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.scan-logo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
  margin: 0 auto 18px;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-logo-wrap img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.scan-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.scan-name {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

.scan-stars {
  background: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 16px 24px;
  display: inline-block;
}

.scan-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
}

.scan-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.scan-icon { font-size: 52px; margin-bottom: 12px; display: block; }

.scan-error h2 { color: var(--danger); }
.scan-error p  { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ── OPINION DROPDOWN ── */
.opinion-details { width: 100%; }

.opinion-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
  font-size: inherit;
  font-weight: inherit;
  list-style: none;
  width: 100%;
}
.opinion-summary::-webkit-details-marker { display: none; }
.opinion-summary:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.opinion-arrow { transition: transform 0.2s; }
.opinion-details[open] .opinion-arrow { transform: rotate(90deg); }

.opinion-sub-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-left: 12px;
}

.opinion-sub { font-size: 13px; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .login-visual { display: none; }
  .login-right {
    width: 100%;
    background: linear-gradient(160deg, #fffdf7 0%, #fef5d8 100%);
    padding: 24px 20px;
  }
  .login-card {
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  }
}

@media (max-width: 420px) {
  .stars-big { font-size: 52px; }
  .stars-emojis { font-size: 18px; }
  .client-actions .btn { font-size: 12px; padding: 6px 10px; }
}
