/** Shopify CDN: Minification failed

Line 11:0 Unexpected "{"
Line 11:1 Expected identifier but found "%"
Line 12:22 Unexpected "-"
Line 14:1 Expected identifier but found "%"
Line 16:0 Unexpected "<"
Line 251:0 Unexpected "<"

**/
{% comment %}
  Bundle de Productos - Sección de Shopify
  Archivo: sections/product-bundle.liquid
{% endcomment %}

<style>
/* ===== CONTENEDOR ===== */
.product-bundle {
  max-width: 1280px;
  margin: 40px auto;
  padding: 40px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== CABECERA ===== */
.bundle-header { text-align: center; margin-bottom: 25px; }

.bundle-legend {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.bundle-title {
  font-size: 2.5rem;      /* solicitado */
  color: #2c3e50;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.bundle-savings {
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
  color: white;
  padding: 7px 20px;      /* más elegante */
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

/* ===== PRODUCTOS ===== */
.bundle-products {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 22px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  padding: 10px 0;
}

.bundle-product {
  flex: 0 0 auto;
  width: 340px;           /* más compacto */
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
}

.bundle-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.free-product { border: 3px solid #28a745; position: relative; }

.free-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #28a745;
  color: white;
  padding: 7px 16px;
  border-radius: 18px;
  font-weight: bold;
  font-size: 0.95rem;
  z-index: 2;
  box-shadow: 0 3px 8px rgba(40, 167, 69, 0.25);
}

.product-image {
  text-align: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  max-width: 200px;
  height: 190px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-image img:hover { transform: scale(1.05); }
.product-image img.changing { opacity: 0.5; }

.product-details { flex: 1; display: flex; flex-direction: column; }

.product-title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 8px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-price { text-align: center; margin-bottom: 10px; flex-shrink: 0; }

.price { font-weight: 700; display: inline-block; }

.comparison-price {
  color: #95a5a6;
  text-decoration: line-through;
  font-size: 1rem;
  margin-right: 8px;
}

.real-price { color: #28a745; font-size: 1.5rem; }
.free-price { color: #e74c3c; font-size: 1.5rem; }

/* Conector */
.bundle-connector { display: flex; align-items: center; justify-content: center; margin: 0 0 auto; align-self: center;  }
.plus-sign { color: #2c3e50; font-size: 2rem; font-weight: bold; user-select: none;line-height: 1; }

/* ===== RESUMEN ===== */
.bundle-summary {
  background: white;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.price-breakdown { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.price-breakdown > div {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 1.2rem;
}


.original-total { color:rgb(60, 65, 66); }
.bundle-total {
  font-size: 1.5rem;
  font-weight: 700;
  color:rgb(7, 25, 10);
  border-top: 2px solid #ecf0f1;
  padding-top: 12px;
}
.savings { color: #e74c3c; font-weight: 700; font-size: 1.3rem; }

.bundle-add-to-cart {
  width: 100%;
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  padding: 18px 34px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bundle-add-to-cart:hover {
  background: linear-gradient(45deg, #c0392b, #a93226);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.25);
}
.bundle-add-to-cart:active { transform: translateY(0); }

/* ===== XL DESKTOP ===== */
@media (min-width: 1200px){
  .bundle-product { width: 360px; }
  .product-image img { max-width: 210px; height: 190px; }
  .plus-sign { font-size: 2.1rem; }
}

/* ===== TABLET ===== */
@media (max-width: 1024px) and (min-width: 769px){
  .bundle-product { width: 300px; padding: 14px; }
  .product-image img { max-width: 180px; height: 170px; }
  .plus-sign { font-size: 1.8rem; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px){
  .product-bundle { margin: 10px; padding: 14px; }
  .bundle-products { gap: 8px; }
  .bundle-product{
    width: calc((100vw - 64px) / 2.2);
    max-width: 150px; min-width: 120px;
    padding: 10px 8px;
  }
  .product-image img{ max-width: 100px; height: 100px; }
  .product-title{ font-size: 0.95rem; }
  .comparison-price{ font-size: 0.85rem; }
  .real-price, .free-price{ font-size: 1.1rem; }
  .plus-sign{ font-size: 1.6rem; }
  .bundle-summary{ padding: 18px; }
  .bundle-add-to-cart{ padding: 14px 24px; font-size: 1.05rem; }
}

/* ===== MOBILE PEQUEÑO ===== */
@media (max-width: 480px){
  .product-bundle { margin: 8px; padding: 12px; }
  .bundle-product{
    width: calc((100vw - 54px) / 2.1);
    max-width: 140px; min-width: 110px;
  }
  .product-image img{ max-width: 90px; height: 90px; }
  .product-title{ font-size: 0.9rem; }
  .real-price, .free-price{ font-size: 1rem; }
  .plus-sign{ font-size: 1.4rem; }
  .bundle-summary{ padding: 16px; }
  .bundle-add-to-cart{ padding: 12px 20px; font-size: 0.95rem; }
}
</style>
