/* ============================================================
   JULNIE SHOP · AJUSTES FINOS DE DISEÑO
   Logo, centrado, botones con icono, chat y pagos
   ============================================================ */

/* ---------- LOGO SIEMPRE PERFECTO (redondo, nunca estirado) ---------- */
.brand img, aside .brand img, .auth-card img.logo, .footlogo, .hero-logo{
  object-fit:contain; background:#fff; border-radius:50%;
}
header.site .brand{display:flex;align-items:center;gap:12px}
header.site .brand img{
  width:60px;height:60px;min-width:60px;padding:4px;
  box-shadow:0 6px 18px rgba(0,0,0,.28), 0 0 0 2px var(--purple-soft);
}
header.site .brand span{display:flex;flex-direction:column;justify-content:center;line-height:1.05}
header.site .brand b{font-size:19px;letter-spacing:.2px}
header.site .brand small{font-size:10.5px;letter-spacing:1.6px;text-transform:uppercase;opacity:.85}
.hero-logo{width:140px;height:140px;padding:8px;margin:0 auto 16px;
  box-shadow:0 18px 44px rgba(0,0,0,.42), 0 0 0 3px rgba(255,255,255,.35)}
.footlogo{width:74px;height:74px;padding:5px;margin:0 auto 12px}
aside .brand img{width:48px;height:48px;min-width:48px;padding:3px}
.auth-card img.logo{width:118px;height:118px;padding:6px;display:block}

