:root{
  color-scheme: light only;
  --boom-beige:#fcf3e8;
  --boom-azul:#1f3c88;
  --boom-naranja:#ff6a00;
  --gold: #ffc107;
    --dark: #121212;
    --glass: rgba(255, 255, 255, 0.1);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Poppins', sans-serif;
}

/* Evitar auto-zoom de iOS Safari al enfocar inputs (mínimo 16px en mobile) */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fcf3e8; /* color base por si no carga imagen */
  overflow-x: hidden;
}

/* HEADER */

.header{
  position:absolute;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:25px;
  z-index:5;
}

@media(min-width:768px){
  .header{
    justify-content:center;
    padding:18px 25px;
  }
  .header .logo-img{
    height:90px;
  }
}

.logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  line-height:0;
}

.logo-img{
  display:block;
  height:75px;
  width:auto;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.18));
  transition:transform .25s ease, filter .25s ease;
}

.logo-img:hover{
  transform:scale(1.05);
  filter:drop-shadow(0 5px 10px rgba(0,0,0,.25));
}

@media(max-width:480px){
  .logo-img{ height:58px; }
}

.menu-icon{
  font-size:28px;
  cursor:pointer;
  color:var(--boom-azul);
}


.categories{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  padding: 15px;
  background: var(--boom-beige);
}


.categories::-webkit-scrollbar{
  display: none;
}

