/* =========================================================
   TIENDA — estilos específicos (carrito, cuenta, cuadrícula)
   Usa la misma paleta y tipografía que el resto del sitio
   (negro, blanco hueso, fuente "camel" en mayúsculas, acentos
   verdes #08FF31 solo para estados de éxito/aviso).
========================================================= */

#tienda-store{
  color: rgb(240,240,240,.9);
}

#tienda-store .tienda-section{
  padding: 60px 6% 80px;
  max-width: 1200px;
  margin: 0 auto;
}

#tienda-store .tienda-intro{
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: rgb(240,240,240,.7);
}
#tienda-store .tienda-intro a{
  color: #08FF31;
  text-decoration: none;
  border-bottom: 1px solid rgba(8,255,49,.4);
}

/* ---------- Botones flotantes cuenta / carrito ---------- */
.tienda-float-controls{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.tienda-float-btn{
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(240,240,240,.4);
  color: rgb(240,240,240,.9);
  font-family: camel;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .3s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.tienda-float-btn:hover{
  background: rgb(240,240,240,.95);
  color: #000f11;
  border-color: rgb(240,240,240,.95);
}
.tienda-cart-badge{
  background: #08FF31;
  color: #000f11;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
@media (max-width: 700px){
  .tienda-float-controls{ bottom: 16px; right: 16px; }
  .tienda-float-btn{ padding: 9px 13px; font-size: 12px; }
}

/* ---------- Filtros ---------- */
.tienda-filters{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.tienda-filter-btn{
  background: transparent;
  border: 1px solid rgba(240,240,240,.35);
  color: rgb(240,240,240,.7);
  font-family: camel;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all .3s ease;
}
.tienda-filter-btn:hover{ border-color: rgb(240,240,240,.8); color: rgb(240,240,240,1); }
.tienda-filter-btn.active{ background: rgb(240,240,240,.95); color:#000f11; border-color: rgb(240,240,240,.95); }

/* ---------- Cuadrícula de productos ---------- */
.tienda-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.tienda-card{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(240,240,240,.15);
  display: flex;
  flex-direction: column;
  transition: all .35s ease;
}
.tienda-card:hover{
  border-color: rgba(240,240,240,.5);
  transform: translateY(-5px);
}
.tienda-card-media{
  aspect-ratio: 1;
  width: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(240,240,240,.08), rgba(0,0,0,.4));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tienda-card-media img{ width:100%; height:100%; object-fit:cover; }
.tienda-card-media .tienda-placeholder-emoji{ font-size: 3rem; opacity:.75; }
.tienda-card-tag{
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(240,240,240,.35);
  color: rgb(240,240,240,.85);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
}
.tienda-card-body{
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tienda-card-name{
  font-family: camel;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 15px;
  margin: 0;
  color: rgb(240,240,240,1);
}
.tienda-card-desc{
  font-size: 13px;
  line-height: 1.6;
  color: rgb(240,240,240,.6);
  margin: 0;
  flex: 1;
}
.tienda-size-row{
  display: flex; gap: 6px; flex-wrap: wrap;
}
.tienda-size-pill{
  font-size: 11px;
  letter-spacing: .04em;
  color: rgb(240,240,240,.7);
  border: 1px solid rgba(240,240,240,.3);
  border-radius: 20px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all .2s ease;
}
.tienda-size-pill.active{ background: rgb(240,240,240,.95); color:#000f11; border-color: rgb(240,240,240,.95); }
.tienda-card-footer{
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 4px;
}
.tienda-price{
  font-family: camel;
  font-size: 17px;
  color: #08FF31;
}
.tienda-add-btn{
  background: transparent;
  border: 1px solid rgb(240,240,240,.6);
  color: rgb(240,240,240,.9);
  font-family: camel;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .05em;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .3s ease;
}
.tienda-add-btn:hover{ background: rgb(240,240,240,.95); color:#000f11; }
.tienda-empty{
  grid-column: 1/-1;
  text-align: center;
  color: rgb(240,240,240,.5);
  padding: 40px 0;
  font-size: 14px;
}

/* ---------- Pasos: cómo comprar ---------- */
.tienda-steps{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.tienda-step{
  border: 1px solid rgba(240,240,240,.15);
  padding: 22px 18px;
  background: rgba(255,255,255,.02);
}
.tienda-step-num{ font-family: camel; font-size: 22px; color:#08FF31; margin: 0 0 10px; }
.tienda-step-title{ font-family: camel; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; letter-spacing: .04em; }
.tienda-step-text{ font-size: 13px; line-height: 1.7; color: rgb(240,240,240,.65); margin:0; }
.tienda-step-text a{ color:#08FF31; text-decoration:none; border-bottom:1px solid rgba(8,255,49,.4); }

/* ---------- Info de pago ---------- */
.tienda-payinfo{
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  text-align: center; margin-top: 10px;
}
.tienda-payinfo-label{ font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgb(240,240,240,.5); margin: 0 0 6px; }
.tienda-payinfo-value{ font-family: camel; font-size: 17px; }
.tienda-payinfo-value a{ color: #08FF31; text-decoration:none; }

/* =========================================================
   OVERLAY genérico (fondo oscuro detrás de drawer/modal)
========================================================= */
.tienda-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.tienda-overlay.is-open{ opacity: 1; pointer-events: auto; }

/* =========================================================
   CARRITO — panel lateral
========================================================= */
.tienda-drawer{
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: #06090a;
  border-left: 1px solid rgba(240,240,240,.15);
  z-index: 160;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.65,0,.35,1);
  display: flex;
  flex-direction: column;
}
.tienda-drawer.is-open{ transform: translateX(0); }

.tienda-drawer-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(240,240,240,.12);
}
.tienda-drawer-title{ font-family: camel; text-transform: uppercase; font-size: 16px; letter-spacing: .04em; margin:0; }
.tienda-drawer-close{
  background: none; border: none; color: rgb(240,240,240,.7);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.tienda-drawer-close:hover{ color: #fff; }

.tienda-drawer-body{
  flex: 1; overflow-y: auto; padding: 20px 24px;
}
.tienda-cart-item{
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid rgba(240,240,240,.08);
}
.tienda-cart-item-media{
  width: 60px; height: 60px; flex-shrink: 0;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.tienda-cart-item-media img{ width:100%; height:100%; object-fit:cover; }
.tienda-cart-item-info{ flex: 1; min-width: 0; }
.tienda-cart-item-name{ font-family: camel; font-size: 13px; text-transform: uppercase; margin: 0 0 4px; }
.tienda-cart-item-meta{ font-size: 11px; color: rgb(240,240,240,.5); margin: 0 0 8px; }
.tienda-qty-row{ display: flex; align-items: center; gap: 10px; }
.tienda-qty-btn{
  width: 22px; height: 22px;
  border: 1px solid rgba(240,240,240,.4);
  background: transparent; color: rgb(240,240,240,.9);
  cursor: pointer; font-size: 13px; line-height: 1;
  display:flex; align-items:center; justify-content:center;
}
.tienda-qty-btn:hover{ background: rgb(240,240,240,.9); color:#000f11; }
.tienda-qty-value{ font-size: 13px; min-width: 16px; text-align:center; }
.tienda-cart-item-remove{
  background: none; border: none; color: rgb(240,240,240,.4);
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  cursor: pointer; text-decoration: underline;
}
.tienda-cart-item-remove:hover{ color: #ff5c5c; }
.tienda-cart-item-price{ font-family: camel; font-size: 13px; color:#08FF31; white-space: nowrap; }

.tienda-drawer-footer{
  padding: 20px 24px 26px;
  border-top: 1px solid rgba(240,240,240,.12);
}
.tienda-subtotal-row{
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.tienda-subtotal-label{ font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgb(240,240,240,.6); }
.tienda-subtotal-value{ font-family: camel; font-size: 20px; color:#08FF31; }

.tienda-btn-full{
  width: 100%;
  background: rgb(240,240,240,.95);
  color: #000f11;
  border: none;
  font-family: camel;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all .3s ease;
}
.tienda-btn-full:hover{ background: #08FF31; }
.tienda-btn-full:disabled{ opacity:.4; cursor:not-allowed; }

.tienda-btn-ghost{
  width: 100%;
  background: transparent;
  color: rgb(240,240,240,.8);
  border: 1px solid rgba(240,240,240,.35);
  font-family: camel;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 13px;
  padding: 12px;
  cursor: pointer;
  margin-top: 10px;
  transition: all .3s ease;
}
.tienda-btn-ghost:hover{ border-color: rgb(240,240,240,.8); }

/* =========================================================
   MODAL — cuenta (login / registro / checkout)
========================================================= */
.tienda-modal{
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.96);
  width: min(440px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  background: #06090a;
  border: 1px solid rgba(240,240,240,.18);
  z-index: 170;
  opacity: 0;
  pointer-events: none;
  transition: all .35s ease;
  padding: 32px 28px 30px;
}
.tienda-modal.is-open{ opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }

.tienda-modal-close{
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: rgb(240,240,240,.6);
  font-size: 20px; cursor: pointer;
}
.tienda-modal-close:hover{ color: #fff; }

.tienda-modal-title{
  font-family: camel; text-transform: uppercase; font-size: 18px;
  letter-spacing: .04em; margin: 0 0 6px;
}
.tienda-modal-sub{ font-size: 12.5px; color: rgb(240,240,240,.55); margin: 0 0 24px; line-height:1.6; }

.tienda-tabs{
  display: flex; gap: 6px; margin-bottom: 22px;
}
.tienda-tab-btn{
  flex: 1;
  background: transparent;
  border: 1px solid rgba(240,240,240,.3);
  color: rgb(240,240,240,.6);
  font-family: camel; text-transform: uppercase; font-size: 12px; letter-spacing: .05em;
  padding: 10px; cursor: pointer;
  transition: all .25s ease;
}
.tienda-tab-btn.active{ background: rgb(240,240,240,.95); color:#000f11; border-color: rgb(240,240,240,.95); }

.tienda-form{ display: flex; flex-direction: column; gap: 14px; }
.tienda-form-row{ display: flex; gap: 10px; }
.tienda-form-row .tienda-field{ flex: 1; }
.tienda-field label{
  display:block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: rgb(240,240,240,.5); margin-bottom: 6px;
}
.tienda-field input, .tienda-field textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(240,240,240,.35);
  color: rgb(240,240,240,.95);
  font-family: camel;
  font-size: 14px;
  padding: 8px 2px;
  text-transform: none;
}
.tienda-field input:focus, .tienda-field textarea:focus{
  outline: none; border-bottom-color: #08FF31;
}
.tienda-field textarea{ resize: vertical; min-height: 50px; font-family: 'Poppins', sans-serif; font-size: 13px; }

.tienda-form-error{
  font-size: 12.5px; color: #ff6b6b; margin: 0; min-height: 16px;
}
.tienda-form-success{
  font-size: 12.5px; color: #08FF31; margin: 0; min-height: 16px;
}

.tienda-account-box{
  border: 1px solid rgba(240,240,240,.15);
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.8;
  color: rgb(240,240,240,.75);
  margin-bottom: 16px;
}
.tienda-account-box strong{ color: rgb(240,240,240,1); }

.tienda-checkout-summary{
  border-top: 1px solid rgba(240,240,240,.12);
  border-bottom: 1px solid rgba(240,240,240,.12);
  padding: 14px 0;
  margin: 16px 0;
  font-size: 13px;
  color: rgb(240,240,240,.7);
}
.tienda-checkout-summary-row{ display:flex; justify-content:space-between; padding: 4px 0; }
.tienda-checkout-total{ font-family: camel; color:#08FF31; font-size: 16px; }

@media (max-width: 480px){
  .tienda-form-row{ flex-direction: column; }
}
