:root{--bd-blue:#0f4c81;--bd-dark:#102a43;--bd-green:#00a676;--bd-light:#f5f7fa;--bd-border:#e5e7eb}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#fff;color:#102a43}.store-nav{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 5vw;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid var(--bd-border)}.store-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--bd-dark);font-weight:900}.store-brand img{width:42px;height:42px;object-fit:contain}.store-nav nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.store-nav nav a{color:#334155;text-decoration:none;font-weight:700}.btn-register,.store-hero .btn-primary,.btn-store{background:linear-gradient(135deg,var(--bd-blue),#2f80ed);color:#fff!important;border:0;border-radius:999px;padding:10px 18px;text-decoration:none;font-weight:800}.cart-link strong{display:inline-flex;background:#ecfdf5;color:#047857;border-radius:999px;min-width:24px;height:24px;align-items:center;justify-content:center}.cliente-pill{background:#eef6ff;color:#0f4c81;border-radius:999px;padding:8px 12px;font-weight:800}.store-hero{display:grid;grid-template-columns:1.15fr .85fr;gap:38px;align-items:center;padding:70px 5vw 54px;background:linear-gradient(145deg,#f8fbff 0%,#fff 50%,#eefcf7 100%)}.store-hero h1{font-size:clamp(36px,6vw,68px);line-height:.98;letter-spacing:-2px;margin:0 0 20px;font-weight:900}.store-hero p{font-size:19px;color:#526277;max-width:720px}.hero-panel{background:#fff;border:1px solid #e2e8f0;border-radius:34px;padding:26px;box-shadow:0 28px 70px rgba(15,42,67,.12)}.hero-metric{display:flex;gap:14px;padding:16px;border-radius:22px;background:#f8fafc;margin-bottom:14px}.hero-metric i{font-size:24px;color:var(--bd-green)}.store-container{padding:38px 5vw}.section-title{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:22px}.section-title h2{font-size:34px;font-weight:900;margin:0}.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:38px}.category-card{display:flex;gap:13px;align-items:flex-start;background:#fff;border:1px solid var(--bd-border);border-radius:24px;padding:18px;text-decoration:none;color:var(--bd-dark);transition:.2s}.category-card:hover,.product-card:hover{transform:translateY(-4px);box-shadow:0 18px 46px rgba(15,42,67,.12)}.category-card i{color:var(--bd-blue);font-size:22px}.store-toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}.store-toolbar input,.store-toolbar select{border:1px solid var(--bd-border);border-radius:16px;padding:12px 14px;min-height:46px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px}.product-card{border:1px solid var(--bd-border);border-radius:28px;background:#fff;overflow:hidden;transition:.2s;display:flex;flex-direction:column}.product-img{height:178px;background:#f8fafc;display:flex;align-items:center;justify-content:center}.product-img img{width:100%;height:100%;object-fit:contain;object-position:center;background:#fff;padding:10px}.product-body{padding:20px;display:flex;flex-direction:column;gap:10px;flex:1}.product-category{font-size:12px;text-transform:uppercase;font-weight:900;color:#64748b;letter-spacing:.08em}.product-body h3{font-size:19px;font-weight:900;margin:0}.product-body p{color:#64748b;margin:0}.price-box{margin-top:auto;padding-top:12px}.price{font-size:28px;font-weight:950;color:#0f4c81}.price-hidden{border:1px dashed #cbd5e1;background:#f8fafc;border-radius:16px;padding:14px;color:#475569;font-weight:800}.product-actions{display:flex;gap:10px;align-items:center;margin-top:12px}.product-actions a,.product-actions button{flex:1;border-radius:999px;padding:10px 14px;text-align:center;text-decoration:none;font-weight:800}.btn-outline-store{border:1px solid #cbd5e1;color:#0f4c81;background:#fff}.btn-green{background:#00a676;color:#fff;border:0}.detail-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:34px}.detail-image{background:#f8fafc;border-radius:34px;overflow:hidden;min-height:380px;display:flex;align-items:center;justify-content:center}.detail-image img{width:100%;height:auto;max-height:720px;object-fit:contain;object-position:center;background:#fff}.detail-panel{background:#fff;border:1px solid var(--bd-border);border-radius:34px;padding:30px}.meta-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.meta-item{background:#f8fafc;border-radius:18px;padding:14px}.cart-table{background:#fff;border:1px solid var(--bd-border);border-radius:28px;overflow:hidden}.checkout-grid{display:grid;grid-template-columns:1fr 370px;gap:24px}.auth-card,.checkout-card{max-width:680px;margin:42px auto;background:#fff;border:1px solid var(--bd-border);border-radius:30px;padding:30px;box-shadow:0 24px 64px rgba(15,42,67,.1)}.form-control,.form-select{border-radius:14px;min-height:46px}.store-footer{display:flex;justify-content:space-between;gap:24px;padding:32px 5vw;background:#0f172a;color:#cbd5e1;margin-top:60px}@media(max-width:850px){.store-hero,.detail-layout,.checkout-grid{grid-template-columns:1fr}.store-nav{align-items:flex-start;flex-direction:column}.store-footer{flex-direction:column}.meta-list{grid-template-columns:1fr}}

/* Perfil de cliente / Mi cuenta */
.account-shell{padding:34px 5vw 60px;background:linear-gradient(145deg,#f8fbff 0%,#fff 44%,#f5fff9 100%);min-height:calc(100vh - 80px)}
.account-title{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.account-title h1{font-size:clamp(38px,5vw,62px);font-weight:950;letter-spacing:-1.8px;margin:0;color:#0f172a}.account-title p{max-width:840px;color:#526277;margin:8px 0 0}.breadcrumb-store{font-weight:800;color:#64748b}.breadcrumb-store a{color:#0f4c81;text-decoration:none}.account-user-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--bd-border);border-radius:24px;padding:14px 16px;box-shadow:0 18px 46px rgba(15,42,67,.08);min-width:300px}.account-avatar{font-size:36px;color:#0f4c81;line-height:1}.account-layout{display:grid;grid-template-columns:310px 1fr;gap:28px;align-items:start}.account-menu{background:#fff;border:1px solid var(--bd-border);border-radius:28px;padding:18px;position:sticky;top:94px;box-shadow:0 18px 48px rgba(15,42,67,.07)}.account-menu h3{font-size:18px;font-weight:950;margin:4px 12px 14px}.account-menu a{display:flex;align-items:center;gap:12px;color:#0f172a;text-decoration:none;font-weight:850;border-radius:16px;padding:13px 12px;margin-bottom:6px;transition:.18s}.account-menu a i{font-size:19px;color:#64748b}.account-menu a:hover,.account-menu a.active{background:#edf6ff;color:#0f4c81}.account-menu a:hover i,.account-menu a.active i{color:#0f4c81}.account-content{min-width:0}.account-panel,.account-welcome{background:#fff;border:1px solid var(--bd-border);border-radius:28px;padding:24px;box-shadow:0 18px 48px rgba(15,42,67,.07)}.account-panel h2,.account-panel h3{font-weight:950;color:#0f172a}.account-welcome{margin-bottom:20px}.account-tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.account-tile{background:#fff;border:1px solid var(--bd-border);border-radius:26px;padding:28px 18px;min-height:150px;text-decoration:none;color:#0f172a;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;transition:.2s;box-shadow:0 14px 36px rgba(15,42,67,.05)}.account-tile:hover{transform:translateY(-4px);box-shadow:0 20px 48px rgba(15,42,67,.12)}.account-tile i{font-size:44px;color:#64748b;margin-bottom:12px}.account-tile span{font-weight:950}.account-tile small{color:#64748b;margin-top:4px}.orders-list,.delivery-list{display:grid;gap:16px}.order-card,.delivery-card,.payment-card{border:1px solid var(--bd-border);border-radius:22px;background:#fff;padding:18px;margin-top:12px}.order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.order-head strong{font-size:18px}.order-head small{display:block;color:#64748b}.order-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.status{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:950;text-transform:capitalize}.status.ok{background:#ecfdf5;color:#047857}.status.review{background:#fffbeb;color:#b45309}.status.process{background:#eff6ff;color:#1d4ed8}.status.cancel{background:#fef2f2;color:#b91c1c}.status.new{background:#f1f5f9;color:#475569}.order-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0}.order-progress span{position:relative;background:#f1f5f9;color:#64748b;border-radius:999px;padding:8px;text-align:center;font-size:12px;font-weight:900}.order-progress span.done{background:#e8f7ef;color:#047857}.order-items p{margin:10px 0;padding:12px;background:#f8fafc;border-radius:16px}.order-note{padding:12px;border-left:4px solid #2f80ed;background:#f8fbff;border-radius:12px;color:#334155}.order-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.order-foot a{font-weight:900;color:#0f4c81;text-decoration:none}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:36px;border:1px dashed #cbd5e1;border-radius:24px;background:#f8fafc}.empty-state i{font-size:46px;color:#94a3b8}.delivery-card{display:grid;grid-template-columns:58px 1fr;gap:16px}.delivery-icon{width:58px;height:58px;border-radius:20px;background:#edf6ff;color:#0f4c81;display:flex;align-items:center;justify-content:center;font-size:28px}.delivery-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.delivery-body small{color:#64748b}.delivery-secret{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:18px;padding:16px;margin:14px 0 10px;font-size:14px}.delivery-link{display:inline-flex;flex:unset!important;margin:4px 0 10px}.delivery-instructions{background:#f8fafc;border-radius:16px;padding:14px;color:#334155}.payment-card{line-height:1.7}.cliente-pill{text-decoration:none!important;display:inline-flex;gap:7px;align-items:center}
@media(max-width:1050px){.account-layout{grid-template-columns:1fr}.account-menu{position:static}.account-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-title{align-items:flex-start;flex-direction:column}.account-user-card{width:100%}}
@media(max-width:650px){.account-tile-grid{grid-template-columns:1fr}.order-head,.order-foot,.delivery-title{flex-direction:column;align-items:flex-start}.order-progress{grid-template-columns:1fr 1fr}.delivery-card{grid-template-columns:1fr}.account-menu a{padding:11px}.account-shell{padding-left:16px;padding-right:16px}}


/* Créditos BizDatos */
.credit-summary{display:grid;gap:12px}.credit-summary>div,.credit-balance-card,.credit-recharge-card{border:1px solid var(--bd-border);border-radius:22px;background:#f8fafc;padding:18px}.credit-summary span,.credit-balance-card span{display:block;color:#64748b;font-weight:800}.credit-summary strong{font-size:24px;color:#0f4c81}.credit-profile-grid{display:grid;grid-template-columns:320px 1fr;gap:18px;align-items:start}.credit-balance-card{background:linear-gradient(135deg,#0f4c81,#2f80ed);color:#fff;min-height:210px;display:flex;flex-direction:column;justify-content:center}.credit-balance-card span,.credit-balance-card small{color:#dbeafe}.credit-balance-card strong{font-size:64px;line-height:1;font-weight:950}.credit-recharge-card{background:#fff}.credit-tile i{color:#d97706!important}.credit-tile small{color:#0f4c81!important;font-weight:950}@media(max-width:850px){.credit-profile-grid{grid-template-columns:1fr}.credit-balance-card strong{font-size:46px}}

/* Recarga de créditos con IVA */
.credit-tax-box { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: rgba(15,76,129,.08); border: 1px solid rgba(15,76,129,.14); }
.credit-tax-box span { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; color: #243b53; }
.credit-tax-box strong { color: #0f4c81; }


/* =========================================================
   BizDatos - Corrección global de imágenes de productos
   Muestra la imagen completa sin recortarla en tienda, tarjetas
   y ficha de detalle.
========================================================= */
.product-img,
.detail-image,
.product-image-wrapper,
.imagen-producto-wrapper {
    background:#fff !important;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}
.product-img img,
.product-card img,
.detail-image img,
.imagen-producto,
.product-detail-image,
.tienda-producto img {
    object-fit:contain !important;
    object-position:center center !important;
    background:#fff !important;
}
.product-img img,
.product-card .product-img img {
    width:100% !important;
    height:100% !important;
    padding:10px;
}
.detail-image img,
.product-detail-image {
    width:100% !important;
    height:auto !important;
    max-height:720px;
    padding:0;
}
@media(max-width:850px){
    .detail-image img,
    .product-detail-image{max-height:520px;}
}