.cat-btn{
  padding: 17px 8px;
  border-radius: 12px;
  border: 1px solid var(--boom-naranja);
  background: var(--boom-beige);
  color: var(--boom-naranja);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.cat-btn.active{
  background: #ff4d00;
  border: none;
  color: #fff;
}

/* ── Botón destacado: Promociones ───────────────────── */
.cat-btn-promo{
  background: linear-gradient(135deg, #ff4d00 0%, #ff8a00 100%);
  color: #fff;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(255, 77, 0, 0.35);
  animation: promoPulse 2s ease-in-out infinite;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-btn-promo::before{
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffc107, #ff4d00);
  z-index: -1;
  opacity: 0;
  transition: opacity .25s ease;
}

.cat-btn-promo:hover::before{
  opacity: 1;
}

.cat-btn-promo.active{
  background: linear-gradient(135deg, #d43300 0%, #ff4d00 100%);
  box-shadow: 0 6px 20px rgba(255, 77, 0, 0.55);
  transform: scale(1.03);
}

.cat-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: #fff;
  color: #ff4d00;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  margin-left: 4px;
}

@keyframes promoPulse{
  0%, 100% {
    box-shadow: 0 4px 14px rgba(255, 77, 0, 0.35);
  }
  50% {
    box-shadow: 0 4px 22px rgba(255, 77, 0, 0.75), 0 0 0 4px rgba(255, 77, 0, 0.15);
  }
}



.cart-btn{
  position:relative;
  background:#1a1a1a;
  border:1px solid #333;
  padding:10px 15px;
  border-radius:30px;
  cursor:pointer;
  color:white;
}

.cart-count{
  position:absolute;
  top:-6px;
  right:-6px;
  background:#ff5a00;
  width:20px;
  height:20px;
  border-radius:50%;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
}

/* HERO */

.hero {
  min-height: 100vh;
  background: #f6efe6;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

/* Imagen */
.hero-illustration {
  width: 100%;
  max-height: 76vh;   /* más protagonista */
  object-fit: contain;
  margin-bottom: -40px; /* esto es clave */
}

/* Badge tipo app */
.hero-badge {
  display: inline-block;
  background: #ffe4d1;
  color: #ff6a00;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  margin-bottom: 10px;
}

/* Título fuerte */
.hero-text {
  position: relative;
  margin-top: -90px;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 900;
  color: #ff6a00;
  margin: 10px 0;
}

/* Subtítulo */
.hero-text p {
  font-size: 16px;
  color: #444;
  margin-bottom: 25px;
}

/* Botón estilo app */
.hero-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff6a00, #ff4500);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(255, 106, 0, 0.4);
  transition: 0.25s ease;
}

.hero-btn:active {
  transform: scale(0.97);
}
/* GRID */

.menu{
  padding:20px;
  min-height: 378px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr; /* MOBILE: siempre 1 */
  gap:20px;
}
/* Tablet */
@media (min-width: 768px){
  .grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px){
  .grid{
    grid-template-columns: repeat(3, 1fr);
  }
}
/* CARD */

.card{
  background:var(--boom-beige);
  border:1px solid var(--boom-azul);
  border-radius:18px;
  overflow:hidden;
  transition:.3s;
  display:flex;
  /*flex-direction:column;*/
  box-shadow:0 10px 30px rgba(0,0,0,.4);
}


.card:hover{
  transform:translateY(-5px);
}

.card img{
  flex: 0 0 42%;       /* fija ancho del 42% en el flex, no se estira ni se encoge */
  width: 42%;
  max-width: 42%;
  height: 190px;
  max-height: 190px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.card-body{
  padding:15px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}

.desc{
  font-size:13px;
  opacity:.7;
  line-height:1.4;
}

.card-bottom{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.price{
  font-weight:800;
  color:#ff5a00;
}

/* BOTON DINAMICO */

.add-btn{
  background:#ff5a00;
  border:none;
  padding:8px 16px;
  border-radius:30px;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
}

.add-btn:active{
  transform:scale(.9);
}

/* CONTADOR */

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

.counter button{
  background:#ff5a00;
  border:none;
  width:28px;
  height:28px;
  border-radius:50%;
  font-weight:bold;
  cursor:pointer;
}

.counter span{
  font-weight:bold;
}

/* CARRITO */

.cart{
  position:fixed;
  top:0;
  bottom:0;
  left:0;
  right: 0;
  width:100%;
  height:100dvh;
  padding: 18px;
  padding-top: max(18px, env(safe-area-inset-top));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
  transition:.4s ease;
   transform: translateX(100%);
    background: var(--boom-azul);
  border-radius: 0;
  border:none;
  border-top: 1px solid var(--boom-naranja);
  z-index: 20;
  box-shadow:0 -20px 60px rgba(0,0,0,.6);
  overflow: hidden;
}

.cart.active{
   transform: translateX(0);
}

.cart::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:3px;
  /*background:#ff5a00;*/
  border-top-left-radius:25px;
  border-top-right-radius:25px;
}


.cart h2{
  font-weight:700;
  color:#ffffff;
  font-size:20px; /* antes más grande */
}

.cart h3{
  color:#fff;
}

.cart-header button{
  color:#111;
}

.cart-header{
  display:flex;
  justify-content:space-between;
  margin-bottom:15px;
}

.cart-items-wrapper{
  flex: 1;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cart-items-wrapper::after{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(to top, var(--boom-azul) 0%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}

.cart-items-wrapper.has-scroll::after{
  opacity: 1;
}

.cart-items{
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--boom-naranja) rgba(255,255,255,0.08);
}

.cart-items::-webkit-scrollbar{
  width: 6px;
}

.cart-items::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb{
  background: var(--boom-naranja);
  border-radius: 10px;
}

.cart-item{
  padding:15px 0;
  border-bottom:1px dashed rgba(255,255,255,0.1);
}

.cart-item h4{
  margin:0;
  font-size:15px;
  font-weight:600;
  color:#fff;
}

.cart-extras{
  margin-top:5px;
}

.cart-extra{
  font-size:13px;
  color:#fff;
}

.cart-item-row{
  display:flex;
  justify-content:space-between;
  margin-top:8px;
  font-weight:600;
}

.cart-qty{
  color:#aaa;
  font-size:13px;
}

.cart-price{
  color:#ff5a00;
  font-size:15px;
}

.summary{
  margin-bottom:15px;
}

.summary h4{
  color:#aaa;
  margin-bottom:8px;
}

.summary-row{
  display:flex;
  justify-content:space-between;
  margin-top:6px;
  color:#ddd;
  font-size:14px;
}

.total-row{
  margin-top:12px;
  font-weight:700;
  font-size:16px;
}

.total-price{
  color:#ff5a00;
}

.cart-item-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.cart-obs{
  font-size:13px;
  color:#fff;
  margin-top:4px;
  font-style:italic;
}

.delete-btn{
  background:rgba(255,255,255,0.08);
  border:none;
  color:#ff5a00;
  padding:6px 8px;
  border-radius:8px;
  cursor:pointer;
  font-size:14px;
  transition:.2s;
}

.delete-btn:hover{
  background:rgba(255,90,0,0.15);
}

.cerrar-btn{
  background:rgba(255,255,255,0.08);
  border:none;
  color:#fff;
  padding:6px 18px;
  border-radius:8px;
  cursor:pointer;
  font-size:14px;
  transition:.2s;
}

.next-btn{
  width:100%;
  padding:14px;
  border:none;
  border-radius:12px;
  background:#ff5a00;
  color:white;
  font-weight:600;
  font-size:16px;
  cursor:pointer;
  transition:.3s;
}

.next-btn:hover{
  background:#ff7a26;
}

.next-btn:disabled,
.next-btn[disabled]{
  background: #3a3a3a;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}
.next-btn:disabled:hover,
.next-btn[disabled]:hover{
  background: #3a3a3a;
}


.overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 10;   /* menor */
}

.overlay.active{
  opacity: 1;
  pointer-events: all;
}




.bottom-cart{
  position:fixed;
  bottom:-100px;
  left:50%;
  transform:translateX(-50%);
  width:90%;
  max-width:500px;
  height:55px;
  background:#ff5a00;
  border:none;
  border-radius:35px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 25px;
  color:white;
  font-weight:600;
  font-size:16px;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
  transition:.3s ease;
  z-index:200;
}

/* =============================
   CARRITO SLIDE UP
============================= */

.cart-sidebar{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 80%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform .3s ease;
  z-index: 150; /* mayor que overlay */
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 -10px 30px rgba(0,0,0,.2);
}

.cart-sidebar.active{
  transform: translateY(0);
}

/* ESTA ES LA CLAVE */
.bottom-cart.hide{
  opacity:0;
  transform:translateX(-50%) translateY(30px);
  pointer-events:none;
}

.bottom-total{
  font-weight:800;
}

.checkout{
  position: fixed;
  inset: 0;
  background: var(--boom-azul);
  padding: 25px;
  transform: translateX(100%);
  transition: 0.35s ease;
  z-index: 40;
  overflow-y: auto;
  color: white;
  font-family: sans-serif;
}

.checkout.active{
  transform: translateX(0);
}

.checkout h2{
  text-align: center;
  margin-bottom: 25px;
}

.checkout label{
  font-size: 14px;
  opacity: 0.7;
}

.checkout input{
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #1c1c1c;
  color: #fff;
  font-size: 16px; /* mínimo 16px para evitar auto-zoom en iOS Safari */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.checkout input:focus{
  outline: none;
  border-color: #ff8a33;
  box-shadow: 0 0 0 3px rgba(255,138,51,0.18);
}
.checkout input::placeholder{
  color: #9ca3af;
  opacity: 1;
}
.checkout label{
  color: #e5e7eb;
  opacity: 0.85;
}
.checkout input.has-error{
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.18);
}
.field-error{
  display: none;
  color: #fca5a5;
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 500;
}
.field-error.show{ display: block; }
.section.has-error .type-buttons button,
.section.has-error .payment-buttons button{
  border-color: #ef4444;
}
.section-error{
  display: none;
  color: #fca5a5;
  font-size: 0.82rem;
  margin-top: 8px;
  font-weight: 500;
}
.section-error.show{ display: block; }

.section{
  margin-bottom: 25px;
}

.section h3{
  margin-bottom: 10px;
  font-size: 15px;
  opacity: 0.8;
}

/* BOTONES TIPO TOGGLE */

.type-buttons,
.payment-buttons{
  display: flex;
  gap: 10px;
}

.type-buttons button,
.payment-buttons button{
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.type-buttons button:hover,
.payment-buttons button:hover{
  background: #222;
}

/* BOTON SELECCIONADO */

.selected{
  background: #ff4d00 !important;
  border: none !important;
  color: white;
}

/* BOTON CONFIRMAR */

.confirm-btn, .next-btn{
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  font-weight: bold;
  font-size: 16px;
  background: #ff4d00;
  color: white;
  margin-top: 20px;
  cursor: pointer;
  transition: 0.2s;
}

.confirm-btn:hover{
  transform: scale(1.02);
}

.selected{
  background: #ff4d00 !important;
  color: white;
  border: none !important;
}

.checkout-header{
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
  margin-top: 5px;
}

.back-btn{
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 5px;
}

.back-btn:hover{
  opacity: 0.7;
}

/* DESKTOP */
@media(min-width:768px){

  .cart{
    width:400px;
    height:100%;
    top:0;
    right:-400px;
    left:auto;
    border-radius:0;
    box-shadow:-20px 0 60px rgba(0,0,0,.5);
  }

  .cart.active{
    right:0;
    bottom:auto;
  }

}



/*************STYLE PARA MOSTRAR EL MENSAJE DE EXITO DE PEDIDO**/

.success-screen {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.success-screen.active {
  display: flex;
}

.success-card {
  background: white;
  padding: 36px 28px 28px;
  border-radius: 24px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: popUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 95vh;
  overflow-y: auto;
}

/* ICONO DE CHECK ANIMADO */
.success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.success-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.4);
  animation: checkPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes checkPop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.success-title {
  font-size: 24px;
  font-weight: 800;
  color: #1f3c88;
  margin: 0 0 8px;
}

.success-subtitle {
  color: #666;
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.5;
}

/* INFO DEL PEDIDO */
.success-pedido-info {
  background: linear-gradient(135deg, #fff7ed, #fef3e4);
  border: 1px solid rgba(255, 106, 0, 0.15);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.success-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.success-label {
  color: #666;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.success-value {
  color: #1f3c88;
  font-size: 18px;
  font-weight: 800;
}

.success-total {
  color: #ff6a00;
  font-size: 20px;
}

/* BOTON VER ESTADO (principal) */
.btn-ver-estado {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff6a00, #ff8833);
  color: white;
  padding: 15px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 20px;
}

.btn-ver-estado:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 106, 0, 0.45);
}

.btn-ver-estado:active {
  transform: scale(0.97);
}

.btn-arrow {
  font-size: 16px;
  transition: transform 0.3s;
}

.btn-ver-estado:hover .btn-arrow {
  transform: translateX(4px);
}

/* PASOS DEL FLUJO */
.success-steps {
  text-align: left;
  padding: 14px 6px;
  margin-bottom: 18px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: #999;
  font-size: 13px;
  font-weight: 500;
}

.step-item.active {
  color: #16a34a;
  font-weight: 700;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}

.step-item.active .step-dot {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

/* BOTON VOLVER (secundario) */
.btn-volver {
  margin-top: 4px;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #666;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 14px;
  width: 100%;
}

.btn-volver:hover {
  background: #f5f5f5;
  color: #333;
}

@keyframes popUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/***************************************************************/


/* ==============================
   SECCIÓN FEATURES / POR QUÉ ELEGIRNOS
   ============================== */
.process{
  padding:100px 20px;
  background:#fcfbfb;
  color:var(--boom-azul);
  text-align:center;
}

.process h2{
  font-size:36px;
  margin-bottom:10px;
}

.subtitle{
  color:#ff5a00;
  margin-bottom:60px;
  font-weight:600;
  letter-spacing:1px;
}

.process-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:40px;
  max-width:1100px;
  margin:auto;
}

.process-card{
  background:var(--boom-azul);
  border-radius:25px;
  overflow:hidden;
  transition:.4s ease;
}

.process-card h3{
  color:var(--boom-beige);
}

.process-card:hover{
  transform:translateY(-10px);
}

.process-card img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.process-card h3{
  margin:20px 0 10px;
  font-size:22px;
}

.process-card p{
  padding:0 20px 30px;
  color:#ccc;
  font-size:15px;
}

/****************************************************************/

/* ==============================
   CONTACTO
   ============================== */
.contacto {
  background: var(--boom-beige);
  padding: 40px 20px;
  text-align: center;
}

.contacto h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--boom-azul);
}

.contacto p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #333;
  margin: 6px 0;
}

.contacto a.map-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--boom-naranja);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.contacto a.map-btn:hover {
  background: #ff4d00;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--boom-azul);
  color: #fff;
  padding: 20px;
  text-align: center;
  margin-bottom: 30px;
}

.footer p {
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.footer .redes a {
  margin: 0 6px;
  display: inline-block;
  transition: transform 0.2s;
}

.footer .redes a img {
  width: 24px;
  height: 24px;
}

.footer .redes a:hover {
  transform: scale(1.2);
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .contacto h2 {
    font-size: 20px;
  }
  .contacto p {
    font-size: 14px;
  }
  .footer p {
    font-size: 13px;
  }
}

/*******************************************************/

/***************MODAL PARA EXTRAS*************************/
/* =========================
   MODAL OVERLAY
========================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  /* dvh respeta la barra dinámica de Safari iOS (a diferencia de vh) */
  height: 100dvh;
  /* Fallback para navegadores que no soportan dvh */
  height: 100vh;
}

.modal.active {
  display: flex;
}

/* =========================
   CONTENIDO MODAL
========================= */
.modal-content {
  background: var(--boom-beige);
  width: 100%;
  max-width: 420px;
  /* Limita la altura al viewport - paddings, para que entre siempre */
  max-height: calc(100dvh - 40px);
  max-height: calc(100vh - 40px); /* fallback */
  border-radius: 18px;
  padding: 22px;
  padding-bottom: 0; /* el footer maneja su propio padding */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  animation: fadeUp 0.25s ease;
  position: relative;
  /* Flex column: body scrollea, footer queda anclado abajo */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* el scroll vive adentro del .modal-body */
}

/* Body scrolleable (todo MENOS h3 y footer) */
.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0; /* CRUCIAL para que flex permita el shrink */
  /* Padding interno para que el último item respire del footer */
  padding-bottom: 6px;
  /* Scroll indicator gradiente al final */
  scrollbar-width: thin;
}

/* Animación */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h3 {
  margin: 0 0 15px 0;
  font-size: 20px;
  font-weight: 600;
}

/* =========================
   SECCIONES
========================= */
.modal-section {
  margin-bottom: 18px;
}

.modal-section label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Sección de cantidad centrada */
.modal-section-qty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 14px 0;
}

