/* ========== JuanFoto Tienda (Modern Premium) ========== */

:root {
  --jf-primary: #111;
  --jf-accent: #28a745;
  --jf-bg: #f8f9fa;
  --jf-radius-lg: 24px;
  --jf-radius-md: 16px;
  --jf-radius-sm: 12px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 12px 28px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.12);
  --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ✅ Carrito verde (si lo usas como .cart-button en otras páginas) */
.cart-button{
  background: var(--jf-accent);
  color: #fff !important;
  padding: .35rem .75rem;
  border-radius: 99px;
  font-weight: 800;
  line-height: 1.2;
  border: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  box-shadow: 0 4px 14px rgba(40,167,69,0.3);
}
.cart-button:hover{
  color:#fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}
.cart-button:active{ transform: translateY(1px); }
.cart-count-badge{
  margin-left: .25rem;
  background: #dc3545;
  color: #fff;
  font-weight: 900;
  font-size: .75rem;
  padding: .15rem .4rem;
  border-radius: 99px;
  display: inline-block;
  min-width: 1.4rem;
  text-align: center;
}

/* Productos / cards */
.product-card{
  border-radius: var(--jf-radius-md) !important;
  border: none !important;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}
.product-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.product-card .card-img-top{
  border-top-left-radius: var(--jf-radius-md) !important;
  border-top-right-radius: var(--jf-radius-md) !important;
  transition: transform var(--transition-smooth);
}
.product-card:hover .card-img-top{
  transform: scale(1.05);
}
.product-card .d-block.position-relative {
  overflow: hidden;
  display: block;
}

/* Botón volver pedido */
.jf-btn-back{
  background:#000 !important;
  color:#fff !important;
  border: none !important;
  border-radius: 99px !important;
  padding: 0.5rem 1.2rem;
  transition: all var(--transition-fast);
}
.jf-btn-back:hover{
  background:#333 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
  transform: translateY(-2px);
}

/* =====================================================
   Subir archivos (tienda)
   ===================================================== */
.btn-jf-dark{
  background:#000 !important;
  color:#fff !important;
  border: none !important;
  border-radius: 99px !important;
  padding: 0.5rem 1.2rem;
  transition: all var(--transition-fast);
  white-space:nowrap;
}
.btn-jf-dark:hover{ transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.btn-jf-green{
  background: var(--jf-accent) !important;
  color:#000 !important;
  border: none !important;
  border-radius: 99px !important;
  padding: 0.5rem 1.2rem;
  white-space:nowrap;
  font-weight:800;
  transition: all var(--transition-fast);
}
.btn-jf-green:hover{ transform: translateY(-2px); box-shadow: 0 4px 12px rgba(40,167,69,0.3); }

.btn-jf-cancel{
  background:#dc3545 !important;
  color:#fff !important;
  border:none !important;
  border-radius: 99px !important;
  padding: 0.5rem 1.2rem;
  white-space:nowrap;
  transition: all var(--transition-fast);
}
.btn-jf-cancel:hover{ transform: translateY(-2px); box-shadow: 0 4px 12px rgba(220,53,69,0.3); }

.jf-upload-row{
  display:flex; align-items:center; gap:.5rem; flex-wrap:nowrap;
}
@media (max-width: 576px){ .jf-upload-row{ flex-wrap:wrap; } }
.jf-file{ min-width:260px; max-width:520px; }
.jf-progress-wrap{ max-width:620px; }
.jf-autosave-hint{ font-size:.78rem; color:rgba(255,255,255,.65); margin-left:auto; white-space:nowrap; }
@media (max-width: 576px){ .jf-autosave-hint{ margin-left:0; width:100%; } }
.jf-saved-pill{
  display:inline-block; padding:.15rem .45rem; border-radius:999px;
  background:rgba(40,167,69,.18); border:1px solid rgba(40,167,69,.35);
  color:rgba(255,255,255,.85); font-size:.75rem; margin-left:.35rem;
}

/* =====================================================
   Álbum
   ===================================================== */
body.jp-module-tienda .album-no-select, 
body.jp-module-tienda .album-no-select * { user-select:none; -webkit-user-select:none; -ms-user-select:none; }
body.jp-module-tienda .album-thumbwrap img { -webkit-user-drag:none; pointer-events:none; }
body.jp-module-tienda .album-thumb { width:120px; height:120px; object-fit:cover; border-radius:var(--jf-radius-sm); border:1px solid rgba(0,0,0,.08); transition: transform var(--transition-smooth); }
body.jp-module-tienda .album-thumbwrap:hover .album-thumb { transform: scale(1.03); }
body.jp-module-tienda .album-thumbwrap{ position:relative; display:inline-block; }
body.jp-module-tienda .album-thumbwrap .actions{ position:absolute; inset:auto 8px 8px 8px; display:flex; justify-content:center; gap:6px; }
body.jp-module-tienda .album-viewer{ position:relative; border-radius:var(--jf-radius-md); overflow:hidden; background:#111; border:1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg); }
body.jp-module-tienda .album-viewer img{ width:100%; height:520px; object-fit:contain; background:radial-gradient(circle, #222 0%, #000 100%); display:block; }

/* =====================================================
   Tienda Index (Home Pro)
   ===================================================== */
.jf-hero{
  border-radius: var(--jf-radius-lg);
  overflow:hidden;
  border: none;
  background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
  position: relative;
  color:#fff;
  box-shadow: var(--shadow-lg);
}
.jf-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(800px 800px at 20% 10%, rgba(40,167,69,0.15), transparent),
    radial-gradient(800px 800px at 80% 90%, rgba(13,110,253,0.15), transparent);
  pointer-events: none;
}
.jf-hero-inner{padding:30px; position: relative; z-index: 1;}
@media (min-width: 992px){ .jf-hero-inner{padding:48px 40px} }

.jf-hero h1{font-weight:900;letter-spacing:-1px; font-size: 3rem;}
.jf-hero p{opacity:.9;max-width:58ch; font-size: 1.1rem; line-height: 1.6;}

.jf-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.jf-pill:hover {
  background:rgba(255,255,255,.1);
  transform: translateY(-1px);
}

.jf-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 20px;
  border-radius:999px;
  border:none;
  background:#fff;
  color:#111;
  text-decoration:none;
  white-space:nowrap;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.jf-chip:hover{
  background:#111;
  color:#fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.jf-scroller{
  display:flex; gap:12px; overflow:auto; padding: 10px 4px 20px 4px; margin: -10px -4px -20px -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.jf-scroller::-webkit-scrollbar{display:none;}

.jf-card{
  border: none;
  border-radius: var(--jf-radius-md);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  background:#fff;
  transition: all var(--transition-smooth);
}
.jf-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.jf-card a { overflow: hidden; display: block; }
.jf-card img{
  display:block;width:100%;height:220px;object-fit:cover;background:#f2f2f2;
  transition: transform var(--transition-smooth);
}
.jf-card:hover img{
  transform: scale(1.05);
}

.jf-muted{color:#6c757d;}
.jf-price{font-weight:900; font-size:1.1rem;}
.jf-section-title{font-weight:900;letter-spacing:-0.5px;margin:0; font-size:1.8rem;}
.jf-subtitle{color:#6c757d;margin:0; font-size:1rem;}

.jf-kpi{
  background:rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border:1px solid rgba(255,255,255,.1);
  border-radius: var(--jf-radius-md);
  padding:20px;
  height:100%;
  color: #fff;
  transition: all var(--transition-smooth);
}
.jf-kpi:hover {
  background:rgba(255,255,255,.1);
  transform: translateY(-3px);
}
.jf-kpi b{font-weight:800; font-size:1.1rem; display:block; margin-bottom: 4px; letter-spacing: -0.3px;}
.jf-kpi .small{color:rgba(255,255,255,.7);}

.jf-cta{
  background:rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border:1px solid rgba(255,255,255,.2);
  border-radius: var(--jf-radius-md);
  padding:24px;
  color: #fff;
}
.jf-cta .fw-bold { font-size: 1.2rem; }
.jf-cta .jf-muted { color: rgba(255,255,255,.7) !important; }
.jf-cta input.form-control {
  border-radius: 99px;
  border: none;
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.9);
}
.jf-cta input.form-control:focus {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}
.jf-cta .btn-dark {
  border-radius: 99px;
  background: #000;
  border: none;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
}
.jf-cta .btn-dark:hover { background: #333; }
.jf-cta a { color: rgba(255,255,255,0.8); transition: color var(--transition-fast); }
.jf-cta a:hover { color: #fff; }


.jf-btn-ghost{
  background:transparent; color:#fff;
  border:1px solid rgba(255,255,255,.30);
  border-radius: 99px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.jf-btn-ghost:hover{background:#fff;color:#000;}
.btn-success {
  border-radius: 99px;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(25,135,84,0.3);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25,135,84,0.4);
}

/* módulos */
.jf-module{
  border:none;
  border-radius: var(--jf-radius-md);
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  box-shadow: var(--shadow-sm);
  padding:24px;
  transition: all var(--transition-smooth);
}
.jf-module:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.jf-module .title{font-weight:900;margin:0; font-size: 1.4rem; letter-spacing: -0.5px;}
.jf-module .desc{color:#6c757d;margin:0; line-height: 1.5;}
.jf-module .btn-dark {
  border-radius: 99px;
  font-weight: 700;
  padding: 0.6rem;
  transition: all var(--transition-fast);
}
.jf-module .btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* =====================================================
   Subir_archivos layout toolbar
   ===================================================== */
.jf-upload-toolbar{
  display:flex;
  align-items:center;
  gap:.6rem;
  justify-content:flex-start;
  flex-wrap:nowrap;
}
.jf-upload-toolbar .jf-file{
  flex:1 1 520px;
  min-width:260px;
  max-width:720px;
}
@media (max-width: 992px){
  .jf-upload-toolbar{
    flex-wrap:wrap;
    justify-content:center;
  }
  .jf-upload-toolbar .jf-file{
    flex:1 1 360px;
    max-width:620px;
  }
}