/* Extracted from productos.php inline styles */
.product-card { opacity: 0; transform: translateY(20px) scale(0.95); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); min-width: 0; margin-bottom: 0; border: none; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); height: 100%; background: linear-gradient(145deg, #ffffff, #f8f9fa); position: relative; }
.product-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 25px rgba(0,0,0,0.15); z-index: 10; }
.product-card.animate-in { opacity: 1; transform: translateY(0) scale(1); animation: fadeInUp 0.5s ease-out forwards; }
.image-container { position: relative; width: 100%; padding-top: 85%; overflow: hidden; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.product-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); background-color: #fff; padding: 10px; }
.product-card:hover .product-image { transform: scale(1.08); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.security-section { min-height: 55px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; width: 100%; }
.security-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 18px; font-size: 0.8rem; font-weight: 600; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border: 1px solid #dee2e6; box-shadow: 0 2px 4px rgba(0,0,0,0.05); max-width: 100%; width: 100%; box-sizing: border-box; }
.security-content { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.security-label { margin: 0; white-space: nowrap; color: #495057; font-size: 0.75rem; flex-shrink: 0; }
.security-level-text { margin: 0; color: #212529; font-weight: 700; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }
.security-stars-container { display: flex; align-items: center; gap: 1px; margin-left: auto; flex-shrink: 0; }
.security-stars-modern { display: flex; gap: 1px; }
.modern-star { font-size: 14px; color: #e0e0e0; text-shadow: 0 1px 1px rgba(0,0,0,0.1); transition: all 0.2s ease; flex-shrink: 0; }
.modern-star.filled { color: #007bff; text-shadow: 0 0 8px rgba(0, 123, 255, 0.4); }
.modern-star.half { position: relative; color: #007bff; }
.modern-star.half::before { content: "★"; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: #007bff; text-shadow: 0 0 8px rgba(0, 123, 255, 0.4); }
.modern-star.empty { color: #e0e0e0; }
.security-badge.high { background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); border-color: #c3e6cb; }
.security-badge.medium { background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); border-color: #ffeaa7; }
.security-badge.low { background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); border-color: #f5c6cb; }
.minimal-margin-container { width: 100vw; margin-left: calc(50% - 50vw); padding: 0 3px; }
.g-1 { --bs-gutter-x: 0.3rem; --bs-gutter-y: 0.3rem; }
.g-2 { --bs-gutter-x: 0.6rem; --bs-gutter-y: 0.6rem; }
@media (max-width: 576px) { .minimal-margin-container { padding: 0 2px; } .g-1 { --bs-gutter-x: 0.2rem; --bs-gutter-y: 0.2rem; } .security-section { min-height: 50px; } .security-badge { padding: 4px 8px; font-size: 0.7rem; } .security-label { font-size: 0.65rem; } .security-level-text { font-size: 0.7rem; } .modern-star { font-size: 12px; } }
@media (max-width: 400px) { .security-label { font-size: 0.6rem; } .security-level-text { font-size: 0.65rem; } .modern-star { font-size: 11px; } .security-badge { gap: 4px; } .security-content { gap: 4px; } }
@media (min-width: 1200px) { .minimal-margin-container { padding: 0 5px; } }
@media (min-width: 1600px) { .minimal-margin-container { padding: 0 8px; } .security-badge { font-size: 0.85rem; } .security-label { font-size: 0.8rem; } .security-level-text { font-size: 0.85rem; } .modern-star { font-size: 16px; } }
.card-body { display: flex; flex-direction: column; padding: 15px !important; }
.card-title { font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-text { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.categoria-text { font-size: 0.95rem; margin-bottom: 10px; }
.price-info-container { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 12px; padding: 10px 12px; background: #fff; border-radius: 8px; border: 1px solid #e0e0e0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.price-text { font-size: 1.4rem; font-weight: 800; color: #007bff; margin-bottom: 4px; text-align: right; font-family: Arial, sans-serif !important; }
.price-range { font-size: 1.2rem; font-weight: 700; color: #007bff; margin-bottom: 4px; text-align: right; font-family: Arial, sans-serif !important; }
.tax-info { font-size: 0.85rem; color: #6c757d; text-align: right; margin-bottom: 8px; padding: 3px 6px; background: #f8f9fa; border-radius: 4px; border-left: 2px solid #007bff; }
.stock-indicator { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 15px; font-weight: 600; font-size: 0.85rem; }
.stock-available { background: rgba(0, 123, 255, 0.1); color: #007bff; border: 1px solid rgba(0, 123, 255, 0.3); }
.stock-unavailable { background: rgba(108, 117, 125, 0.1); color: #6c757d; border: 1px solid rgba(108, 117, 125, 0.3); }
.btn-product { font-size: 1rem; padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; border: none; background: linear-gradient(135deg, #007bff, #0056b3); margin-top: auto; box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2); }
.btn-product:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4); background: linear-gradient(135deg, #0056b3, #004085); }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent); transform: translateX(-100%); transition: transform 0.6s; }
.product-card:hover::before { transform: translateX(100%); }
.image-placeholder { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }
@media (max-width: 768px) { .card-title { font-size: 1.1rem; } .card-text { font-size: 0.95rem; } .price-text { font-size: 1.2rem; } .price-range { font-size: 1rem; } .btn-product { font-size: 0.95rem; padding: 8px 14px; } .stock-indicator { font-size: 0.8rem; } }
@media (max-width: 576px) { .card-title { font-size: 1rem; } .card-text { font-size: 0.9rem; } .price-text { font-size: 1.1rem; } .price-range { font-size: 0.95rem; } .btn-product { font-size: 0.9rem; padding: 7px 12px; } .stock-indicator { font-size: 0.75rem; padding: 2px 8px; } .card-body { padding: 12px !important; } .price-info-container { padding: 8px 10px; } .security-section { min-height: 45px; } }