.modal-section-qty label {
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 700;
  color: #888;
}

/* =========================
   CONTROL CANTIDAD
========================= */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #f5f5f7;
  padding: 6px;
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.qty-control button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #ff4d00;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.qty-control button:hover {
  background: #ff4d00;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 77, 0, 0.35);
}

.qty-control button:active {
  transform: scale(0.92);
}

.qty-control button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #fff;
  color: #ff4d00;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.qty-control button:disabled:hover {
  background: #fff;
  color: #ff4d00;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.qty-control span {
  font-size: 22px;
  font-weight: 800;
  min-width: 36px;
  text-align: center;
  color: #111;
  font-variant-numeric: tabular-nums;
  transition: transform 0.2s ease;
}

.qty-control span.qty-bump {
  animation: qtyBump 0.3s ease;
}

@keyframes qtyBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); color: #ff4d00; }
  100% { transform: scale(1); }
}

/* =========================
   EXTRAS
========================= */
/* Contenedor general en el modal */
#modalExtras {
  display: flex;
  flex-direction: column;
}

/* --- PAPAS: Card destacado --- */
.extra-main-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fffaf3 0%, #ffedd5 100%);
  border: 2px solid #fed7aa;
  border-radius: 16px;
  padding: 16px 14px 14px;
  margin-top: 12px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  box-shadow: 0 2px 8px rgba(249,115,22,0.08);
}
.extra-main-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(249,115,22,0.18);
  border-color: #fdba74;
}
.extra-main-item:has(input:checked) {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
  box-shadow: 0 6px 18px rgba(16,185,129,0.2);
}
.extra-main-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Badge flotante "RECOMENDADO" */
.extra-main-badge {
  position: absolute;
  top: -11px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(249,115,22,0.35);
  text-transform: uppercase;
  z-index: 2;
}
.extra-main-badge i { font-size: 0.72rem; }
.extra-main-item:has(input:checked) .extra-main-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 10px rgba(16,185,129,0.4);
}

