/* ══════════════════════════════════════════════════
   JOYERÍA — Mobile-first design system
   ══════════════════════════════════════════════════ */

:root {
  --primary:       #1a1a1a;
  --primary-h:     #333;
  --accent:        #b8860b;
  --accent-light:  #f5d78a;
  --accent-bg:     #fdf6e3;
  --whatsapp:      #25D366;
  --whatsapp-h:    #1ebe5d;
  --bg:            #f7f5f2;
  --card:          #ffffff;
  --border:        #e8e4de;
  --text:          #1a1a1a;
  --muted:         #888;
  --red:           #c62828;
  --red-bg:        #ffebee;
  --green:         #2e7d32;
  --green-bg:      #e8f5e9;
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     18px;
  --shadow:        0 2px 12px rgba(0,0,0,.07);
  --shadow-md:     0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --topbar-h:      56px;
  --searchbar-h:   52px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ══ TOPBAR ════════════════════════════════════════ */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--primary);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  z-index: 900;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.menu-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background .2s;
}
.menu-btn:hover { background: rgba(255,255,255,.1); }
.hamburger {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

.logo {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--accent-light);
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Icon buttons in header */
.icon-btn {
  background: none;
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn-admin {
  background: var(--accent);
  border-radius: var(--radius-sm);
}
.icon-btn-admin:hover { background: #9a7008; }

.cart-icon {
  position: relative;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.cart-icon:hover { background: rgba(255,255,255,.12); }
.cart-count {
  position: absolute;
  top: 4px; right: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.auth-area { display: flex; align-items: center; gap: 2px; }

/* ══ SEARCH BAR (desplegable) ══════════════════════ */

.search-bar {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  height: 0;
  overflow: hidden;
  background: var(--primary-h);
  z-index: 850;
  transition: height .25s ease;
}
.search-bar.open {
  height: var(--searchbar-h);
}
.search-form {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 8px 12px;
  gap: 8px;
}
.search-input {
  flex: 1;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px 14px;
  font-size: 15px;
  outline: none;
  transition: background .2s;
}
.search-input::placeholder { color: rgba(255,255,255,.5); }
.search-input:focus { background: rgba(255,255,255,.2); }
.search-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}
.search-submit:hover { background: #9a7008; }

/* ══ LAYOUT ════════════════════════════════════════ */

.container {
  display: flex;
  min-height: 100vh;
  padding-top: var(--topbar-h);
}

/* ══ SIDEBAR ═══════════════════════════════════════ */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar {
  position: fixed;
  left: -280px;
  top: 0; bottom: 0;
  width: 280px;
  background: var(--card);
  z-index: 999;
  overflow-y: auto;
  transition: left .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.sidebar.active { left: 0; }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--primary);
  flex-shrink: 0;
}
.sidebar-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-light);
}
.close-menu {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.close-menu:hover { background: rgba(255,255,255,.15); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--accent-bg);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  padding: 10px 18px 4px;
}
.sidebar-nav ul { list-style: none; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 15px;
  color: var(--text);
  transition: background .15s, color .15s;
  border-radius: 0;
}
.sidebar-nav li a:hover, .sidebar-nav li a:active {
  background: var(--bg);
  color: var(--primary);
}
.sidebar-nav li a:active { background: var(--border); }
.sidebar-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logout {
  display: block;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.sidebar-logout:hover { background: var(--bg); color: var(--text); }

/* ══ MAIN CONTENT ══════════════════════════════════ */

.content {
  flex: 1;
  padding: 16px;
  min-width: 0;
  max-width: 100%;
}

/* ══ FLASH MESSAGES ════════════════════════════════ */

.flash-container {
  position: fixed;
  top: calc(var(--topbar-h) + 8px);
  right: 12px;
  left: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transition: opacity .4s, transform .4s;
  pointer-events: auto;
}
.flash-success { background: var(--green); color: #fff; }
.flash-error   { background: var(--red);   color: #fff; }
.flash-inline  {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 8px;
}

.cart-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  animation: slideUp .35s ease;
  transition: opacity .4s;
}
.cart-toast.hide { opacity: 0; }
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══ PAGE HEADER ═══════════════════════════════════ */

.page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.page-title {
  font-size: 18px;
  font-weight: 700;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  transition: background .2s, color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.back-link:hover { background: var(--border); color: var(--text); }

/* ══ SECTION TITLES ════════════════════════════════ */

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.section { margin-bottom: 32px; }

/* ══ PRODUCT GRID ══════════════════════════════════ */

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:active { transform: scale(.97); }

.product-img-link {
  position: relative;
  display: block;
  overflow: hidden;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .3s;
}
.product-card:hover img { transform: scale(1.04); }

.badge-featured {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.product-info {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-info h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}
.btn-ver {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  transition: background .2s;
}
.btn-ver:active { background: var(--primary-h); }

.empty-msg {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  font-size: 15px;
}

/* ══ PRODUCT PAGE ══════════════════════════════════ */

.product-page {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.product-details {
  padding: 20px 16px 24px;
}
.product-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.product-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
}
.stock-out {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}

.add-form { display: flex; flex-direction: column; gap: 14px; }
.qty-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-dec, .qty-inc {
  background: var(--bg);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.qty-dec:active, .qty-inc:active { background: var(--border); }
.qty-input {
  width: 56px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  background: #fff;
  height: 44px;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  transition: background .2s;
}
.add-cart:active { background: var(--primary-h); }

/* ══ CART PAGE ═════════════════════════════════════ */

.cart-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-items { display: flex; flex-direction: column; gap: 10px; }

.cart-item {
  display: flex;
  gap: 12px;
  background: var(--card);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.cart-info { flex: 1; min-width: 0; }
.cart-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-unit-price { color: var(--muted); font-size: 12px; margin-bottom: 8px; }

.cart-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--primary);
  width: 32px;
  height: 32px;
  font-weight: 700;
  font-size: 16px;
  transition: background .15s;
}
.qty-btn:active { background: var(--border); }
.qty-number {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.cart-subtotal {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}
.remove-btn {
  color: var(--muted);
  display: flex;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.remove-btn:hover { color: var(--red); background: var(--red-bg); }

/* Cart sidebar / summary */
.cart-sidebar { display: flex; flex-direction: column; gap: 12px; }

.cart-summary {
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cart-summary h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.discount-row { color: var(--red); }
.total-row {
  font-weight: 800;
  font-size: 17px;
  padding-top: 10px;
}

.coupon-box {
  background: var(--card);
  padding: 14px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.coupon-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--bg);
  transition: border-color .2s;
}
.coupon-input:focus { outline: none; border-color: var(--primary); }
.coupon-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.coupon-btn:active { background: var(--primary-h); }
.coupon-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  flex-wrap: wrap;
}
.remove-coupon { color: var(--red); font-size: 13px; margin-left: auto; }
.remove-coupon:hover { text-decoration: underline; }
.coupon-error { color: var(--red); font-size: 13px; margin-top: 6px; font-weight: 600; }

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  padding: 15px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  border: none;
  transition: background .2s;
  box-shadow: 0 4px 12px rgba(37,211,102,.3);
}
.whatsapp-btn:active { background: var(--whatsapp-h); }

.btn-back-center {
  display: block;
  text-align: center;
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: background .2s;
}
.btn-back-center:hover { background: var(--border); }

.empty-cart {
  text-align: center;
  padding: 60px 20px;
}
.empty-cart-icon { font-size: 48px; margin-bottom: 12px; }
.empty-cart p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }

/* ══ CONFIRM PAGE ══════════════════════════════════ */

.confirm-page { max-width: 540px; }
.confirm-items {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.confirm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.confirm-name { font-weight: 600; font-size: 14px; }
.confirm-qty  { color: var(--muted); font-size: 12px; margin-top: 2px; }
.confirm-sub  { margin-left: auto; font-weight: 800; color: var(--accent); font-size: 15px; flex-shrink: 0; }
.confirm-totals {
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

/* ══ LOGIN PAGE ════════════════════════════════════ */

.login-body {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}
.login-container {
  background: var(--card);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
}
.login-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-form input {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 15px;
  background: var(--bg);
  transition: border-color .2s;
  width: 100%;
}
.login-form input:focus { outline: none; border-color: var(--primary); background: #fff; }
.btn-login {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  transition: background .2s;
  width: 100%;
}
.btn-login:active { background: var(--primary-h); }
.login-links { margin-top: 16px; text-align: center; }
.login-links p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.btn-register {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}
.btn-register:hover { background: var(--border); }
.login-divider {
  margin: 20px 0;
  position: relative;
  text-align: center;
}
.login-divider span {
  background: var(--card);
  padding: 0 12px;
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.login-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border);
}
.btn-guest {
  display: block;
  padding: 13px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: background .2s;
  box-shadow: 0 4px 12px rgba(37,211,102,.25);
}
.btn-guest:active { background: var(--whatsapp-h); }

/* ══ ADMIN ═════════════════════════════════════════ */

.admin-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.admin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  border: 2px solid transparent;
}
.admin-card:active {
  transform: scale(.97);
  border-color: var(--accent);
}
.admin-card-icon { font-size: 30px; }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-back {
  color: var(--muted);
  font-size: 14px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  transition: background .2s;
  white-space: nowrap;
}
.btn-back:hover { background: var(--border); }

.btn-admin-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.btn-admin-action:active { background: var(--primary-h); }

.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 480px;
}
.admin-table thead tr { background: var(--primary); color: #fff; }
.admin-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg); }

.admin-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.link-edit { color: #1565C0; font-weight: 600; font-size: 13px; white-space: nowrap; }
.link-edit:hover { text-decoration: underline; }
.link-del  { color: var(--red); font-weight: 600; font-size: 13px; white-space: nowrap; }
.link-del:hover { text-decoration: underline; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.badge-ok  { background: var(--green-bg); color: var(--green); }
.badge-err { background: var(--red-bg);   color: var(--red); }

/* Product form */
.product-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  padding: 20px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 100%;
}
.product-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.product-form input[type=text],
.product-form input[type=number],
.product-form textarea,
.product-form select {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  transition: border-color .2s;
  width: 100%;
}
.product-form input:focus,
.product-form textarea:focus,
.product-form select:focus { outline: none; border-color: var(--primary); background: #fff; }
.product-form small { color: var(--muted); font-size: 12px; font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-label {
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.checkbox-label input { width: auto !important; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.current-img p { margin: 0 0 8px; font-size: 12px; color: var(--muted); }

/* Coupon/category admin form */
.coupon-admin-form {
  background: var(--card);
  padding: 18px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.coupon-admin-form h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.cupon-create-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cupon-create-form input {
  flex: 1;
  min-width: 140px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 14px;
  background: var(--bg);
}
.cupon-create-form input:focus { outline: none; border-color: var(--primary); background: #fff; }

/* ══ DESKTOP ENHANCEMENTS ══════════════════════════ */

@media (min-width: 768px) {
  :root { --topbar-h: 60px; }

  .content { padding: 24px 28px; }

  .topbar { padding: 0 20px; gap: 12px; }
  .logo { font-size: 20px; text-align: left; flex: 0; }

  /* Show search bar inline on desktop */
  .search-bar {
    position: static;
    height: auto !important;
    background: transparent;
    flex: 1;
    overflow: visible;
  }
  .search-form { padding: 0; height: auto; }
  .search-input {
    width: 220px;
    transition: width .3s;
  }
  .search-input:focus { width: 300px; }
  #search-toggle { display: none; }

  .container { padding-top: var(--topbar-h); }

  /* Sidebar: static on desktop */
  .sidebar {
    position: sticky;
    top: var(--topbar-h);
    left: 0;
    height: calc(100vh - var(--topbar-h));
    width: 230px;
    min-width: 230px;
    flex-shrink: 0;
    box-shadow: none;
    border-right: 1px solid var(--border);
    overflow-y: auto;
  }
  .sidebar-overlay { display: none !important; }
  /* Hide hamburger on desktop */
  .menu-btn { display: none; }

  .flash-container {
    left: auto;
    right: 20px;
    max-width: 360px;
  }

  .products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
  .product-info h3 { font-size: 14px; }
  .price { font-size: 16px; }

  .product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .product-details { padding: 32px 28px; }
  .product-title { font-size: 26px; }
  .product-price { font-size: 30px; }

  .cart-layout { flex-direction: row; align-items: flex-start; }
  .cart-items { flex: 1; }
  .cart-sidebar { width: 320px; flex-shrink: 0; position: sticky; top: calc(var(--topbar-h) + 16px); }

  .admin-menu { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .admin-card { padding: 28px 20px; }

  .product-form { max-width: 560px; padding: 28px; }
}

@media (min-width: 1024px) {
  .products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ══ AUTH PAGES (login / register / pin) ══════════ */

.auth-card {
  background: var(--card);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.auth-logo-icon {
  font-size: 22px;
  color: var(--accent);
}
.auth-logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--primary);
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--primary);
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.4;
}
.auth-alert-error   { background: var(--red-bg);   color: var(--red);   border-left: 3px solid var(--red); }
.auth-alert-success { background: var(--green-bg); color: var(--green); border-left: 3px solid var(--green); }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}
.auth-input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s, background .2s;
}
.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.toggle-pw {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--muted);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color .2s;
}
.toggle-pw:hover { color: var(--primary); }

/* Password strength */
.pw-strength-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.pw-strength-bar div {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .3s, background .3s;
}
.pw-hint {
  font-size: 12px;
  font-weight: 500;
  min-height: 16px;
  margin-top: 2px;
}

/* Auth buttons */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  text-decoration: none;
  text-align: center;
}
.auth-btn:active { background: var(--primary-h); }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }

.auth-btn-ghost {
  background: var(--whatsapp);
  box-shadow: 0 4px 12px rgba(37,211,102,.25);
}
.auth-btn-ghost:active { background: var(--whatsapp-h); }

.auth-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.auth-btn-outline:active { background: var(--bg); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}
.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── PIN page ── */
.pin-envelope {
  font-size: 48px;
  text-align: center;
  margin-bottom: 8px;
}
.pin-timer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: -10px 0 16px;
}

.pin-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 4px;
}
.pin-digit {
  width: 46px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--primary);
  transition: border-color .2s, background .2s;
  caret-color: var(--accent);
}
.pin-digit:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--accent-bg);
}
.pin-digit:not(:placeholder-shown) {
  border-color: var(--primary);
  background: #fff;
}

@media (max-width: 400px) {
  .auth-card { padding: 28px 18px 24px; border-radius: var(--radius); }
  .pin-digit { width: 40px; height: 50px; font-size: 20px; }
  .pin-inputs { gap: 6px; }
}

/* ══ FILTER BAR ════════════════════════════════════ */

.filtros-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filtros-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  white-space: nowrap;
}
.filtros-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filtro-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all .2s;
  white-space: nowrap;
}
.filtro-btn:hover  { border-color: var(--primary); color: var(--primary); background: var(--bg); }
.filtro-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }

