/* ══════════════════════════════════
   RESET & BASE
══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #f4f2ee;
  color: #1a1a1a;
  min-height: 100vh;
  overscroll-behavior: none;
  overflow-x: hidden;
}
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input { font-family: inherit; }
a { color: inherit; }

/* ══════════════════════════════════
   SCREENS
══════════════════════════════════ */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* ══════════════════════════════════
   LOGIN
══════════════════════════════════ */
#screen-login {
  background: #e85d00;
  align-items: center;
  justify-content: center;
  padding: 12px 24px 24px;
  position: relative;
  overflow: hidden;
}
#screen-login.active { display: flex; }

.login-bg { position: absolute; inset: 0; pointer-events: none; }
.login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.18;
}
.b1 { width: 320px; height: 320px; background: #ff6a00; top: -80px; right: -80px; }
.b2 { width: 260px; height: 260px; background: #ffb347; bottom: -60px; left: -60px; }

.login-promo-box {
  position: relative;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: #fff;
  border-radius: 10px;
  padding: 10px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  margin: 20px 0;
  max-width: 94vw;
  width: max-content;
  overflow: hidden;
}
.login-promo {
  text-align: center;
  white-space: nowrap;
  font-family: 'Rubik Dirt', cursive;
  font-weight: 400;
  text-transform: uppercase;
  color: #ff1f9c;
  font-size: clamp(30px, 12vw, 52px);
  line-height: 1.1;
  user-select: none;
}
.login-promo .wob { display: inline-block; }
.login-promo .wob-space { display: inline-block; width: 0.3em; }
.login-promo .wob:nth-child(6n+1) { transform: rotate(-9deg) translateY(0.05em); }
.login-promo .wob:nth-child(6n+2) { transform: rotate(7deg) translateY(-0.08em); }
.login-promo .wob:nth-child(6n+3) { transform: rotate(-5deg) translateY(0.1em); }
.login-promo .wob:nth-child(6n+4) { transform: rotate(8deg) translateY(-0.05em); }
.login-promo .wob:nth-child(6n+5) { transform: rotate(-7deg) translateY(0.08em); }
.login-promo .wob:nth-child(6n) { transform: rotate(6deg) translateY(-0.1em); }

.login-wrap { width: 100%; max-width: 360px; position: relative; z-index: 1; }

.login-screen-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-company-info { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; max-width: 380px; }
.login-company-line { font-family: 'Rubik Dirt', cursive; font-size: clamp(15px, 4.5vw, 19px); font-weight: 400; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.4; color: rgba(255,255,255,0.9); white-space: nowrap; }
.login-company-line.login-company-address { font-size: clamp(11px, 3.2vw, 14px); }

.login-partner-info {
  margin-top: 16px;
  width: 100%; max-width: 320px;
  aspect-ratio: 199 / 148;
  background-image: url('partner-bg.png');
  background-size: 145% 145%;
  background-position: center;
  background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.login-partner-frame { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; max-width: 72%; }
.login-partner-title { font-family: 'Rubik Dirt', cursive; font-size: clamp(8px, 2.6vw, 10.5px); font-weight: 400; text-transform: uppercase; letter-spacing: 0.2px; line-height: 1.3; color: #b91c1c; white-space: normal; margin-bottom: 0px; }
.login-partner-line { font-family: 'Rubik Dirt', cursive; font-size: clamp(9px, 2.6vw, 11px); font-weight: 400; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.4; color: #9a1515; white-space: nowrap; }
.login-partner-name { font-size: clamp(12px, 3.4vw, 15px); margin: 3px 0; }

.login-logo { text-align: center; margin-bottom: 12px; }
.login-logo-cluster { display: flex; align-items: center; justify-content: center; gap: 4px; }
.logo-word-cluster { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; height: 210px; }
.logo-word-cluster-words { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; height: 100%; }
.lwc-word { font-family: 'Rubik Dirt', cursive; font-weight: 400; letter-spacing: 0.2px; text-align: center; white-space: normal; line-height: 1.2; width: 100%; text-transform: uppercase; }
.lwc-h { font-size: 11.5px; }
.lwc-v { font-size: 11.5px; }
.lwc-small { font-size: 11.5px; }
@media (max-width: 380px) {
  .logo-word-cluster { flex: 0 0 62px; }
  .lwc-h { font-size: 10px; }
  .lwc-v { font-size: 10px; }
  .lwc-small { font-size: 10px; }
  .login-logo-cluster img { width: 120px !important; }
}
.logo-mark {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.logo-mark svg { width: 36px; height: 36px; }
.login-title {
  font-family: 'Fraunces', serif;
  font-size: 32px; font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.login-sub { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.login-sub-mega { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 10px; width: 100%; }
.login-sub-line { font-family: 'Rubik Dirt', cursive; font-size: clamp(11px, 3.6vw, 19.5px); font-weight: 400; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.4; color: rgba(255,255,255,0.9); text-align: center; white-space: nowrap; }

.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
}

.tab-row {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #f4f2ee;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.tab {
  padding: 9px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: #6b7280;
  transition: all 0.15s;
}
.tab.active {
  background: #e85d00;
  color: #fff;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px; font-weight: 500;
  color: #6b7280;
  margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  color: #e85d00;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus { border-color: #e85d00; }

.btn-main {
  width: 100%;
  padding: 13px;
  background: #e85d00;
  color: #fff;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  margin-top: 6px;
  transition: opacity 0.15s, transform 0.1s;
}
.btn-main:hover { opacity: 0.88; }
.btn-main:active { transform: scale(0.98); }

.btn-ghost {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px; font-weight: 500;
  color: #374151;
  transition: background 0.15s;
}
.btn-ghost:hover { background: #f9fafb; }

.login-hint { text-align: center; font-size: 12px; color: #9ca3af; margin-top: 10px; }

.divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0;
  color: #d1d5db; font-size: 13px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}

/* ══════════════════════════════════
   EMPRESA — HEADER & NAV
══════════════════════════════════ */
#screen-empresa { background: #f4f2ee; padding-bottom: 80px; }

.emp-header {
  background: #e85d00;
  position: sticky; top: 0; z-index: 50;
}
.emp-header-inner {
  max-width: 640px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.emp-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; }

.logout-btn {
  font-size: 39px; font-weight: 700;
  color: rgba(255,255,255,0.6);
  padding: 18px 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  transition: all 0.15s;
}
.logout-btn:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

.emp-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 52px; z-index: 40;
}
.emp-nav { display: flex; max-width: 720px; margin: 0 auto; }
.nav-btn {
  flex: 1; padding: 16px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: #9ca3af;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.nav-btn.active { color: #e85d00; border-bottom-color: #e85d00; }
.nav-btn svg { transition: opacity 0.15s; width: 22px; height: 22px; }

.emp-main { max-width: 640px; margin: 0 auto; padding: 20px 16px; }
.emp-section { display: none; }
.emp-section.active { display: block; }

.section-h { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: #e85d00; margin-bottom: 16px; }
.section-h2 { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 10px; }
.section-desc { font-size: 14px; color: #6b7280; margin-bottom: 16px; margin-top: -10px; }
.section-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-top .section-h { margin-bottom: 0; }

.btn-add {
  background: #e85d00; color: #fff;
  padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  transition: opacity 0.15s;
}
.btn-add:hover { opacity: 0.85; }

/* ══════════════════════════════════
   STATS GRID
══════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}
.stat-card.accent { background: #e85d00; border-color: #e85d00; }
.stat-num { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700; color: #e85d00; }
.stat-card.accent .stat-num { color: #fff; }
.stat-lbl { font-size: 12px; color: #6b7280; margin-top: 2px; }
.stat-card.accent .stat-lbl { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════
   ACTIVITY LIST
══════════════════════════════════ */
.activity-list, .cerca-list { display: flex; flex-direction: column; gap: 8px; }
.activity-item {
  background: #fff; border-radius: 12px; border: 1px solid #e5e7eb;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-sello { background: #3b82f6; }
.dot-canje { background: #f59e0b; }
.dot-registro { background: #10b981; }
.activity-text { flex: 1; font-size: 14px; color: #374151; }
.activity-text strong { font-weight: 600; color: #e85d00; }
.activity-time { font-size: 11px; color: #9ca3af; }

.cerca-item {
  background: #fff; border-radius: 12px; border: 1px solid #e5e7eb;
  padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.cerca-name { font-size: 14px; font-weight: 600; color: #e85d00; }
.cerca-info { font-size: 12px; color: #6b7280; margin-top: 2px; }
.cerca-pills { display: flex; gap: 4px; }
.cerca-pill {
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.cerca-pill.done { background: #e85d00; color: #fff; }
.cerca-pill.empty { background: #f3f4f6; color: #d1d5db; border: 1px dashed #d1d5db; }

/* ══════════════════════════════════
   CLIENTES LIST
══════════════════════════════════ */
.search-wrap { margin-bottom: 14px; }
.search-wrap input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M8 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM2 8a6 6 0 1 1 10.89 3.476l4.817 4.817a1 1 0 0 1-1.414 1.414l-4.816-4.816A6 6 0 0 1 2 8z'/%3E%3C/svg%3E") no-repeat 12px center;
  outline: none;
  transition: border-color 0.15s;
  color: #e85d00;
}
.search-wrap input:focus { border-color: #e85d00; }

.clientes-list { display: flex; flex-direction: column; gap: 8px; }
.cliente-item {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: border-color 0.15s;
}
.cliente-item:hover { border-color: #e85d00; }
.cliente-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #e85d00;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.cliente-info { flex: 1; min-width: 0; }
.cliente-name { font-size: 15px; font-weight: 600; color: #e85d00; }
.cliente-email { font-size: 12px; color: #6b7280; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cliente-stamps {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
}
.stamp-tag {
  font-size: 12px; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; background: #f3f4f6; color: #374151;
}
.stamp-tag.full { background: #fef3c7; color: #92400e; }

/* ══════════════════════════════════
   SELLOS SECTION
══════════════════════════════════ */
.sello-results { display: flex; flex-direction: column; gap: 8px; }
.sello-result-item {
  background: #fff; border-radius: 12px; border: 1.5px solid #e5e7eb;
  padding: 14px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.sello-result-item:hover { border-color: #e85d00; background: #f9fafb; }

.sello-selected {
  background: #fff; border-radius: 16px; border: 2px solid #e85d00;
  padding: 20px;
}
.sello-sel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sello-sel-name { font-size: 17px; font-weight: 700; color: #e85d00; }
.sello-sel-email { font-size: 13px; color: #6b7280; }
.mini-stamps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.mini-stamp {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.mini-stamp.on { background: #e85d00; color: #fff; }
.mini-stamp.off { background: #f3f4f6; color: #d1d5db; border: 1px dashed #d1d5db; }
.mini-stamp.free { background: #fef3c7; color: #92400e; border: none; font-size: 16px; }
.sello-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-sello {
  padding: 12px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  transition: opacity 0.15s, transform 0.1s;
}
.btn-sello:active { transform: scale(0.97); }
.btn-sello-add { background: #e85d00; color: #fff; }
.btn-sello-add:hover { opacity: 0.85; }
.btn-sello-canje { background: #fef3c7; color: #92400e; border: 1.5px solid #fcd34d; }
.btn-sello-canje:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-sello-quitar { background: #fff; color: #9ca3af; border: 1.5px solid #e5e7eb; }
.btn-sello-quitar:hover { border-color: #ef4444; color: #ef4444; }
.btn-sello-quitar:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-cancel-sel {
  margin-top: 10px; width: 100%; padding: 10px;
  font-size: 13px; color: #6b7280;
  border: 1px solid #e5e7eb; border-radius: 10px;
}

/* ══════════════════════════════════
   AVISOS
══════════════════════════════════ */
.avisos-list { display: flex; flex-direction: column; gap: 10px; }
.aviso-item {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  padding: 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.aviso-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: #fef3c7; display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.aviso-body { flex: 1; }
.aviso-title { font-size: 15px; font-weight: 600; color: #e85d00; }
.aviso-text { font-size: 13px; color: #6b7280; margin-top: 3px; line-height: 1.5; }
.aviso-date { font-size: 11px; color: #d1d5db; margin-top: 6px; }
.aviso-delete {
  color: #d1d5db; font-size: 16px; padding: 2px 6px;
  transition: color 0.15s;
}
.aviso-delete:hover { color: #ef4444; }

/* ══════════════════════════════════
   CLIENTE PORTAL
══════════════════════════════════ */
#screen-cliente { background: #f4f2ee; padding-bottom: 32px; }

.cli-hero {
  background: #e85d00;
  padding: 52px 24px 72px;
  position: relative; overflow: hidden;
}
.cli-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.15) 0%, transparent 60%);
}
.cli-hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
}
.cli-hero-logo-cluster-wrap { width: 100%; display: flex; justify-content: center; }
.cli-hero-greeting-row { width: 100%; text-align: center; }
.cli-hola {
  font-family: 'Rubik Dirt', cursive;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(20px, 6vw, 30px);
  color: #fff;
  letter-spacing: 0.3px;
}
.cli-hero-boxes {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 20px; flex-wrap: wrap; width: 100%;
}
.cli-hero-details {
  flex: 1 1 260px; max-width: 320px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.cli-hero-details:hover { background: rgba(255,255,255,0.16); }
.hero-box-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.hero-detail-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 12.5px; }
.hero-detail-lbl { color: rgba(255,255,255,0.55); }
.hero-detail-val { color: #fff; font-weight: 600; text-align: right; }
.hero-detail-edit-hint { display: block; margin-top: 8px; font-size: 11px; color: rgba(255,255,255,0.6); text-align: center; }

.cli-review-card {
  display: block; text-decoration: none;
  background: #fff; border: 1.5px solid rgba(0,0,0,0.15); border-radius: 10px;
  padding: 8px 10px; margin-top: 10px;
  text-align: center;
  transition: background 0.15s;
}
.cli-review-card:hover { background: #fafafa; }
.cli-review-title { font-size: 9.5px; font-weight: 800; letter-spacing: 0.3px; color: #1a1a1a; margin-bottom: 4px; }
.cli-review-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 3px; }
.cli-review-stars { color: #fbbc05; font-size: 12px; letter-spacing: 1px; }
.cli-review-count { font-size: 10px; font-weight: 600; color: #6b7280; }
.cli-review-google { font-family: Arial, sans-serif; font-size: 11px; font-weight: 600; color: #374151; }
.cli-review-google span { font-weight: 700; }
.cli-logout { position: absolute; top: 16px; right: 20px; z-index: 2; }

.cli-body {
  max-width: 480px; margin: 20px auto 0;
  padding: 0 16px;
  position: relative; z-index: 2;
}

.cli-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  margin-bottom: 16px;
}

.stamps-card { }
.stamps-header { display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.stamps-title { font-size: 32px; font-weight: 700; color: #e85d00; text-transform: uppercase; text-align: center; }
.stamps-count-badge {
  background: #e85d00; color: #fff;
  padding: 6px 14px; border-radius: 20px;
  font-size: 14px; font-weight: 700;
}

.stamps-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 14px;
}
.stamp-cell {
  aspect-ratio: 1; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1.5px dashed #e5e7eb;
  transition: transform 0.2s;
}
.stamp-cell.stamped {
  background: #e85d00; border-style: solid; border-color: #e85d00;
  animation: stampIn 0.25s ease;
}
.stamp-cell.free-slot { background: #fef9ee; border-style: solid; border-color: #fcd34d; }
.stamp-cell.free-earned { background: #ecfdf5; border-style: solid; border-color: #6ee7b7; }
@keyframes stampIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.stamp-emoji { font-size: 20px; }
.stamp-cell.stamped .stamp-emoji { filter: brightness(0) invert(1); font-size: 18px; }
.stamp-n { font-size: 10px; font-weight: 600; color: #d1d5db; margin-top: 2px; }
.stamp-cell.stamped .stamp-n { color: rgba(255,255,255,0.4); }
.stamp-cell.free-slot .stamp-n { color: #b45309; }

.stamps-progress-wrap { display: flex; align-items: center; gap: 10px; }
.stamps-progress-bar { flex: 1; height: 6px; background: #f3f4f6; border-radius: 99px; overflow: hidden; }
.stamps-progress-fill { height: 100%; background: #e85d00; border-radius: 99px; transition: width 0.4s ease; }
.stamps-progress-label { font-size: 12px; font-weight: 600; color: #6b7280; min-width: 30px; text-align: right; }

.redeem-banner {
  margin-top: 14px;
  background: #ecfdf5; border: 1.5px solid #6ee7b7;
  border-radius: 12px; padding: 12px 14px;
  font-size: 14px; font-weight: 600; color: #065f46;
  text-align: center;
}

.cli-section-title { font-size: 14px; font-weight: 700; color: #e85d00; margin-bottom: 10px; letter-spacing: -0.1px; }

.cli-avisos-list { display: flex; flex-direction: column; gap: 8px; }
.cli-aviso-item {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  padding: 14px; display: flex; gap: 12px; align-items: flex-start;
}
.cli-aviso-icon {
  width: 36px; height: 36px; border-radius: 10px; background: #fef3c7;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.cli-aviso-title { font-size: 14px; font-weight: 600; color: #e85d00; }
.cli-aviso-text { font-size: 13px; color: #6b7280; margin-top: 2px; line-height: 1.5; }

.cli-history-list { display: flex; flex-direction: column; gap: 8px; }
.cli-history-item {
  background: #fff; border-radius: 12px; border: 1px solid #e5e7eb;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.history-type-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dt-sello { background: #3b82f6; }
.dt-canje { background: #f59e0b; }
.history-label { flex: 1; font-size: 14px; color: #374151; }
.history-label strong { font-weight: 600; color: #e85d00; }
.history-ts { font-size: 11px; color: #9ca3af; }

/* ══════════════════════════════════
   MODAL
══════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,31,53,0.5); z-index: 200;
  align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; width: 100%; max-width: 480px;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 36px;
  position: relative;
  animation: slideUp 0.25s ease;
  max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-close {
  position: absolute; top: 16px; right: 18px;
  font-size: 14px; color: #9ca3af;
  width: 28px; height: 28px; border-radius: 50%;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #e5e7eb; }

.modal-h { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: #e85d00; margin-bottom: 16px; }

/* ══════════════════════════════════
   TOAST
══════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  background: #e85d00; color: #fff;
  padding: 11px 20px; border-radius: 99px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  animation: toastIn 0.2s ease, toastOut 0.3s ease 2.2s forwards;
}
.toast.success { background: #065f46; }
.toast.warning { background: #92400e; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px); } }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
  .modal-box { border-radius: 20px; }
  .emp-nav .nav-btn { flex-direction: row; gap: 10px; font-size: 16px; padding: 16px 12px; }
}

/* ══════════════════════════════════
   CLIENTE — NAV TABS
══════════════════════════════════ */
.cli-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  position: sticky; top: 0; z-index: 40;
}
.cli-nav-btn {
  flex: 1; padding: 16px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: #1a1a1a;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.cli-nav-btn.active { color: #e85d00; border-bottom-color: #e85d00; }
.cli-nav-sub { font-size: 25.5px; font-weight: 700; color: #9ca3af; line-height: 1.2; margin-top: 4px; text-transform: uppercase; }
.cli-nav-btn-contacto.active .cli-nav-sub { color: #e85d00; }

.cli-section { display: none; }
.cli-section.active { display: block; }

/* ══════════════════════════════════
   CLIENTE — DATOS PERSONALES
══════════════════════════════════ */
.cli-datos-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0;
}
.cli-edit-btn {
  font-size: 13px; font-weight: 500; color: #e85d00;
  padding: 6px 14px; border: 1.5px solid #e85d00;
  border-radius: 20px; transition: all 0.15s;
}
.cli-edit-btn:hover { background: #fff4ee; }

.datos-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  padding: 11px 0;
}
.datos-lbl {
  font-size: 12px; font-weight: 500; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.4px;
  flex-shrink: 0; min-width: 110px;
}
.datos-val {
  font-size: 14px; font-weight: 500; color: #1a1a1a;
  text-align: right; word-break: break-word;
}
.datos-sep { height: 1px; background: #f3f4f6; }
.datos-edit-btns { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }

/* ══════════════════════════════════
   CLIENTE — FAMILIAS ARTÍCULOS
══════════════════════════════════ */
.familia-card {
  background: #fff; border-radius: 16px; border: 1px solid #e5e7eb;
  margin-bottom: 14px; overflow: hidden;
}
.familia-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
}
.familia-header.toner { background: #fff4ee; border-bottom: 1px solid #fde8d8; }
.familia-header.cartucho { background: #f0f9ff; border-bottom: 1px solid #dbeafe; }
.familia-header.recarga { background: #f0fdf4; border-bottom: 1px solid #bbf7d0; }
.familia-header.multipack { background: #faf5ff; border-bottom: 1px solid #e9d5ff; }
.familia-icon { font-size: 24px; width: 40px; text-align: center; }
.familia-title { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.familia-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }
.familia-body { padding: 6px 0; }

.articulo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid #f9fafb;
}
.articulo-item:last-child { border-bottom: none; }
.articulo-marca {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; flex-shrink: 0; letter-spacing: 0.3px;
}
.articulo-marca.hp     { background: #dbeafe; color: #1e40af; }
.articulo-marca.epson  { background: #fce7f3; color: #9d174d; }
.articulo-marca.canon  { background: #fee2e2; color: #991b1b; }
.articulo-marca.brother{ background: #ede9fe; color: #5b21b6; }
.articulo-marca.samsung{ background: #fef9c3; color: #713f12; }
.articulo-marca.lexmark{ background: #f3f4f6; color: #374151; }
.articulo-marca.negro  { background: #1a1a1a; color: #fff; }
.articulo-marca.color  { background: linear-gradient(90deg,#60a5fa,#f472b6,#facc15); color: #fff; font-size: 9px; }
.articulo-marca.foto   { background: #ecfdf5; color: #065f46; }
.articulo-desc { font-size: 13px; color: #374151; }

/* ══════════════════════════════════
   CONTACTO
══════════════════════════════════ */
.contacto-hero {
  background: #e85d00;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 14px;
}
.contacto-logo-wrap {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.contacto-hero-name {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 700; color: #fff;
  letter-spacing: -0.3px;
}
.contacto-hero-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 3px; }

.contacto-card { padding: 0; overflow: hidden; }

.contacto-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  transition: background 0.12s;
}
.contacto-row:hover { background: #fdf7f4; }

.contacto-icon-wrap {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contacto-icon-wrap.dir      { background: #fff4ee; color: #e85d00; }
.contacto-icon-wrap.tel      { background: #eff6ff; color: #2563eb; }
.contacto-icon-wrap.whatsapp { background: #f0fdf4; color: #16a34a; }
.contacto-icon-wrap.email    { background: #fdf4ff; color: #9333ea; }

.contacto-info { flex: 1; }
.contacto-lbl  { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.4px; }
.contacto-val  { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-top: 1px; }
.contacto-val2 { font-size: 12px; color: #6b7280; margin-top: 1px; }
.contacto-arrow { font-size: 20px; color: #d1d5db; }
.contacto-sep  { height: 1px; background: #f3f4f6; margin: 0 16px; }

.horario-card { margin-top: 14px; }
.horario-header {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 12px;
}
.horario-title { font-size: 30px; font-weight: 700; color: #1a1a1a; }
.horario-body { text-align: center; }
.horario-dias { font-size: 26px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.horario-franjas { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.horario-franja {
  background: #fff4ee; color: #e85d00;
  font-size: 26px; font-weight: 700;
  padding: 5px 12px; border-radius: 20px;
}
.horario-sep-h { color: #d1d5db; font-size: 32px; }
.horario-cerrado {
  font-size: 12px; color: #9ca3af;
  padding: 8px 12px; background: #f9fafb;
  border-radius: 8px; margin-top: 4px;
}

/* ══════════════════════════════════
   SELLO POR CATEGORÍA
══════════════════════════════════ */
.cat-sello-block {
  border-radius: 14px;
  overflow: hidden;
}
.cat-sello-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
}
.mini-stamp.free-ready { background: #fef3c7; border-color: #fcd34d; color: #92400e; }

/* ══════════════════════════════════
   BÚSQUEDA GLOBAL
══════════════════════════════════ */
.emp-header-search { flex: 1; max-width: 220px; position: relative; margin: 0 12px; }
.emp-header-search input {
  width: 100%; padding: 7px 12px; border-radius: 20px;
  border: none; background: rgba(255,255,255,0.15);
  color: #fff; font-size: 13px; font-family: inherit; outline: none;
}
.emp-header-search input::placeholder { color: rgba(255,255,255,0.6); }
.emp-header-search input:focus { background: rgba(255,255,255,0.25); }
.global-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100; overflow: hidden;
}
.global-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; transition: background 0.1s;
}
.global-result-item:hover { background: #f9fafb; }

/* ══════════════════════════════════
   EXPORTAR BTN
══════════════════════════════════ */
.btn-export {
  display: flex; align-items: center; gap: 6px;
  background: #f0fdf4; color: #16a34a;
  border: 1.5px solid #bbf7d0;
  padding: 8px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.btn-export:hover { background: #dcfce7; }

/* ══════════════════════════════════
   RECUPERACIÓN CONTRASEÑA
══════════════════════════════════ */
.btn-link {
  display: block; width: 100%; text-align: center;
  font-size: 13px; color: #e85d00; font-weight: 500;
  margin-top: 8px; padding: 4px; cursor: pointer;
  background: none; border: none; font-family: inherit;
}
.btn-link:hover { text-decoration: underline; }

/* ══════════════════════════════════
   CANJES BADGE CLIENTE
══════════════════════════════════ */
.cli-canjes-badge {
  margin-top: 12px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: #166534; text-align: center;
}
.cli-canjes-badge strong { font-weight: 700; }
