:root{
  --bg:#0a0a0a; --paper:#1a1a1a; --ink:#ffffff; --muted:#9ca3af; --line:#374151;
  --brand:#f97316; --brand-ink:#fff; --accent:#ea580c; --accent-ink:#fff; --danger:#ef4444;
  --radius:14px; --maxw:1120px; --shadow:0 8px 20px rgba(249,115,22,.3);
  --primary-gradient:linear-gradient(135deg, #f97316, #ea580c, #dc2626);
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif; background:var(--bg); color:var(--ink); line-height:1.45}
a{color:inherit}
img{max-width:100%; display:block}
.container{max-width:var(--maxw); margin:0 auto; padding:0.2rem}

/* Top promo */
.topbar{background:linear-gradient(135deg, #f97316, #ea580c); color:var(--brand-ink); text-align:center; font-weight:700; box-shadow:0 2px 8px rgba(249,115,22,0.3)}
.topbar .container{padding:.8rem 1rem}

/* Header */
header{position:sticky; top:0; z-index:10; background:var(--paper); border-bottom:2px solid var(--accent); padding:0.1rem 0; box-shadow:0 2px 10px rgba(249,115,22,0.2)}
.brand{display:flex; align-items:center; gap:1rem; font-weight:900; font-size:1.5rem; color:var(--ink)}
.brand .logo{width:80px; height:80px; object-fit:contain}
nav{margin-left:auto; display:flex; gap:1rem}
nav a{text-decoration:none; color:var(--ink); font-weight:600}
nav a:hover{text-decoration:underline; color:var(--brand)}
.row{display:flex; align-items:center}

/* Hero */
.hero{display:grid; place-items:center; text-align:center; padding:0.75rem 1rem 0.75rem; background:linear-gradient(180deg, #1f1f1f, #2a2a2a, #1a1a1a)}
.hero-image{display:block; margin:0 auto 0.75rem; width:100%; max-width:500px; height:auto; object-fit:contain; border-radius:20px; box-shadow:0 8px 25px rgba(249,115,22,0.3)}
.hero h1{font-size:clamp(1.8rem,3.4vw,3rem); margin:.3rem 0; color:var(--ink)}
.hero p{color:var(--muted); max-width:720px; margin:.3rem auto 1rem}
.btn{display:inline-block; padding:.85rem 1.2rem; border-radius:12px; background:linear-gradient(135deg, #f97316, #ea580c); color:var(--accent-ink); font-weight:800; text-decoration:none; box-shadow:0 6px 20px rgba(249,115,22,0.4); border:2px solid #f97316}
.btn:hover{transform:translateY(-2px); box-shadow:0 8px 25px rgba(249,115,22,0.6)}

/* Badges */
.badges{display:grid; grid-template-columns:repeat(4, 1fr); gap:1rem; margin:1rem 0; text-align:center}
.badge{background:linear-gradient(135deg, #2a2a2a, #1f1f1f); border:2px solid #374151; border-radius:var(--radius); padding:1.2rem; display:flex; flex-direction:column; gap:.4rem; align-items:center; justify-content:center; text-align:center; box-shadow:0 8px 25px rgba(249,115,22,.2); transition:transform 0.2s ease; min-height:140px}
.badge:hover{transform:translateY(-3px); box-shadow:0 12px 30px rgba(249,115,22,.3)}
.badge .b-emoji{font-size:2rem}
.badge b{display:block; color:#f97316}
.badge .muted{font-size:0.85rem; line-height:1.3; color:var(--muted)}

/* Container principal para centrar todo */
.main-container{max-width:var(--maxw); margin:0 auto; padding:0 1rem}

/* Container específico para badges */
.badges-container{max-width:var(--maxw); margin:0 auto; padding:0 1rem}

/* Productos grid */
.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem}
.card{background:var(--paper); border:2px solid var(--line); border-radius:var(--radius); box-shadow:0 8px 25px rgba(249,115,22,.15); transition:transform 0.2s ease, box-shadow 0.2s ease; display:flex; flex-direction:column; min-height:320px}
.card:hover{transform:translateY(-5px); box-shadow:0 15px 35px rgba(249,115,22,.25)}

/* Contenedor específico para productos populares */
.product-container {
  height: 160px !important;
  min-height: 160px !important;
  max-height: 160px !important;
  background: #2a2a2a;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.product-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: block;
}

/* Fallback general para contenedores antiguos */
.ph{height:160px; display:grid; place-items:center; font-size:3rem; background:#2a2a2a; position:relative; overflow:hidden}
.review-image img{width:100%; height:100%; object-fit:contain; border-radius:0}
.emoji-fallback{font-size:3rem}

/* Específico para imágenes de reseñas - mayor especificidad */
.panel .illu.review-image {
  height: 200px !important;
  max-height: 200px !important;
  overflow: hidden !important;
}

@media (min-width: 768px) {
  .panel .illu.review-image {
    height: 260px !important;
    max-height: 260px !important;
  }
}

@media (max-width: 840px) {
  .panel .illu.review-image {
    height: 160px !important;
    max-height: 160px !important;
  }
}
.card .pad{padding:1rem; text-align:center}
.price{font-weight:900}
.old{color:var(--muted); text-decoration:line-through; margin-left:.4rem; font-weight:600}
.cta{margin-top:.6rem; display:inline-block; padding:.65rem .9rem; background:#ecfdf5; color:#065f46; border:1px solid #bbf7d0; border-radius:10px; text-decoration:none; font-weight:800; transition:all 0.2s ease;}
.cta:hover{background:#d1fae5; transform:translateY(-1px)}

/* Carousel base */
.carousel{
  position:relative; 
  overflow:hidden; 
  background:linear-gradient(135deg, #fff, #fef3c7); 
  border:2px solid var(--line); 
  border-radius:var(--radius); 
  box-shadow:0 8px 25px rgba(251,146,60,.2);
}
.carousel .head{display:flex; align-items:center; justify-content:space-between; padding:1rem; border-bottom:1px solid var(--line)}
.track{display:flex; transition:transform .4s ease}
.slide{min-width:100%; padding:1rem}
.slide .panel{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

/* En pantallas grandes: lado a lado con altura fija */
@media (min-width: 768px) {
  .slide .panel{
    flex-direction: row;
    align-items: flex-start;
    height: 280px;
  }
}

/* Contenedor de imagen simplificado */
.panel .illu {
  flex: 0 0 auto;
}

/* En pantallas grandes: imagen ocupa la mitad EXACTA */
@media (min-width: 768px) {
  .panel .illu {
    flex: 1;
    height: 260px;
    max-height: 260px;
    display: grid;
    place-items: center;
  }
}

/* Contenedor específico para el texto */
.panel .text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* En pantallas grandes, ajustar layout */
@media (min-width: 1024px) {
  .slide { padding: 1.5rem; }
}
/* Contenedor de imagen - responsive híbrido con contención */
.panel .illu{
  height: 200px;
  display: grid; 
  place-items: center; 
  font-size: 3rem; 
  background: white; 
  border: 1px solid #e2e8f0; 
  border-radius: 12px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Pantallas grandes: altura fija para alineación */
@media (min-width: 768px) {
  .panel .illu { 
    height: 100%;
    max-height: 260px;
    font-size: 3.5rem;
    overflow: hidden;
    position: relative;
  }
}

.pack-image{
  max-width: 100%;
  max-height: 100%; 
  width: auto; 
  height: auto;
  border-radius: 8px; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background: #ff000020;
  display: block;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Contenedor del texto - altura fija EXACTA */
.panel .info {
  padding: 1rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
  width: 100%;
  min-height: 120px;
}

@media (min-width: 768px) {
  .panel .info { 
    height: 260px;
    max-height: 260px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .panel .text-container {
    height: 260px;
    max-height: 260px;
  }
}

.panel .info h3{margin:.2rem 0}
.pill{display:inline-flex; align-items:center; gap:.3rem; padding:.25rem .5rem; border-radius:999px; font-size:.85rem; background:#ecfeff; border:1px solid #a5f3fc}
.pill.danger{background:#fee2e2; border-color:#fecaca}
.pill.success{background:#ecfdf5; border-color:#bbf7d0}
.pill-small{font-size:.75rem; padding:.2rem .4rem}

.pack-layout{display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:1rem}
.pack-content{flex:1; padding-right:1rem}
.pack-title{font-size:1.4rem; margin:.4rem 0; font-weight:700}
.pack-desc{font-size:1rem; margin:.3rem 0; font-weight:400}
.pack-price{margin:.5rem 0}
.pack-price .price{font-size:1.5rem; font-weight:900}

.pack-controls{display:flex; flex-direction:column; gap:.3rem; min-width:100px}

.control-label{
  display:flex; 
  align-items:center; 
  justify-content:center;
  width:100px;
  height:32px;
  background:#fef3c7; 
  color:#92400e; 
  border:1px solid #fde68a; 
  border-radius:8px; 
  font-size:.85rem; 
  font-weight:600; 
  text-align:center;
  cursor:default;
}

.control-btn{
  display:flex; 
  align-items:center; 
  justify-content:center;
  width:100px;
  height:32px;
  background:#ecfdf5; 
  color:#065f46; 
  border:1px solid #bbf7d0; 
  border-radius:8px; 
  font-size:.85rem; 
  font-weight:600; 
  cursor:pointer; 
  text-decoration:none;
  text-align:center;
  transition:all 0.2s ease;
  padding:0;
}
.control-btn:hover{background:#d1fae5; transform:translateY(-1px)}

.ventajas-list{margin:.6rem 0; padding:0; list-style:none; color:var(--muted)}
.ventajas-list li{position:relative; padding-left:1rem; margin-bottom:.3rem; text-align:left}
.ventajas-list li:before{content:'•'; position:absolute; left:0; color:#f59e0b; font-weight:bold}

.navbtn{position:absolute; top:50%; transform:translateY(-50%); border:none; background:rgba(0,0,0,.6); color:#fff; width:38px; height:38px; border-radius:999px; cursor:pointer}
.navbtn:hover{background:rgba(0,0,0,.75)}
.prev{left:10px} 
.next{right:10px}
.dots{display:flex; gap:.4rem; justify-content:center; padding: .6rem 0 1rem}
.dot{width:8px; height:8px; border-radius:999px; background:#e5e7eb}
.dot.active{background:#111}

/* Testimonios */
.stars{color:#f59e0b; letter-spacing:.1rem}
blockquote{margin:0; font-size:1.05rem}
.who{color:var(--muted)}

/* Newsletter */
.newsletter{background:linear-gradient(135deg, #fff, #fef3c7); border:2px solid var(--accent); border-radius:var(--radius); box-shadow:0 8px 25px rgba(245,158,11,.2); padding:1.5rem; display:grid; gap:1rem}

.contact-header{display:flex; flex-direction:column; align-items:center; gap:0.5rem; margin-bottom:0.5rem}
.contact-header h3{margin:0; text-align:center}
.newsletter p.muted{text-align:center; margin:0}

.contact-form{display:flex; justify-content:center; width:100%}

.newsletter form{display:flex; flex-direction:column; gap:0.8rem; max-width:400px; width:100%}
.newsletter input{width:100%; padding:.75rem .9rem; border:1px solid var(--line); border-radius:10px; box-sizing:border-box}

.button-row{display:flex; gap:0.6rem; justify-content:center}
.button-row .btn{flex:1; text-align:center; padding:.75rem .9rem; border-radius:10px; font-weight:800; text-decoration:none; display:flex; align-items:center; justify-content:center}

.btn-whatsapp{background:#25d366 !important; color:white !important; border:none; transition:all 0.2s ease}
.btn-whatsapp:hover{background:#20c55e !important; transform:translateY(-1px)}

footer{border-top:1px solid var(--line); margin-top:2rem; background:#fff}
footer .container{display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap}
footer small{color:var(--muted)}

/* FAB Carrito */
.fab-cart{position:fixed; right:16px; bottom:70px; background:#f59e0b; color:#fff; border-radius:50%; padding:1rem; font-weight:800; cursor:pointer; box-shadow:var(--shadow); z-index:50; display:flex; align-items:center; justify-content:center; width:48px; height:48px; font-size:1.2rem}
.fab-cart:hover{filter:brightness(1.1); transform:scale(1.05)}
.cart-badge{position:absolute; top:-4px; right:-4px; background:#ef4444; color:#fff; border-radius:50%; width:20px; height:20px; display:flex; align-items:center; justify-content:center; font-size:0.7rem; font-weight:bold; border:2px solid #fff}

/* Modal del carrito */
.cart-modal{position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:1000; display:none; align-items:center; justify-content:center}
.cart-content{background:#fff; border-radius:var(--radius); width:90%; max-width:500px; max-height:80vh; overflow:hidden; box-shadow:0 20px 40px rgba(0,0,0,0.3)}
.cart-header{display:flex; justify-content:space-between; align-items:center; padding:1.5rem; border-bottom:1px solid var(--line); background:linear-gradient(135deg, #fff, #fef3c7)}
.cart-header h2{margin:0; font-size:1.4rem; color:#92400e}
.close-cart{background:none; border:none; font-size:1.5rem; cursor:pointer; padding:0; color:#6b7280; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center}
.close-cart:hover{background:#f3f4f6}
.cart-items{padding:1rem; max-height:300px; overflow-y:auto}
.cart-item{display:flex; align-items:center; gap:1rem; padding:1rem; border:1px solid var(--line); border-radius:12px; margin-bottom:0.5rem}
.cart-item-image{width:60px; height:60px; border-radius:8px; background:#f1f5f9; display:flex; align-items:center; justify-content:center; font-size:2rem; flex-shrink:0}
.cart-item-info{flex:1}
.cart-item-title{font-weight:600; margin-bottom:0.2rem}
.cart-item-price{color:var(--muted); font-size:0.9rem}
.cart-item-controls{display:flex; align-items:center; gap:0.5rem}
.qty-btn{background:#f59e0b; color:#fff; border:none; border-radius:6px; width:32px; height:32px; cursor:pointer; font-weight:bold}
.qty-btn:hover{background:#d97706}
.qty-btn:disabled{background:#d1d5db; cursor:not-allowed}
.cart-footer{padding:1.5rem; border-top:1px solid var(--line); background:#fafafa}
.cart-total{margin-bottom:1rem; font-size:1.2rem; text-align:center}
.btn-order-whatsapp{width:100%; padding:1rem; background:#25D366; color:#fff; border:none; border-radius:12px; font-size:1.1rem; font-weight:bold; cursor:pointer}
.btn-order-whatsapp:hover{background:#128c7e}

/* FAB WhatsApp */
.fab-wa{position:fixed; right:16px; bottom:8px; background:#25D366; color:#fff; border-radius:50%; padding:1rem; font-weight:800; text-decoration:none; box-shadow:var(--shadow); z-index:50; display:flex; align-items:center; justify-content:center; width:48px; height:48px}
.fab-wa:hover{filter:brightness(1.05)}

/* Responsive para badges y productos */
@media (max-width:1400px){
  .badges{grid-template-columns:repeat(2, 1fr)}
  .grid{grid-template-columns:repeat(2, 1fr)}
}

@media (max-width:840px){
  .panel{grid-template-columns:1fr}
  .panel .illu{height:160px}
  /* Productos: scroller en móvil */
  #productos{position:relative}
  #productos .grid{display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:1rem; padding:.2rem .5rem 1rem}
  #productos .card{scroll-snap-align:start; min-width:80%; flex:0 0 80%}
  #productos .grid::-webkit-scrollbar{display:none}
  #productos .scrollbtn{position:absolute; top:calc(50% + 1rem); transform:translateY(-50%); border:none; background:rgba(0,0,0,.6); color:#fff; width:38px; height:38px; border-radius:999px; display:flex; align-items:center; justify-content:center}
  #productos .scrollbtn.prev{left:6px}
  #productos .scrollbtn.next{right:6px}
}

@media (max-width:640px){
  .badges-container{max-width:500px; padding:0 0.5rem}
  .row{flex-wrap:wrap; justify-content:center; gap:.5rem}
  nav{margin-left:0}
  .brand .logo{width:100px; height:100px}
  .brand{font-size:1.8rem}
  header{padding:0.1rem 0}
  .hero-image{width:100%; max-width:400px}
  /* Badges específicos para móvil */
  .badges{grid-template-columns:1fr 1fr; gap:0.8rem}
  .badge{padding:1rem; min-height:120px}
}

@media (max-width:380px){
  .badges{grid-template-columns:1fr}
  .badges-container{max-width:300px}
}

/* ===== PRODUCTOS POPULARES - CARRUSEL DESLIZABLE ===== */
.productos-container {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  background: #f8fafc;
  border-radius: 16px;
}

.productos-track {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.item-producto {
  flex: 0 0 33.333%; /* 3 productos por defecto */
  padding: 0 0.75rem;
  box-sizing: border-box;
}

.productos-container .navbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #4a5568;
  z-index: 2;
  transition: all 0.2s ease;
}

.productos-container .navbtn:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.05);
}

.productos-container .prev {
  left: 10px;
}

.productos-container .next {
  right: 10px;
}

.productos-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.productos-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.productos-dots .dot.active {
  background: #3182ce;
  transform: scale(1.25);
}

.productos-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.productos-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.productos-dots .dot.active {
  background: #3182ce;
  width: 20px;
  border-radius: 4px;
}

.item-producto {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 0 0 280px; /* Ancho fijo para carrusel */
  min-width: 280px;
}

.item-producto:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.foto-zona {
  height: 180px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.foto-producto {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.emoji-backup {
  font-size: 3rem;
}

.info-zona {
  padding: 1.2rem;
  text-align: center;
}

.titulo-producto {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #1f2937;
}

.desc-producto {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0 0 0.8rem 0;
  line-height: 1.4;
}

.precio-zona {
  margin-bottom: 1rem;
}

.precio-actual {
  font-size: 1.1rem;
  font-weight: 900;
  color: #111827;
}

.precio-anterior {
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.boton-agregar {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}

.boton-agregar:hover {
  background: #d1fae5;
  transform: translateY(-1px);
}

/* Responsive para productos carousel */
@media (max-width: 768px) {
  .item-producto {
    flex: 0 0 50%; /* 2 productos en tablets */
  }
}

@media (max-width: 480px) {
  .item-producto {
    flex: 0 0 100%; /* 1 producto en móvil */
  }
  
  .foto-zona {
    height: 160px;
  }
}