/* ══ PRODUCT IMAGE BADGES ══════════════════════════ */

.badge-imgs {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

/* ══ IMAGE SLIDER ══════════════════════════════════ */

.slider {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 0;
  user-select: none;
}
.slider-track {
  display: flex;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.slide {
  min-width: 100%;
  flex-shrink: 0;
}
.slide img {
  width: 100%;
  height: 340px;
  display: block;
  object-fit: cover;
  object-position: center;
}
.product-single-img {
  width: 100%;
  height: 340px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.slider-btn:hover  { background: rgba(0,0,0,.7); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ══ ADMIN UPLOAD AREA ═════════════════════════════ */

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg);
  min-height: 100px;
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.upload-input { display: none; }
.upload-placeholder svg { color: var(--muted); margin-bottom: 8px; }
.upload-placeholder p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.upload-hint { font-size: 12px !important; }

.upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.preview-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
}
.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-main-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
}

/* ══ CURRENT IMAGES GRID (editar) ══════════════════ */

.form-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.form-section-label small { font-weight: 400; color: var(--muted); }

.current-imgs-section { display: flex; flex-direction: column; gap: 8px; }
.current-imgs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.current-img-thumb {
  position: relative;
  width: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color .2s;
}
.current-img-thumb.is-main { border-color: var(--accent); }
.current-img-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}
.del-img-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.del-img-label:hover { background: var(--red-bg); color: var(--red); }
.del-img-label input { width: 12px; height: 12px; accent-color: var(--red); }

