:root{
  --gold:#FAC460;
  --green:#022D21;
  --black:#121112;
  --cream:#F9F6F3;
  --white:#fff;
  --shadow:0 18px 50px rgba(18,17,18,.10);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:"Montserrat",system-ui,sans-serif;
  background:var(--cream);
  color:var(--black);
}

.hero{
  min-height:420px;
  color:var(--white);
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 28%),
    linear-gradient(135deg, var(--green), var(--green)),
    var(--green);
  padding:28px clamp(18px,5vw,72px) 70px;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo{
  width:min(300px,70vw);
  height:auto;
}

.nav-link{
  color:var(--gold);
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  letter-spacing:.04em;
}

.hero-content{
  max-width:820px;
  margin-top:72px;
}

.eyebrow{
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:.26em;
  font-weight:700;
  font-size:13px;
}

h1{
  font-size:clamp(38px,7vw,82px);
  line-height:.96;
  margin:12px 0 18px;
}

.hero-content p:last-child{
  max-width:620px;
  font-size:18px;
  line-height:1.7;
}

.container{
  width:min(1180px,92vw);
  margin:-42px auto 80px;
}

.toolbar{
  background:var(--white);
  border:1px solid rgba(18,17,18,.08);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:18px;
  display:grid;
  grid-template-columns:1fr 190px 220px;
  gap:12px;
  margin-bottom:28px;
}

.search-group{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
}

.scan-button{
  border:0;
  border-radius:16px;
  padding:0 18px;
  background:var(--green);
  color:var(--gold);
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}

input,select{
  width:100%;
  border:1px solid rgba(18,17,18,.12);
  border-radius:16px;
  padding:14px 16px;
  font:inherit;
  background:var(--cream);
  color:var(--black);
}

.status{
  color:rgba(18,17,18,.65);
  font-weight:600;
}

.grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
}

.card{
  overflow:hidden;
  background:var(--white);
  border:1px solid rgba(18,17,18,.08);
  border-radius:28px;
  box-shadow:var(--shadow);
}

.image-wrap{
  aspect-ratio:1/1;
  background:#eee;
  overflow:hidden;
}

.product-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

.card:hover .product-image{transform:scale(1.04)}

.card-body{padding:22px}

.category{
  margin:0 0 8px;
  color:var(--gold);
  text-transform:uppercase;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
}

h2{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.35;
}

.description{
  color:rgba(18,17,18,.68);
  line-height:1.6;
  font-size:14px;
  min-height:68px;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0;
}

.badge{
  border:1px solid rgba(2,45,33,.15);
  color:var(--green);
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:700;
}

.price-row{
  border-top:1px solid rgba(18,17,18,.08);
  padding-top:16px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
}

.price-label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:rgba(18,17,18,.55);
  font-weight:800;
}

.price{
  color:var(--green);
  font-size:24px;
}

.whatsapp{
  display:block;
  margin-top:18px;
  text-align:center;
  border-radius:999px;
  padding:13px 16px;
  color:var(--green);
  background:var(--gold);
  text-decoration:none;
  font-weight:800;
}

.footer{
  text-align:center;
  padding:34px 18px;
  background:var(--green);
  color:var(--gold);
}

