/* ===== CHUZOS REGALADOS CR — Main CSS ===== */
:root {
  --primary: #5b5ef4;
  --primary-dark: #4040cc;
  --primary-light: #e8e8ff;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --text: #2d3748;
  --text-muted: #718096;
  --border: #e2e8f0;
  --bg: #f7f8fc;
  --white: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; }

/* ===== HEADER ===== */
.site-header {
  background: var(--dark);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 48px; width: auto; }
.logo-text { color: #fff; font-weight: 900; font-size: 18px; letter-spacing: 1px; }
.header-nav { margin-left: auto; display: flex; gap: 8px; }
.nav-link { color: #a0aec0; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all .2s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.cart-btn { position: relative; color: #fff; padding: 8px; border-radius: 8px; transition: background .2s; }
.cart-btn:hover { background: rgba(255,255,255,.1); }
.cart-count { position: absolute; top: 2px; right: 2px; background: var(--primary); color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.mobile-nav { display: none; background: var(--dark2); padding: 0 20px; }
.mobile-nav a { display: block; color: #a0aec0; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 15px; }
.mobile-tickets-btn { display: flex; align-items: center; gap: 6px; background: var(--primary); color: #ffffff !important; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.mobile-tickets-btn:hover { color: #ffffff !important; opacity: .88; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 30px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s; text-align: center;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }
.alert-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.alert-danger { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-dark { background: var(--dark); }
.section-title { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 32px; text-align: center; }
.section-title.light { color: #fff; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  padding: 80px 20px;
  text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-badge { background: rgba(255,255,255,.15); color: #c7d2fe; font-size: 12px; font-weight: 700; letter-spacing: 2px; padding: 6px 14px; border-radius: 20px; }
.hero-title { font-size: clamp(36px,6vw,64px); font-weight: 900; color: #fff; margin: 16px 0; line-height: 1.1; }
.hero-accent { color: var(--gold); }
.hero-sub { color: #a5b4fc; font-size: 18px; margin-bottom: 32px; }

/* ===== RIFAS GRID ===== */
.rifas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; }
.rifa-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.rifa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rifa-card.sold-out { opacity: .85; }
.rifa-card-img-wrap { position: relative; display: block; height: 200px; overflow: hidden; background: #eee; }
.rifa-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.rifa-card:hover .rifa-card-img-wrap img { transform: scale(1.05); }
.sold-badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.8); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 20px; letter-spacing: 1px; }
.rifa-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 60px; }
.rifa-card-body { padding: 20px; }
.rifa-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rifa-date { color: var(--text-muted); font-size: 12px; }
.rifa-price { background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.rifa-name { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.rifa-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }

/* ===== PROGRESS BAR ===== */
.progress-wrap { margin: 12px 0 16px; }
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.pct-label { font-weight: 700; color: var(--primary); font-size: 16px; }
.free-label { color: var(--text-muted); }
.progress-bar { background: #e2e8f0; border-radius: 20px; height: 8px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, var(--primary), #818cf8); height: 100%; border-radius: 20px; transition: width .5s; }
.progress-bar.big { height: 12px; }
.progress-sub { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 24px; }
.step { text-align: center; color: #fff; }
.step-num { width: 50px; height: 50px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 12px; }
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { color: #a0aec0; font-size: 14px; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 60px; margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

/* ===== RIFA DETAIL ===== */
.rifa-hero { height: 280px; background: var(--dark) center/cover no-repeat; position: relative; }
.sold-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
.sold-badge-large { background: rgba(0,0,0,.8); color: #fff; font-size: 20px; font-weight: 800; padding: 12px 28px; border-radius: 30px; letter-spacing: 2px; }
.rifa-placeholder-hero { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.rifa-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 24px 0; }
.rifa-info-card { background: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.rifa-category { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.rifa-title { font-size: 28px; font-weight: 900; color: var(--dark); margin: 8px 0; }
.como-ganar { background: var(--bg); border-radius: 10px; padding: 16px; margin: 16px 0; font-size: 14px; color: var(--text); }
.como-ganar h4 { color: var(--primary); margin-bottom: 8px; }
.video-link { margin: 12px 0; font-size: 14px; }
.link-primary { color: var(--primary); font-weight: 600; }

/* Countdown */
.countdown-wrap { background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 16px 0; text-align: center; }
.countdown-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 8px; }
.countdown { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cd-unit { text-align: center; }
.cd-num { display: block; font-size: 36px; font-weight: 900; color: var(--dark); background: var(--bg); border-radius: 8px; padding: 8px 14px; min-width: 60px; }
.cd-label { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; }
.cd-sep { font-size: 28px; font-weight: 900; color: var(--primary); margin-bottom: 16px; }

/* Progress big */
.progress-wrap.big { background: #fff; border-radius: var(--radius); padding: 16px; border: 2px solid var(--border); }
.progress-icon { font-size: 14px; font-weight: 700; color: var(--text-muted); }
strong.progress-pct { font-size: 36px; font-weight: 900; color: var(--primary); display: block; margin: 4px 0; }
.progress-detail { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }

/* ===== NUMEROS GRID ===== */
.numeros-section { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.numeros-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.search-wrap { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; flex: 1; min-width: 150px; }
.search-input { border: none; background: none; outline: none; font-size: 14px; flex: 1; }
.search-clear { border: none; background: none; cursor: pointer; color: var(--text-muted); font-size: 16px; padding: 0 4px; }
.toggle-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.toggle-slider { width: 36px; height: 20px; background: #cbd5e0; border-radius: 10px; position: relative; transition: background .2s; }
.toggle-slider::after { content:''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: transform .2s; }
input[type=checkbox]:checked + .toggle-slider { background: var(--primary); }
input[type=checkbox]:checked + .toggle-slider::after { transform: translateX(16px); }
input[type=checkbox] { display: none; }
.numeros-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.legend-box { display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-right: 4px; vertical-align: middle; }
.legend-box.libre { background: #fff; border: 2px solid #cbd5e0; }
.legend-box.reservado { background: #fef3c7; border: 2px solid #f59e0b; }
.legend-box.comprado { background: #f3f4f6; border: 2px dashed #9ca3af; }
.legend-box.seleccion { background: var(--primary); border: 2px solid var(--primary-dark); }

.loading-banner { background: var(--primary-light); border-radius: 10px; padding: 14px 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 14px; }
.loading-spinner { width: 20px; height: 20px; border: 3px solid var(--primary); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
.loading-text p { font-size: 13px; color: var(--primary-dark); margin-bottom: 4px; }
.loading-progress-bar { background: rgba(91,94,244,.2); height: 4px; border-radius: 4px; }
.loading-progress-bar div { height: 100%; background: var(--primary); border-radius: 4px; transition: width .3s; }

.numeros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px,1fr)); gap: 6px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.numeros-grid::-webkit-scrollbar { width: 4px; }
.numeros-grid::-webkit-scrollbar-track { background: #f1f1f1; }
.numeros-grid::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.num-btn {
  padding: 10px 4px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-align: center; cursor: pointer; border: 2px solid #e2e8f0;
  background: #fff; color: var(--text); transition: all .1s;
  user-select: none;
}
.num-btn:hover:not(.comprado):not(.reservado) { border-color: var(--primary); color: var(--primary); }
.num-btn.seleccionado { background: var(--primary); color: #fff; border-color: var(--primary); }
.num-btn.reservado { background: #fef3c7; border-color: #f59e0b; color: #92400e; cursor: not-allowed; }
.num-btn.comprado { background: #f3f4f6; border-color: #9ca3af; color: #9ca3af; cursor: not-allowed; text-decoration: line-through; }
.num-btn.hidden { display: none; }

/* ===== SIDEBAR SELECCION ===== */
.rifa-sidebar { position: sticky; top: 80px; align-self: start; }
.seleccion-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.seleccion-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.seleccion-count { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.seleccion-hint { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.seleccion-numeros { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; margin-bottom: 12px; }
.sel-num { background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 20px; }
.seleccion-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); margin-bottom: 12px; font-size: 15px; }
.seleccion-total strong { font-size: 20px; color: var(--primary); }

/* ===== SOLD STATE ===== */
.sold-state-card { background: #fff; border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow); }
.sold-icon { font-size: 48px; margin-bottom: 12px; }
.sold-state-card h2 { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.sold-state-card p { color: var(--text-muted); margin-bottom: 20px; }
.fecha-sorteo-badge { background: var(--primary-light); border-radius: 10px; padding: 14px; margin: 16px 0; text-align: left; }
.fecha-sorteo-badge strong { font-size: 11px; letter-spacing: 1px; color: var(--primary); }
.fecha-sorteo-badge p { color: var(--primary-dark); font-weight: 600; margin-top: 4px; }

/* ===== CHECKOUT ===== */
.checkout-page { padding: 40px 0; }
.checkout-hero { text-align: center; padding: 32px 20px; background: linear-gradient(135deg, #f0f0ff, #e8e8ff); border-radius: var(--radius); margin-bottom: 32px; }
.checkout-badge { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--primary); text-transform: uppercase; }
.checkout-hero h1 { font-size: 32px; font-weight: 900; color: var(--dark); margin: 8px 0 4px; }
.checkout-hero p { color: var(--text-muted); }
.checkout-steps { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; }
.step-dot { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.step-dot span { width: 28px; height: 28px; background: #cbd5e0; color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.step-dot.active { color: var(--primary); font-weight: 700; }
.step-dot.active span { background: var(--primary); }
.checkout-steps::before { display: none; }

.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.checkout-section { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-num { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--primary); text-transform: uppercase; }
.section-header h3 { font-size: 18px; font-weight: 700; color: var(--dark); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.single { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px; border: 2px solid var(--border); border-radius: 10px;
  font-size: 15px; outline: none; transition: border-color .2s; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.req { color: var(--danger); }
.hint { font-size: 12px; color: var(--text-muted); }

.sinpe-card { display: flex; align-items: center; gap: 16px; background: var(--bg); border-radius: 12px; padding: 16px; margin-bottom: 20px; border: 2px solid var(--border); }
.sinpe-logo { width: 80px; border-radius: 8px; }
.sinpe-info p { font-size: 14px; color: var(--text-muted); margin: 3px 0; }
.sinpe-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; }
.sinpe-num { font-size: 24px; color: var(--dark); }

.upload-area {
  display: block; border: 3px dashed var(--primary); border-radius: 14px;
  padding: 28px; text-align: center; cursor: pointer; background: #fafbff;
  transition: background .2s;
}
.upload-area:hover { background: var(--primary-light); }
.upload-icon { width: 50px; height: 50px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 12px; }
.upload-area strong { font-size: 16px; color: var(--dark); }
.upload-area p { color: var(--text-muted); font-size: 13px; margin: 4px 0 16px; }
.upload-drag { color: var(--primary); font-weight: 600; margin-top: 12px !important; }
.upload-preview { margin-top: 12px; text-align: center; }
.upload-preview img { max-height: 120px; border-radius: 8px; margin: 0 auto 8px; }
.upload-preview p { font-size: 13px; color: var(--success); font-weight: 600; }

.checkout-actions { display: flex; gap: 12px; margin-top: 16px; }

.timer-card { background: var(--primary-light); border: 2px solid var(--primary); border-radius: var(--radius); padding: 16px; text-align: center; margin-bottom: 16px; }
.timer-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--primary); text-transform: uppercase; }
.timer-value { display: block; font-size: 40px; font-weight: 900; color: var(--primary); margin: 4px 0; font-variant-numeric: tabular-nums; }
.timer-card p { font-size: 12px; color: var(--text-muted); }

.resumen-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.resumen-header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.resumen-rifa { font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.resumen-numeros-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; }
.resumen-numeros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.resumen-num-badge { background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 8px; }
.resumen-total { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 2px solid var(--border); }
.resumen-total strong { font-size: 22px; color: var(--primary); }

.processing { text-align: center; padding: 40px; }
.processing-spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }

/* ===== CONFIRMACION ===== */
.confirmacion-page { padding-bottom: 60px; }
.confetti-hero { background: linear-gradient(135deg, #e8e8ff, #f0f0ff); padding: 50px 20px; text-align: center; position: relative; overflow: hidden; }
.confirm-icon { font-size: 50px; margin-bottom: 8px; }
.confirm-badge { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--primary); }
.confirm-title { font-size: 40px; font-weight: 900; color: var(--dark); margin: 8px 0; }
.confirm-sub { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

.ticket-card { max-width: 500px; margin: 32px auto; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); border: 2px solid var(--border); }
.ticket-header { background: var(--dark); padding: 20px; text-align: center; }
.ticket-logo img { height: 40px; margin: 0 auto; }
.ticket-body { padding: 24px; text-align: center; }
.ticket-tagline { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.ticket-rifa { color: var(--primary); font-weight: 800; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.ticket-numeros { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.ticket-num { background: var(--gold-light); border: 2px solid var(--gold); border-radius: 12px; font-size: 28px; font-weight: 900; color: var(--dark); padding: 12px 20px; min-width: 80px; }
.ticket-meta { display: flex; justify-content: center; gap: 24px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.ticket-meta div { text-align: center; }
.ticket-meta span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.ticket-meta strong { color: var(--dark); font-size: 15px; }
.ticket-footer-note { font-style: italic; color: var(--text-muted); font-size: 13px; }

.confirm-actions { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

.order-details { max-width: 500px; margin: 0 auto 24px; background: #fff; border-radius: var(--radius); padding: 16px 20px; cursor: pointer; box-shadow: var(--shadow); }
.order-details summary { font-weight: 600; font-size: 15px; color: var(--text); }
.order-detail-content { margin-top: 14px; }
.order-detail-content div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-detail-content div span { color: var(--text-muted); }

.cancel-wrap { text-align: center; padding: 16px; }
.btn-cancel { color: var(--danger); font-weight: 600; font-size: 14px; }
.btn-cancel:hover { text-decoration: underline; }
.cancel-wrap p { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

/* ===== MIS TICKETS ===== */
.mis-tickets-page { padding: 40px 0 60px; }
.page-hero { text-align: center; padding: 40px 20px; max-width: 600px; margin: 0 auto 32px; }
.page-badge { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--primary); text-transform: uppercase; }
.page-hero h1 { font-size: 32px; font-weight: 900; color: var(--dark); margin: 8px 0 12px; }
.page-hero p { color: var(--text-muted); }

.search-card { max-width: 500px; margin: 0 auto 24px; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.tipo-tabs { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 20px; }
.tipo-tab { flex: 1; padding: 8px; border: none; background: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-muted); transition: all .2s; }
.tipo-tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.search-hint { font-size: 12px; color: var(--text-muted); margin-top: 10px; text-align: center; }

.tickets-result { max-width: 600px; margin: 0 auto; }
.tickets-result h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.ticket-result-card { background: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); border-left: 4px solid var(--border); }
.ticket-result-card.estado-verificado { border-left-color: var(--success); }
.ticket-result-card.estado-pendiente { border-left-color: var(--warning); }
.ticket-result-card.estado-cancelado { border-left-color: var(--danger); }
.ticket-result-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.ticket-rifa-name { font-size: 16px; font-weight: 700; display: block; }
.ticket-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-top: 4px; }
.status-verificado { background: #dcfce7; color: #166534; }
.status-pendiente { background: #fef3c7; color: #92400e; }
.status-cancelado { background: #fee2e2; color: #991b1b; }
.ticket-meta-small { text-align: right; font-size: 12px; color: var(--text-muted); }
.ticket-meta-small span { display: block; }
.ticket-nums-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ticket-num-badge { font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 8px; }
.ticket-num-badge.status-verificado { background: var(--gold-light); border: 2px solid var(--gold); }
.ticket-num-badge.status-pendiente { background: var(--primary-light); border: 2px solid var(--primary); color: var(--primary); }
.ticket-num-badge.status-cancelado { background: #f3f4f6; border: 2px solid #d1d5db; color: #9ca3af; }
.ticket-total-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); padding-top: 8px; border-top: 1px solid var(--border); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: #a0aec0; padding: 40px 0; margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 36px; }
.footer-logo p { font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #a0aec0; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: #a0aec0; transition: color .2s; }
.footer-social a:hover { color: #fff; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  background: #25d366; color: #fff; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.fade-in { animation: fadeIn .4s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav.open { display: block; }

  .rifa-layout { grid-template-columns: 1fr; }
  .rifa-sidebar { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .rifas-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .countdown .cd-num { font-size: 26px; min-width: 44px; padding: 6px 10px; }
  .hero-title { font-size: 32px; }
  .ticket-num { font-size: 22px; padding: 10px 14px; }
  .checkout-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .numeros-grid { grid-template-columns: repeat(auto-fill, minmax(56px,1fr)); gap: 4px; }
  .num-btn { font-size: 12px; padding: 8px 2px; }
}

.rifa-descripcion { color: #4a5568; font-size: 15px; line-height: 1.7; margin: 12px 0 16px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; }

/* ===== RIFA IMG PRESENTACION ===== */
.rifa-img-card { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.15); width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; }
.rifa-img-presentacion { width: 100%; height: auto; display: block; object-fit: contain; }
.sold-overlay-img { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,.8); color: #fff; font-size: 14px; font-weight: 800; padding: 8px 16px; border-radius: 20px; letter-spacing: 2px; }
.rifa-top-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.fecha-badge { background: #1a1a2e; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; }

/* ===== SINPE INSTRUCCIONES ===== */
.sinpe-instrucciones { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sinpe-paso { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 10px; padding: 12px 16px; flex: 1; min-width: 200px; }
.sinpe-paso-num { width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.sinpe-paso p { font-size: 14px; color: var(--text); margin: 0; }
.sinpe-aviso { background: #fef3c7; border: 2px solid #f59e0b; border-radius: 10px; padding: 14px 16px; margin: 14px 0; font-size: 14px; color: #92400e; }

/* ===== REMOVE NUMBER BUTTON ===== */
.resumen-num-badge.removable { display: inline-flex; align-items: center; gap: 4px; }
.remove-num-btn { background: none; border: none; color: rgba(255,255,255,.8); font-size: 16px; font-weight: 700; cursor: pointer; padding: 0 2px; line-height: 1; border-radius: 3px; }
.remove-num-btn:hover { color: #fff; background: rgba(255,255,255,.2); }

/* ===== CHECK DESPUES / AVISO ===== */
.check-despues-wrap { margin: 12px 0; }
.check-despues-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); background: var(--bg); padding: 12px 16px; border-radius: 10px; border: 2px solid var(--border); }
.check-despues-label input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; display: block; }
.check-despues-label:hover { border-color: var(--primary); }
.aviso-despues { background: #fff7ed; border: 2px solid #fed7aa; border-radius: 10px; padding: 14px 16px; margin: 10px 0; font-size: 14px; color: #9a3412; }

/* Fix leyenda - seleccionado */
.legend-box.seleccionado { background: var(--primary); border: 2px solid var(--primary-dark); }
.numeros-legend span { cursor: default; }
.numeros-legend label { cursor: pointer; }
.numeros-legend label:hover .legend-box.comprado { opacity: .7; }

/* ===== SIDEBAR REMOVE BUTTON ===== */
.sel-num { display: inline-flex; align-items: center; gap: 3px; }
.sel-remove { background: none; border: none; color: var(--primary); font-size: 15px; font-weight: 900; cursor: pointer; padding: 0 2px; line-height: 1; border-radius: 3px; }
.sel-remove:hover { background: rgba(91,94,244,.15); }

/* ===== LEGEND FILTERS ===== */
.legend-filter { cursor: pointer; padding: 4px 8px; border-radius: 6px; border: 2px solid transparent; opacity: .45; transition: all .15s; user-select: none; display: inline-flex; align-items: center; gap: 5px; }
.legend-filter.active { opacity: 1; border-color: currentColor; }
.legend-filter:hover { opacity: .8; }
