:root {
  --primary-color: #003566;
  --primary-dark: #001d3d;
  --accent-color: #ffc300;
  --bg-light: #f4f6fb;
  --text-main: #1f2937;
  --card-shadow: 0 14px 40px rgba(0,0,0,0.08);
  --soft-border: rgba(0,0,0,0.08);
}

body { 
  background: radial-gradient(1000px 500px at 15% 0%, rgba(0,53,102,0.14) 0%, transparent 60%),
              radial-gradient(900px 450px at 90% 10%, rgba(255,195,0,0.15) 0%, transparent 55%),
              var(--bg-light);
  font-family: 'Inter', sans-serif; 
  color: var(--text-main);
  margin: 0;
}

/* ===== Top bar (moderna) ===== */
.nav-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 10px 18px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  gap: 12px;
}

.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.2rem; cursor: pointer; text-transform: uppercase; white-space: nowrap; letter-spacing: 0.5px; }
.brand-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-color); }
.brand-registered { font-size: 0.6rem; vertical-align: top; margin-left: 2px; color: var(--accent-color); }

.nav-options { display: flex; gap: 10px; align-items: center; }

.btn-perfil, .btn-fav-nav {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-perfil:hover, .btn-fav-nav:hover {
  background: var(--accent-color);
  color: #000;
  transform: translateY(-1px);
}

.btn-menu {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s;
}
.btn-menu:hover { transform: translateY(-1px); background: rgba(255,255,255,0.18); }

.vista { display:none; width: 100%; min-height: 85vh; padding: 26px 14px; position: relative; }
.container-full { max-width: 1120px; margin: 0 auto; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 18px;
}
.section-title h4 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.3px;
}
.section-title .hint { color: rgba(31,41,55,0.65); font-weight: 600; }

/* ===== Cards / grid ===== */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

.card-pub {
  background: rgba(255,255,255,0.85);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--soft-border);
  backdrop-filter: blur(6px);
}
.card-pub:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,0.12); }
.card-img { width: 100%; height: 190px; object-fit: cover; }
.card-body-pub { padding: 14px 14px 16px; flex-grow: 1; }

.price-tag { color: #16a34a; font-weight: 900; font-size: 1.1rem; }

.btn-accent {
  background-color: var(--accent-color);
  border: none;
  color: #000;
  font-weight: 900;
  border-radius: 14px;
  padding: 10px 18px;
  transition: 0.2s;
}
.btn-accent:hover { filter: brightness(0.95); transform: translateY(-1px); }

.btn-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.24);
  border: none;
  cursor: pointer;
  z-index: 100;
  transition: 0.2s;
}
.btn-float:hover { transform: scale(1.06) rotate(6deg); }

.order-card {
  background: rgba(255,255,255,0.92);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--soft-border);
  margin-bottom: 14px;
  border-left: 6px solid var(--primary-color);
  box-shadow: var(--card-shadow);
}

.status-badge {
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
  letter-spacing: 0.3px;
}
.status-pendiente { background: #fff3cd; color: #856404; }
.status-pagado { background: #d4edda; color: #155724; }
.status-buscando { background: #cce5ff; color: #004085; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.photo-slot {
  aspect-ratio: 1/1;
  background: #eef2ff;
  border: 2px dashed rgba(0,0,0,0.18);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-size: 1.5rem;
  color: rgba(0,0,0,0.35);
  cursor: pointer;
}
.photo-slot input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }

.delivery-options-box {
  background: rgba(241,248,255,0.8);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(0,53,102,0.18);
  margin-bottom: 20px;
}

.card-action {
  cursor: pointer;
  transition: 0.25s;
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--soft-border);
  height: 100%;
  background: rgba(255,255,255,0.9);
}
.card-action:hover { transform: translateY(-4px); background: var(--primary-color); color: white; }

.detail-container, .checkout-container {
  background: rgba(255,255,255,0.92);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--soft-border);
  backdrop-filter: blur(6px);
}
.img-detail { width: 100%; max-height: 420px; object-fit: contain; border-radius: 18px; background: #f1f5f9; border: 1px solid var(--soft-border); }

.info-pago-box {
  background: rgba(248,249,250,0.9);
  border: 2px dashed rgba(0,53,102,0.75);
  padding: 18px;
  border-radius: 18px;
  text-align: center;
}

.btn-pagar-lemon {
  background-color: #000;
  color: #ccff00;
  border: none;
  padding: 18px;
  font-weight: 900;
  width: 100%;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Panel boxes */
.panel-box { background: rgba(255,255,255,0.92); border-radius: 18px; padding: 18px; box-shadow: var(--card-shadow); border: 1px solid var(--soft-border); }

.step-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.75rem;
  border: 1px solid #ddd;
  background: #f5f5f5;
  color: #666;
}
.step-on{
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

/* Offcanvas menu styling */
.offcanvas-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.offcanvas-title { font-weight: 900; letter-spacing: -0.2px; }
.menu-item {
  width: 100%;
  border: 1px solid var(--soft-border);
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 14px 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: 0.2s;
}
.menu-item:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,0.10); }
.menu-item small { font-weight: 700; color: rgba(31,41,55,0.65); }

/* ===== Perfil usuario ===== */
.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 2px dashed rgba(0,0,0,0.18);
  background: #eef2ff;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ===== Q&A ===== */
.qa-box { margin-top: 18px; }
.qa-item {
  border: 1px solid var(--soft-border);
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}
.qa-row { display: flex; gap: 10px; align-items: flex-start; }
.qa-avatar {
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--soft-border);
  background: #f1f5f9;
  overflow: hidden;
  flex: 0 0 auto;
}
.qa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.qa-meta { font-size: 0.85rem; color: rgba(31,41,55,0.7); font-weight: 700; }
.qa-text { font-weight: 700; margin-top: 4px; }
.qa-answer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,0.12);
}