@media (min-width: 768px) {
  .slide img, .product-single-img {
    height: 480px;
  }
}

/* ══ FLOATING WHATSAPP BUTTON ══════════════════════ */

.wa-float {
  position: fixed;
  bottom: 22px;
  right: 18px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  z-index: 800;
  transition: transform .2s, box-shadow .2s;
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 24px rgba(37,211,102,.7); }
}

/* ══ CÓMO FUNCIONA ══════════════════════════════════ */

.cf-hero {
  text-align: center;
  padding: 32px 16px 24px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  color: #fff;
}
.cf-hero-icon  { font-size: 32px; color: var(--accent-light); margin-bottom: 6px; }
.cf-hero-title { font-size: 24px; font-weight: 900; letter-spacing: 2px; color: var(--accent-light); margin-bottom: 6px; }
.cf-hero-sub   { font-size: 14px; color: rgba(255,255,255,.7); margin: 0; }

.cf-steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }

.cf-step {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cf-step:last-child { border-bottom: none; }

.cf-step-num {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cf-step-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.cf-step-body p  { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }

.cf-cta {
  background: var(--accent-bg);
  border: 1.5px solid var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 24px;
}
.cf-cta p { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

/* ══ REVIEWS ════════════════════════════════════════ */

.reviews-section { margin-top: 32px; }

.stars-display {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 12px;
}
.star        { font-size: 18px; color: #ddd; line-height: 1; }
.star.filled { color: #f59e0b; }
.stars-label { font-size: 13px; color: var(--muted); margin-left: 6px; }

.review-form-card {
  background: var(--card);
  padding: 18px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.review-form-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.review-form { display: flex; flex-direction: column; gap: 12px; }
.review-form textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  background: var(--bg);
}
.review-form textarea:focus { outline: none; border-color: var(--primary); background: #fff; }

.star-picker { display: flex; gap: 4px; }
.star-pick {
  background: none;
  border: none;
  font-size: 28px;
  color: #ddd;
  cursor: pointer;
  padding: 0 2px;
  transition: color .15s, transform .15s;
  line-height: 1;
}
.star-pick.hover, .star-pick.selected { color: #f59e0b; transform: scale(1.15); }
.review-login-hint { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.review-login-hint a { color: var(--primary); font-weight: 600; text-decoration: underline; }

.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-card {
  background: var(--card);
  padding: 14px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.review-author  { font-weight: 700; font-size: 14px; }
.review-stars   { display: flex; gap: 2px; }
.review-stars .star { font-size: 14px; }
.review-date    { font-size: 12px; color: var(--muted); margin-left: auto; }
.review-comment { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ══ THUMBNAIL STRIP ═══════════════════════════════ */

.thumb-strip {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  background: var(--bg);
  scrollbar-width: thin;
}
.thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
}
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ══ SET PRINCIPAL BUTTON ══════════════════════════ */

.set-principal-btn {
  display: block;
  text-align: center;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--border);
  transition: background .2s, color .2s;
}
.set-principal-btn:hover    { background: var(--accent-bg); color: var(--accent); }
.set-principal-btn.is-principal { background: var(--accent-bg); color: var(--accent); }

/* ══ MIS PEDIDOS ════════════════════════════════════ */

.pedidos-list { display: flex; flex-direction: column; gap: 12px; }
.pedido-card {
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pedido-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pedido-num    { font-weight: 700; font-size: 14px; color: var(--muted); }
.status-ok     { background: var(--green-bg); color: var(--green);  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.status-pend   { background: #fff3e0;          color: #e65100;       font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.pedido-resumen { font-size: 14px; color: var(--text); margin-bottom: 10px; line-height: 1.5; }
.pedido-footer  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pedido-total  { font-size: 18px; font-weight: 800; color: var(--accent); }
.pedido-desc   { font-size: 12px; color: var(--green); }

/* ══ BANNER PROMOCIONAL ════════════════════════════ */

.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #333 100%);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  text-align: center;
}
.promo-banner-icon { font-size: 20px; }
.promo-banner span { color: var(--accent-light); }

/* ══ BIENVENIDA / CUPÓN ════════════════════════════ */

.welcome-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px 0 40px;
}
.welcome-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px;
  width: 100%;
  max-width: 460px;
  text-align: center;
}
.welcome-confetti { font-size: 52px; margin-bottom: 10px; animation: pop .5s ease; }
@keyframes pop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1);  opacity: 1; }
}
.welcome-title { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.welcome-sub   { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }

.welcome-cupon {
  background: var(--accent-bg);
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 24px;
}
.cupon-label-sm { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 10px; }
.cupon-code {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--accent);
  font-family: 'Courier New', monospace;
  margin-bottom: 8px;
  user-select: all;
}
.cupon-details { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.cupon-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.cupon-copy-btn:hover { background: #9a7008; }

.welcome-steps { text-align: left; margin-bottom: 24px; }
.welcome-steps-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.welcome-steps ol { padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 2; }

.welcome-actions { display: flex; flex-direction: column; gap: 0; }