/* Ícono en círculo destacado */
.extra-main-icon-wrap {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(249,115,22,0.18), inset 0 0 0 2px #fed7aa;
  transition: transform .2s ease, box-shadow .2s ease;
}
.extra-main-item:hover .extra-main-icon-wrap {
  transform: rotate(-8deg) scale(1.05);
}
.extra-main-item:has(input:checked) .extra-main-icon-wrap {
  box-shadow: 0 4px 10px rgba(16,185,129,0.22), inset 0 0 0 2px #6ee7b7;
  transform: rotate(0) scale(1);
}
.extra-main-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.12));
}

/* Texto central */
.extra-main-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 3px;
}
.extra-main-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #7c2d12;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.extra-main-item:has(input:checked) .extra-main-title { color: #065f46; }

.extra-main-sub {
  font-size: 0.8rem;
  color: #9a3412;
  line-height: 1.2;
  min-height: 1em;
}
.extra-main-sub-default { display: inline; }
.extra-main-sub-checked { display: none; color: #047857; font-weight: 600; }
.extra-main-sub-checked i { margin-right: 3px; }
.extra-main-item:has(input:checked) .extra-main-sub-default { display: none; }
.extra-main-item:has(input:checked) .extra-main-sub-checked { display: inline; }

/* Columna derecha: precio arriba + botón abajo */
.extra-main-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.extra-main-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ea580c;
  letter-spacing: 0.01em;
}
.extra-main-item:has(input:checked) .extra-main-price { color: #047857; }

.extra-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(249,115,22,0.3);
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.extra-main-item:hover .extra-main-btn {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(249,115,22,0.4);
}
.extra-main-btn-default { display: inline-flex; align-items: center; gap: 5px; }
.extra-main-btn-checked { display: none; align-items: center; gap: 5px; }
.extra-main-item:has(input:checked) .extra-main-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 3px 8px rgba(16,185,129,0.35);
}
.extra-main-item:has(input:checked) .extra-main-btn-default { display: none; }
.extra-main-item:has(input:checked) .extra-main-btn-checked { display: inline-flex; }

