/*=================================================
=          EL JEQUE SHAWARMA & KEBAB               =
=          Tienda para clientes — v2               =
=          (misma paleta que el panel admin)       =
==================================================*/

:root{
  --morado:    #2B1462;
  --morado-2:  #4B1FA8;
  --fucsia:    #E91E63;
  --naranja:   #FF8A00;
  --naranja-2: #FF6A00;
  --rojo:      #E63946;
  --fondo:     #F4F6F9;
  --blanco:    #FFFFFF;
  --texto:     #2c2c3a;
  --muted:     #8a8fa3;
}

*{ box-sizing:border-box; }

body{
  background: var(--fondo);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin:0;
  color: var(--texto);
}

a{ text-decoration:none; }
img{ max-width:100%; }

/*=================================================
  NAVBAR
==================================================*/

.tienda-navbar{
  background: var(--morado);
  padding:14px 30px;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}

.tienda-navbar .navbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  max-width:1280px;
  margin:0 auto;
}

.navbar-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
}

.navbar-brand img{
  width:46px;height:46px;border-radius:50%;object-fit:cover;
  border:2px solid var(--naranja);
}

.navbar-brand h1{
  font-size:19px;
  margin:0;
  font-weight:800;
  color:#fff;
  line-height:1.1;
}

.navbar-brand span{
  display:block;
  font-size:10px;
  color:var(--naranja);
  font-weight:700;
  letter-spacing:1.5px;
}

.navbar-links{
  display:flex;
  align-items:center;
  gap:4px;
}

.navbar-links a{
  color:#d8d0ee;
  font-weight:600;
  font-size:14.5px;
  padding:8px 14px;
  border-radius:10px;
  transition:.2s;
}

.navbar-links a:hover,
.navbar-links a.active{
  background:rgba(255,255,255,.1);
  color:#fff;
}

.navbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.pill-btn{
  border:1.5px solid rgba(255,255,255,.35);
  color:#fff !important;
  border-radius:30px;
  padding:8px 18px;
  font-size:14px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  transition:.2s;
}

