/* ALIMQUICAL - producto_detalle.css
   Extraido de templates/producto_detalle.html (Fase 4 del rediseño).
   Se carga ANTES que site.css para que los tokens ganen. */
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: #f5f7fa; color: #1a1a1a; min-height: 100vh; }

    /* === Header === */
    .detail-header {
      background: linear-gradient(135deg, #0D1B3E 0%, #1565C0 100%);
      color: #fff;
      padding: 14px max(16px, calc((100% - 700px) / 2));
      display: flex;
      align-items: center;
      gap: 12px;
      position: sticky;
      top: 64px;
      z-index: 80;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .detail-back {
      color: #fff;
      text-decoration: none;
      font-size: 20px;
      width: 44px;
      height: 44px;
      flex: none;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,0.15);
      border-radius: 10px;
      transition: background 0.2s;
    }
    .detail-back:hover { background: rgba(255,255,255,0.25); }
    .detail-header h1 { flex: 1; color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* === Image Section === */
    .image-section {
      background: #fff;
      padding: 20px;
      text-align: center;
      cursor: zoom-in;
      position: relative;
    }
    .image-section::after {
      content: "🔍 Toca para ampliar";
      position: absolute;
      bottom: 8px;
      right: 16px;
      font-size: 11px;
      color: #999;
      background: rgba(255,255,255,0.9);
      padding: 4px 10px;
      border-radius: 12px;
    }
    .detail-image {
      max-width: 100%;
      max-height: 450px;
      object-fit: contain;
      border-radius: 12px;
      transition: transform 0.3s;
    }
    .detail-image:hover { transform: scale(1.02); }
    .detail-image-placeholder {
      width: 100%;
      height: 320px;
      background: linear-gradient(135deg, #1565C0, #0D1B3E);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 80px;
    }

    /* === Content === */
    .detail-content { padding: 16px; max-width: 700px; margin: 0 auto; }

    .detail-card {
      background: #fff;
      border-radius: 16px;
      padding: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
      margin-bottom: 12px;
    }

    .detail-category {
      display: inline-block;
      background: #e3f2fd;
      color: #1565C0;
      padding: 5px 14px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 12px;
    }

    .detail-name {
      font-size: 22px;
      font-weight: 700;
      color: #0D1B3E;
      line-height: 1.3;
      margin-bottom: 6px;
    }

    .detail-brand {
      font-size: 14px;
      color: #666;
      margin-bottom: 16px;
    }

    .detail-price-box {
      background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
      border: 2px solid #28a745;
      border-radius: 12px;
      padding: 16px;
      text-align: center;
      margin-bottom: 16px;
    }
    .detail-price-label {
      font-size: 12px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .detail-price {
      font-size: 36px;
      font-weight: 700;
      color: #28a745;
    }
    .detail-price-sugerido {
      font-size: 14px;
      color: #999;
      text-decoration: line-through;
      margin-top: 4px;
    }

    .detail-description {
      font-size: 15px;
      line-height: 1.7;
      color: #444;
      margin-bottom: 16px;
    }

    .detail-specs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }
    .spec-item {
      background: #f8f9fa;
      padding: 14px 10px;
      border-radius: 10px;
      text-align: center;
    }
    .spec-label {
      font-size: 10px;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .spec-value {
      font-size: 13px;
      font-weight: 600;
      color: #0D1B3E;
      margin-top: 4px;
    }

    /* === CTA Buttons === */
    .cta-group {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 16px;
    }
    .detail-cta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 16px;
      color: #fff;
      text-align: center;
      text-decoration: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .detail-cta:hover { transform: scale(1.02); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
    .detail-cta:active { transform: scale(0.98); }
    .cta-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
    .cta-catalogo { background: linear-gradient(135deg, #1565C0, #0D1B3E); }

    /* === Lightbox === */
    .lightbox {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.95);
      z-index: 9999;
      cursor: zoom-out;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }
    .lightbox.active { display: flex; }
    .lightbox img {
      max-width: 100%;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 8px;
    }
    .lightbox-close {
      position: absolute;
      top: 16px;
      right: 16px;
      color: #fff;
      font-size: 28px;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,0.15);
      border-radius: 50%;
      cursor: pointer;
      border: none;
    }
    .lightbox-hint {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      color: rgba(255,255,255,0.6);
      font-size: 13px;
    }

    @media (max-width: 480px) {
      .detail-specs { grid-template-columns: 1fr 1fr; }
      .detail-name { font-size: 20px; }
      .detail-price { font-size: 30px; }
    }
  