@media (max-width: 480px) {
  .extra-main-item { gap: 11px; padding: 15px 12px 12px; }
  .extra-main-icon-wrap { width: 48px; height: 48px; }
  .extra-main-icon { font-size: 1.6rem; }
  .extra-main-title { font-size: 0.95rem; }
  .extra-main-sub { font-size: 0.74rem; }
  .extra-main-price { font-size: 0.74rem; }
  .extra-main-btn { padding: 7px 11px; font-size: 0.75rem; }
  .extra-main-badge { font-size: 0.62rem; padding: 3px 9px; top: -10px; }
}

/* Separador */
.extra-separator {
  border: 0;
  border-top: 1px solid #eee;
  margin: 0 0 15px 0;
}

/* --- Título "Extras" --- */
.extras-heading {
  display: flex !important;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 12px;
  padding-top: 16px;
  border-top: 1px dashed #e5e7eb;
}
.extras-heading-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.extras-heading-sub {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 500;
}

/* --- Lista de otros extras (tipo pill/card) --- */
.others-extras-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.extra-standard-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 11px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
  color: #374151;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
  margin: 0 !important;
}
.extra-standard-item:hover {
  border-color: #fdba74;
  background: #fffbf5;
}
.extra-standard-item:has(input:checked) {
  border-color: #f97316;
  background: #fff7ed;
}
.extra-standard-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Check custom circular */
.extra-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color .15s ease, background .15s ease;
}
.extra-check::after {
  content: "";
  width: 12px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity .12s ease;
}
.extra-standard-item:has(input:checked) .extra-check {
  background: #f97316;
  border-color: #f97316;
}
.extra-standard-item:has(input:checked) .extra-check::after {
  opacity: 1;
}

