/* ============================================
   SORTEO MOTO MANAGER — Red / Purple Theme
   ============================================ */

#smm-app-wrap, #smm-participar {
  --smm-primary: #FC8B00;
  --smm-primary-dark: #F5821F;
  --smm-primary-light: #FF961F;
  --smm-secondary: #9C8364;
  --smm-secondary-light: #A17F51;
  --smm-green: #22c55e;
  --smm-cream: #FDF0DF;
  --smm-cream-dark: #F0E6DA;
  --smm-white: #ffffff;
  --smm-text: #2C1C0A;
  --smm-text-dim: #6B5436;
  --smm-text-muted: #9A9A9A;
  --smm-border: rgba(140, 86, 12, 0.16);
  --smm-radius: 26px;
  --smm-radius-sm: 12px;
  --smm-shadow: rgba(193, 110, 0, 0.4) 0px 18px 50px -20px;
  --smm-shadow-sm: rgba(140, 86, 12, 0.28) 0px 12px 30px -16px;
  --smm-max-w: 1100px;
  --smm-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  font-family: var(--smm-font);
  background: var(--smm-cream);
  color: var(--smm-text);
  line-height: 1.6;
  overflow-x: hidden;
}

#smm-app-wrap *, #smm-participar *, #smm-app-wrap *::before, #smm-participar *::before, #smm-app-wrap *::after, #smm-participar *::after { box-sizing: border-box; }
#smm-app-wrap .smm-container, #smm-participar .smm-container { max-width: var(--smm-max-w); margin: 0 auto; padding: 0 20px; }
#smm-app-wrap a, #smm-participar a { text-decoration: none; color: inherit; }
#smm-app-wrap img, #smm-participar img { max-width: 100%; }
#smm-app-wrap button, #smm-participar button { cursor: pointer; border: none; font-family: inherit; }
#smm-app-wrap ol, #smm-participar ol, #smm-app-wrap ul, #smm-participar ul { list-style: none; padding: 0; margin: 0; }

/* ============ DARK MODE ============ */
html[data-theme="dark"] {
  --smm-cream: #100E0E;
  --smm-cream-dark: #1E1C1C;
  --smm-white: #2A2929;
  --smm-text: #F9F8F7;
  --smm-text-dim: #A09F9E;
  --smm-text-muted: #6b7280;
  --smm-border: #363535;
  --smm-shadow: 0 4px 24px rgba(0,0,0,.4);
  --smm-shadow-sm: 0 2px 8px rgba(0,0,0,.2);
}