@media (max-width:900px){
  .toolbar{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:700px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .hero{min-height:360px}
}




.preorder-panel--highlight{
  animation:preorderPulse 1.2s ease;
}

@keyframes preorderPulse{
  0%{ box-shadow:0 16px 60px rgba(250,196,96,.08); }
  35%{ box-shadow:0 0 0 5px rgba(250,196,96,.35), 0 24px 70px rgba(2,45,33,.18); }
  100%{ box-shadow:0 16px 60px rgba(250,196,96,.08); }
}
.preorder-panel{
  background:var(--white);
  border:1px solid rgba(18,17,18,.08);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:20px;
  margin-bottom:28px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
}

.eyebrow-dark{
  color:var(--green);
  text-transform:uppercase;
  letter-spacing:.18em;
  font-weight:800;
  font-size:12px;
  margin:0 0 6px;
}

.preorder-panel h2{margin:0 0 8px}
.preorder-panel p{margin:0;color:rgba(18,17,18,.68);line-height:1.5}

.preorder-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.preorder-actions strong{
  color:var(--green);
  font-size:24px;
  margin-right:8px;
}

button{
  border:0;
  border-radius:999px;
  padding:12px 15px;
  background:var(--green);
  color:var(--gold);
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.whatsapp.secondary{
  display:inline-block;
  margin-top:0;
  padding:12px 15px;
}

.cart-items{
  grid-column:1/-1;
  display:grid;
  gap:8px;
}

.cart-row{
  display:grid;
  grid-template-columns:1fr auto auto auto 34px;
  gap:10px;
  align-items:center;
  border-top:1px solid rgba(18,17,18,.08);
  padding-top:10px;
  font-size:13px;
}

.cart-row button{
  padding:6px 10px;
  background:var(--black);
  color:white;
}

.prices{
  display:grid;
  gap:8px;
  margin:16px 0;
}

.prices div{
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 12px;
  align-items:center;
  border-top:1px solid rgba(18,17,18,.08);
  padding-top:8px;
}

.prices span{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.10em;
  color:rgba(18,17,18,.55);
  font-weight:800;
}

.prices strong{
  color:var(--green);
  font-size:17px;
  text-align:right;
}

.gram-price{
  grid-column:1/-1;
  display:block;
  color:rgba(18,17,18,.62);
  font-size:11px;
  font-weight:700;
  text-align:right;
}

.qty-row{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:10px;
  align-items:end;
}

.qty-row label{
  font-size:12px;
  font-weight:800;
  color:rgba(18,17,18,.62);
}

.qty-label{
  display:block;
}

.qty-control{
  margin-top:6px;
  display:grid;
  grid-template-columns:40px 1fr 40px;
  align-items:center;
  border:1px solid rgba(18,17,18,.14);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.qty-control input.qty{
  width:100%;
  min-width:42px;
  margin:0;
  padding:11px 6px;
  border:0;
  text-align:center;
  font-weight:900;
  color:var(--green);
  -moz-appearance:textfield;
}

.qty-control input.qty::-webkit-outer-spin-button,
.qty-control input.qty::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.qty-step{
  height:100%;
  min-height:42px;
  border:0;
  background:var(--cream);
  color:var(--green);
  font-size:22px;
  font-weight:900;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.qty-step:hover{
  background:var(--gold);
}

.qty-step:active{
  transform:scale(.98);
}



.qty-row.has-ring-size{
  grid-template-columns:150px 120px 1fr;
}

.ring-size-label{
  font-size:12px;
  font-weight:800;
  color:rgba(18,17,18,.62);
}

.ring-size{
  margin-top:6px;
  padding:11px 12px;
}

.cart-row small{
  color:rgba(18,17,18,.62);
  font-weight:700;
}

.add-cart{
  background:var(--gold);
  color:var(--green);
  padding:13px 14px;
}

@media (max-width:900px){
  .preorder-panel{grid-template-columns:1fr}
  .preorder-actions{justify-content:flex-start}
}

@media (max-width:560px){
  .cart-row{grid-template-columns:1fr}
  .qty-row{grid-template-columns:1fr}
}


.client-form{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  border-top:1px solid rgba(18,17,18,.08);
  border-bottom:1px solid rgba(18,17,18,.08);
  padding:18px 0;
}

.client-form h3{
  grid-column:1/-1;
  margin:0 0 4px;
  color:var(--green);
  font-size:16px;
}

.client-form label{
  display:block;
  font-size:12px;
  font-weight:800;
  color:rgba(18,17,18,.68);
}

/* El formulario B2B conserva estos campos, pero el catálogo retail los oculta. */
.client-form label[hidden]{display:none !important}

.client-form input{
  margin-top:6px;
  background:#fff;
}

.input-error{
  border-color:#b00020 !important;
  box-shadow:0 0 0 3px rgba(176,0,32,.08);
}

@media (max-width:900px){
  .client-form{grid-template-columns:1fr 1fr}
}

@media (max-width:560px){
  .client-form{grid-template-columns:1fr}
}


.client-summary{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid rgba(18,17,18,.08);
  border-bottom:1px solid rgba(18,17,18,.08);
  padding:14px 0;
  flex-wrap:wrap;
}

.client-summary strong{
  color:var(--green);
  font-size:15px;
}

.client-summary span{
  color:rgba(18,17,18,.62);
  font-size:13px;
  flex:1;
}

.client-summary button{
  background:var(--gold);
  color:var(--green);
}

.totals-box{
  min-width:210px;
  display:grid;
  grid-template-columns:1fr;
  gap:2px;
  padding:12px 14px;
  border:1px solid rgba(2,45,33,.12);
  border-radius:18px;
  background:var(--cream);
}

.totals-box span{
  text-transform:uppercase;
  letter-spacing:.10em;
  color:rgba(18,17,18,.55);
  font-weight:800;
  font-size:10px;
}

.preorder-actions .totals-box strong{
  color:var(--green);
  font-size:20px;
  margin:0 0 6px;
}

.unit-price{
  color:rgba(18,17,18,.65);
  font-weight:700;
  font-size:12px;
}

.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:1000;
}

.modal.is-open{
  display:block;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(18,17,18,.58);
  backdrop-filter:blur(4px);
}

.modal-card{
  position:relative;
  width:min(760px,92vw);
  max-height:88vh;
  overflow:auto;
  margin:6vh auto;
  background:var(--white);
  border-radius:28px;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
  padding:26px;
}

.modal-card h2{
  margin:0 0 8px;
  color:var(--green);
}

.modal-help{
  margin:0 0 18px;
  color:rgba(18,17,18,.68);
  line-height:1.6;
}

.modal-close{
  position:absolute;
  top:16px;
  right:16px;
  width:38px;
  height:38px;
  padding:0;
  background:var(--black);
  color:#fff;
  font-size:24px;
  line-height:1;
}

.modal-form{
  border:0;
  padding:0;
}

.modal-actions{
  grid-column:1/-1;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-top:4px;
}

.secondary-button{
  background:var(--cream);
  color:var(--green);
  border:1px solid rgba(2,45,33,.14);
}

@media (max-width:900px){
  .cart-row{grid-template-columns:1fr auto}
  .unit-price{grid-column:1/-1}
}

@media (max-width:560px){
  .preorder-actions{align-items:stretch}
  .preorder-actions > *{width:100%}
  .client-summary{align-items:stretch}
  .client-summary button{width:100%}
  .modal-card{padding:22px 18px}
}


.barcode-reader{
  width:100%;
  min-height:280px;
  overflow:hidden;
  border:1px solid rgba(2,45,33,.16);
  border-radius:18px;
  background:var(--cream);
}

.scanner-card{
  max-width:560px;
}

.scanner-status{
  margin:12px 0 0;
  font-size:14px;
  color:rgba(18,17,18,.68);
  font-weight:600;
}

@media (max-width:560px){
  .search-group{grid-template-columns:1fr}
  .scan-button{padding:14px 18px}
}


/* Carrusel de imágenes por producto */
.image-wrap{
  position:relative;
}

.carousel-button{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  background:rgba(2,45,33,.88);
  color:var(--gold);
  font-size:30px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:2;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}

.carousel-button:hover{
  background:var(--green);
}

.carousel-prev{left:12px}
.carousel-next{right:12px}

.image-counter{
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:2;
  background:rgba(18,17,18,.72);
  color:#fff;
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:800;
}

.image-missing{
  object-fit:contain;
  padding:28px;
  background:var(--cream);
}


/* Imagen grande / lightbox responsivo */
.image-wrap.is-zoomable{
  cursor:zoom-in;
}

.zoom-hint{
  position:absolute;
  left:12px;
  bottom:12px;
  z-index:2;
  background:rgba(249,246,243,.92);
  color:var(--green);
  border:1px solid rgba(2,45,33,.12);
  border-radius:999px;
  padding:6px 11px;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.card:hover .zoom-hint{
  background:var(--gold);
}

body.lightbox-open{
  overflow:hidden;
}

.image-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:clamp(12px,2.5vw,28px);
  background:rgba(18,17,18,.90);
  backdrop-filter:blur(7px);
}

.image-lightbox.open{
  display:flex;
}

.lightbox-figure{
  width:100%;
  max-width:min(980px,94vw);
  height:auto;
  max-height:calc(100dvh - 72px);
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.lightbox-image{
  display:block;
  width:auto;
  height:auto;
  max-width:min(92vw,980px);
  max-height:calc(100dvh - 132px);
  object-fit:contain;
  border-radius:18px;
  background:var(--cream);
  box-shadow:0 24px 70px rgba(0,0,0,.42);
}

.lightbox-caption{
  max-width:min(92vw,980px);
  color:#fff;
  text-align:center;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}

.lightbox-close,
.lightbox-nav{
  position:absolute;
  border:0;
  background:var(--green);
  color:var(--gold);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 50px rgba(0,0,0,.28);
  cursor:pointer;
  padding:0;
  border-radius:999px;
  z-index:3;
}

.lightbox-close{
  top:16px;
  right:16px;
  width:44px;
  height:44px;
}

.lightbox-close span{
  display:block;
  font-size:32px;
  line-height:1;
  transform:translateY(-1px);
}

.lightbox-nav{
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:54px;
}

.lightbox-nav span{
  display:block;
  width:100%;
  text-align:center;
  font-size:42px;
  font-weight:700;
  line-height:1;
  transform:translateY(-3px);
}

.lightbox-prev{left:16px}
.lightbox-next{right:16px}

.lightbox-close:hover,
.lightbox-nav:hover{
  background:var(--gold);
  color:var(--green);
}

@media (max-width:700px){
  .zoom-hint{
    font-size:10px;
    padding:5px 9px;
  }

  .image-lightbox{
    padding:58px 10px 18px;
  }

  .lightbox-figure{
    max-width:96vw;
    max-height:calc(100dvh - 80px);
  }

  .lightbox-image{
    max-width:96vw;
    max-height:calc(100dvh - 150px);
    border-radius:14px;
  }

  .lightbox-caption{
    max-width:96vw;
    font-size:12px;
  }

  .lightbox-nav{
    width:44px;
    height:44px;
  }

  .lightbox-nav span{
    font-size:34px;
    transform:translateY(-2px);
  }

  .lightbox-prev{left:8px}
  .lightbox-next{right:8px}

  .lightbox-close{
    top:10px;
    right:10px;
    width:42px;
    height:42px;
  }

  .lightbox-close span{
    font-size:30px;
  }
}

@media (max-width:420px){
  .image-lightbox{
    padding:58px 8px 14px;
  }

  .lightbox-image{
    max-width:96vw;
    max-height:calc(100dvh - 164px);
  }

  .lightbox-prev{left:6px}
  .lightbox-next{right:6px}
}


@media (max-width:520px){
  .qty-row,
  .qty-row.has-ring-size{
    grid-template-columns:1fr;
  }
}


#priceType:disabled{
  opacity:1;
  cursor:not-allowed;
  background:#fff8ed;
  border-color:var(--gold);
  color:var(--green);
  font-weight:700;
}

.tier-milestone{
  margin-top:14px;
  border:1px solid rgba(18,17,18,.10);
  border-radius:18px;
  padding:14px 16px;
  display:grid;
  gap:4px;
  background:rgba(249,246,243,.8);
}

.tier-milestone strong{
  color:var(--green);
  font-size:15px;
  letter-spacing:.02em;
}

.tier-milestone span{
  color:rgba(18,17,18,.72);
  font-size:13px;
  line-height:1.45;
}

.tier-milestone.tier-medio_mayoreo{
  border-color:rgba(250,196,96,.9);
  background:linear-gradient(135deg, rgba(250,196,96,.28), rgba(249,246,243,.96));
}

.tier-milestone.tier-mayoreo{
  border-color:rgba(250,196,96,.95);
  background:linear-gradient(135deg, rgba(2,45,33,.96), rgba(2,45,33,.86));
}

.tier-milestone.tier-mayoreo strong,
.tier-milestone.tier-mayoreo span{
  color:var(--gold);
}

.tier-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translate(-50%, 30px);
  opacity:0;
  z-index:9999;
  background:var(--green);
  color:var(--gold);
  border:1px solid rgba(250,196,96,.55);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  border-radius:999px;
  padding:14px 20px;
  font-weight:900;
  text-align:center;
  max-width:min(92vw,520px);
  transition:opacity .28s ease, transform .28s ease;
}

.tier-toast.show{
  opacity:1;
  transform:translate(-50%, 0);
}

@media (max-width:560px){
  .tier-toast{
    width:calc(100vw - 32px);
    border-radius:18px;
    bottom:16px;
  }
}


/* Acceso privado */
body.locked{
  overflow:hidden;
}

body.locked .hero,
body.locked .container,
body.locked .footer{
  display:none;
}

.access-gate{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(250,196,96,.18), transparent 30%),
    linear-gradient(135deg, rgba(2,45,33,.98), rgba(2,45,33,.90)),
    var(--green);
}

body:not(.locked) .access-gate{
  display:none;
}

.access-card{
  width:min(520px,94vw);
  background:rgba(249,246,243,.98);
  border:1px solid rgba(250,196,96,.34);
  border-radius:30px;
  padding:34px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
  text-align:center;
}

.access-logo{
  width:min(260px,70vw);
  height:auto;
  margin:0 auto 22px;
  display:block;
}

.access-card .eyebrow{
  color:var(--green);
  margin-bottom:10px;
}

.access-card h1{
  color:var(--green);
  font-size:clamp(30px,6vw,48px);
  margin:0 0 14px;
}

.access-help{
  color:rgba(18,17,18,.72);
  line-height:1.6;
  margin:0 0 24px;
}

.access-form{
  display:grid;
  gap:14px;
  text-align:left;
}

.access-form label{
  color:var(--green);
  font-weight:800;
  display:grid;
  gap:8px;
}

.access-form button{
  border:0;
  border-radius:18px;
  padding:15px 18px;
  background:var(--green);
  color:var(--gold);
  font-weight:900;
  cursor:pointer;
  font:inherit;
}

.access-error{
  min-height:20px;
  color:#9b1c1c;
  font-weight:800;
  text-align:center;
  margin:0;
}



/* Barra fija de inversión */
body{
  padding-bottom:110px;
}

body.locked{
  padding-bottom:0;
}

body.locked .sticky-investment{
  display:none;
}

.sticky-investment{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:9000;
  width:min(1040px, calc(100vw - 28px));
  background:rgba(255,255,255,.96);
  color:var(--black);
  border:1px solid rgba(2,45,33,.14);
  box-shadow:0 18px 60px rgba(18,17,18,.18);
  border-radius:22px;
  padding:12px 16px;
  display:grid;
  grid-template-columns:auto auto 1fr;
  gap:8px 18px;
  align-items:center;
  backdrop-filter:blur(10px);
}

.sticky-investment__main{
  display:grid;
  gap:2px;
  min-width:180px;
}


.sticky-review-btn{
  appearance:none;
  border:0;
  border-radius:999px;
  background:var(--green);
  color:var(--gold);
  font:inherit;
  font-size:13px;
  font-weight:900;
  padding:10px 14px;
  cursor:pointer;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(2,45,33,.18);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sticky-review-btn:hover,
.sticky-review-btn:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(2,45,33,.24);
  outline:2px solid rgba(250,196,96,.55);
  outline-offset:3px;
}

.sticky-review-btn:active{
  transform:translateY(0);
}

.sticky-label{
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:.16em;
  font-weight:900;
  color:rgba(18,17,18,.56);
}

.sticky-investment__main strong{
  color:var(--green);
  font-size:clamp(18px, 3vw, 28px);
  line-height:1;
}

.sticky-investment__meta{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  font-size:12px;
  font-weight:800;
}

.sticky-investment__meta span{
  background:var(--cream);
  border:1px solid rgba(18,17,18,.08);
  border-radius:999px;
  padding:6px 10px;
}

.sticky-tier{
  color:var(--green);
  background:rgba(250,196,96,.35) !important;
  border-color:rgba(250,196,96,.75) !important;
}

.sticky-investment__progress{
  grid-column:1/-1;
  height:7px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(2,45,33,.10);
}

.sticky-investment__progress span{
  display:block;
  height:100%;
  width:0%;
  border-radius:999px;
  background:linear-gradient(90deg, var(--gold), var(--green));
  transition:width .28s ease;
}

.sticky-investment p{
  grid-column:1/-1;
  margin:0;
  color:rgba(18,17,18,.68);
  font-size:12px;
  line-height:1.35;
  font-weight:700;
}

.sticky-investment.tier-mayoreo{
  background:linear-gradient(135deg, rgba(2,45,33,.98), rgba(2,45,33,.92));
  border-color:rgba(250,196,96,.45);
}

.sticky-investment.tier-mayoreo .sticky-label,
.sticky-investment.tier-mayoreo p{
  color:rgba(249,246,243,.82);
}

.sticky-investment.tier-mayoreo .sticky-investment__main strong,
.sticky-investment.tier-mayoreo .sticky-tier{
  color:var(--gold);
}

.sticky-investment.tier-mayoreo .sticky-review-btn{
  background:var(--gold);
  color:var(--green);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.sticky-investment.tier-mayoreo .sticky-investment__meta span{
  background:rgba(249,246,243,.10);
  color:var(--cream);
  border-color:rgba(250,196,96,.25);
}

.sticky-investment.tier-mayoreo .sticky-investment__progress{
  background:rgba(249,246,243,.18);
}

.tier-toast{
  bottom:130px;
}

@media (max-width:760px){
  body{
    padding-bottom:150px;
  }

  .sticky-investment{
    width:calc(100vw - 18px);
    bottom:9px;
    grid-template-columns:1fr auto;
    gap:7px 10px;
    padding:11px 12px;
    border-radius:18px;
  }

  .sticky-investment__main{
    min-width:0;
    grid-template-columns:1fr;
    align-items:end;
  }

  .sticky-review-btn{
    justify-self:end;
    align-self:center;
    padding:9px 12px;
    font-size:12px;
  }

  .sticky-investment__meta{
    grid-column:1/-1;
    justify-content:flex-start;
    gap:6px;
  }

  .sticky-investment__meta span{
    font-size:11px;
    padding:5px 8px;
  }

  .sticky-investment p{
    font-size:11px;
  }

  .tier-toast{
    bottom:164px;
  }
}


/* Mejora responsive del resumen de preorden */
.cart-items{
  gap:12px;
}

.cart-row{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(360px, auto);
  gap:14px;
  align-items:center;
  border:1px solid rgba(18,17,18,.08);
  background:linear-gradient(180deg, #fff, rgba(249,246,243,.72));
  border-radius:18px;
  padding:12px;
  box-shadow:0 10px 28px rgba(18,17,18,.06);
  font-size:14px;
}

.cart-product{
  display:grid;
  grid-template-columns:72px minmax(0, 1fr);
  gap:12px;
  align-items:center;
  min-width:0;
}

.cart-thumb{
  width:72px;
  height:72px;
  border-radius:14px;
  object-fit:cover;
  background:var(--cream);
  border:1px solid rgba(18,17,18,.08);
}

.cart-product-info{
  display:grid;
  gap:3px;
  min-width:0;
}

.cart-product-info strong{
  color:var(--green);
  font-size:15px;
  line-height:1.15;
  margin:0;
}

.cart-product-info span{
  display:block;
  color:rgba(18,17,18,.82);
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cart-product-info small{
  color:var(--green);
  font-weight:800;
}

.cart-side{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:0;
}

.cart-qty-control{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:0 0 auto;
  background:var(--cream);
  border:1px solid rgba(18,17,18,.08);
  border-radius:999px;
  padding:5px;
}

.cart-qty-control span{
  min-width:28px;
  text-align:center;
  font-weight:900;
  color:var(--black);
}

.cart-row button.qty-mini{
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  padding:0;
  border-radius:999px;
  background:var(--green);
  color:var(--gold);
  font-size:20px;
  line-height:1;
}

.cart-price-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(84px, auto));
  gap:8px;
  align-items:stretch;
}

.cart-price-grid > div{
  display:grid;
  gap:2px;
  min-width:0;
  background:rgba(249,246,243,.86);
  border:1px solid rgba(18,17,18,.08);
  border-radius:14px;
  padding:8px 10px;
  text-align:right;
}

.cart-price-grid span{
  color:rgba(18,17,18,.58);
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:nowrap;
}

.cart-price-grid strong{
  color:var(--black);
  font-size:14px;
  line-height:1.15;
  margin:0;
}

.cart-price-grid .cart-line-total{
  background:rgba(250,196,96,.18);
  border-color:rgba(250,196,96,.55);
}

.cart-price-grid .cart-line-total strong{
  color:var(--green);
  font-size:16px;
}

.cart-row button.remove-item{
  flex:0 0 auto;
  width:auto;
  height:auto;
  min-width:76px;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(18,17,18,.06);
  color:rgba(18,17,18,.72);
  font-size:12px;
  font-weight:900;
}

.cart-row button.remove-item:hover{
  background:var(--black);
  color:var(--white);
}

@media (max-width:980px){
  .cart-row{
    grid-template-columns:1fr;
  }

  .cart-side{
    justify-content:space-between;
    align-items:stretch;
  }

  .cart-price-grid{
    flex:1;
  }
}

@media (max-width:640px){
  .preorder-panel{
    padding:16px;
    border-radius:20px;
  }

  .cart-row{
    padding:10px;
    border-radius:16px;
    gap:10px;
  }

  .cart-product{
    grid-template-columns:64px 1fr;
  }

  .cart-thumb{
    width:64px;
    height:64px;
    border-radius:12px;
  }

  .cart-side{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
  }

  .cart-qty-control{
    justify-self:start;
  }

  .cart-price-grid{
    grid-template-columns:1fr 1fr;
    gap:7px;
  }

  .cart-price-grid .cart-line-total{
    grid-column:1/-1;
  }

  .cart-price-grid > div{
    text-align:left;
    padding:8px;
  }

  .cart-row button.remove-item{
    width:100%;
    justify-content:center;
    background:var(--black);
    color:var(--white);
  }
}

@media (max-width:420px){
  .cart-product-info span{
    font-size:13px;
  }

  .cart-price-grid{
    grid-template-columns:1fr;
  }

  .cart-price-grid .cart-line-total{
    grid-column:auto;
  }
}


/* Soporte de videos en carrusel de productos */
.product-video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#000;
}

.video-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  background:rgba(2,45,33,.92);
  color:var(--gold);
  border-radius:999px;
  padding:6px 11px;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}