.extra-std-name {
  flex: 1;
  font-weight: 500;
  color: #111827;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.extra-standard-item:has(input:checked) .extra-std-name {
  color: #7c2d12;
  font-weight: 600;
}

.extra-std-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  white-space: nowrap;
  flex-shrink: 0;
}
.extra-std-price.free {
  color: #047857;
  background: #d1fae5;
  border-color: #a7f3d0;
}
.extra-standard-item:has(input:checked) .extra-std-price {
  background: #f97316;
  color: #fff;
  border-color: #ea580c;
}
.extra-standard-item:has(input:checked) .extra-std-price.free {
  background: #10b981;
  color: #fff;
  border-color: #059669;
}

/* =========================
   OBSERVACIONES
========================= */
#modalObs {
  width: 100%;
  min-height: 60px;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 16px; /* mínimo 16px para evitar auto-zoom en iOS Safari */
  resize: none;
  outline: none;
  transition: 0.2s;
}

#modalObs:focus {
  border-color: #111;
}

/* =========================
   FOOTER MODAL
========================= */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Como es el último flex child del modal-content y el body es scroll, queda anclado abajo */
  flex-shrink: 0;
  background: var(--boom-beige);
  padding: 14px 0;
  /* Borde superior sutil para separar visualmente del scroll */
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 6px;
  /* Safe area para iPhone con home indicator */
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

#modalTotal {
  font-size: 20px;
  font-weight: 800;
  color: var(--boom-naranja);
}

/* Botón agregar */
.modal-footer button {
  background: linear-gradient(135deg, var(--boom-naranja), #ea580c);
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

.modal-footer button:hover {
  opacity: 0.9;
}

/* =========================
   BOTÓN CERRAR
========================= */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #777;
  transition: 0.2s;
}

.modal-close:hover {
  color: #000;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 480px) {
  .modal-content {
    max-width: 100%;
    border-radius: 14px;
    padding: 18px;
  }
}




/* Cuando el producto no está activo */
.product-off {
    cursor: not-allowed;
}

.disabled-card {
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.product-off .add-btn {
    background-color: #888 !important;
    border-color: #888 !important;
    pointer-events: none; /* Evita clics si el atributo disabled falla */
}


.input-helper {
  display: block;
  font-size: 12px;
  color: #fafafa; /* Un gris sutil */
  margin-top: 5px;
  font-style: italic;
  margin-bottom: 25px;
}

/* Opcional: Resaltar en rojo si el usuario intenta enviar y está vacío */
input:invalid {
  border-color: #ff5252;
}



/*****************FIDELIDAD***********************/
/* ── VIP CARD — Premium Gold ─────────────────────────────── */
@keyframes vip-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}
@keyframes vip-glow-pulse {
    0%, 100% { box-shadow: 0 0 24px rgba(212,175,55,0.35), 0 20px 50px rgba(0,0,0,0.7); }
    50%       { box-shadow: 0 0 44px rgba(212,175,55,0.6),  0 20px 50px rgba(0,0,0,0.7); }
}
@keyframes crown-float {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-5px); }
}

.vip-card {
    position: relative;
    background: linear-gradient(160deg, #1a1408 0%, #0d0b06 50%, #1a1408 100%);
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 24px;
    padding: 0;
    color: white;
    text-align: center;
    max-width: 390px;
    margin: 24px auto;
    overflow: hidden;
    animation: vip-glow-pulse 3.5s ease-in-out infinite;
}

/* Franja dorada superior */
.vip-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d4af37, #f5e27a, #d4af37, transparent);
    background-size: 200% auto;
    animation: vip-shimmer 3s linear infinite;
}

