body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f9;
  color: #333;
  padding: 20px;
}

#comment-form {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Efecto al pasar el mouse por el formulario */
#comment-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Campos de entrada y textarea */
#comment-form input[type="text"],
#comment-form input[type="text"],
#comment-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al enfocar los campos */
#comment-form input[type="text"]:focus,
#comment-form input[type="text"]:focus,
#comment-form textarea:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
  outline: none;
}

/* Botón de envío */
#comment-form button {
  background: #4CAF50;
  color: white;
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
/* Efecto hover del botón */
#comment-form button:hover {
  background: #45a049;
  transform: scale(1.05);
}
/* Título del formulario */
#comment-form h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 22px;
  color: #333;
}

.comment {
  background: #ffffff;
  border-left: 5px solid #3498db;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
}
.comment:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.comment strong {
  color: #2c3e50;
}

.comment p {
  margin: 5px 0;
  font-size: 15px;
}

.comment small {
  display: block;
  margin-top: 5px;
  color: #777;
}

.actions {
  margin-top: 10px;
}

.actions button {
  background: none;
  border: none;
  color: #3498db;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 10px;
}

.actions button:hover {
  text-decoration: underline;
}

.reply-form {
  margin-top: 10px;
  padding-left: 20px;
}

.reply-form input,
.reply-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  margin-top: 8px;
  border-radius: 8px;
  border: 2px solid #4cafef;
  background-color: #f0f8ff;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  resize: vertical;
  outline: none;
  transition: all 0.3s ease;
}

.reply-form button {
  background-color: #2196f3;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.reply-form button:hover {
  background-color: #1976d2;
}

.reply-form textarea:focus {
  border-color: #2196f3;
  background-color: #e6f3ff;
  box-shadow: 0 0 8px rgba(33, 150, 243, 0.4);
}

.replies {
  margin-left: 25px;
  border-left: 2px dotted #ccc;
  padding-left: 15px;
}

/* Contenedor general */
#comments-section {
  margin: 20px auto; /* Centrado horizontal */
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px; /* Máximo ancho */
  width: 100%;
}

/* Estilo de cada comentario */
.comment {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #007bff;
  animation: fadeIn 0.3s ease-in-out;
}

/* Nombre del usuario */
.comment strong {
  color: #007bff;
  font-size: 14px;
}

/* Texto del comentario */
.comment p {
  margin: 5px 0 10px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

/* Botón de like */
.comment button {
  background: #ffffff;
  color: #007bff;
  border: 1px solid #007bff;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.comment button:hover {
  background: #007bff;
  color: white;
}

/* Animación de aparición */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo para respuestas (si las agregas después) */
.reply {
  margin-left: 30px;
  background: #eef6ff;
  border-left: 4px solid #0056b3;
}