.image-wrap.has-video .zoom-hint{
  left:82px;
}

.lightbox-video{
  display:block;
  width:auto;
  height:auto;
  max-width:min(92vw,980px);
  max-height:calc(100dvh - 132px);
  object-fit:contain;
  border-radius:18px;
  background:#000;
  box-shadow:0 24px 70px rgba(0,0,0,.42);
}

@media (max-width:700px){
  .lightbox-video{
    max-width:96vw;
    max-height:calc(100dvh - 150px);
    border-radius:14px;
  }

  .image-wrap.has-video .zoom-hint{
    left:12px;
    bottom:44px;
  }
}


/* Reproducción de videos embebidos desde Google Drive */
.product-video-frame{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#000;
}

.lightbox-video-frame{
  display:block;
  width:min(92vw,980px);
  height:calc(min(92vw,980px) * 0.5625);
  max-height:calc(100dvh - 132px);
  border:0;
  border-radius:18px;
  background:#000;
  box-shadow:0 24px 70px rgba(0,0,0,.42);
}

@media (max-width:700px){
  .lightbox-video-frame{
    width:96vw;
    height:54vw;
    max-height:calc(100dvh - 150px);
    border-radius:14px;
  }
}

/* Ajuste: videos reproducibles dentro de la tarjeta y lightbox */
.product-video-frame{
  position:relative;
  z-index:1;
}

