
.hb-card-app{
  --hb-primary:#0f5c3b;
  --hb-primary-dark:#0a452b;
  --hb-accent:#d7b46a;
  --hb-surface:#ffffff;
  --hb-surface-soft:#f7faf8;
  --hb-text:#17212b;
  --hb-muted:#68727d;
  --hb-line:#e7ebef;
  --hb-shadow:0 20px 50px rgba(11,27,42,.10);
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:24px 16px;
  box-sizing:border-box;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--hb-text);
}
.hb-card-app *{box-sizing:border-box}
.hb-card-shell{
  width:100%;
  background:linear-gradient(180deg,#ffffff 0%,var(--hb-surface-soft) 100%);
  border:1px solid var(--hb-line);
  border-radius:28px;
  padding:28px;
  box-shadow:var(--hb-shadow);
  overflow:hidden;
}
.hb-card-header{margin-bottom:24px}
.hb-card-kicker{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(15,92,59,.08);
  color:var(--hb-primary);
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.hb-card-header h3{
  margin:14px 0 10px;
  font-size:32px;
  line-height:1.08;
  color:#102030;
}
.hb-card-header p{
  margin:0;
  color:var(--hb-muted);
  font-size:16px;
  max-width:760px;
}
.hb-cards-grid{display:grid;grid-template-columns:1fr;gap:24px}

/* Layout estable: la tarjeta y las métricas tienen columnas independientes */
.hb-card-wrap{
  display:grid;
  grid-template-columns:380px minmax(0,1fr);
  gap:32px;
  align-items:start;
  width:100%;
  padding:26px;
  background:#fff;
  border:1px solid var(--hb-line);
  border-radius:24px;
  box-shadow:0 12px 30px rgba(11,27,42,.06);
}
.hb-card-visual{
  width:100%;
  max-width:380px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}
.hb-card-data{
  width:100%;
  min-width:0;
}

/* V1.4: sin flip 3D. Se cambia de cara con opacity para evitar que Elementor/tema desplace la tarjeta */
.hb-flip-card{
  position:relative !important;
  display:block !important;
  width:100% !important;
  max-width:380px !important;
  aspect-ratio:1.62/1 !important;
  height:auto !important;
  min-height:220px;
  cursor:pointer;
  outline:none;
  isolation:isolate;
  perspective:none !important;
  transform:none !important;
  overflow:visible;
}
.hb-flip-inner{
  position:relative !important;
  width:100% !important;
  height:100% !important;
  min-height:220px;
  transform:none !important;
  transform-style:flat !important;
  transition:none !important;
}
.hb-card-face{
  position:absolute !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  height:100% !important;
  min-height:220px;
  margin:0 !important;
  border-radius:22px;
  overflow:hidden;
  box-sizing:border-box;
  box-shadow:0 18px 35px rgba(9,17,31,.22);
  backface-visibility:visible !important;
  -webkit-backface-visibility:visible !important;
  transform:none !important;
  transition:opacity .24s ease, visibility .24s ease !important;
}
.hb-card-front{z-index:2;opacity:1;visibility:visible}
.hb-card-back{z-index:1;opacity:0;visibility:hidden}
.hb-flip-card:hover .hb-card-front,
.hb-flip-card.is-flipped .hb-card-front,
.hb-flip-card:focus .hb-card-front{opacity:0;visibility:hidden}
.hb-flip-card:hover .hb-card-back,
.hb-flip-card.is-flipped .hb-card-back,
.hb-flip-card:focus .hb-card-back{opacity:1;visibility:visible}
.hb-card-front,.hb-card-back{color:#fff;position:relative}
.hb-card-theme-visa{background:linear-gradient(135deg,#111827 0%,#1e293b 45%,#155e87 100%)}
.hb-card-theme-mastercard{background:linear-gradient(135deg,#171717 0%,#372014 52%,#702000 100%)}
.hb-card-theme-amex{background:linear-gradient(135deg,#0f172a 0%,#14532d 46%,#0f766e 100%)}
.hb-card-theme-diners{background:linear-gradient(135deg,#101828 0%,#1e3a8a 48%,#0ea5e9 100%)}
.hb-card-theme-discover{background:linear-gradient(135deg,#18181b 0%,#7c2d12 52%,#ea580c 100%)}
.hb-card-front::before,.hb-card-back::before{
  content:"";
  position:absolute;
  inset:auto -18% -42% auto;
  width:230px;
  height:230px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.18) 0%,rgba(255,255,255,0) 70%);
}
.hb-card-front::after{
  content:"";
  position:absolute;
  left:-18%;
  top:-40%;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.08) 0%,rgba(255,255,255,0) 70%);
}
.hb-card-front{padding:24px;display:flex;flex-direction:column}
.hb-card-front-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;position:relative;z-index:2}
.hb-card-credit-title{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.hb-card-tier{display:inline-block;margin-top:6px;font-size:13px;font-weight:600;color:#fff}
.hb-card-brand{font-weight:800;font-size:26px;letter-spacing:.02em;text-shadow:0 1px 2px rgba(0,0,0,.18)}
.hb-brand-visa{color:#63a4ff}
.hb-brand-mastercard{color:#ffb36a}
.hb-brand-amex{color:#8ff0d2;font-size:18px;text-align:right}
.hb-brand-diners{color:#93c5fd;font-size:18px;text-align:right}
.hb-brand-discover{color:#fdba74;font-size:21px;text-align:right}
.hb-chip{width:48px;height:34px;background:linear-gradient(135deg,#f8e39a,#d39d32);border-radius:10px;margin-top:30px;box-shadow:inset 0 0 0 1px rgba(90,58,0,.25),0 8px 18px rgba(0,0,0,.18);position:relative;z-index:2}
.hb-card-number{margin-top:28px;font-size:26px;line-height:1.15;letter-spacing:2px;font-weight:500;color:#fff;white-space:nowrap;position:relative;z-index:2}
.hb-card-meta{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;position:relative;z-index:2}
.hb-meta-label{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.66);margin-bottom:8px}
.hb-card-name{font-size:15px;font-weight:700;letter-spacing:.05em;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.hb-card-expiry{font-size:18px;font-weight:700;text-align:right}
.hb-card-back{padding:30px 0 22px;display:flex;flex-direction:column}
.hb-magstripe{
  height:8px;
  width:calc(100% - 52px);
  margin:4px 26px 30px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(215,180,106,.95),rgba(255,255,255,.35),rgba(215,180,106,.65));
  box-shadow:0 10px 24px rgba(0,0,0,.10);
}
.hb-back-panel{padding:0 26px}
.hb-back-label{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.72);margin-bottom:8px}
.hb-signature{height:42px;background:linear-gradient(135deg,#fbfbfb,#dedede);margin-left:62px;color:#101828;font-weight:800;padding:10px 12px;border-radius:8px;display:flex;align-items:center;justify-content:flex-end;letter-spacing:.15em}
.hb-valid{padding:18px 26px 0;font-size:12px;font-weight:600;color:rgba(255,255,255,.78);display:flex;align-items:center;justify-content:space-between;gap:10px}
.hb-valid strong{display:block;font-size:18px;color:#fff}
.hb-card-back-note{padding:18px 26px 0;font-size:12px;line-height:1.5;color:rgba(255,255,255,.72)}
.hb-card-hint{width:100%;max-width:380px;margin-top:14px;font-size:13px;color:var(--hb-muted);text-align:center}
.hb-stats-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  width:100%;
}
.hb-stat-card{
  min-height:168px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbf9 100%);
  color:var(--hb-text);
  border:1px solid var(--hb-line);
  border-radius:20px;
  padding:20px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
  overflow:hidden;
}
.hb-stat-icon{
  width:48px;
  height:48px;
  border-radius:15px;
  background:rgba(15,92,59,.10);
  color:var(--hb-primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  margin-bottom:18px;
  flex:0 0 auto;
}
.hb-stat-card small{display:block;font-size:14px;line-height:1.45;color:var(--hb-muted);margin-bottom:12px}
.hb-stat-card strong{display:block;font-size:22px;line-height:1.2;color:#0f1f2f;word-break:normal;overflow-wrap:break-word}
.hb-auth-wrap{max-width:820px;margin:20px auto;display:grid;grid-template-columns:1fr 1fr;gap:18px}
.hb-auth-box{background:#fff;border:1px solid #e4e8ed;border-radius:18px;padding:24px;box-shadow:0 8px 22px rgba(0,0,0,.05);text-align:left}
.hb-auth-box h3{margin:0 0 15px;font-size:24px;color:#102030}
.hb-auth-box input{width:100%;margin-bottom:12px;padding:13px 14px;border:1px solid #d7dde4;border-radius:10px}
.hb-auth-box button{width:100%;background:linear-gradient(135deg,var(--hb-primary) 0%,var(--hb-primary-dark) 100%);color:#fff;border:none;border-radius:10px;padding:13px;font-weight:700;cursor:pointer}
.hb-card-message,.hb-card-error{max-width:100%;margin:18px auto 0;padding:16px 18px;border-radius:12px;background:#f4f7f5;border:1px solid #dde6df;color:#21303f}
.hb-card-error{background:#fff0f0;color:#8a1f1f;border-color:#f1c8c8}

/* Tablet */
@media(max-width:1080px){
  .hb-card-wrap{
    grid-template-columns:1fr;
    gap:24px;
  }
  .hb-card-visual{
    max-width:420px;
    margin:0 auto;
  }
  .hb-flip-card{
    max-width:420px !important;
  }
  .hb-stats-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* Mobile */
@media(max-width:720px){
  .hb-card-app{padding:16px 10px}
  .hb-card-shell{padding:20px;border-radius:22px}
  .hb-card-header h3{font-size:26px}
  .hb-card-header p{font-size:14px}
  .hb-card-wrap{padding:18px;border-radius:20px}
  .hb-stats-grid{grid-template-columns:1fr;gap:12px}
  .hb-stat-card{min-height:auto;padding:18px}
  .hb-auth-wrap{grid-template-columns:1fr}
}
@media(max-width:480px){
  .hb-card-shell{padding:14px;border-radius:18px}
  .hb-card-wrap{padding:14px}
  .hb-flip-card{min-height:198px}
  .hb-flip-inner,.hb-card-face{min-height:198px}
  .hb-card-front{padding:18px}
  .hb-card-back{padding-top:22px}
  .hb-card-brand{font-size:22px}
  .hb-chip{width:42px;height:30px;margin-top:22px}
  .hb-card-number{font-size:20px;letter-spacing:1px;margin-top:22px}
  .hb-card-name{font-size:12px;max-width:145px}
  .hb-card-expiry{font-size:15px}
  .hb-signature{margin-left:35px}
  .hb-valid,.hb-back-panel,.hb-card-back-note{padding-left:18px;padding-right:18px}
}


/* Ajustes v1.5: reverso más limpio, sin franja negra pesada */
.hb-card-app .hb-card-back .hb-back-panel{
  margin-top:2px;
}
.hb-card-app .hb-card-back .hb-back-label{
  color:rgba(255,255,255,.78);
}
.hb-card-app .hb-card-back .hb-signature{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 8px 18px rgba(0,0,0,.10);
}
.hb-card-app .hb-card-back-note{
  color:rgba(255,255,255,.78);
}


/* Fix v1.7 responsive móvil: evita que la tarjeta se corte */
@media(max-width:720px){
  .hb-card-app{
    width:100% !important;
    max-width:100% !important;
    padding:12px 8px !important;
    overflow-x:hidden !important;
  }

  .hb-card-shell{
    width:100% !important;
    max-width:100% !important;
    padding:14px !important;
    border-radius:18px !important;
    overflow:visible !important;
  }

  .hb-card-wrap{
    width:100% !important;
    max-width:100% !important;
    display:block !important;
    padding:12px !important;
    border-radius:18px !important;
    overflow:visible !important;
  }

  .hb-card-visual{
    width:100% !important;
    max-width:100% !important;
    align-items:center !important;
    overflow:visible !important;
  }

  .hb-flip-card{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    aspect-ratio:1.586 / 1 !important;
    min-height:0 !important;
    height:auto !important;
  }

  .hb-flip-inner,
  .hb-card-face{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    height:100% !important;
  }

  .hb-card-front,
  .hb-card-back{
    padding:clamp(14px, 4.8vw, 20px) !important;
  }

  .hb-card-back{
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .hb-magstripe{
    width:calc(100% - 36px) !important;
    margin:4px 18px 22px !important;
  }

  .hb-back-panel,
  .hb-valid,
  .hb-card-back-note{
    padding-left:18px !important;
    padding-right:18px !important;
  }

  .hb-signature{
    margin-left:0 !important;
    width:100% !important;
  }

  .hb-card-number{
    font-size:clamp(16px, 5.7vw, 24px) !important;
    letter-spacing:clamp(.3px, .35vw, 1.4px) !important;
    white-space:nowrap !important;
    margin-top:clamp(18px, 6vw, 26px) !important;
  }

  .hb-card-brand{
    font-size:clamp(18px, 6vw, 24px) !important;
    max-width:42% !important;
    line-height:1.1 !important;
    text-align:right !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .hb-brand-amex,
  .hb-brand-diners,
  .hb-brand-discover{
    font-size:clamp(13px, 4.2vw, 18px) !important;
  }

  .hb-card-credit-title{
    font-size:clamp(10px, 3.4vw, 12px) !important;
  }

  .hb-card-tier{
    font-size:clamp(11px, 3.5vw, 13px) !important;
  }

  .hb-chip{
    width:clamp(36px, 12vw, 46px) !important;
    height:clamp(26px, 8.5vw, 32px) !important;
    margin-top:clamp(18px, 6vw, 28px) !important;
  }

  .hb-card-meta{
    gap:8px !important;
  }

  .hb-card-name{
    max-width:55vw !important;
    font-size:clamp(11px, 3.7vw, 14px) !important;
  }

  .hb-card-expiry{
    font-size:clamp(13px, 4.2vw, 16px) !important;
  }

  .hb-meta-label{
    font-size:clamp(8px, 2.8vw, 10px) !important;
    margin-bottom:5px !important;
  }

  .hb-card-hint{
    width:100% !important;
    max-width:100% !important;
    font-size:12px !important;
    margin-top:10px !important;
  }

  .hb-card-data{
    margin-top:16px !important;
  }

  .hb-stats-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .hb-stat-card{
    min-height:auto !important;
    padding:16px !important;
    border-radius:16px !important;
  }

  .hb-stat-icon{
    width:42px !important;
    height:42px !important;
    margin-bottom:12px !important;
  }

  .hb-stat-card strong{
    font-size:22px !important;
  }
}

@media(max-width:380px){
  .hb-card-shell{
    padding:10px !important;
  }

  .hb-card-wrap{
    padding:10px !important;
  }

  .hb-card-front,
  .hb-card-back{
    border-radius:18px !important;
  }

  .hb-card-number{
    font-size:clamp(15px, 5.4vw, 20px) !important;
    letter-spacing:.2px !important;
  }

  .hb-card-name{
    max-width:50vw !important;
  }
}


/* Movimientos v1.8 */
.hb-movements-section{
  margin-top:22px;
  padding:20px;
  background:#fff;
  border:1px solid var(--hb-line);
  border-radius:20px;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.hb-movements-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.hb-movements-header span{
  display:block;
  font-size:12px;
  color:var(--hb-primary);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:4px;
}
.hb-movements-header h4{
  margin:0;
  font-size:20px;
  line-height:1.2;
  color:#102030;
}
.hb-empty-movements{
  padding:16px;
  border-radius:14px;
  background:#f7faf8;
  border:1px dashed #d9e4dd;
  color:var(--hb-muted);
  font-size:14px;
}
.hb-movements-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.hb-movement-item{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:14px;
  background:#fbfcfd;
  border:1px solid #eef2f4;
  border-radius:16px;
}
.hb-movement-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  background:rgba(15,92,59,.10);
  color:var(--hb-primary);
}
.hb-movement-main{
  min-width:0;
}
.hb-movement-main strong{
  display:block;
  font-size:15px;
  color:#102030;
  margin-bottom:4px;
}
.hb-movement-main span{
  display:block;
  font-size:12px;
  color:var(--hb-muted);
}
.hb-movement-main small{
  display:block;
  margin-top:5px;
  font-size:12px;
  line-height:1.35;
  color:#6b7280;
}
.hb-movement-amount{
  font-size:15px;
  font-weight:800;
  white-space:nowrap;
  text-align:right;
}
.hb-movement-credit{
  color:#0f7a45;
}
.hb-movement-debit{
  color:#17212b;
}

@media(max-width:720px){
  .hb-movements-section{
    margin-top:16px;
    padding:14px;
    border-radius:16px;
  }
  .hb-movement-item{
    grid-template-columns:38px minmax(0,1fr);
    gap:10px;
  }
  .hb-movement-icon{
    width:38px;
    height:38px;
    border-radius:12px;
  }
  .hb-movement-amount{
    grid-column:2;
    text-align:left;
    font-size:14px;
  }
  .hb-movements-header h4{
    font-size:18px;
  }
}


/* Monedas v1.9 */
.hb-movement-amount{
  font-variant-numeric:tabular-nums;
}
@media(max-width:720px){
  .hb-movement-amount{
    white-space:normal;
    word-break:break-word;
  }
}


/* Totales automáticos v2.1 */
.hb-movement-points{
  color:var(--hb-primary) !important;
  font-weight:700;
}


/* Gestión de usuarios v2.2 */
.hb-user-admin-wrap{
  max-width:1180px;
  margin:24px auto;
  font-family:Arial,Helvetica,sans-serif;
  color:#17212b;
}
.hb-user-admin-card{
  background:#fff;
  border:1px solid #e7ebef;
  border-radius:22px;
  padding:22px;
  box-shadow:0 12px 30px rgba(11,27,42,.06);
  margin-bottom:20px;
}
.hb-user-admin-header{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.hb-user-admin-header span{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(15,92,59,.08);
  color:#0f5c3b;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.hb-user-admin-header h3{
  margin:0;
  font-size:26px;
  color:#102030;
}
.hb-user-admin-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.hb-user-admin-form label,
.hb-user-inline-form label{
  font-size:13px;
  color:#68727d;
}
.hb-user-admin-form input,
.hb-user-admin-form select,
.hb-user-inline-form input,
.hb-user-inline-form select{
  width:100%;
  margin-top:6px;
  padding:11px 12px;
  border:1px solid #d7dde4;
  border-radius:10px;
  background:#fff;
  color:#17212b;
}
.hb-user-admin-button,
.hb-user-inline-form button,
.hb-user-delete-button{
  margin-top:14px;
  border:none;
  border-radius:10px;
  padding:11px 14px;
  font-weight:700;
  cursor:pointer;
  background:#0f5c3b;
  color:#fff;
}
.hb-user-delete-button{
  background:#b42318;
}
.hb-user-admin-notice,
.hb-user-admin-message{
  padding:14px 16px;
  border-radius:12px;
  background:#f4f7f5;
  border:1px solid #dde6df;
  margin-bottom:16px;
}
.hb-user-admin-table-wrap{
  overflow-x:auto;
}
.hb-user-admin-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.hb-user-admin-table th{
  text-align:left;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#68727d;
  padding:0 12px;
}
.hb-user-admin-table td{
  background:#fbfcfd;
  border-top:1px solid #eef2f4;
  border-bottom:1px solid #eef2f4;
  padding:12px;
  vertical-align:top;
}
.hb-user-admin-table td:first-child{
  border-left:1px solid #eef2f4;
  border-radius:14px 0 0 14px;
}
.hb-user-admin-table td:last-child{
  border-right:1px solid #eef2f4;
  border-radius:0 14px 14px 0;
}
.hb-user-inline-form{
  display:grid;
  grid-template-columns:1fr 1fr 1fr auto;
  gap:8px;
  align-items:end;
}
.hb-user-inline-form input{
  margin-top:0;
}
.hb-user-inline-form button{
  margin-top:0;
  white-space:nowrap;
}
@media(max-width:900px){
  .hb-user-admin-grid{
    grid-template-columns:1fr 1fr;
  }
  .hb-user-inline-form{
    grid-template-columns:1fr;
  }
}
@media(max-width:600px){
  .hb-user-admin-wrap{
    margin:16px auto;
  }
  .hb-user-admin-card{
    padding:16px;
    border-radius:18px;
  }
  .hb-user-admin-grid{
    grid-template-columns:1fr;
  }
  .hb-user-admin-header h3{
    font-size:22px;
  }
}


/* Ajustes móvil v2.3: bordes, altura y encaje visual de la tarjeta */
@media(max-width:720px){
  .hb-card-app{
    padding:10px 0 !important;
    overflow-x:hidden !important;
  }

  .hb-card-shell{
    width:calc(100% - 18px) !important;
    margin:0 auto !important;
    padding:18px 14px !important;
    border-radius:20px !important;
    overflow:hidden !important;
  }

  .hb-card-header{
    margin-bottom:18px !important;
  }

  .hb-card-kicker{
    font-size:11px !important;
    padding:7px 11px !important;
  }

  .hb-card-header h3{
    font-size:34px !important;
    line-height:1.05 !important;
    margin:18px 0 12px !important;
  }

  .hb-card-header p{
    font-size:18px !important;
    line-height:1.45 !important;
  }

  .hb-card-wrap{
    width:100% !important;
    padding:12px !important;
    border-radius:20px !important;
    overflow:hidden !important;
  }

  .hb-card-visual{
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }

  .hb-flip-card{
    width:100% !important;
    max-width:100% !important;
    aspect-ratio:1.586 / 1 !important;
    min-height:0 !important;
    height:auto !important;
    border-radius:20px !important;
    overflow:visible !important;
  }

  .hb-flip-inner{
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    border-radius:20px !important;
  }

  .hb-card-face{
    height:100% !important;
    min-height:0 !important;
    border-radius:20px !important;
    box-shadow:0 16px 28px rgba(9,17,31,.18) !important;
  }

  .hb-card-front{
    padding:clamp(14px,4.2vw,18px) !important;
  }

  .hb-card-back{
    padding-top:clamp(14px,4.2vw,18px) !important;
    padding-bottom:clamp(14px,4.2vw,18px) !important;
  }

  .hb-card-brand{
    font-size:clamp(20px,6.4vw,30px) !important;
    max-width:44% !important;
  }

  .hb-card-credit-title{
    font-size:clamp(10px,3vw,13px) !important;
    letter-spacing:.08em !important;
  }

  .hb-card-tier{
    font-size:clamp(11px,3.4vw,14px) !important;
  }

  .hb-chip{
    width:clamp(34px,10vw,44px) !important;
    height:clamp(24px,7.2vw,31px) !important;
    margin-top:clamp(18px,5.8vw,26px) !important;
  }

  .hb-card-number{
    font-size:clamp(17px,5.4vw,26px) !important;
    letter-spacing:clamp(.2px,.35vw,1.2px) !important;
    margin-top:clamp(20px,6.2vw,28px) !important;
  }

  .hb-card-meta{
    margin-top:auto !important;
    align-items:flex-end !important;
  }

  .hb-meta-label{
    font-size:clamp(8px,2.5vw,10px) !important;
    margin-bottom:4px !important;
  }

  .hb-card-name{
    font-size:clamp(11px,3.6vw,15px) !important;
    max-width:52vw !important;
  }

  .hb-card-expiry{
    font-size:clamp(13px,4vw,17px) !important;
  }

  .hb-card-hint{
    margin:12px 0 0 !important;
    font-size:15px !important;
    line-height:1.35 !important;
    padding:0 6px !important;
  }

  .hb-card-data{
    margin-top:18px !important;
  }

  .hb-stat-card{
    border-radius:18px !important;
    padding:18px !important;
  }

  .hb-stat-card small{
    font-size:16px !important;
  }

  .hb-stat-card strong{
    font-size:26px !important;
  }
}

@media(max-width:430px){
  .hb-card-shell{
    width:calc(100% - 14px) !important;
    padding:16px 12px !important;
  }

  .hb-card-wrap{
    padding:10px !important;
    border-radius:18px !important;
  }

  .hb-card-face{
    border-radius:18px !important;
  }

  .hb-card-header h3{
    font-size:30px !important;
  }

  .hb-card-header p{
    font-size:16px !important;
  }

  .hb-card-number{
    font-size:clamp(16px,5.2vw,22px) !important;
  }

  .hb-card-name{
    max-width:46vw !important;
  }
}

@media(max-width:370px){
  .hb-card-shell{
    width:calc(100% - 10px) !important;
    padding:14px 10px !important;
  }

  .hb-card-wrap{
    padding:8px !important;
  }

  .hb-card-number{
    font-size:15px !important;
    letter-spacing:.15px !important;
  }

  .hb-card-brand{
    font-size:20px !important;
  }

  .hb-card-hint{
    font-size:13px !important;
  }
}


/* Botón móvil para girar tarjeta v2.4 */
.hb-mobile-flip-button{
  display:none;
  width:100%;
  max-width:260px;
  margin:14px auto 0;
  border:0;
  border-radius:999px;
  padding:13px 18px;
  background:#0f5c3b;
  color:#fff;
  font-weight:800;
  font-size:15px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(15,92,59,.18);
}

@media(max-width:720px){
  .hb-mobile-flip-button{
    display:block !important;
  }

  .hb-card-hint{
    display:none !important;
  }

  /* En móvil desactivamos el hover táctil que queda "pegado".
     Solo girará con clic/tap o con el botón. */
  .hb-flip-card:hover .hb-card-front{
    opacity:1 !important;
    visibility:visible !important;
  }

  .hb-flip-card:hover .hb-card-back{
    opacity:0 !important;
    visibility:hidden !important;
  }

  .hb-flip-card.is-flipped .hb-card-front{
    opacity:0 !important;
    visibility:hidden !important;
  }

  .hb-flip-card.is-flipped .hb-card-back{
    opacity:1 !important;
    visibility:visible !important;
  }
}


/* Logos de marcas v2.5: evita texto cortado tipo "Master..." */
.hb-card-brand{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  min-width:96px !important;
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
  white-space:nowrap !important;
  line-height:1 !important;
}
.hb-logo-text{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  line-height:1;
  letter-spacing:.02em;
  white-space:nowrap;
}
.hb-logo-visa{
  color:#63a4ff;
  font-size:26px;
}
.hb-logo-amex{
  color:#8ff0d2;
  font-size:20px;
  letter-spacing:.08em;
}
.hb-logo-diners{
  color:#93c5fd;
  font-size:18px;
  letter-spacing:.07em;
}
.hb-logo-discover{
  color:#fdba74;
  font-size:18px;
  letter-spacing:.04em;
}

/* Mastercard hecho con CSS, no necesitas subir imagen */
.hb-logo-mastercard{
  position:relative;
  display:inline-block;
  width:58px;
  height:36px;
}
.hb-logo-mastercard i{
  position:absolute;
  top:3px;
  width:30px;
  height:30px;
  border-radius:50%;
  display:block;
}
.hb-logo-mastercard i:first-child{
  left:4px;
  background:#eb001b;
}
.hb-logo-mastercard i:last-child{
  right:4px;
  background:#f79e1b;
  mix-blend-mode:screen;
}
.hb-brand-mastercard{
  color:inherit !important;
  font-size:inherit !important;
}
@media(max-width:720px){
  .hb-card-brand{
    min-width:72px !important;
    max-width:none !important;
    flex:0 0 auto !important;
  }
  .hb-logo-mastercard{
    width:52px;
    height:32px;
  }
  .hb-logo-mastercard i{
    width:27px;
    height:27px;
  }
  .hb-logo-visa{
    font-size:clamp(22px,7vw,30px) !important;
  }
  .hb-logo-amex,
  .hb-logo-diners,
  .hb-logo-discover{
    font-size:clamp(13px,4.2vw,18px) !important;
  }
}
@media(max-width:370px){
  .hb-logo-mastercard{
    width:46px;
    height:28px;
  }
  .hb-logo-mastercard i{
    width:24px;
    height:24px;
  }
}


/* Logos más visuales v2.6 */
.hb-logo-amex-box{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  min-width:74px;
  height:42px;
  padding:4px 8px;
  border-radius:8px;
  background:linear-gradient(135deg,#39c4ff 0%,#1479c9 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);
  color:#fff;
}
.hb-logo-amex-box b,
.hb-logo-amex-box strong{
  display:block;
  line-height:1;
  letter-spacing:.08em;
}
.hb-logo-amex-box b{
  font-size:8px;
  font-weight:800;
  margin-bottom:3px;
}
.hb-logo-amex-box strong{
  font-size:11px;
  font-weight:900;
}

.hb-logo-diners-mark{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:86px;
}
.hb-logo-diners-mark i{
  position:relative;
  display:block;
  width:26px;
  height:26px;
  border-radius:50%;
  border:3px solid #93c5fd;
  box-sizing:border-box;
}
.hb-logo-diners-mark i::before,
.hb-logo-diners-mark i::after{
  content:"";
  position:absolute;
  top:3px;
  bottom:3px;
  width:6px;
  border-radius:99px;
  background:#93c5fd;
}
.hb-logo-diners-mark i::before{ left:4px; }
.hb-logo-diners-mark i::after{ right:4px; }
.hb-logo-diners-mark span{
  display:block;
  color:#93c5fd;
  font-size:10px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:.08em;
  text-align:left;
}

.hb-logo-discover-mark{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:104px;
  height:28px;
}
.hb-logo-discover-mark i{
  position:absolute;
  right:8px;
  top:50%;
  width:76px;
  height:18px;
  transform:translateY(-50%);
  border-radius:999px;
  background:radial-gradient(circle at center, rgba(247,158,27,.95) 0%, rgba(247,158,27,.9) 42%, rgba(247,158,27,0) 72%);
}
.hb-logo-discover-mark span{
  position:relative;
  z-index:1;
  color:#ffffff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.07em;
}

.hb-brand-amex,
.hb-brand-diners,
.hb-brand-discover{
  color:inherit !important;
  font-size:inherit !important;
}

@media(max-width:720px){
  .hb-logo-amex-box{
    min-width:66px;
    height:38px;
    padding:4px 7px;
  }
  .hb-logo-amex-box b{ font-size:7px; }
  .hb-logo-amex-box strong{ font-size:10px; }

  .hb-logo-diners-mark{
    min-width:76px;
    gap:6px;
  }
  .hb-logo-diners-mark i{
    width:22px;
    height:22px;
    border-width:2px;
  }
  .hb-logo-diners-mark i::before,
  .hb-logo-diners-mark i::after{
    width:5px;
    top:3px;
    bottom:3px;
  }
  .hb-logo-diners-mark span{
    font-size:9px;
  }

  .hb-logo-discover-mark{
    min-width:88px;
    height:24px;
  }
  .hb-logo-discover-mark i{
    width:62px;
    height:15px;
    right:6px;
  }
  .hb-logo-discover-mark span{
    font-size:10px;
  }
}
