/* ═══════════════════════════════════════════════════════════════════
   LISTA MAYORISTA ÁRABE · STYLES.CSS
   Página pública dinámica
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --gold:   #C9A84C;
  --gold2:  #E2C97E;
  --gold3:  rgba(201,168,76,.12);
  --white:  #F5F0E8;
  --muted:  rgba(245,240,232,.45);
  --dark:   #0D0D12;
  --dark2:  #12121a;
  --dark3:  #1a1a26;
  --border: rgba(201,168,76,.18);
  --green:  rgba(74,222,128,.55);
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── LOADING / ERROR ─────────────────────────────────────────────── */
#app-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 1px;
}
.loading-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.3;transform:scale(.8)} 50%{opacity:1;transform:scale(1.2)} }

/* ── PÁGINAS ─────────────────────────────────────────────────────── */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 32px;
  position: relative;
}

.top-line {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold2), var(--gold), transparent);
  margin-bottom: 0;
}

/* ── INTRO / PORTADA ─────────────────────────────────────────────── */
.intro-body {
  padding: 36px 24px 28px;
  background: linear-gradient(160deg, #0f0f18 0%, #12121e 50%, #0a0a11 100%);
  border-bottom: 1px solid var(--border);
}

.intro-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.25);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold2);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: livepulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(74,222,128,.7);
}
@keyframes livepulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.intro-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 14vw, 80px);
  line-height: .9;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 16px;
}
.intro-title span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-chip {
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.22);
  color: var(--gold2);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.how-card {
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.how-card-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.how-card-text {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}

.update-date {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(201,168,76,.4);
  text-align: right;
  margin-top: 4px;
}

/* ── FOOTER DE PÁGINA ────────────────────────────────────────────── */
.fb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.fi {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(201,168,76,.4);
  text-transform: uppercase;
}

/* ── BRAND PAGE ──────────────────────────────────────────────────── */
.brand-page {
  padding: 28px 24px 8px;
}

.brand-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(201,168,76,.5);
  margin-bottom: 10px;
}

.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 12vw, 64px);
  line-height: .9;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 8px;
}
.brand-name span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
}

.brand-count {
  display: inline-block;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.gold-div {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold), transparent);
  margin-bottom: 4px;
  opacity: .4;
}

/* ── TABLA DE PRODUCTOS ──────────────────────────────────────────── */
.ptable {
  width: 100%;
  border-collapse: collapse;
}

.ptable thead tr th {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(201,168,76,.4);
  padding: 8px 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(201,168,76,.12);
}
.ptable thead tr th:last-child { text-align: right; }

.pr {
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.pr:hover { background: rgba(201,168,76,.04); }
.pr:last-child { border-bottom: none; }

.ptd-img {
  width: 68px;
  padding: 6px 4px 6px 8px !important;
  vertical-align: middle;
}

.pimg {
  width: 64px; height: 78px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.pimg img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.pimg.img-error {
  background: var(--dark3);
  border-color: var(--border);
}

.ptable td {
  padding: 10px 8px;
  vertical-align: middle;
}
.ptable td:last-child { text-align: right; }

.pname {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
  letter-spacing: .3px;
}

.pml {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .5px;
}

.pprice {
  font-size: 17px;
  font-weight: 800;
  color: var(--gold2);
  letter-spacing: .5px;
  line-height: 1.2;
}

.ppsub {
  font-size: 10px;
  font-weight: 600;
  color: rgba(201,168,76,.55);
  letter-spacing: .3px;
  margin-top: 2px;
}

/* ── CONDICIONES ─────────────────────────────────────────────────── */
.cond-page-body {
  padding: 36px 24px 28px;
  background: linear-gradient(160deg, #0f0f18 0%, #12121e 50%, #0a0a11 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cond-section-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.cond-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  line-height: .9;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 10px;
}

.cond-section-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cond-grid {
  display: grid;
  gap: 12px;
}

.cond-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color .2s, background .2s;
}
.cond-card:hover { background: rgba(255,255,255,.05); }

.cond-card.gold {
  border-left: 3px solid rgba(201,168,76,.55);
  background: rgba(201,168,76,.04);
}
.cond-card.green {
  border-left: 3px solid rgba(74,222,128,.4);
  background: rgba(74,222,128,.03);
}

.cond-ico {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.cond-card.gold .cond-ico,
.cond-card.green .cond-ico { font-size: 26px; }

.cond-body { flex: 1; min-width: 0; }

.cond-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: .2px;
}
.cond-card.gold .cond-title,
.cond-card.green .cond-title { font-size: 14px; }
.cond-title span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cond-text {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.cond-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(201,168,76,.1);
  color: var(--gold2);
  border: 1px solid rgba(201,168,76,.2);
}
.cond-badge.g {
  background: rgba(74,222,128,.08);
  color: #4ade80;
  border-color: rgba(74,222,128,.2);
}

/* ── CTA FINAL ───────────────────────────────────────────────────── */
.cta-body {
  padding: 40px 24px 36px;
  background: linear-gradient(160deg, #0a0a11 0%, #0f0f1a 60%, #08080f 100%);
  text-align: center;
}

.cta-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #4ade80;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cta-title-block { margin-bottom: 20px; }

.cta-pre {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.cta-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 12vw, 52px);
  line-height: .88;
  letter-spacing: 3px;
  color: var(--white);
}
.cta-main span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA steps */
.cta-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 32px;
  text-align: left;
}

.cta-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}
.cta-step:first-child { border-radius: 10px 10px 4px 4px; }
.cta-step:last-child  { border-radius: 4px 4px 10px 10px; }
.cta-step:only-child  { border-radius: 10px; }

.cs-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
  color: #0a0a0f;
  flex-shrink: 0;
}

.cs-txt strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2px;
}
.cs-txt span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}

/* WhatsApp button */
.cta-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #1a7a3a 0%, #1fad4f 50%, #22c55e 100%);
  border-radius: 16px;
  padding: 18px 24px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(34,197,94,.25);
  transition: transform .15s, box-shadow .15s;
}
.cta-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(34,197,94,.35);
}
.cta-wa-btn:active { transform: translateY(0); }

.wa-ico {
  font-size: 28px;
  flex-shrink: 0;
}

.wa-txt { text-align: left; }
.wa-main {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.wa-num {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: .8;
  margin-top: 2px;
}

.wa-arrow {
  font-size: 20px;
  margin-left: auto;
  opacity: .7;
}

.cta-direct-note {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.3);
  letter-spacing: .5px;
  margin-bottom: 28px;
}

.cta-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 24px 0;
}

.cta-firma {
  padding-top: 4px;
}
.cf-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 4px;
}
.cf-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(201,168,76,.5);
  margin-bottom: 10px;
}
.cf-frase {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (min-width: 540px) {
  .page { max-width: 540px; }
}
@media (min-width: 680px) {
  .page { max-width: 620px; }
  .intro-body, .brand-page, .cond-page-body, .cta-body { padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 900px) {
  .page { max-width: 760px; }
  .ptable thead tr th, .pname { font-size: 14px; }
}

@media (max-width: 360px) {
  .intro-title { font-size: 46px; }
  .pprice { font-size: 15px; }
  .pname { font-size: 12px; }
  .ptd-img { width: 56px; }
  .pimg { width: 52px; height: 66px; }
}
