/* ---------------------- ESTILOS ADMIN ---------------------- */

.btn-eliminar {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-eliminar:hover {
  background-color: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

#admin-panel {
  background-color: #fff8ef;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  margin-top: 30px;
  animation: slideDown 0.4s ease forwards;
}

body.dark #admin-panel {
  background-color: #2b2b2b;
}

#admin-testimonios {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#admin-panel h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.testimonio {
  padding: 15px 20px;
  border-radius: 10px;
  background-color: #ffe8d6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

body.dark .testimonio {
  background-color: #333;
  color: #eee;
}

.testimonio button.btn-eliminar {
  margin-top: 10px;
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.testimonio button.btn-eliminar:hover {
  background-color: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ---------------------- LOGIN ---------------------- */
#login-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 30px;
  border-radius: 12px;
  background-color: #fff8ef;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

body.dark #login-container {
  background-color: #2b2b2b;
  color: #eee;
}

#login-container h2 {
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 15px;
  height: 48px;
  padding: 0 12px;
}

body.dark .input-wrapper {
  background-color: #444;
  border-color: #666;
}

.input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  height: 100%;
  color: inherit;
}

.input-wrapper i {
  margin-right: 10px;
  font-size: 18px;
  color: #888;
}

#toggle-pass {
  font-size: 18px;
  color: #888;
  cursor: pointer;
  user-select: none;
}

#toggle-pass:hover {
  color: #555;
}

#login-container button {
  background-color: #8b4513;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#login-container button:hover {
  background-color: #a85f33;
}

.error-msg {
  color: red;
  font-size: 14px;
  margin-top: 10px;
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

.cerrar-btn {
  margin-top: 20px;
  background-color: #777;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.cerrar-btn:hover {
  background-color: #555;
}

#admin-link {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #8b4513;
  color: white;
  font-size: 22px;
  text-decoration: none;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: background 0.3s ease;
}

#admin-link:hover {
  background-color: #a55a2a;
}

#admin-link {
  opacity: 0.6;
  font-size: 20px;
  bottom: 10px;
  right: 10px;
}
