/* Estilos para el modal de producto */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.product-modal.modal-show {
  display: flex;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  z-index: 3;
  transition: color 0.3s;
}

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

.modal-content {
  display: flex;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-left {
  flex: 0 0 35%;
  padding: 20px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-image {
  max-width: 80%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-right {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.modal-right h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 28px;
}

.modal-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.modal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.modal-section h3 {
  color: #3498db;
  margin-bottom: 15px;
  font-size: 18px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-weight: 600;
  color: #555;
  margin-bottom: 3px;
  font-size: 14px;
}

.spec-value {
  color: #333;
  font-size: 15px;
}

.usage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.usage-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #444;
}

.usage-list li:before {
  content: '✓';
  color: #2ecc71;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.warranty {
  display: flex;
  align-items: center;
  margin-top: 15px;
  color: #e67e22;
  font-weight: 500;
}

.warranty i {
  margin-right: 8px;
  font-size: 18px;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: #3498db;
  color: white;
  border: 2px solid #3498db;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background: white;
  color: #555;
  border: 2px solid #ddd;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    max-height: 90vh;
  }
  
  .modal-left {
    flex: 0 0 auto;
    padding: 20px;
  }
  
  .modal-right {
    padding: 20px;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
