/* Estilos para el botón de información de productos */

.btn-info {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-info:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-info:active {
  transform: scale(0.95);
}

/* Asegurar que el producto-card tenga posición relativa */
.producto-card {
  position: relative;
}

/* Estilos para la descripción cuando se muestra */
.descripcion {
  font-size: 0.8rem;
  color: #cccccc;
  margin: 10px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border-left: 3px solid #ffffff;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

.descripcion.show {
  display: block !important;
}

/* Modal para descripción en móvil */
.descripcion-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.descripcion-modal.show {
  display: block !important;
}

.descripcion-modal-content {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  margin: 20% auto;
  padding: 25px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  color: #ffffff;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalFadeIn 0.3s ease;
}

.descripcion-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.descripcion-modal-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  flex: 1;
}

.descripcion-modal-close {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 10px;
}

.descripcion-modal-close:hover {
  background: rgba(255, 68, 68, 0.2);
  color: #ffffff;
  transform: scale(1.1);
}

.descripcion-modal-body {
  color: #cccccc;
  line-height: 1.5;
  font-size: 0.9rem;
  text-align: left;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.descripcion-modal.show .descripcion-modal-content {
  animation: modalFadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-info {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    top: 8px;
    right: 8px;
  }

  .descripcion-modal-content {
    margin: 30% auto;
    padding: 20px;
    width: 95%;
  }
  
  .descripcion-modal-header h3 {
    font-size: 1rem;
  }
  
  .descripcion-modal-close {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .descripcion-modal-body {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .btn-info {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
    top: 6px;
    right: 6px;
  }

  .descripcion-modal-content {
    width: 95%;
    margin: 40% auto;
    padding: 15px;
  }
  
  .descripcion-modal-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  
  .descripcion-modal-header h3 {
    font-size: 0.9rem;
  }
  
  .descripcion-modal-close {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
}