/* Watermark decorativo */
.vip-card::after {
    content: '★';
    position: absolute;
    font-size: 200px;
    color: rgba(212,175,55,0.03);
    right: -30px;
    bottom: -40px;
    line-height: 1;
    pointer-events: none;
}

.vip-inner {
    padding: 28px 28px 24px;
}

/* Header */
.vip-header {
    margin-bottom: 20px;
}

.vip-crown {
    display: block;
    font-size: 36px;
    margin-bottom: 6px;
    animation: crown-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.7));
}

.vip-title {
    background: linear-gradient(135deg, #c9a227, #f5e27a, #c9a227);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vip-shimmer 4s linear infinite;
    letter-spacing: 4px;
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 0 4px;
}

.vip-subtitle {
    color: rgba(212,175,55,0.55);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* Separador */
.vip-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
    margin: 18px 0;
}

/* Status */
#vip-status {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    margin: 0 0 18px;
    min-height: 20px;
    letter-spacing: 0.3px;
}

/* Indicadores de Hamburguesas */
.hamb-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 0 0 20px;
}

.hamb-slot {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 10px 4px;
    border-radius: 10px;
    font-size: 20px;
    filter: grayscale(1) opacity(0.18);
    transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
}

.hamb-slot.active {
    filter: grayscale(0) opacity(1);
    background: rgba(212,175,55,0.12);
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 0 12px rgba(212,175,55,0.25);
    transform: translateY(-4px) scale(1.08);
}

/* Barra de progreso */
.vip-progress-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    height: 5px;
    margin: -10px 0 20px;
    overflow: hidden;
}
.vip-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c9a227, #f5e27a);
    border-radius: 99px;
    transition: width 0.8s ease;
}

/* Input y botón */
.vip-input-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-vip {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.25);
    color: white;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    text-align: center;
    letter-spacing: 1px;
}
.input-vip::placeholder { color: rgba(255,255,255,0.28); }
.input-vip:focus { border-color: rgba(212,175,55,0.65); }

.btn-vip {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #c9a227, #f0d060, #c9a227);
    background-size: 200% auto;
    color: #1a1408;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 18px rgba(212,175,55,0.35);
}
.btn-vip:hover {
    background-position: right center;
    box-shadow: 0 6px 24px rgba(212,175,55,0.55);
    transform: translateY(-2px);
}
.btn-vip:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Banner de upsell del combo ───────────────────── */
.upsell-banner{
  background: linear-gradient(135deg, #ff4d00 0%, #ff8a00 100%);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 77, 0, 0.35);
  animation: upsellFadeIn 0.4s ease, upsellPulseBorder 2.2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.upsell-banner::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: upsellShine 3s ease-in-out infinite;
  pointer-events: none;
}

.upsell-content{
  position: relative;
  z-index: 1;
}

.upsell-titulo{
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
}

.upsell-detalle{
  font-size: 12px;
  opacity: 0.95;
  margin-bottom: 6px;
  line-height: 1.35;
}

.upsell-precio{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 6px 0 4px;
}

.upsell-ahorro{
  display: inline-block;
  background: rgba(0, 0, 0, 0.22);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.btn-upsell{
  width: 100%;
  background: #fff;
  color: #ff4d00;
  border: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  transition: transform .15s ease, background .2s ease;
  letter-spacing: 0.3px;
}

.btn-upsell:hover{
  transform: scale(1.02);
  background: #fff6f0;
}

.btn-upsell:active{
  transform: scale(0.98);
}

@keyframes upsellFadeIn{
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes upsellPulseBorder{
  0%, 100% { box-shadow: 0 6px 20px rgba(255, 77, 0, 0.35); }
  50%      { box-shadow: 0 6px 28px rgba(255, 77, 0, 0.65), 0 0 0 3px rgba(255, 138, 0, 0.25); }
}

@keyframes upsellShine{
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Mensaje de cupón obtenido */
.coupon-message {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(212, 175, 55, 0.15));
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #f0d060;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 12px;
    animation: fadeInMessage 0.5s ease;
}

@keyframes fadeInMessage {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cupón animado */
.coupon-box {
    position: relative;
    border: 1.5px dashed rgba(212,175,55,0.6);
    padding: 18px 16px;
    margin-top: 4px;
    cursor: pointer;
    background: rgba(212,175,55,0.06);
    border-radius: 14px;
    animation: vip-glow-pulse 2s ease-in-out infinite;
    transition: transform 0.2s;
}
.coupon-box:hover { transform: scale(1.02); }

.coupon-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(212,175,55,0.7);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.coupon-code {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #c9a227, #f5e27a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coupon-hint {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
}

/* ── VIP CARD EN HERO ────────────────────── */
.vip-hero-card {
    width: 100%;
    background: white;
    border: 2px solid var(--boom-azul);
    border-radius: 18px;
    padding: 20px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(31, 60, 136, 0.12);
}

.vip-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(31, 60, 136, 0.18);
    border-color: var(--boom-naranja);
}

.vip-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffe4d1, #ffd4b8);
    color: var(--boom-naranja);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.vip-hero-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--boom-azul);
    margin: 8px 0;
}

.vip-hero-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.vip-hero-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6a00, #ff4500);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 18px rgba(255, 106, 0, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
}

