#comentarios {
  padding: 30px 20px;
  background-color: rgba(30, 30, 30, 0.95);
  color: var(--text-color);
  border-top: 1px solid rgba(100, 100, 255, 0.4);
  margin: 25px auto;
  max-width: 650px;
  border-radius: 8px;
}

#comentarios h2,
#comentarios h3 {
  color: rgba(100, 150, 255, 1);
  font-size: 1.7rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

#comentarios h3 {
  font-size: 1.4rem;
  margin-top: 30px;
}

#comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: rgba(200, 200, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

#comment-form input,
#comment-form textarea {
  padding: 10px 14px;
  background-color: rgba(50, 50, 50, 1);
  border: 1px solid rgba(200, 200, 255, 0.4);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#comment-form textarea {
  min-height: 100px;
  max-height: 250px;
}

#comment-form input:focus,
#comment-form textarea:focus {
  border-color: rgba(100, 150, 255, 0.8);
  outline: none;
  box-shadow: 0 0 5px rgba(100, 150, 255, 0.3);
}

#comment-form button {
  background-color: rgba(100, 150, 255, 1);
  color: var(--primary-color);
  padding: 10px 16px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#comment-form button:hover {
  background-color: rgba(120, 170, 255, 1);
  transform: translateY(-2px);
}

#comments .comment-list {
  margin-top: 20px;
}

#comments .comment {
  background-color: rgba(50, 50, 50, 0.9);
  padding: 12px 15px;
  border-left: 4px solid rgba(100, 150, 255, 0.6);
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

#comments .comment:hover {
  transform: translateX(5px);
}

#comments .comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

#comments .comment-author {
  color: rgba(200, 200, 255, 0.8);
  font-weight: 600;
  font-size: 0.95rem;
}

#comments .comment time {
  color: rgba(200, 200, 255, 0.6);
  font-size: 0.85rem;
}

#comments .comment-body {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 600px) {
  #comentarios {
    padding: 20px 15px;
    margin: 15px;
  }

  #comentarios h2 {
    font-size: 1.5rem;
  }

  #comentarios h3 {
    font-size: 1.3rem;
  }

  #comment-form {
    max-width: 100%;
  }

  #comment-form input,
  #comment-form textarea {
    font-size: 0.9rem;
  }

  #comment-form button {
    font-size: 0.9rem;
  }
}