.image-wrap.has-video{
  background:#000;
}

.image-wrap.has-video .product-image{
  display:none !important;
}

.lightbox-video-frame{
  position:relative;
  z-index:1;
}


/* Reproductor de video: carga bajo demanda para evitar congelamientos */
.product-video-play {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(250, 196, 96, 0.8);
  border-radius: 999px;
  background: rgba(2, 45, 33, 0.94);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.product-video-play:hover,
.product-video-play:focus-visible {
  background: #022d21;
  transform: translate(-50%, -50%) scale(1.03);
}

.product-video-play span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #fac460;
  color: #022d21;
  line-height: 1;
}

.product-image.video-poster {
  object-fit: contain;
  background: #f9f6f3;
  opacity: 0.78;
}

.product-video-frame,
.product-video {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  background: #121112;
}

@media (max-width: 640px) {
  .product-video-play {
    width: max-content;
    max-width: calc(100% - 2rem);
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
  }

  .product-video-frame,
  .product-video {
    min-height: 240px;
  }
}

/* Estabilidad del catálogo: render por bloques */
.load-more-products {
  display: block;
  margin: 1.25rem auto 7rem;
  min-height: 46px;
  padding: 0.8rem 1.25rem;
  border: 1px solid #022d21;
  border-radius: 999px;
  background: #f9f6f3;
  color: #022d21;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.load-more-products:hover,
.load-more-products:focus-visible {
  background: #022d21;
  color: #fac460;
}
.inline-retry {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #022d21;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}


/* Rendimiento: el navegador evita dibujar tarjetas fuera de pantalla. */
.card {
  content-visibility: auto;
  contain-intrinsic-size: 520px;
  contain: layout paint style;
}

.product-image {
  background-color: #f9f6f3;
}

.catalog {
  align-items: start;
}

@media (max-width: 700px) {
  .card {
    contain-intrinsic-size: 610px;
  }
}

/* Indicador discreto durante cargas de red. */
#status {
  min-height: 1.5rem;
}

.inline-retry {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #022d21;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.order-save-status{display:flex;align-items:center;gap:.55rem;margin-top:.75rem;padding:.65rem .8rem;border-radius:12px;background:rgba(2,45,33,.06);color:#35534a;font-size:.82rem;line-height:1.35}
.order-save-dot{flex:0 0 auto;width:.65rem;height:.65rem;border-radius:50%;background:#999}
.order-save-status[data-state="saving"] .order-save-dot{background:#fac460;animation:faustinoSavePulse 1s infinite alternate}
.order-save-status[data-state="saved"]{background:rgba(2,45,33,.1);color:#022d21}
.order-save-status[data-state="saved"] .order-save-dot{background:#1c8b62}
.order-save-status[data-state="pending"]{background:rgba(250,196,96,.18);color:#6c4b0c}
.order-save-status[data-state="pending"] .order-save-dot{background:#d99516}
@keyframes faustinoSavePulse{from{transform:scale(.8);opacity:.55}to{transform:scale(1.15);opacity:1}}

/* Exploración visual del catálogo: la preorden se mantiene independiente. */
.catalog-explorer{
  display:grid;
  gap:28px;
  margin:0 0 30px;
}
.catalog-explorer-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
}
.catalog-explorer h2,
.explorer-group h3{
  margin:.15rem 0 0;
  color:var(--green);
}
.catalog-explorer-heading p:last-child{
  max-width:680px;
  margin:.65rem 0 0;
  color:rgba(18,17,18,.68);
  line-height:1.55;
}
.explorer-group{
  padding:22px;
  border:1px solid rgba(18,17,18,.08);
  border-radius:24px;
  background:rgba(255,255,255,.72);
}
.explorer-group-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.explorer-group-heading p{
  margin:0;
  color:#86671c;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.explorer-count{
  color:rgba(18,17,18,.56);
  font-size:.84rem;
  font-weight:700;
  white-space:nowrap;
}
.explorer-rail{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding:2px;
}
.explorer-card{
  position:relative;
  min-height:174px;
  overflow:hidden;
  border:0;
  border-radius:18px;
  padding:0;
  background:var(--green);
  color:#fff;
  cursor:pointer;
  text-align:left;
  box-shadow:0 8px 22px rgba(18,17,18,.12);
  transition:transform .18s ease, box-shadow .18s ease;
}
.explorer-card:hover,
.explorer-card:focus-visible,
.explorer-card[aria-pressed="true"]{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(2,45,33,.24);
  outline:3px solid var(--gold);
  outline-offset:2px;
}
.explorer-card-image{
  width:100%;
  height:174px;
  display:block;
  object-fit:cover;
  background:var(--cream);
}
.explorer-card-content{
  position:absolute;
  inset:auto 0 0;
  display:grid;
  gap:3px;
  padding:32px 14px 14px;
  background:linear-gradient(transparent,var(--green) 66%);
}
.explorer-card-content strong{font-size:1rem;line-height:1.2}
.explorer-card-content small{color:var(--gold);font-size:.78rem;font-weight:700}
.catalog-context{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px;
  padding:14px 18px;
  border-radius:18px;
  background:var(--green);
  color:#fff;
}
.catalog-context .eyebrow-dark{margin:0;color:var(--gold);font-size:.68rem}
.catalog-context strong{display:block;margin-top:3px;font-size:1.15rem}
.catalog-context button{
  flex:0 0 auto;
  border:1px solid var(--gold);
  border-radius:999px;
  padding:.65rem .9rem;
  background:transparent;
  color:var(--gold);
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
@media (max-width:700px){
  .catalog-explorer{gap:20px}
  .explorer-group{padding:18px}
  .explorer-rail{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .explorer-card,.explorer-card-image{min-height:142px;height:142px}
  .explorer-card-content{padding:28px 10px 10px}
  .explorer-card-content strong{font-size:.88rem}
  .explorer-card-content small{font-size:.7rem}
  .catalog-context{align-items:flex-start;flex-direction:column}
}