html[data-theme="dark"] .smm-topbar {
  background: rgba(15,15,20,.92);
  border-bottom-color: var(--smm-border);
}
html[data-theme="dark"] .smm-btn-whatsapp { background: #1da851; }
html[data-theme="dark"] .smm-theme-toggle {
  background: var(--smm-white);
  border-color: var(--smm-border);
  color: var(--smm-text-dim);
}
html[data-theme="dark"] .smm-sorteo-card {
  background: var(--smm-white);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
html[data-theme="dark"] .smm-sorteo-img {
  background: linear-gradient(135deg, #1a1a24, #2a2a36);
}
html[data-theme="dark"] .smm-sorteo-img-placeholder { color: var(--smm-primary-light); }
html[data-theme="dark"] .smm-pago-qr { background: var(--smm-white); }
html[data-theme="dark"] .smm-qr-placeholder { background: #2a2a36; }
html[data-theme="dark"] .smm-step-card {
  background: var(--smm-white);
  border-color: var(--smm-border);
}
html[data-theme="dark"] .smm-countdown-card {
  background: var(--smm-white);
  border-color: var(--smm-border);
}
html[data-theme="dark"] .smm-countdown-number {
  background: rgba(169,50,53,.15);
  color: var(--smm-primary-light);
}
html[data-theme="dark"] .smm-ganador-card {
  background: var(--smm-white);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
html[data-theme="dark"] .smm-footer {
  background: var(--smm-white);
  border-top-color: var(--smm-border);
}
html[data-theme="dark"] .smm-footer-contact-item {
  background: var(--smm-cream);
}
html[data-theme="dark"] .smm-live-banner {
  background: var(--smm-white);
  border-color: var(--smm-border);
}
html[data-theme="dark"] .smm-modal { background: var(--smm-white); }
html[data-theme="dark"] .smm-modal-close { background: var(--smm-border); color: var(--smm-text-dim); }
html[data-theme="dark"] .smm-dni-input {
  background: var(--smm-white);
  border-color: var(--smm-border);
  color: var(--smm-text);
}
html[data-theme="dark"] .smm-lookup-person {
  background: var(--smm-white);
  border-color: var(--smm-border);
}
html[data-theme="dark"] .smm-ticket-item {
  background: var(--smm-white);
  border-color: var(--smm-border);
}
html[data-theme="dark"] .smm-premios-toggle { background: var(--smm-white); border-color: var(--smm-border); color: var(--smm-text-dim); }
html[data-theme="dark"] .smm-premios-toggle:hover { background: var(--smm-cream); border-color: var(--smm-primary-light); color: var(--smm-primary-light); }
html[data-theme="dark"] .smm-premio-card { background: var(--smm-cream); border-color: var(--smm-border); }
html[data-theme="dark"] .smm-premio-img { background: var(--smm-white); }
html[data-theme="dark"] .smm-premio-name { color: var(--smm-text); }
html[data-theme="dark"] .smm-upload-area { border-color: var(--smm-border); color: var(--smm-text-dim); }
html[data-theme="dark"] .smm-upload-area:hover { background: rgba(169,50,53,.08); }

/* Dark mode participation page */
html[data-theme="dark"] .smm-participar-wrap { background: #0f0f14; }
html[data-theme="dark"] .smm-p-card { background: #1a1a24; color: #e8e8ed; }
html[data-theme="dark"] .smm-p-card-title { color: #e8e8ed; }
html[data-theme="dark"] .smm-p-label { color: #9ca3af; }
html[data-theme="dark"] .smm-p-input {
  background: #22222c;
  border-color: #2a2a36;
  color: #e8e8ed;
}
html[data-theme="dark"] .smm-p-input:focus { border-color: var(--smm-primary); }
html[data-theme="dark"] .smm-p-input-read { background: #1a1a24; color: #6b7280; }
html[data-theme="dark"] .smm-p-doc-btn {
  background: #1a1a24;
  border-color: #2a2a36;
  color: #9ca3af;
}
html[data-theme="dark"] .smm-p-doc-btn.active {
  border-color: var(--smm-primary);
  background: rgba(169,50,53,.1);
  color: var(--smm-primary-light);
}
html[data-theme="dark"] .smm-p-qty-btn {
  background: #1a1a24;
  border-color: #2a2a36;
  color: #e8e8ed;
}
html[data-theme="dark"] .smm-p-qty-btn:hover { border-color: var(--smm-primary); color: var(--smm-primary-light); }
html[data-theme="dark"] .smm-p-qty-value { color: #e8e8ed; }
html[data-theme="dark"] .smm-p-total strong { color: #e8e8ed; }
html[data-theme="dark"] .smm-p-upload-btn {
  background: #1a1a24;
  border-color: #2a2a36;
  color: #9ca3af;
}
html[data-theme="dark"] .smm-p-upload-btn:hover { border-color: var(--smm-primary); background: rgba(169,50,53,.08); }
html[data-theme="dark"] .smm-p-file-name { color: #6b7280; }
html[data-theme="dark"] .smm-p-success-ticket { background: rgba(34,197,94,.1); }
html[data-theme="dark"] .smm-p-loading { background: rgba(15,15,20,.92); }

/* ============ TOPBAR ============ */
.smm-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,243,237,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--smm-border);
}
.smm-topbar-inner {
  max-width: var(--smm-max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.smm-brand { display: flex; align-items: center; gap: 10px; }
.smm-brand-icon {
  width: 40px; height: 40px;
  background: var(--smm-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
}
.smm-brand-name { font-weight: 800; font-size: 16px; color: var(--smm-text); }
.smm-brand-tagline { font-size: 10px; color: var(--smm-text-muted); display: block; }

.smm-nav-links { display: flex; gap: 6px; }
.smm-nav-link {
  padding: 8px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px; color: var(--smm-text-dim) !important;
  transition: all .2s;
}
.smm-nav-link:hover, .smm-nav-link.active {
  background: var(--smm-primary); color: #fff !important;
}

.smm-topbar-actions { display: flex; gap: 10px; align-items: center; }
.smm-btn-whatsapp {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: #25d366; color: #fff !important;
  border-radius: 10px; font-weight: 600; font-size: 13px;
}
.smm-theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--smm-white); border: 1px solid var(--smm-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--smm-text-dim); font-size: 18px;
}
.smm-theme-toggle:hover { background: var(--smm-primary); color: #fff; border-color: var(--smm-primary); }
.smm-icon-moon { display: none; }

/* ============ BOTTOM NAV ============ */
.smm-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--smm-white);
  border-top: 1px solid var(--smm-border);
  z-index: 100; padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.smm-bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 600; color: var(--smm-text-muted) !important;
  padding: 4px 16px;
}
.smm-bottom-nav-item.active, .smm-bottom-nav-item:hover { color: var(--smm-primary) !important; }

/* ============ HERO ============ */
.smm-hero {
  padding: 40px 0 20px; text-align: center;
  background: linear-gradient(180deg, var(--smm-cream) 0%, var(--smm-cream-dark) 100%);
}
.smm-hero-badge {
  display: inline-block;
  padding: 4px 14px; border-radius: 20px;
  background: var(--smm-primary-light); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px;
}
.smm-hero-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; line-height: 1.15; margin: 0;
}
.smm-hero-title span {
  background: linear-gradient(135deg, var(--smm-primary), var(--smm-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ============ SORTEOS GRID ============ */
.smm-section { padding: 30px 0; }
.smm-sorteos-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  align-items: start;
}
.smm-sorteo-card {
  background: var(--smm-white);
  border-radius: var(--smm-radius);
  box-shadow: var(--smm-shadow-sm);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.smm-sorteo-card:hover { transform: translateY(-3px); box-shadow: var(--smm-shadow); }
.smm-sorteo-img {
  height: 180px; background: linear-gradient(135deg, var(--smm-cream), var(--smm-primary-light));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.smm-sorteo-img img { width: 100%; height: 100%; object-fit: cover; }
.smm-sorteo-img-placeholder { color: var(--smm-primary-light); }
.smm-sorteo-body { padding: 20px; }
.smm-sorteo-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.smm-sorteo-name { font-size: 1.1rem; font-weight: 800; margin: 0; flex: 1; }
.smm-sorteo-price-block { text-align: right; flex-shrink: 0; margin-left: 12px; }
.smm-sorteo-price { font-size: 1.6rem; font-weight: 800; color: var(--smm-primary); line-height: 1; }
.smm-sorteo-price small { font-size: .7rem; color: var(--smm-text-muted); font-weight: 600; display: block; }
.smm-sorteo-free-price { color: var(--smm-green); }
.smm-sorteo-desc { font-size: 13px; color: var(--smm-text-dim); margin: 0 0 10px; }
.smm-sorteo-meta { display: flex; gap: 14px; font-size: 12px; color: var(--smm-text-muted); margin-bottom: 12px; }
.smm-sorteo-meta span { display: flex; align-items: center; gap: 4px; }

.smm-premios-toggle {
  width: 100%; padding: 10px; background: var(--smm-white);
  border: 1px solid var(--smm-border); border-radius: var(--smm-radius-sm);
  font-weight: 600; font-size: 13px; color: var(--smm-text-dim);
  cursor: pointer; margin-bottom: 12px; transition: all .2s;
}
.smm-premios-toggle:hover { background: var(--smm-cream); border-color: var(--smm-primary); color: var(--smm-primary); }
.smm-premios-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 12px;
}
.smm-premio-card {
  position: relative; background: var(--smm-cream);
  border-radius: var(--smm-radius-sm); overflow: hidden;
  border: 1px solid var(--smm-border);
}
.smm-premio-num {
  position: absolute; top: 4px; left: 4px; z-index: 1;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--smm-primary); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.smm-premio-img {
  width: 100%; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  background: var(--smm-cream-dark); overflow: hidden;
}
.smm-premio-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.smm-premio-placeholder {
  font-size: 32px; color: var(--smm-text-muted);
}
.smm-premio-name {
  padding: 6px 8px; font-size: 11px; font-weight: 700;
  text-align: center; color: var(--smm-text);
  text-transform: uppercase; letter-spacing: .5px;
  line-height: 1.2;
}
.smm-premios-grid:only-child { grid-column: 1 / -1; }

.smm-btn-participar {
  display: block; width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--smm-primary), var(--smm-primary-dark));
  color: #fff !important; border: none; border-radius: var(--smm-radius-sm);
  font-weight: 700; font-size: 15px; text-align: center;
  transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden;
}
.smm-btn-participar:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(169,50,53,.3); }
.smm-btn-participar.smm-btn-free { background: linear-gradient(135deg, #22c55e, #16a34a); }
.smm-btn-shine::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: skewX(-20deg); animation: smm-shine 2.5s infinite;
}
@keyframes smm-shine { 0% { left: -100%; } 50%,100% { left: 150%; } }

/* ============ LIVE BANNER ============ */
.smm-live-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: var(--smm-white);
  border-radius: var(--smm-radius); box-shadow: var(--smm-shadow-sm);
  border: 1px solid var(--smm-border);
}
.smm-live-content { display: flex; align-items: center; gap: 12px; }
.smm-live-content h3 { font-size: 14px; font-weight: 700; margin: 0; }
.smm-live-content p { font-size: 12px; color: var(--smm-text-muted); margin: 0; }
.smm-social-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.smm-social-facebook { background: #1877f2; }
.smm-social-whatsapp { background: #25d366; }

/* ============ PAGO ============ */
.smm-pago-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: linear-gradient(135deg, var(--smm-primary), var(--smm-primary-dark));
  border-radius: var(--smm-radius); overflow: hidden;
  box-shadow: 0 8px 32px rgba(169,50,53,.25);
}
.smm-pago-info { padding: 32px; color: #fff; }
.smm-pago-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  opacity: .8; margin-bottom: 4px;
}
.smm-pago-number { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.smm-pago-name { font-size: 13px; opacity: .85; margin-bottom: 20px; }
.smm-btn-copy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; background: rgba(255,255,255,.2);
  border: none; border-radius: var(--smm-radius-sm);
  color: #fff !important; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .2s;
}
.smm-btn-copy:hover { background: rgba(255,255,255,.3); }
.smm-pago-qr {
  background: var(--smm-white); display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.smm-qr-placeholder {
  width: 100%; max-width: 200px; aspect-ratio: 1;
  background: #f3f4f6; border-radius: var(--smm-radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--smm-text-muted);
}
.smm-qr-placeholder span { font-weight: 600; font-size: 12px; }

/* ============ STEPS ============ */
.smm-steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}
.smm-step-card {
  background: var(--smm-white); border-radius: var(--smm-radius);
  padding: 20px 16px; text-align: left;
  box-shadow: var(--smm-shadow-sm); border: 1px solid var(--smm-border);
  position: relative;
}
.smm-step-number {
  position: absolute; top: -10px; left: 16px;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--smm-primary), var(--smm-secondary));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.smm-step-card h3 { font-size: 13px; font-weight: 700; margin: 6px 0 4px; }
.smm-step-card p { font-size: 12px; color: var(--smm-text-dim); margin: 0; line-height: 1.5; }

/* ============ COUNTDOWN ============ */
.smm-countdown-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px; background: var(--smm-white);
  border-radius: var(--smm-radius); box-shadow: var(--smm-shadow-sm);
  border: 1px solid var(--smm-border);
}
.smm-countdown-info h3 { font-size: 14px; font-weight: 600; color: var(--smm-text-muted); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 1px; }
.smm-countdown-info h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }
.smm-countdown-info p { font-size: 13px; color: var(--smm-text-dim); margin: 0; }
.smm-countdown-right { display: flex; align-items: center; gap: 20px; }
.smm-countdown-timer { display: flex; gap: 6px; }
.smm-countdown-unit { text-align: center; }
.smm-countdown-number {
  display: block; font-size: 1.4rem; font-weight: 800; color: var(--smm-primary);
  background: rgba(169,50,53,.08); border-radius: 10px; padding: 10px 14px; min-width: 52px;
}
.smm-countdown-label { font-size: 10px; color: var(--smm-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; display: block; }
.smm-countdown-sep { font-size: 1.2rem; font-weight: 800; color: var(--smm-primary); padding-top: 10px; }
.smm-btn-countdown {
  padding: 12px 28px; background: linear-gradient(135deg, var(--smm-primary), var(--smm-primary-dark));
  color: #fff !important; border: none; border-radius: var(--smm-radius-sm);
  font-weight: 700; font-size: 14px; white-space: nowrap;
}

/* ============ GANADORES ============ */
.smm-ganadores-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.smm-ganadores-header h2 { font-size: 1.3rem; font-weight: 800; margin: 0; }
.smm-ganadores-header a { color: var(--smm-primary) !important; font-weight: 600; font-size: 14px; }
.smm-ganadores-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.smm-ganador-card {
  background: var(--smm-white); border-radius: var(--smm-radius-sm);
  overflow: hidden; box-shadow: var(--smm-shadow-sm);
}
.smm-ganador-card img { width: 100%; height: 140px; object-fit: cover; }

/* ============ TICKETS LOOKUP ============ */
.smm-tickets-lookup { max-width: 500px; margin: 0 auto; }
.smm-lookup-form { display: flex; gap: 10px; }
.smm-dni-input {
  flex: 1; padding: 14px 18px;
  background: var(--smm-white); border: 2px solid var(--smm-border);
  border-radius: var(--smm-radius-sm); font-size: 16px;
  color: var(--smm-text); transition: border-color .2s;
}
.smm-dni-input:focus { outline: none; border-color: var(--smm-primary); }
.smm-btn-lookup {
  padding: 14px 28px; background: linear-gradient(135deg, var(--smm-primary), var(--smm-primary-dark));
  color: #fff !important; border: none; border-radius: var(--smm-radius-sm);
  font-weight: 700; font-size: 15px;
}
.smm-lookup-result { margin-top: 20px; }
.smm-lookup-person {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--smm-white);
  border-radius: var(--smm-radius-sm); font-weight: 600; color: var(--smm-primary);
  border: 1px solid var(--smm-border); margin-bottom: 12px;
}
.smm-tickets-list { display: flex; flex-direction: column; gap: 8px; }
.smm-ticket-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--smm-white);
  border-radius: var(--smm-radius-sm); border: 1px solid var(--smm-border);
}
.smm-ticket-number { font-weight: 800; font-size: 1rem; color: var(--smm-primary); }
.smm-ticket-event { font-size: 12px; color: var(--smm-text-dim); }
.smm-ticket-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.smm-active { background: #d1fae5; color: #065f46; }
.smm-pending { background: #fef3c7; color: #92400e; }
.smm-btn-pdf {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 10px 20px;
  background: var(--smm-primary); color: #fff !important;
  border-radius: var(--smm-radius-sm); font-weight: 700; font-size: 13px;
}

/* ============ FOOTER ============ */
.smm-footer {
  background: var(--smm-white); border-top: 1px solid var(--smm-border);
  padding: 32px 0 16px; margin-top: 20px;
}
.smm-footer-links-row {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--smm-border);
  margin-bottom: 16px;
}
.smm-footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--smm-cream);
  border-radius: var(--smm-radius-sm); font-size: 13px; font-weight: 600;
}
.smm-footer-contact-item svg { flex-shrink: 0; }
.smm-footer-bottom {
  text-align: center; font-size: 12px; color: var(--smm-text-muted);
}
.smm-footer-bottom p { margin: 2px 0; }
.smm-footer-legal { display: flex; gap: 16px; justify-content: center; margin: 10px 0; flex-wrap: wrap; }
.smm-footer-legal a { font-size: 12px; color: var(--smm-text-dim) !important; }

/* ============ SECTION HEADER ============ */
.smm-section-header { margin-bottom: 24px; }
.smm-section-header h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }
.smm-section-header p { color: var(--smm-text-dim); font-size: 14px; margin: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .smm-nav-links, .smm-topbar-actions .smm-btn-whatsapp { display: none; }
  .smm-bottom-nav { display: flex; justify-content: space-around; }
  #smm-app-wrap { padding-bottom: 70px; }
  .smm-sorteos-grid { grid-template-columns: 1fr; }
  .smm-pago-card { grid-template-columns: 1fr; }
  .smm-pago-info { text-align: center; padding: 24px 20px; }
  .smm-pago-qr { display: flex !important; justify-content: center; padding: 24px 20px; border-top: 1px solid rgba(0,0,0,0.05); }
  .smm-countdown-card { flex-direction: column; gap: 16px; text-align: center; }
  .smm-ganadores-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .smm-steps-grid { grid-template-columns: 1fr 1fr; }
  .smm-ganadores-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   PARTICIPAR PAGE — Full-screen step flow
   ============================================ */

.smm-participar-wrap {
  min-height: 100vh;
  background: var(--smm-cream);
  font-family: 'Inter', sans-serif;
}

.smm-p-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.smm-p-header { padding: 20px 0 10px; }

.smm-p-back {
  color: var(--smm-text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.smm-p-back:hover { color: var(--smm-primary); }

.smm-p-progress {
  height: 4px;
  background: var(--smm-border);
  border-radius: 4px;
  margin: 16px 0 8px;
  overflow: hidden;
}

.smm-p-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--smm-primary), var(--smm-secondary));
  border-radius: 4px;
  width: 0%;
  transition: width 0.4s ease;
}

.smm-p-step-label {
  font-size: 13px;
  color: var(--smm-text-dim);
  margin-bottom: 20px;
}

.smm-p-step { display: none; }
.smm-p-step.active { display: block; }

.smm-p-card {
  background: var(--smm-white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--smm-shadow-sm);
  margin-bottom: 20px;
}

.smm-p-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--smm-text);
}

.smm-p-card-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--smm-primary);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.smm-p-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--smm-text-dim);
  margin-bottom: 6px;
}