.pill-btn:hover{ background:rgba(255,255,255,.12); color:#fff; }

.pill-btn-carrito{
  background: var(--naranja);
  border-color: var(--naranja);
  position:relative;
  font-weight:700;
}

.pill-btn-carrito:hover{ background:var(--naranja-2); color:#fff; }

.cart-badge{
  background: var(--rojo);
  color:#fff;
  border-radius:50%;
  font-size:11px;
  font-weight:800;
  min-width:19px;
  height:19px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 4px;
  position:absolute;
  top:-6px;
  right:-6px;
  border:2px solid var(--morado);
}

/*=================================================
  HERO
==================================================*/

.tienda-hero{
  background: linear-gradient(135deg, var(--naranja) 0%, var(--naranja-2) 55%, #ff5400 100%);
  padding:56px 30px 64px;
  position:relative;
  overflow:hidden;
}

.hero-inner{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:40px;
  flex-wrap:wrap;
}

.hero-text{ flex:1 1 420px; color:#fff; }

.hero-ribbon{
  display:inline-block;
  background: var(--rojo);
  color:#fff;
  font-weight:700;
  font-size:12.5px;
  letter-spacing:.5px;
  padding:7px 16px;
  border-radius:20px;
  margin-bottom:18px;
}

.hero-text h1{
  font-size:46px;
  font-weight:900;
  line-height:1.05;
  margin:0;
  color:#fff;
  text-shadow:0 4px 14px rgba(0,0,0,.15);
}

.hero-text h1 .accent{
  display:block;
  color: var(--morado);
  font-size:30px;
  font-weight:800;
  letter-spacing:1px;
  margin-top:6px;
}

.hero-info-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:22px 0 26px;
}

.hero-info-pill{
  background:rgba(255,255,255,.18);
  backdrop-filter:blur(4px);
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
  border-radius:14px;
  padding:9px 16px;
  font-size:13.5px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
}

.hero-info-pill i{ font-size:16px; }

.hero-cta{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.btn-hero-primary{
  background: var(--morado);
  color:#fff !important;
  border:none;
  border-radius:14px;
  padding:14px 26px;
  font-weight:700;
  font-size:15px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  box-shadow:0 10px 24px rgba(43,20,98,.35);
}

.btn-hero-primary:hover{ background: var(--morado-2); color:#fff; }

.btn-hero-secondary{
  background:rgba(255,255,255,.15);
  border:1.5px solid #fff;
  color:#fff !important;
  border-radius:14px;
  padding:14px 26px;
  font-weight:700;
  font-size:15px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.btn-hero-secondary:hover{ background:rgba(255,255,255,.28); color:#fff; }

.hero-image-wrap{
  flex:1 1 340px;
  display:flex;
  justify-content:center;
  position:relative;
}

.hero-image-frame{
  width:100%;
  max-width:400px;
  aspect-ratio:1/1;
  border-radius:32px;
  overflow:hidden;
  box-shadow:0 25px 55px rgba(0,0,0,.3);
  border:6px solid rgba(255,255,255,.35);
}

.hero-image-frame img{
  width:100%;height:100%;object-fit:cover;display:block;
}

.hero-image-frame.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.15);
  color:#fff;
  font-size:70px;
}

.hero-badge{
  position:absolute;
  bottom:-14px;
  right:6%;
  background:#fff;
  color: var(--morado);
  width:104px;height:104px;
  border-radius:50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:800;
  font-size:12px;
  box-shadow:0 12px 25px rgba(0,0,0,.25);
  border:3px solid var(--naranja);
  line-height:1.2;
}

.hero-badge strong{ font-size:16px; display:block; }

/*=================================================
  BUSCADOR + CATEGORIAS
==================================================*/

.tienda-content{
  max-width:1280px;
  margin:0 auto;
  padding:36px 24px 60px;
}

.buscador-wrap{
  display:flex;
  gap:22px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:34px;
}

.buscador-form{
  flex:1 1 320px;
}

.buscador-form .input-group{
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(43,20,98,.08);
}

.buscador-form input{
  border:none;
  padding:14px 16px;
}

.buscador-form input:focus{ box-shadow:none; }

.buscador-form .input-group-text{
  border:none;
  background:#fff;
}

.categoria-pills{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:4px;
}

.categoria-pill{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  background:#fff;
  color: var(--morado);
  border-radius:16px;
  padding:12px 18px;
  font-size:12.5px;
  font-weight:700;
  box-shadow:0 4px 14px rgba(43,20,98,.06);
  border:2px solid transparent;
  min-width:78px;
  transition:.2s;
}

.categoria-pill i{ font-size:20px; }

.categoria-pill:hover{ border-color: var(--naranja); color:var(--morado); }

.categoria-pill.active{
  background: var(--morado);
  color:#fff;
}

/*=================================================
  SECCIONES / TITULOS
==================================================*/

.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:22px;
}

.section-heading h2{
  color: var(--morado);
  font-weight:800;
  font-size:23px;
  margin:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.section-heading .ver-todo{
  color: var(--fucsia);
  font-weight:700;
  font-size:14px;
}

section.tienda-section{ margin-bottom:48px; }

/*=================================================
  TARJETA DE PRODUCTO
==================================================*/

.producto-card{
  background:var(--blanco);
  border-radius:18px;
  box-shadow:0 8px 20px rgba(43,20,98,.07);
  overflow:hidden;
  height:100%;
  display:flex;
  flex-direction:column;
  transition:.25s;
}

.producto-card:hover{ transform:translateY(-4px); box-shadow:0 14px 30px rgba(43,20,98,.14); }

.producto-img{
  width:100%;
  height:170px;
  object-fit:cover;
  background:#eef0f5;
}

.producto-img-placeholder{
  width:100%;
  height:170px;
  background:linear-gradient(135deg,#eef0f5,#e3e6ee);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#b6bccb;
  font-size:40px;
}

.producto-body{
  padding:16px 18px 18px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.producto-body h5{
  color:var(--morado);
  font-weight:800;
  font-size:16px;
  margin-bottom:4px;
}

.producto-body .descripcion{
  color:var(--muted);
  font-size:13px;
  margin-bottom:14px;
  flex:1;
}

.producto-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.producto-precio{
  color:var(--fucsia);
  font-weight:800;
  font-size:18px;
}

.badge-agotado{
  background:#fde0e0;
  color:#c81e1e;
  font-weight:700;
  font-size:12px;
  padding:6px 12px;
  border-radius:20px;
}

.btn-agregar{
  background: var(--morado);
  color:#fff;
  border:none;
  border-radius:12px;
  padding:9px 16px;
  font-weight:700;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.btn-agregar:hover{ background: var(--morado-2); color:#fff; }

/*=================================================
  FRANJA DE CONFIANZA
==================================================*/

.trust-strip{
  background: var(--morado);
  border-radius:20px;
  padding:26px 30px;
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  justify-content:space-between;
}

.trust-item{
  flex:1 1 200px;
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
}

.trust-item i{
  font-size:26px;
  color: var(--naranja);
  flex-shrink:0;
}

.trust-item strong{ display:block; font-size:14.5px; }
.trust-item span{ display:block; font-size:12.5px; color:#d8d0ee; }

/*=================================================
  RESEÑAS (estado vacío honesto)
==================================================*/

.reviews-empty{
  background:#fff;
  border:2px dashed #e3e6ee;
  border-radius:20px;
  padding:44px 30px;
  text-align:center;
  color: var(--muted);
}

.reviews-empty i{ font-size:36px; color: var(--naranja); margin-bottom:12px; display:block; }
.reviews-empty h3{ color: var(--morado); font-weight:800; font-size:19px; margin-bottom:8px; }

/*=================================================
  ZONA DE COBERTURA (reemplaza el mapa)
==================================================*/

.cobertura-card{
  background: linear-gradient(120deg, var(--morado), var(--morado-2));
  border-radius:20px;
  padding:36px;
  color:#fff;
  display:flex;
  align-items:center;
  gap:26px;
  flex-wrap:wrap;
}

.cobertura-card i.bi-geo-alt-fill{ font-size:44px; color: var(--naranja); }

.cobertura-card h3{ font-weight:800; margin-bottom:6px; }
.cobertura-card p{ color:#d8d0ee; margin-bottom:0; max-width:520px; }

.cobertura-card .btn-hero-secondary{ margin-left:auto; }

/*=================================================
  CARRITO
==================================================*/

.carrito-item{
  display:flex;
  align-items:center;
  gap:14px;
  background:#fff;
  border-radius:14px;
  padding:12px 16px;
  margin-bottom:12px;
  box-shadow:0 4px 12px rgba(43,20,98,.06);
}

.carrito-item img{
  width:64px;height:64px;object-fit:cover;border-radius:10px;flex-shrink:0;
}

.carrito-item .info{ flex:1; min-width:0; }
.carrito-item .info h6{ color:var(--morado); font-weight:700; margin:0 0 2px; }
.carrito-item .info .precio-unit{ color:var(--muted); font-size:13px; }

.cantidad-control{
  display:flex;
  align-items:center;
  gap:8px;
}

.cantidad-control button{
  width:30px;height:30px;
  border-radius:8px;
  border:1px solid #e3e6ee;
  background:#fff;
  color:var(--morado);
  font-weight:800;
}

.resumen-panel{
  background:#fff;
  border-radius:18px;
  padding:24px;
  box-shadow:0 8px 20px rgba(43,20,98,.07);
}

.resumen-panel h4{ color:var(--morado); font-weight:800; }

.total-linea{
  display:flex;
  justify-content:space-between;
  font-size:15px;
  padding:6px 0;
}

.total-final{
  display:flex;
  justify-content:space-between;
  font-size:20px;
  font-weight:800;
  color:var(--morado);
  border-top:2px dashed #e3e6ee;
  margin-top:10px;
  padding-top:14px;
}

/*=================================================
  METODOS DE PAGO (checkout)
==================================================*/

.metodo-pago-card{
  border:2px solid #e3e6ee;
  border-radius:16px;
  padding:18px;
  cursor:pointer;
  transition:.2s;
  height:100%;
}

.metodo-pago-card:hover{ border-color: var(--naranja); }

.metodo-pago-card.selected{
  border-color: var(--morado);
  background:#f7f5fc;
}

.metodo-pago-card h6{ color: var(--morado); font-weight:800; }

.datos-pago-box{
  background:#f4f6f9;
  border-radius:12px;
  padding:14px 16px;
  font-size:14px;
  margin-top:10px;
}

.datos-pago-box strong{ color: var(--morado); }

/*=================================================
  FORMULARIOS (login / registro)
==================================================*/

.auth-wrapper{
  min-height:calc(100vh - 76px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
}

.auth-card{
  background:#fff;
  width:100%;
  max-width:420px;
  border-radius:20px;
  padding:36px 32px;
  box-shadow:0 20px 45px rgba(43,20,98,.12);
}

.auth-card h2{ color: var(--morado); font-weight:800; margin-bottom:4px; }
.auth-card .subtitle{ color: var(--muted); font-size:14px; margin-bottom:26px; }

.auth-card .form-control{
  border-radius:12px;
  padding:12px 14px;
  border:1px solid #e3e6ee;
}

.btn-auth{
  background: var(--morado);
  border:none;
  border-radius:12px;
  padding:12px;
  font-weight:700;
  width:100%;
  color:#fff;
}

.btn-auth:hover{ background: var(--morado-2); color:#fff; }

/*=================================================
  FOOTER
==================================================*/

.tienda-footer{
  background: var(--morado);
  color:#d8d0ee;
  padding:50px 24px 24px;
}

.footer-inner{
  max-width:1280px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:32px;
}

.footer-col h4{
  color:#fff;
  font-weight:800;
  font-size:14.5px;
  letter-spacing:.5px;
  margin-bottom:16px;
}

.footer-col p{ font-size:13.5px; line-height:1.6; }

.footer-col ul{ list-style:none; padding:0; margin:0; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul a{ color:#d8d0ee; font-size:13.5px; }
.footer-col ul a:hover{ color:#fff; }

.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}

.footer-brand img{
  width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid var(--naranja);
}

.footer-brand strong{ color:#fff; font-size:16px; display:block; }
.footer-brand span{ color:var(--naranja); font-size:9.5px; font-weight:700; letter-spacing:1px; }

.metodos-pago-lista{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}

.metodo-pago-chip{
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  border-radius:10px;
  padding:6px 12px;
  font-size:12.5px;
  font-weight:700;
  color:#fff;
  display:flex;
  align-items:center;
  gap:6px;
}

.footer-social{
  display:flex;
  gap:10px;
  margin-top:16px;
}

.footer-social a{
  width:36px;height:36px;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
}

.footer-social a:hover{ background: var(--naranja); }

.footer-bottom{
  max-width:1280px;
  margin:34px auto 0;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.12);
  text-align:center;
  font-size:12.5px;
  color:#b7aede;
}

/*=================================================
  BOTON FLOTANTE WHATSAPP
==================================================*/

.whatsapp-float{
  position:fixed;
  bottom:22px;
  right:22px;
  background:#25D366;
  color:#fff;
  width:58px;height:58px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
  z-index:1000;
  transition:.2s;
}

.whatsapp-float:hover{ transform:scale(1.08); color:#fff; }

/*=================================================
  ESTADOS DE PEDIDO (mis pedidos)
==================================================*/

.badge-estado{
  padding:6px 14px;
  border-radius:20px;
  font-size:12.5px;
  font-weight:700;
}

.badge-pendiente{ background:#e0edff; color:#2563eb; }
.badge-preparando{ background:#ffe9cc; color:#c76a00; }
.badge-pagado, .badge-completado{ background:#d9f7e6; color:#15803d; }
.badge-cancelado{ background:#fde0e0; color:#c81e1e; }

/*=================================================
  RESPONSIVE
==================================================*/

@media(max-width:991px){
  .footer-inner{ grid-template-columns:1fr 1fr; }
  .hero-badge{ display:none; }
}

@media(max-width:768px){
  .hero-text h1{ font-size:34px; }
  .hero-text h1 .accent{ font-size:22px; }
  .tienda-navbar{ padding:12px 16px; }
  .navbar-links{ display:none; }
  .cobertura-card{ text-align:center; justify-content:center; }
  .cobertura-card .btn-hero-secondary{ margin-left:0; }
}

@media(max-width:576px){
  .footer-inner{ grid-template-columns:1fr; }
}