/* ---------- TODO BIEN CENTRADO ---------- */
.hero, .hero *{text-align:center}
.hero .btnrow, .center-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center}
.sechead{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;margin-bottom:18px}
.sechead h2{margin:0}
.sechead .line{width:78px;height:4px;border-radius:99px;background:linear-gradient(90deg,var(--purple),var(--sky))}
.card-p .info, .prodcard .info{text-align:center}
.card-p .info .prices, .prodcard .prices{justify-content:center}
.card-p .info .sizes, .card-p .info .colors{justify-content:center}
.deps{justify-items:center}
.dep{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
footer.site .wrap{text-align:center}
footer.site .fcol{display:flex;flex-direction:column;align-items:center;text-align:center}
.pager{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap}
.empty{text-align:center;padding:50px 16px}
.stat, .stat *{text-align:center}
.stat{display:flex;flex-direction:column;align-items:center;justify-content:center}
.toolbar form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
table th, table td{vertical-align:middle}
table th{text-align:center}
table td:first-child, table th:first-child{text-align:center}

/* ---------- BOTONES CON ICONO ---------- */
.btn{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;text-align:center;
  white-space:nowrap;line-height:1.1}
.btn .ico{font-size:1.05em;line-height:1}
.btn-block{width:100%}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn-ghost{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.3)}
.btn-gold{background:linear-gradient(135deg,#B4884A,#E3C567);color:#2A1E06;font-weight:700}
@media(max-width:560px){
  .hero .btnrow .btn, .center-row .btn{flex:1 1 100%}
  header.site .brand img{width:52px;height:52px;min-width:52px}
}

/* ---------- PAGOS ---------- */
.paylist{display:grid;gap:10px;margin-top:8px}
.payopt{display:flex;align-items:center;gap:12px;padding:13px 15px;border:2px solid var(--line);
  border-radius:14px;cursor:pointer;background:#fff;transition:.15s;text-align:left}
.payopt:hover{border-color:var(--purple-soft);transform:translateY(-1px)}
.payopt input{width:auto;margin:0;accent-color:var(--purple)}
.payopt .pi{font-size:24px;width:34px;text-align:center}
.payopt b{display:block;font-size:14px}
.payopt small{color:var(--muted);font-size:12px}
.payopt.on{border-color:var(--purple);background:linear-gradient(90deg,rgba(124,58,237,.07),transparent)}
.paybox{margin-top:14px;padding:16px;border-radius:14px;background:var(--bg-soft,#F5F7FF);border:1px dashed var(--purple-soft)}
.paybadges{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:12px;opacity:.9}
.paybadges span{font-size:11px;font-weight:700;padding:5px 11px;border-radius:99px;background:#fff;
  border:1px solid var(--line);color:var(--muted)}

/* ---------- CHAT BOT ---------- */
.chatfab{position:fixed;right:16px;bottom:96px;z-index:70;width:60px;height:60px;border-radius:50%;border:0;
  cursor:pointer;font-size:27px;color:#fff;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--purple-deep),var(--purple) 60%,var(--blue));
  box-shadow:0 12px 30px rgba(0,0,0,.38);animation:cpulse 2.8s infinite}
@keyframes cpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
.chatfab .dot{position:absolute;top:2px;right:2px;width:14px;height:14px;border-radius:50%;
  background:var(--sky);border:2px solid #fff}
.chatwin{position:fixed;right:16px;bottom:96px;z-index:71;width:min(370px,calc(100% - 32px));
  height:min(540px,calc(100vh - 140px));background:#fff;border-radius:22px;overflow:hidden;display:none;
  flex-direction:column;box-shadow:0 26px 70px rgba(0,0,0,.45)}
.chatwin.on{display:flex}
.chathead{padding:13px 15px;display:flex;align-items:center;gap:10px;color:#fff;
  background:linear-gradient(135deg,var(--purple-deep),var(--purple) 55%,var(--blue))}
.chathead img{width:40px;height:40px;border-radius:50%;background:#fff;padding:2px;object-fit:contain}
.chathead b{font-size:14px;display:block;line-height:1.15}
.chathead small{font-size:11px;opacity:.9;display:flex;align-items:center;gap:5px}
.chathead small i{width:7px;height:7px;border-radius:50%;background:#4ADE80;display:inline-block;font-style:normal}
.chathead .x{margin-left:auto;background:none;border:0;color:#fff;font-size:20px;cursor:pointer}
.chatbody{flex:1;overflow-y:auto;padding:14px;background:var(--bg-soft,#F5F7FF);display:flex;flex-direction:column;gap:9px}
.msg{max-width:84%;padding:10px 13px;border-radius:16px;font-size:13.5px;line-height:1.45;white-space:pre-wrap}
.msg.bot{background:#fff;border:1px solid var(--line);border-bottom-left-radius:5px;align-self:flex-start}
.msg.me{background:linear-gradient(135deg,var(--purple),var(--blue));color:#fff;
  border-bottom-right-radius:5px;align-self:flex-end}
.msg.typing{display:flex;gap:4px;align-items:center}
.msg.typing i{width:7px;height:7px;border-radius:50%;background:var(--purple-soft);display:block;
  animation:bounce 1.1s infinite;font-style:normal}
.msg.typing i:nth-child(2){animation-delay:.15s}.msg.typing i:nth-child(3){animation-delay:.3s}
@keyframes bounce{0%,80%,100%{transform:translateY(0);opacity:.4}40%{transform:translateY(-5px);opacity:1}}
.chatprod{display:flex;gap:9px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;
  align-items:center;text-align:left;max-width:92%}
.chatprod img{width:52px;height:52px;border-radius:10px;object-fit:cover}
.chatprod b{font-size:12.5px;display:block}
.chatprod span{font-size:13px;font-weight:800;color:var(--purple)}
.chips{display:flex;flex-wrap:wrap;gap:6px;padding:9px 12px;background:#fff;border-top:1px solid var(--line)}
.chips button{border:1px solid var(--purple-soft);background:#fff;color:var(--purple);border-radius:99px;
  padding:6px 12px;font-size:11.5px;font-weight:600;cursor:pointer;font-family:inherit}
.chips button:hover{background:var(--purple);color:#fff}
.chatform{display:flex;gap:7px;padding:10px;border-top:1px solid var(--line);background:#fff}
.chatform input{flex:1;border:1px solid var(--line);border-radius:99px;padding:11px 15px;font-family:inherit;font-size:13.5px;outline:0}
.chatform input:focus{border-color:var(--purple)}
.chatform button{width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;color:#fff;font-size:17px;
  background:linear-gradient(135deg,var(--purple),var(--blue))}
@media(max-width:560px){.chatwin{right:8px;left:8px;width:auto;bottom:88px;height:min(500px,calc(100vh - 130px))}
  .chatfab{right:12px;bottom:88px;width:54px;height:54px;font-size:24px}}

/* ---------- SELECTOR DE TEMAS (panel) ---------- */
.themegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:12px;margin-top:10px}
.themecard{border:2px solid var(--line);border-radius:16px;padding:11px;cursor:pointer;background:#fff;transition:.15s;text-align:center}
.themecard:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.themecard.on{border-color:var(--purple);box-shadow:0 0 0 4px rgba(124,58,237,.16)}
.themecard .swatch{height:52px;border-radius:11px;margin-bottom:9px;display:flex;overflow:hidden}
.themecard .swatch i{flex:1}
.themecard b{font-size:12.5px;display:block;line-height:1.25}
.themecard input{display:none}

/* ---------- PORTADA CENTRADA ---------- */
.hero .wrap{display:flex!important;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:44px 0 52px}
.hero .wrap > div{order:2;max-width:760px;width:100%}
.hero .hero-logo{order:1}
.hero .trust{display:flex;flex-wrap:wrap;gap:10px 18px;justify-content:center;margin-top:20px}
.hero h1{margin-top:12px}
.sechead a{font-size:13px;font-weight:600;color:var(--purple);display:inline-flex;align-items:center;gap:5px}
.deal-banner{text-align:center;display:flex;flex-direction:column;align-items:center}
.grid{justify-items:stretch}