.vip-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 106, 0, 0.4);
}

.vip-hero-btn:active {
    transform: scale(0.98);
}

/* ── VIP MODAL (popup a los 10 segundos) ────────────────────────── */
.vip-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.vip-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.vip-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.vip-modal .vip-card {
    position: relative;
    z-index: 1000;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
    animation: slideInUp 0.4s cubic-bezier(.34,1.56,.64,1);
    max-width: 420px;
    width: 90%;
    margin: 0 auto;
}

.vip-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(212,175,55,0.15);
    color: rgba(212,175,55,0.8);
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-close:hover {
    background: rgba(212,175,55,0.3);
    color: #f5e27a;
    transform: rotate(90deg);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.seccion-canje {
   /* background: rgba(255, 255, 255, 0.1);*/ /* Fondo sutil para resaltar */
    /*padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;*/
    display: flex;
    align-items: center; /* Alinea verticalmente el input y el botón */
    gap: 5px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: 6px;
    width: 100%;          /* Que ocupe el ancho disponible */
    box-sizing: border-box; /* Fundamental para que el padding no sume ancho */
}

/* El input propiamente dicho */
#cupon_input {
    /*flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: white;
    color: #333;*/ /* Texto oscuro para que se lea al escribir */
   /* font-size: 14px;*/
   flex: 1;              /* Toma el espacio sobrante */
    min-width: 0;         /* Permite que el input se encoja si es necesario */
    background: transparent;
    border: none;
    color: white;
    padding: 6px 10px;
    font-size: 0.8rem;
    outline: none;
}

.seccion-canje button {
    flex-shrink: 0;       /* Evita que el botón se achique o se corte */
    background: #ffffff20;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;  /* Evita que el texto "APLICAR" se parta en dos líneas */
}

.seccion-canje button:hover {
    background: #ffffff40;
}

/* Botón de Aplicar */
.cart-summary {
    /*display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-top: 2px solid rgba(255,255,255,0.1);*/
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
    /*display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;*/
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem; /* Fuente más chica */
    margin-bottom: 5px;
    opacity: 0.9;
}

.total-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #444;
    font-weight: bold;
    font-size: 1.2em;
}

.total-price {
    color: #ff5722; /* Naranja llamativo */
}

/* El botón Siguiente debe estar fuera de las filas para no romper el flex */
.next-btn {
    width: 100%;
    background: #ff5722;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
/* ===== MÁS VENDIDA ===== */
.card-top-seller {
  border: 2px solid #f5a623;
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.35);
  position: relative;
}

.badge-mas-vendido {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f5a623, #e8860a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  pointer-events: none;
}

/* ===== PRODUCTO NUEVO ===== */
.card-is-new {
  position: relative;
  border: 2px solid #f97316 !important;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.28);
  overflow: visible !important;
}
.card-is-new::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(249,115,22,0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.badge-nuevo {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(249,115,22,0.45), 0 0 0 1.5px rgba(255,255,255,0.7);
  pointer-events: none;
  animation: badgeNuevoPulse 2s ease-in-out infinite;
}
.badge-nuevo-spark {
  display: inline-block;
  animation: sparkSpin 2.4s ease-in-out infinite;
}
@keyframes badgeNuevoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(249,115,22,0.5), 0 0 0 2px rgba(255,255,255,0.7); }
  50% { transform: scale(1.06); box-shadow: 0 6px 16px rgba(249,115,22,0.7), 0 0 0 2px rgba(255,255,255,0.85); }
}
@keyframes sparkSpin {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(15deg) scale(1.15); }
}

/* ===== DESCUENTO EN CARD ===== */
.precio-desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.price-original {
  text-decoration: line-through;
  color: #888;
  font-size: 0.78rem;
  font-weight: 400;
}

.price-oferta {
  color: #e8430a;
  font-size: 1.05rem;
  font-weight: 800;
}

.badge-desc {
  display: inline-block;
  background: #e8430a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  width: fit-content;
}