.smm-p-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--smm-border);
  border-radius: 10px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  transition: border-color 0.2s;
  margin-bottom: 4px;
  background: var(--smm-white);
  color: var(--smm-text);
}
.smm-p-input:focus { outline: none; border-color: var(--smm-primary); }
.smm-p-input-read { background: var(--smm-cream); color: var(--smm-text-muted); font-style: italic; }

.smm-p-input-status {
  font-size: 12px;
  min-height: 18px;
  margin-bottom: 12px;
}
.smm-p-input-status.success { color: #16a34a; }
.smm-p-input-status.error { color: #dc2626; }
.smm-p-status-loading { color: var(--smm-primary); }

.smm-p-doc-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.smm-p-doc-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--smm-border);
  border-radius: 10px;
  background: var(--smm-white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  color: var(--smm-text-dim);
}
.smm-p-doc-btn.active {
  border-color: var(--smm-primary);
  background: rgba(169,50,53,.06);
  color: var(--smm-primary);
}
.smm-p-doc-btn:hover:not(.active) { border-color: var(--smm-border); }

.smm-p-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--smm-primary), var(--smm-primary-dark));
  color: #fff !important;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: opacity 0.2s, transform 0.1s;
  font-family: 'Inter', sans-serif;
  text-align: center;
  text-decoration: none;
}
.smm-p-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.smm-p-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.smm-p-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.smm-p-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.smm-p-qty-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--smm-border);
  border-radius: 12px;
  background: var(--smm-white);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--smm-text);
}
.smm-p-qty-btn:hover { border-color: var(--smm-primary); color: var(--smm-primary); }
.smm-p-qty-value {
  font-size: 28px;
  font-weight: 800;
  min-width: 40px;
  text-align: center;
  color: var(--smm-text);
}
.smm-p-total { margin-left: auto; text-align: right; }
.smm-p-total small { display: block; font-size: 12px; color: var(--smm-text-muted); }
.smm-p-total strong { font-size: 24px; color: var(--smm-text); }

.smm-p-upload-section { margin-bottom: 16px; }
.smm-p-upload-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--smm-primary);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.smm-p-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--smm-border);
  border-radius: 12px;
  background: var(--smm-cream);
  color: var(--smm-text-dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.smm-p-upload-btn:hover { border-color: var(--smm-primary); background: rgba(169,50,53,.04); }
.smm-p-file-name {
  font-size: 12px;
  color: var(--smm-text-dim);
  margin-top: 6px;
  min-height: 16px;
}

.smm-p-yape-card {
  background: linear-gradient(135deg, var(--smm-primary), var(--smm-primary-dark));
  color: #fff;
}
.smm-p-yape-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.smm-p-yape-desc {
  font-size: 13px;
  opacity: 0.9;
  margin: 0 0 16px;
  line-height: 1.5;
}
.smm-p-yape-box {
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.smm-p-yape-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 8px;
}
.smm-p-yape-number {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.smm-p-yape-name {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 16px;
}
.smm-p-yape-qr {
  margin-bottom: 16px;
  text-align: center;
}
.smm-p-yape-qr img {
  max-width: 180px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.smm-p-qr-placeholder {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: inline-block;
  margin-bottom: 16px;
  color: #374151;
}
.smm-p-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.smm-p-copy-btn:hover { background: rgba(255,255,255,.3); }

.smm-p-success-card {
  text-align: center;
  padding: 48px 28px;
}
.smm-p-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.smm-p-success-card h2 { font-size: 24px; margin: 0 0 8px; color: var(--smm-text); }
.smm-p-success-card p { color: var(--smm-text-dim); margin: 0 0 20px; }
.smm-p-success-ticket {
  background: rgba(34,197,94,.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}
.smm-p-success-ticket small { display: block; color: var(--smm-text-dim); font-size: 12px; }
.smm-p-success-ticket strong { font-size: 32px; color: #16a34a; letter-spacing: 3px; }
.smm-p-btn-success { display: inline-block; width: auto; padding: 12px 32px; }

.smm-p-loading {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.smm-p-loading-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid var(--smm-border);
  border-top-color: var(--smm-primary);
  border-radius: 50%;
  animation: smm-spin 0.8s linear infinite;
  margin-bottom: 16px;
}
@keyframes smm-spin { to { transform: rotate(360deg); } }
.smm-p-loading p { font-size: 14px; color: var(--smm-text-dim); }

.smm-confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  z-index: 10000;
  animation: smm-confetti-fall linear forwards;
}
@keyframes smm-confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@media (max-width: 640px) {
  .smm-p-card-grid { grid-template-columns: 1fr; }
  .smm-p-yape-card { order: -1; }
  .smm-p-qty-row { justify-content: center; }
}
/* ============================================
   LORENZO STYLE CARDS
   ============================================ */
.smm-lorenzo-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  color: #fff;
  font-family: 'Inter', sans-serif;
}
.smm-lorenzo-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 5, 20, 0.75);
  z-index: 1;
}
.smm-lorenzo-body {
  position: relative;
  z-index: 2;
  padding: 30px 24px;
}
.smm-lorenzo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.smm-lorenzo-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  flex: 1;
  padding-right: 15px;
}
.smm-lorenzo-price {
  text-align: right;
}
.smm-lorenzo-price-val {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.smm-lorenzo-price-val sup {
  font-size: 18px;
  margin-top: 5px;
  margin-right: 2px;
}
.smm-lorenzo-price-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}
.smm-lorenzo-desc {
  font-size: 13px;
  opacity: 0.8;
  margin: 0 0 15px 0;
}
.smm-lorenzo-date-line {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 25px;
}
.smm-lorenzo-countdown-wrap {
  text-align: center;
  margin-bottom: 25px;
}
.smm-lorenzo-countdown-label {
  font-size: 11px;
  font-weight: 800;
  color: #f7931e;
  margin-bottom: 8px;
}
.smm-lorenzo-countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.smm-lorenzo-box {
  background: #fff;
  color: #000;
  border-radius: 8px;
  width: 48px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.smm-lorenzo-box .v {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}
.smm-lorenzo-box .l {
  font-size: 10px;
  font-weight: 700;
  color: #666;
}
.smm-lorenzo-badge {
  display: inline-block;
  background: #f7931e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.smm-lorenzo-btn-participar {
  display: block;
  width: 100%;
  background: #f7931e;
  color: #fff !important;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.smm-lorenzo-btn-participar:hover {
  background: #e07f15;
  transform: translateY(-2px);
}
.smm-lorenzo-closed {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
}
.smm-lorenzo-premios-toggle {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.smm-lorenzo-premios-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}
.smm-lorenzo-premios-grid {
  margin-bottom: 15px;
}
.smm-lorenzo-card .smm-premio-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.smm-lorenzo-card .smm-premio-name {
  color: #fff;
}
/* ============================================
   LORENZO COMO PARTICIPO
   ============================================ */
.smm-lorenzo-bg-cream {
  background: var(--smm-cream);
}
.smm-lorenzo-header-left {
  text-align: left;
}
.smm-lorenzo-header-left h2 {
  font-size: 24px;
  font-weight: 800;
  color: #2c1c0a;
}
.smm-lorenzo-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.smm-lorenzo-step-card {
  background: #fff;
  border: 1px solid #f9d3b4;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(247, 147, 30, 0.05);
}
.smm-lorenzo-step-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.smm-lorenzo-step-num {
  background: #f7931e;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.smm-lorenzo-step-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  color: #2c1c0a;
}
.smm-lorenzo-step-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   LORENZO GLOBAL BANNER
   ============================================ */
.smm-lorenzo-banner {
  background: linear-gradient(135deg, #fdf4ea, #fbe7d5);
  border: 1px solid #f9d3b4;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 15px rgba(247, 147, 30, 0.05);
}
.smm-lorenzo-banner-left {
  flex: 1;
}
.smm-lorenzo-banner-label {
  font-size: 12px;
  font-weight: 800;
  color: #f7931e;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.smm-lorenzo-banner-title {
  font-size: 26px;
  font-weight: 800;
  color: #2c1c0a;
  margin: 0 0 10px 0;
}
.smm-lorenzo-banner-date {
  font-size: 13px;
  color: #666;
}
.smm-lorenzo-banner-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.smm-lorenzo-banner-boxes {
  display: flex;
  gap: 8px;
}
.smm-lorenzo-banner-box {
  background: #fff;
  border-radius: 10px;
  width: 50px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.smm-lorenzo-banner-box .v {
  font-size: 24px;
  font-weight: 800;
  color: #f7931e;
  line-height: 1;
  margin-bottom: 3px;
}
.smm-lorenzo-banner-box .l {
  font-size: 10px;
  font-weight: 700;
  color: #999;
}
.smm-lorenzo-banner-btn {
  background: #f7931e;
  color: #fff !important;
  font-weight: 800;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.smm-lorenzo-banner-btn:hover {
  background: #e07f15;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .smm-lorenzo-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .smm-lorenzo-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .smm-lorenzo-banner-right {
    flex-direction: column;
    width: 100%;
  }
  .smm-lorenzo-banner-btn {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .smm-lorenzo-steps-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   SALON DE LA FAMA GALERIA
   ============================================ */
.smm-ganadores-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.smm-ganadores-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #2c1c0a;
  margin: 0;
}
.smm-ganadores-nav {
  display: flex;
  gap: 10px;
}
.smm-ganadores-arrow {
  background: #fff;
  border: 1px solid #f9d3b4;
  color: #f7931e;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(247,147,30,0.1);
}
.smm-ganadores-arrow:hover {
  background: #f7931e;
  color: #fff;
}
.smm-ganadores-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 15px;
}
.smm-ganadores-slider::-webkit-scrollbar {
  height: 6px;
}
.smm-ganadores-slider::-webkit-scrollbar-thumb {
  background: #f9d3b4;
  border-radius: 3px;
}
.smm-ganador-slide {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  aspect-ratio: 4/3;
}
.smm-ganador-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .smm-ganador-slide {
    flex: 0 0 calc(85%);
  }
}

